@charset "UTF-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css?family=Goudy+Bookletter+1911|Lato:400,900');

body {
	background-color: #fff;
}

header {
	background-color: #fff;
	width: 100%;
	padding: 12px 0;
}

#header-content {
	width: 100%; /* 960/960 * 100 */
	margin: 0 auto;
	position: relative;
	display: flex;
	justify-content: center;
}

#header-content img {
	height: 146px;
	margin-right: 50%;
}

nav {
	width: 76.0416667%;/* 730/960 * 100 */
	position: absolute;
	bottom: 18px;
}

nav ul {
	display: block;
	text-align: right;
}

nav li {
	display: inline-block;
	font-family: 'Goudy Bookletter 1911', serif;
	font-size: 1.25em; /* 20/16 */
	color: #16325a;
	padding: 0 3.125%; /* 30/960 */
	text-align: left;
}

/*nav li:last-child {
	padding-right: 0;
}*/

nav a:link {
	text-decoration: none;
	color: #16325a;
	padding: 10px 2.08333333%; /* 20/960 * 100 */
}

nav a:hover {
	background-color: #16325a;
	color: #fff;
	padding: 10px 2.08333333%; /* 20/960 * 100 */
}

#banner {
	width: 100%;
	height: 441px;
	background-image: url("images/home-banner.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}

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

#color-bar h3 {
	color: #fff;
	font-family: 'Goudy Bookletter 1911', serif;
	font-size: 1.875em; /* 30/16 */
	margin-bottom: 0;
}

#wrapper-white {
	width: 100%; /* 960/960 * 100 */
	background-color: #fff;
	padding: 60px 0;
	overflow: hidden;
}
main {
	padding: 486px 2.08333333% 20px; /* 20px/960px * 100 */
}

section, aside {
	margin-bottom: 20px;
}
section {
	width: 60.4166667%; /* 580/960 * 100 */
	float: left;
	padding-left: 2%;
}

aside {
	width: 25.25%;
	height: 300px;
	float: right;
	position: relative;
	border: 3px solid #16325a;
	padding: 20px 1.45833333% 14px; /* 14px/960px * 100 */
	text-align: center;
	margin-right: 5%;
}


section h1 {
	color: #a32973;
	text-transform: uppercase;
	font-family: 'Goudy Bookletter 1911', serif;
	font-size: 2.25em; /* 3/16 */
	margin-bottom: 16px;
}

aside h2 {
	color: #a32973;
	font-family: 'Goudy Bookletter 1911', serif;
	font-size: 1.75em; /* 28/16 */
	margin-bottom: 18px;
}

p {
	font-size: 1em; /* 16/16 */
	color: #000;
	font-family: 'Lato', sans-serif;
	margin-bottom: 16px;
	line-height: 180%;
}

aside p {
	font-size: 1em; /* 16/16 */
	line-height: 150%;
	font-family: 'Lato', sans-serif;
	margin-top: 10px;
	margin-bottom: 0;
}

.uppercase {
	text-transform: uppercase;
}

#wrapper-shop {
	width: 100%;
	padding: 60px 0;
	background-color: #f4f3f0;
	overflow: hidden;
}

#shop-content {
	width: 100%; /* 960/960 * 100 */
}

#shop-content h1 {
	text-transform: uppercase;
	color: #a32973;
	font-family: 'Goudy Bookletter 1911', serif;
	text-align-last: center;
	font-size: 2em; /* 32/16 */
	margin: 0 0 28px 0;
}

.team {
	width: 20.8333333%; /* 200/960 * 100 */
	text-align: center;
	display: inline-block;
}

.shop-box {
	width: 31.25%; /* 300/960*100 */
	text-align: center;
	display: inline-block;
}

.shop-box img {
	width: 75%;
	opacity: 50%;
}

.shop-box img:hover {
	opacity: 100%;
}

.shop-box a:link {
	background-color: #a32973;
	color: white;
	padding: 1% 24%;
	text-decoration: none;
}


/* Extra credit: opacity styles for 3 bottom images */
.team img {
	opacity: 70%;
}

.team:hover img {
	opacity: 100%;
	transition: all .65s ease-in-out 0s;
}

.team:first-of-type {
	margin-right: 2.6041667%; /* 25/960 */
}

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

.shop-box h3, .team h3 {
	color: #a32973;
	text-transform: uppercase;
	font-family: 'Goudy Bookletter 1911', serif;
	font-size: 1.75em; /* 28/16 */
	margin: 18px 0 12px;
}

.shop-box p, .team p {
	font-size: 0.875em; /* 14/16 */
	margin-bottom: 24px;
}

.team a {
	display: block;
	background-color: #a32973;
	padding: 10px 2.08333333%; /* 20/960 * 100 */
	font-family: 'Lato', sans-serif;
	font-size: 0.875em; /* 14/16 */
	color: #fff;
	text-decoration: none;
	width: 16.6666667%; /* 160/960 * 100 */
	margin: 0 auto;
}

footer {
	padding: 40px 0 30px;
	width: 100%;
	font-size: 0.75em; /* 12/16 */
	overflow: hidden;
	background-color: #16325a;
}

footer h3 {
	font-family: 'Goudy Bookletter 1911', serif;
	color: #fff;
	text-transform: uppercase;
	font-size: 1em; /* 16/16 */
	font-weight: bold;
}

footer p {
	font-family: 'Lato', sans-serif;
	color: #fff;
	opacity: .70;
}

#footer-content {
	width: 100%; /* 960/960 * 100 */
	margin: 0 auto;
}

#footer-left {
	width: 35%;
	float: left;
	padding-left: 100px;
}

#footer-right {
	width: 45%;
	float: right;
	text-align: right;
	padding-right: 100px;
}

/* --------- TRANSITION EFFECTS --------- */
aside .book-details {
    opacity: 1;
}

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

.mask {
	width: 34.2708333%; /* 329/960 * 100 */
    height: 335px;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    background-color: #a32973;
    opacity: 0;
    transition: linear 2s;
}

.mask:hover {
     opacity: 1;
}

/* prevents the information from appearing when the page is loaded */
.mask h2, .mask p, .mask .learn {
	opacity: 0;
}

/* decendent selector style for heading in box */
.mask:hover h2 {
	font-size: 2em; /* 32/16 */
	color: white;
	opacity: 1;
	margin-top: 25%;
}

/* styles the paragraph text in the book of the week box */
.mask:hover p {
	font-size: 1.25em; /* 20/16 */
	color: white;
	margin-bottom: 4.16666667%; /* 40/960 */
	opacity: 1;
}

.mask:hover .learn{
	background-color: #16325a;
	color: white;
	font-family: 'Lato', sans-serif;
	font-size: 1.25em; /* 20/16 */
	opacity: 1;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	padding: 16px 3.54166667%; /* 34/960px * 100 */
}

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

#slideshow-wrapper {
	width: 100%;
	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%; /* rounds all 4 corners, making a circle */
	margin-right: 4.5625%; /* 15/960 */
}

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


/* media queries */
@media only screen and (max-width: 1024px) {
	nav ul{
		text-align: center;	
	}
	
	nav {
		width: 100%;
	}
	#header-content img{
		margin: 0 auto;
		margin-bottom: 45px;
	}
	
	#header-content {
		display: flex;
		margin: 0 auto;
	}
	
	#banner {
	height: 300px;
	}
	
	#slideshow {
	height: 300px;
	}
	
	#slideshow-wrapper {
	height: 300px;
	}
	
	.circle {
		height: 9px;
		width: 9px;
	}
	
	#color-bar {
		font-size: 0.625em; /* 10/16 */
	}
	
	section h1 {
		font-size: 1.75em; /* 3/16 */	
	}
	
	#shop-content h1 {
		font-size: 2em; /* 32/16 */
	}
	
	#wrapper-white {
		
	}
	
	aside {
		
	}
	
	section {
		width: 60%;
	}
	
	section p {
		margin: 0 auto;
	}
	
	p {
		font-size: .95em;
	}
	
	
	aside h2 {
		font-size: 1.5em;
	}
	
	aside a {
		text-align: center;
	}
	
	aside.book-details {
		margin-right: 50px;
	}
	
	.shop-box {
		width: 100%;
		text-align: center;
		margin: 30px 0;
	}
	
	.shop-box img {
		width: 75%;
		height: 130px;
		object-fit: cover;
		object-position: 100% 0;
	}
	
	.shop-box a:link {
		background-color: #a32973;
		color: white;
		padding: 1% 24%;
	}
	
	.team:first-of-type {
		margin-right: 1%;
	}

	.team:nth-of-type(2), .team:nth-of-type(3){
		margin-left: 1%;
		margin-right: 1%;
	}
	.team:last-of-type {
		margin-left: 1%;
	}
	
	div.team {
		margin: 0 2.9296875%; /* 30/1024*100 */
	}
	
	footer h3, p {
		margin-left: 9.765625%; /* 100/1024*100 */
		margin-right: 4.8828125%; /* 50/1024*100 */
	}
	
	#footer-left {
		padding-left: 0;
	}
	
	#footer-right {
		padding-right: 0;
	}
	
}

@media only all and (max-width: 480px){
	
	#header-content img {
		width: 50%;
		height: auto;
		margin: 0 auto 145px;
	}
	
	nav li{
		display: block;
		text-align: center;
		margin: 1px 1px;
		background-color: #a32973;
	}
	
	nav a:link{
		color: white;
	}
	
	nav ul {
		text-align: center;
	}
	
	#header-content {
		display: flex;
		margin: 0 auto;
	}
	
	#header-content nav {
		margin-top: 100px;
	}
	
	#banner {
	height: 200px;
	}
	
	#slideshow {
	height: 200px;
	}
	
	#slideshow-wrapper {
	height: 200px;
	}
	
	.circle {
		height: 9px;
		width: 9px;
	}
	
	#color-bar {
		font-size: 0.625em; /* 10/16 */
	}
	
	section {
		width: 100%;
	}
	
	section h1 {
		font-size: 1.75em; /* 3/16 */	
		margin: 0 5%;
	}
	
	#shop-content h1 {
		font-size: 2em; /* 32/16 */
		
	}
	
	.shop-box {
		width: 100%;
		text-align: center;
		margin: 30px 0;
	}
	
	.shop-box img {
		width: 75%;
		height: 80px;
		object-fit: cover;
		object-position: 100% 0;
	}
	
	.shop-box a:link {
		background-color: #a32973;
		color: white;
		padding: 1% 24%;
	}
	
	#wrapper-white {
		width: 100%;
		margin: 0;
	}
	
	aside {
		width: 80%;
		float: right;
		margin-right: 8%;
	}
	
	section {
		width: 100%;
		position: relative;
	}
	
	section p {
		margin: 0 6% 2%;
	}
	
	p {
		font-size: .85em;
	}
	
	
	aside h2 {
		font-size: 1.5em;
	}
	
	div.team {
		display: block;
		width: 100%;
	}
	
	div.team p {
		margin: 10px 0; 
	}
	
	footer h3, footer p {
		margin: 0 auto;
	}
	
	#footer-content {
		width: 100%;
		margin: 0 auto;
		position: relative;
		display: block;
	}
	
	#footer-left, #footer-right  {
		text-align: center;
		display: block;
		width: 100%;
	}
	
	#footer-left {
		margin-bottom: 20px;
		padding-left: 0;
	}
	
	#footer-right {
		padding-right: 0;
	}
	
}