/* Lets take our knowledge of CSS selectors, properties, and inheritance to add some style to the Sweet Eats Bakery website.  

Task 1: Fork this pen.  You will want to have your own version saved.

Task 2: Explore the CSS.  Look at all the unique selectors.  Find things that are new to you and learn what they do.  Find properties you may not be familiar with and google them.

Task 3: Update the CSS.  You will notice the CSS comments throughout the file below.  Follow the instructions to complete the Sweet Eats Bakery site.  If you follow the instructions, you should see this as a final result:

https://tk-assets.lambdaschool.com/44f6a520-b218-4ed1-910b-f4dc876cd1a6_sweet-eats-home-page.png

***DO NOT ATTEMPT STRETCH UNTIL YOU ARE FINISHED WITH EVERYTHING ELSE!***

Stretch Task: Fork your final work and see how much you can change the design without changing the HTML.  Try to transform the site by only using CSS selectors.

Stretch Task: Look at CSS animations and see if you could integrate them on the navigation hovers.

Stretch Task: Pick a navigation item and create a new page with the same header and footer as the home page.  Example: you could make a new page just for cookies.  Be creative and have fun coming up with your own unique content and styles. 

*/


/*======= Create a new universal selector that changes the font color to: #3C373B */
* {
  color:#805500;
  font-family: "great vibes", cursive;
  background-image: #f0ece3;
}

h1 {
  font-family: "great vibes", cursive;
  margin: 25px 0;
  /*=======  Update the font size to 60px and center the text */
  font-size: 40px;
  text-align:center;
  background: linear-gradient(to right, rgba(193,158,103,1) 0%, rgba(182,141,76,1) 0%, rgba(232,211,178,1) 52%, rgba(243,226,199,1) 63%, rgba(233,212,179,1) 100%);
  animation-name:myanim;
  animation-duration:5s;
  animation-timing-function:ease-in-out;
  animation-delay:2s; /*wait before start of animation */
  animation-iteration-count:infinite; /* name,duration, timing function,delay,count */
}
/* keyframes rule to specify animation code */
@keyframes myanim{
  0%{
   background: linear-gradient(to right, rgba(243,226,199,1) 0%, rgba(187,148,86,1) 47%, rgba(182,141,76,1) 51%, rgba(233,212,179,1) 100%);;
  transform: skewY(1deg);}
  40%,70%,{
background: linear-gradient(to right, rgba(243,226,199,1) 0%, rgba(193,158,103,1) 50%, rgba(182,141,76,1) 51%, rgba(233,212,179,1) 100%);
    transform: skewY(2deg);
  }
   80%,90%,{
background: linear-gradient(to right, rgba(243,226,199,1) 37%, rgba(243,226,199,1) 40%, rgba(182,141,76,1) 84%, rgba(193,158,103,1) 99%, rgba(233,212,179,1) 100%);
    transform: skewY(1deg);
  }
  100%{
background: linear-gradient(to right, rgba(193,158,103,1) 0%, rgba(182,141,76,1) 0%, rgba(232,211,178,1) 52%, rgba(243,226,199,1) 63%, rgba(233,212,179,1) 100%);;
    transform: skewY(0deg);
  }
}
h2, h3, h4, h5, h6 {
  font-family: "great vibes", cursive;
  margin-bottom: 0;
  padding: 0 10px;
  /*=======  Update the font size to 30px */
  font-size: 30px;
}

/*======= Create a selector for ALL p tags in the site to have the following styles:
*/
p{
font-size: 20px;
font-family: "great vibes", cursive;
padding: 10px;
line-height: 1.4;
}

/*======= Create a selector for ALL images in the site to have the following styles: 
  border-radius: 10px;
*/
img{
  border-radius:20px; /*gives rounded corners */
  width:120%;
  margin: 20px;
}
.content-row {
  display: flex;
}

.content-row div {
  /*======= create a margin propery.  Set the value to 20px */
margin: 20px;
}

.container {
  /*======= create a width property. Set the value to 600px */
  margin: 0 auto;
  width: 600px;
}

.container header nav a {
  margin: 0 10px;
  border: 1px solid lightgray;
  padding: 15px;
  display: inline-block;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  margin-bottom: 15px;
   /*======= create a background property. Set the value to #F87B99 */
  background: #dfbf9f;
}

.container header nav a:hover {
/*======= create a background property and set it to white.  Then create a color property and set it's value to pink. */
  background:white;
  color:#C7B198;
   /*scale 3D transform to increase the size of element */
  transform:scale(1.3);
  box-shadow:2px 2px 4px #F87B99;
}
.cupcake{
  background:white;
  box-shadow:2px 2px 4px #F87B99;
}

/*======= Create a selector for the about section to have the following styles:
  margin-top: 20px;
*/
.about{
  margin-top:20px;
}
.newc{
  width:120%;
  padding 10px;
}
.newcd{
  width:110%;
  padding 20px;
}

.contact-section {
  border-top: 1px dashed brown;
  border-bottom:1px dashed brown;
  padding: 20px 0;
}

.contact-section h2 {
  padding: 0;
  margin: 0 0 10px 0;
}

/*======= Create a selector for the address tag in the contact-section class to have the following styles:
   line-height: 2;
*/
address {
  line-height:2; /* controls distance between lines */
}

footer {
  width: 100%;
  /*background: #C7B198;*/
  border-top: 1px dashed white;
}

footer .footer-content { 
  margin: 0 auto; 
  /*======= create a width property. Set the value to 600px */
  width:600px;
}

footer .footer-content h3 {
  padding: 0;
  margin: 20px 0; /*topbottom 20px, rightnleft 0 */
}

footer nav {
  display: flex;
}

footer .footer-content nav a{
  margin: 10px;
  color: black;
  border-radius:4px;
  text-decoration: none;
  background-image: linear-gradient(315deg, #ffffff 0%, #cea177 74%);
  padding:10px;
}

footer nav a:first-child {
  margin-left: 0;
}

 
.footer-content nav a:hover{
  color:white; 
  transform:scale(1.4);
  box-shadow:2px 2px 4px pink;
}

footer .footer-content .copyright {
  padding: 20px 0;
   /*======= center the text here */
  text-align:center;
}

.backhome{
  text-decoration:none;
}
