@charset "UTF-8";
/* CSS Document */
/* Assignment 1 Css Start*/

@import url('https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&family=Lato&display=swap');
/*font-family: 'Goudy Bookletter 1911', serif;
font-family: 'Lato', sans-serif;*/

nav,h1,h2,h3{font-family: 'Goudy Bookletter 1911', serif;}

p {font-family: 'Lato', sans-serif;}

header { width:100%; }

#header-content 
{margin: 0 auto;
  width: 90%;
  padding: 10px 1.041666666666667%;/*10/960=0.0104166666666667x 100=*/
	position:relative; }

nav {
    position: relative; 
    margin-top: 20px; 
    text-align: center; 
}

nav li 
{display:inline-block;
	padding:10px 2.083333333333333%;} /*(20/960)x100=2.083333333333333%*/

nav a {
    text-decoration: none;
    color: black; 
}

nav a:hover  
{background-color: #16325a;}

section 
{width:60.41666666666667%;} /*580/960=0.6041666666666667x100=60.41666666666667%*/

section h1 
{font-size: 2.25em;/*36/16*/
  color: #a32973;
  text-transform: uppercase;
  padding: 10px 0;
}

section p {
  font-size: 1em; /*16/16*/
  color: #000;
  line-height: 1.5;
  margin-top: 10px;
  padding: 10px 1.041666666666667%;
} /* (10/960)x100=1.041666666666667%*/

aside 
{width:31.25%; /*300/960=0.3125x100=31.25%*/
	border-width:3px;
	border-color:#16325a;
	border-style:solid; 
	text-align: center;
	position: relative;
	height:300px;}

aside h2 
{color:#a32973;
font-size: 1.5625em;/*25/16*/ 
padding: 10px 0;}

#banner 
{height:440px; 
width:100%;}

#color-bar
{background-color:#a32973;
color:white;
text-align:center;
padding: 10px 0;}

#wrapper-white
{width:80%; /*960px*/
margin: 0 auto;
display:flex;}

#wrapper-shop 
{background-color:#f4f3f0;
width:100%;/*already a percentage*/
margin-bottom:20px;
padding:30px 3.125%;} /*(30/960)x100=3.125%*/

#shop-content
{width:100%;/*960/960=1*/
margin: 0 auto;
display:flex;
text-align:center;}

#shop-content h3
{font-size: 1.75em;/*28/16*/ 
text-transform:uppercase;
color:#a32973; 
padding: 5px 0; }

#shop-content p 
{font-size: 0.875em;/*14/16*/
margin-bottom: 20px;
padding:10px 1.041666666666667%; /* copied from above*/
line-height: 1.5;}

#shop-content a 
{text-decoration:none;
color: #fff; 
background-color:#a32973;
padding:5px 0.5208333333333333% ;}/*(5/960)x100=0.5208333333333333% */

.shop-box 
{width:31.25%; /*300/960=0.3125x100=31.25%*/
margin-left:1.5625%;}/*(15/960)x100*/

footer
{background-color:#16325a;
margin:0 auto;
width:100%;
alignment:center;
color:white;
padding: 20px 0;}

footer h3 
{ font-size:1em;/*16/16*/
font-color:white;
text-transform:uppercase;}

footer p 
{font-size:1em;/*16/16*/
font-color:white;
opacity: 70%;
line-height: 1.5;}

#footer-content 
{width:100%;/*960/960=1*/
margin:0 auto;
display:flex;
justify-content: space-between;}

#footer-left
{text-align:left;}

#footer-right 
{text-align:right;}

.book-details {}

.uppercase 
{text-transform:uppercase;}

/* Assignment 2 transitions below */
aside .book-details 
{opacity: 1;}

aside .book-details:hover
{opacity: 0;
 transition: linear 1s;}

.mask {
     width: 34.16666666666667%; /*328/960=0.3416666666666667x100=34.16666666666667%*/
     height: 334px;
     position: absolute;
     top: 0;
     left: 0;
     text-align: center;
     background-color: #a32973;
     opacity: 0;
     transition: linear 2s;
}

.mask:hover {
     opacity: 1;
}

.mask h2,.mask p,.mask .learn {
     opacity: 0;
}

.mask:hover h2 {
     font-size: 2em;/*32/16*/
     color: #fff;
     margin-top: 25%;
     opacity: 1;
}

.mask:hover p {
  font-size: 1.25em;/*20/16*/
  color: white; 
  margin-bottom: 40px;
  opacity: 1;
}

.mask:hover .learn {
  background-color: #16325a;
  color: white; 
  font-family: 'Lato';
  font-size: 1.25em;/*20/16*/
  opacity: 1;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 3.541666666666667%; /*(34/960)x100*/
  padding-right: 3.541666666666667%;
}

aside hr {
    width: 90%;
    margin: 20px auto;
    border-top: 1px solid #16325a;
}

#shop-content h1, #wrapper-shop h1 
{font-size: 2em; /*32/16*/
text-transform:uppercase;
color:#a32973;
padding: 5px 0;
font-family:"Goudy Bookletter 1911";
text-align:center;
margin-top:0px;
margin-right:0px;
margin-bottom:28px;
margin-left:0px;
width:80%;} /*960px*/

.shop-box h3,
.team h3{}

.team p, .shop-box p{}

.team 
{width:20.83333333333333%;/*200/960=0.2083333333333333x100=20.83333333333333%*/
text-align:center;
display:inline-block;}

.team:first-of-type 
{margin-right: 2.604166666666667%;} /*(25/960)x100*/

.team:nth-of-type(2),
.team:nth-of-type(3)
{margin-left: 2.5%;/*(24/960)x100*/
margin-right: 2.5%;}/*(24/960)x100*/

.team:last-of-type 
{margin-left: 2.604166666666667%;} /*(25/960)x100*/



/* --------- SLIDESHOW --------- */

#slideshow-wrapper {
  width: 100%; /*already a percentage*/
  height: 441px;
}

#slideshow {
  width: 100%;
  height: 441px;
  overflow: hidden;
  white-space: nowrap;
}

#slideshow img {
  width: 100%;
  height: 100%;
  display: inline-block;
}

.circle {
  display: inline-block;
  background-color: lightgray;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 1.5625%;/*(15/960)x100*/
}

#circle-nav {
  margin-top: -50px;
  text-align: center;
}

#banner {background-image: url("images/home-banner.jpg"); 
	height:440px;
	width:100%;}




/* tablet freindly*/

@media only screen and (max-width: 1024px) /*about the size of a tablet in portrait, this starts seperate css instructions for displays on this size screen*/
{
#header-content img {margin:0px auto;
	max-width: 100%; /*960/960px= 1 x 100%*/
height:auto;
display:block;}

nav {
    position: relative; 
    text-align: center;
	width:100%;
	display:inline-block;
	margin-top:20px;
}

  nav li {
        display: block; 
        padding: 10px 0;
    }

    nav a {
        display: block; 
        padding: 10px 1.041666666666667%; 
    }/*(10/960)x100*/

    section {
        width: 100%; 
    }

    aside {
        width: 100%; 
        height: auto; 
    }

    .team {
        width: 100%; 
        margin: 0 auto; 
    }

    .team:first-of-type,
    .team:nth-of-type(2),
    .team:nth-of-type(3),
    .team:last-of-type {
        margin: 0;
    }

    .circle {
        margin-right: 5px; 
    }
#shop-content
{display:block; /*Dont use flex because it will strech across the screen*/
}
.shop-box 
{width:100%; 
margin-bottom:10px;
display:block;
padding-top:5px;}
.shop-box img 
{
max-height:120px;
object-fit: cover;
min-width:100%; 
object-position:top;
}
#shop-content h3
{font-size: 1.75em;/*28/16*/ 
text-transform:uppercase;
color:#a32973; 
padding: 5px 0; }

#shop-content p 
{font-size: 0.875em;/*14/16*/
margin-bottom: 20px;
padding:10px 1.041666666666667%; /* copied from above*/
line-height: 1.5;}

#shop-content a 
{text-decoration:none;
color: #fff; 
background-color:#a32973;
padding:5px 0.5208333333333333% ;}/*(5/960)x100=0.5208333333333333% */

}


/* end of tablet freindly*/

/* start of mobile freindly*/
@media only screen and (max-width: 480px) {
    nav {
        margin-top: 10px; 
    }

    nav ul {
        display: block;
        padding: 0; 
        margin: 0; 
        text-align: center; 
    }

    nav li {
        display: block;
        margin-bottom: 10px; 
    }

    nav a {
        display: block; 
        padding: 10px 1.041666666666667%; 
    } /*(10/960)x100*/

    section {
        width: 100%; 
    }

    aside {
        width: 100%; 
        height: auto;
    }

    .shop-box {
        width: 100%; 
        margin-left: 0; 
    }

    .circle {
        margin-right: 5px;
    }
}
/*end of mobile freindly */
