/* Variables */

:root {
	--primary-color: #94918c;
	--secondary-color: #f4673a;
	--alt-color: #d65d32;
	--font-family: 'Lora', sans-serif;
}

.primary-bg {
	background-color: var(--primary-color);
}

.secondary-bg {
	background-color: var(--secondary-color);
}

.primary-text {
	color: var(--primary-color);
}

.secondary-text {
	color: var(--secondary-color);
}

.secondary-font {
	font-family: 'Assistant';
}

/* Custom Reset */

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	font-size: 100%;
}

body {
	font-family: var(--font-family);
	color: #333;
	line-height: 1.5;
}

input[type=text], textarea {
	font-family: var(--font-family);
	font-size: 1rem;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: #333;
}

h1, h2, h3, h4 {
	font-weight: 600;
	line-height: 1.2;
}

p {
	font-size: 1.15rem;
	margin: 20px 0;
}

img {
	width: 100%;
}

/* Navigation */

.nav {
	background-image: url("../images/bg-texture-1.jpg");
	background-repeat: repeat;
	margin: 0 auto;
}

.nav .flex {
	justify-content: space-between;
}

.nav img {
	width: 212px;
	height: 44px;
}

.nav ul {
	display: flex;
}

.nav a {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 5px;
	padding: 15px;
}

.nav a:hover {
	color: var(--secondary-color);
}

/* Hero */

.hero {
	background-image: url("../images/bg-texture-1.jpg");
	background-repeat: repeat;
	position: relative;
}

.hero .flex {
	align-items: flex-start;
	flex-direction: column;
}

.hero-description {
	padding-left: 40px;
}

.hero-description h3 {
	color: var(--secondary-color);
	padding-bottom: 10px;
}

.hero-description h1 {
	font-size: 3.75rem;
	line-height: 1;
}

.hero-description h2 {
	color: var(--primary-color);
	font-size: 2rem;
	padding-bottom: 30px;
}

.purchase-options {
	display: flex;
}

.hero-image img {
	width: 324px;
	height: 464px;
}

/* About the Book */

.about-book {
	padding-bottom: 40px; 
	background-image: url("../images/bg-texture-1.jpg");
	background-repeat: repeat;
	position: relative;
}

.about-book h3 {
	font-size: 1.75rem;
}

.about-book span {
	font-weight: 600;
}

.about-book a {
	color: var(--secondary-color);
}

.about-book a:hover {
	color: var(--primary-color);
}

.gallery {
	overflow-x: hidden;
}

.gallery .flex {
	justify-content: flex-start;
}

.gallery img {
	width: 300px;
	height: 300px;
	border: 1px solid #fff;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
	cursor: pointer;
	transform: scale(0.98);
}

/* Book Reviews */

.book-reviews {
	background-image: url("../images/bg-texture-2.jpg");
	background-repeat: repeat;
	border-bottom: 2px solid #fff;
	border-top: 2px solid #fff;
	overflow: auto;
	padding-bottom: 60px;
	padding-top: 60px;
	position: relative;
}

.book-reviews h2 {
	font-size: 1.75rem;
	text-align: center;    
}

.book-reviews h3{
	padding-top: 10px;
}

.book-reviews h4 {
	font-size: 1.15rem;
	font-weight: 300;
	padding-top: 5px;
}

.book-reviews span {
	font-weight: 600;
}

.slideshow {
	position: relative;
}

.myReviewSlides {
	display: none;
	padding: 20px 80px 50px;
	text-align: center;
}

.review-prev, .review-next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	margin-top: -30px;
	padding: 16px;
	color: #888;
	font-weight: bold;
	font-size: 20px;
	border-radius: 0 3px 3px 0;
	user-select: none;
}
  
.review-next {
	right: 0;
	border-radius: 3px 0 0 3px;
}

.dot-container {
	text-align: center;
}
  
.dot {
	cursor: pointer;
	height: 15px;
	width: 15px;
	margin: 0 2px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
	transition: background-color 0.6s ease;
}
  
.review-active, .dot:hover {
	background-color: #717171;
}

/* About the Author */

.author {
	padding-bottom: 30px;
	padding-top: 60px;
	background-image: url("../images/bg-texture-1.jpg");
	background-repeat: repeat;
	position: relative;
}

.author img {
	width: 300px;
	height: 225px;
	border: 1px solid #fff;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.1);
	float: left;
	margin: 25px 35px 20px 0;
}

.author h3 {
	font-size: 1.75rem;
	padding-bottom: 15px;
	text-align: center;
}

/* Podcast */

.podcast {
	padding-bottom: 60px;
	background-image: url("../images/bg-texture-1.jpg");
	background-repeat: repeat;
	border-bottom: 2px solid #fff;
	position: relative;
	text-align: center;
}

.podcast h3 {
	font-size: 1.25rem;
	padding-bottom: 5px;
	text-decoration: underline;
}

.podcast p {
	padding-bottom: 5px;
}

.podcast a {
	color: var(--secondary-color);
}

.podcast a:hover {
	color: var(--primary-color);
}

.podcast a img {
	width: 369px;
	height: 473px;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.1);
	margin: 0;
}

.podcast iframe {
	width: 800px;
	border: 1px solid var(--primary-color);
}

/* Contact */

.contact {
	padding-bottom: 30px;
	padding-top: 60px;
	background-image: url("../images/bg-texture-3.jpg");
	background-repeat: repeat;	
	position: relative;
	text-align: center;
}

.contact .container {
	overflow: hidden;
}

.contact h3 {
	color: #f8ead6;
	font-size: 1.75rem;
	padding-bottom: 30px;
}

.contact .flex {
	flex-direction: column;
}

.contact form {
	width: 800px;
}

.contact input[type=text], select, textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	box-sizing: border-box;
	margin-bottom: 8px;
	resize: vertical;
}

.contact textarea {
	height: 150px;
	margin-bottom: 25px;
}

/* Footer */

.footer {
	background-image: url("../images/bg-texture-3.jpg");
	background-repeat: repeat;
	color: #fff;
	font-size: 1rem;
	margin: 0 auto;
	padding-bottom: 30px;
}

.footer a {	
	color: #f8ead6;
	font-weight: 400;
	margin: 0 5px;
	padding: 15px;
}

.footer a:hover {
	color: var(--secondary-color);
}

.legal {
	text-align: center;
}

.legal h5 {
	font-size: 1rem;
	font-weight: 400;
}

/* Animations */

.slide-fl {
	animation: slideFromLeft 1s ease-in;
}

.slide-fr {
	animation: slideFromRight 1s ease-in;
}

.slide-ft {
	animation: slideFromTop 1s ease-in;
}

.slide-fb {
	animation: slideFromBottom 1s ease-in;
}

@keyframes slideFromLeft {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes slideFromRight {
	0% {
		transform: translateX(100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes slideFromTop {
	0% {
		transform: translateY(-100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes slideFromBottom {
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateX(0);
	}
}

/* Responsive: Larger Screens */

@media(min-width: 1401px) {
	.hero .grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media(min-width: 1001px) {
	.nav {
		height: 120px;
		padding: 0 100px;
	}
	.footer-links {
		height: 60px;
	}
}

@media (min-width: 1001px) and (max-width: 1400px) {
	.hero .grid {
		grid-template-columns: 4fr 3fr;
	}
	.hero-image img {
		width: 275px;
		height: 394px;
	}
	.gallery .flex {
		justify-content: center;
	}
	.gallery li {
		padding: 10px;
	}
	.gallery img {
		width: 200px;
		height: 200px;
	}
}

/* Responsive: Smaller Screens */

@media(max-width: 1000px) {	
	.nav img {
		margin-bottom: 25px;
		margin-top: 30px;		
	}
	.nav .flex {
		flex-direction: column;
	}
	.hero {
		padding-top: 25px;
	}
	.hero .grid {
		grid-template-columns: 1fr;
  		grid-template-rows: auto 1fr;
		justify-items: center;		
	}
	.hero-image {
		order:-1;
	}
	.hero-description {
		justify-content: center;
		padding-bottom: 40px;
		padding-left: 0;
	}
	.hero .flex {
		align-items: center;
	}
	.hero h3 {
		padding-bottom: 5px;
		text-decoration: underline;
	}
	.hero-description h1 {
		font-size: 3rem;
	}	
	.hero-description h2 {
		font-size: 1.5rem;
	}
	.hero-image {
		padding-bottom: 25px;
		padding-left: 50px;
	}
	.hero-image img {
		width: 243px;
		height: 348px;
	}
	.about-book h3 {
		padding-bottom: 5px;
		text-align: center;
		text-decoration: underline;
	}
	.gallery .flex {
		justify-content: center;
	}
	.gallery li {
		padding: 10px;
	}
	.book-reviews h2 {
		text-decoration: underline;
	}
	.author h3 {
		text-decoration: underline;
	}
	.podcast iframe {
		width: 700px;
	}
	.contact form {
		width: 700px;
	}
	.footer-links {
		height: 60px;
	}
}

/* Responsive: Tablet & Mobile */

@media(max-width: 768px) {
	.nav ul {
		align-items: center;
		flex-direction: column;		
	}
	.hero-description h1 {
		font-size: 2.5rem;
	}	
	.hero-description h2 {
		font-size: 1.25rem;
	}	
	.author .container {
		text-align: center;
	}	
	.author img {
		float: none;
		margin: 20px 0 10px 0;
	}
	.author p {
		text-align: left;
	}
	.podcast iframe {
		width: 100%;
	}
	.contact form {
		width: 100%;
	}
	.footer-links {
		height: 100%;
	}
	.footer .flex {
		flex-direction: column;
	}
	.footer a {		
		margin: 0;
		padding: 0;
	}
	.legal {
		margin-top: 45px;
	}
	.legal h5 {
		padding-top: 25px;
	}	
}