/*Main Fonts*/
@font-face {
	font-family: august;
	src: url(fonts/Augusta.ttf);
}

@font-face {
	font-family: instrument;
	src: url(fonts/InstrumentSerif.ttf);
}

@font-face {
	font-family: garamond;
	src: url(fonts/garamond.ttf);
}

@font-face {
	font-family: medieval;
	src: url(fonts/medieval.ttf);
}

/*Body formatting*/
body,
html {
	margin: 0;
	font-family: medieval;
	font-size: 18px;
	background-image: url("images/marble.jpg");
	background-attachment: fixed;
	background-size: 100% 100%;
	background-color: #fcf5e3;
	padding: 1px
}

p {
	font-size: 18px
}

body a {
	color: #264a1b;
	font-weight: 700
}

#container {
	max-width: 900px;
	margin: 0 auto;
	height: auto;
	background-color: #fcf5e3;
	margin-top: 60px;
	border: 1px solid;
	border-color: #000
}

list li {
	padding-bottom: 5px;

}

h1,
h3,
h5 {
	color: #000;

}

h1 {
	font-family: august;
	src: url(fonts/Augusta.ttf);
}

h2,
h4,
h6 {
	color: #000;
}

/*Header formatting*/
#header {
	max-width: 900;
	height: auto;
	background-color: #fcf5e3;
	
	border-bottom: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

#header img {
	max-height: auto;
	width: 900px;
	margin-top: 18px;
	margin-bottom: 10px;
	padding: 8px;
}

/*Menu Formatting*/
.navbar li a {
	text-decoration: none;
}

.navbar ul {
	list-style-type: none;
	padding: 0;
	padding-left: 20px;
	padding-right: 20px;
}

.navbar {
	background-color: #fcf5e3;
	max-width: 1000px;
	
	border-bottom: none;
	border-top: none;
	padding-top: 1px;
	padding-bottom: 1px;
	text-align: center;
}

.title {
	font-size: 70px;
	font-family: august;
	text-align: center;
	color: #3b5b8d;
}

.section-title {
	text-align: left;
	font-weight: bold;
	padding-left: 25px;
	padding-top: 1px;
	padding-bottom: 1px;
	background-color: #fcf5e3;
	color: #fcf5e3;
	font-size: 10px;
	border-bottom: 1px solid #4a2917;
}

.wrapper {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid #4a2917;
	border-bottom: none;
	border-top: none;
	height: auto;
	width: 100%;
}

/*Left Sidebar Formatting*/
#left-sidebar {
	max-width: 197px;
	border: 1px solid #4a2917;
	height: auto;
	border-right: none;
	border-top: none;
	border-bottom: none;
	background-color: #fcf5e3;
	object-fit: contain;
}

#left-sidebar img {
	width: 197px;
	object-fit: contain;
	justify-content: center;
	align-items: center;
} 
/*Main Section Formatting*/
.content {
	padding: 0px;
}

.main-content {
	
	border-bottom: none;
	width: 900px;
	height: auto;
	border-left: none;
	border-top: none;
	background-color: #fcf5e3;
}

p {
	padding: 5px;
}

p a {
	color: #4a2917;
	font-weight: 700;
}

/*Scroll Bar*/
.scroll::-webkit-scrollbar-track {
	background-color: #fcf5e3;
}

.scroll::-webkit-scrollbar {
	width: 10px;
	background-color: #fcf5e3;
}

.scroll::-webkit-scrollbar-thumb {
	background-color: #3b5b8d;
}

.navbar li {
	position: relative;
	display: inline-block;
}

.navbar a {
	text-decoration: none;
	display: block;
	color: #264a1b;
	transition: .2s all linear;
	font-weight: 700;
	font-size: 20px;
	margin-left: 10px;
	margin-right: 10px;
}

.navbar a:hover {
	background: #d9b596;
	color: #264a1b;
	transition: .2s all linear;
	z-index: 1;
}

.navbar li>ul {
	background: #ad735e;
	display: none;
	position: absolute;
	margin-left: 0;
	border: 1px solid #4a2917;
}

.navbar li>ul a {
	padding-left: 0;
	padding-right: 0;
	padding-top: 5px;
	padding-bottom: 5px;
}

.navbar li>ul li {
	display: block;
}

.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}

/*Footer Formatting*/
#footer {
	padding-top: 0;
	margin-bottom: 0;
	object-fit: fill;
	height: 123px;
	width: auto;
	align-content: center;

}

#footer img {
	align-content: center;
	object-fit: fill;
	max-width: 898px;
	height: 100%;
	left: 1px;
	bottom: 0;
	border-right: 1px solid #000;
	border-left: 1px solid #000;

}

textarea {
	font-size: 10px;
}

.code-wrapper {
	display: flex;
	padding-left: 10px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	padding: 0 4px;
}

/* Create three equal columns that sits next to each other */
.column {
	flex: 25%;
	max-width: 28%;
	padding: 0 5px;
}

.column img {
	margin-top: 8px;
	vertical-align: middle;
	width: 100%;
}

/* Fun Fact Books Formatting https://codepen.io/yoann-b/pen/jOLjjOP*/

Books {
	font-family: instrument;
	src: url(fonts/InstrumentSerif.ttf);
}

body {
	margin: 0;
	padding: 5;
}

h1,
h2,
h3,
h4,
h5,
p {
	margin: 0;
}

main {
	display: flex;
	justify-content: center;
	margin: auto;
	background-color: #d9b596;
}

.book {
	width: 300px;
	height: 450px;
	display: inline-flex;
	margin: auto;
}

.column {
	flex: 25%;
	max-width: 45%;
	padding: 0 4px;
}

.book>div {
	height: 450px;
	width: 325px;
	overflow: auto;
	background-color: #3b5b8d;
	transform: scale(0.9);
	border-radius: 6px;
	transform-origin: left;
}

.book-cover {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	z-index: 9;
	font-family: instrument;
	text-align: center;
	border: 1px;
	background-size: 2em 2em;
	background-color: #3b5b8d;
	color: brown;
	height: 450px;
	transition: transform 2s;
}

.book-cover::before {
	content: "";
	position: absolute;
	width: 20px;
	left: 0px;
	top: 0;
	bottom: 0;
	background-color: #4a2917;
}

h1 {
	font-family: instrument;
	src: url(fonts/InstrumentSerif.ttf);
	font-size: 65px;
	font-weight: 300;
	color: #e1c340;
}

h2 {
	font-size: 24px;
	color: #000;
}

.separator {
	--separator-size: 8px;
	width: var(--separator-size);
	height: var(--separator-size);
	background-color: #e1c340;
	margin: 50px auto 60px auto;
	border-radius: 50%;
	position: relative;
}

.separator::after,
.separator::before {
	content: "";
	position: absolute;
	width: 12px;
	background-color: #e1c340;
	height: 2px;
	top: calc(50% - 1px);
}

.separator::after {
	left: 15px;
}

.separator::before {
	right: 15px;
}

.book-content {
	transform: scale(0.9) translateY(30px);
	background-color: white !important;
	transition: all 0.3s 1s;
}

.book-content h3,
.book-content p {
	opacity: 0;
	transition: all 0.3s 0.3s;
	font-family: garamond;
}

h3 {
	padding: 10px;
}

p {
	padding: 0px 30px 10px 30px;
	text-align: left;
}

.book-cover>div {
	transition: opacity 0s 0.6s;
}

.book:hover>.book-cover {
	transform: rotateY(180deg) scale(0.9);
}

.book:hover>.book-cover>div {
	opacity: 0;
}

.book:hover>.book-content {
	transform: scale(0.9) translateY(0px);
}

.book:hover>.book-content h3,
.book:hover>.book-content p {
	opacity: 1;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
	.column {
		flex: 50%;
		max-width: 50%;
	}
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
	.column {
		flex: 100%;
		max-width: 100%;
	}
}

/* COMMENT OUT OR DELETE THE BELOW CODE FOR TWO SIDEBARS */
#right-sidebar {
	display: none;
}

/* UNCOMMENT THE BELOW CODE FOR TWO SIDEBARS */
/* .main-content {
     width:600px;
     border-right:none;
}
 #right-sidebar {
     width:197px;
     border:1px solid var(--dkest-color);
}
 #container {
     max-width:1000px;
}

 */
/* CHANGE BELOW TO max-width:1000px for TWO SIDEBARS. It is max-width:914px for ONE SIDEBAR */
@media only screen and (max-width: 914px) {
	#left-sidebar {
		display: none;
	}

	.title {
		font-size: 45px;

	}

	#header {
		max-width: auto;
		max-height: 100px;
		border-right: none;
		border-left: none;
		object-fit: cover;

	}

	#header img {
		max-width: 350px;
		height: auto;
		object-fit: cover;
		border-left: none;
		margin: none;

	}

	.navbar {
		border-right: none;
		border-left: none;
		max-height: 90px;

	}

	.navbar li {
		width: auto;
		align-items: center;
		justify-content: center;

	}

	.navbar ul {
		align-items: center;
		justify-content: center;
		margin: 0px;

	}

	.main-content {
		order: 1;
		width: 100%;
		border-bottom: none;
		border-right: none;

	}

	.navbar a {
		padding-bottom: 5px;
		max-width: auto;
		padding-left: none;
		padding-right: none;

	}

	#footer {
		max-width: 100%;
		height: auto;
		object-fit: cover;
		align-items: center;

	}

	#footer img {
		max-width: 100%;
		height: auto;
		object-fit: cover;
		align-items: center;
		border: none;
		display: flex;
		align-items: flex-end;

	}

	/* UNCOMMENT THE BELOW CODE FOR TWO SIDEBARS */
	/* #right-sidebar {
         width:100%;
         order:3;
         border-top:none;
    }
     #container {
         max-width:1000px;
    }
     .main-content {
    }
     */
}

