/* Reset */

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Page Layout */

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  /* background-color: #D19056; */
	overscroll-behavior: none;
	display: flex;
	background-color: #FAF7F5;
	max-height: 100vh;
	-webkit-animation: fadein 2s;
		 -moz-animation: fadein 2s;
			-ms-animation: fadein 2s;
			 -o-animation: fadein 2s;
					animation: fadein 2s;
}

@keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}

@-moz-keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}

@-webkit-keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}

@-ms-keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}

@-o-keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}


#sidebar {
	background-color: #FFFFFF;
	z-index: 5;
	-webkit-box-shadow: 5px 0 15px rgba(119,119,119,.25);
	box-shadow: 5px 0 15px rgba(119,119,119,.25);
	flex: 0 0 400px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

#sidebarContent {
	display: flex;
	height: 100vh;
	flex-direction: column;
	position: relative;
	max-width: 320px;
	margin: 0 auto;
	padding: 40px 0 0 0;
}

#titleTop {
	display: none;
}

.generateComponent {
	margin-bottom: 20px;
}

#aboutLeft {
	bottom: 0;
	left: 0;
	padding: 0;
	margin-top: auto;
}

#aboutLeft p {
	max-width: 400px;
}

.bookImage {
	width: 100%;
	max-width: 400px;
}

button {
	width: 40px;
	height: 40px;
	font-family: CeraCompactPro;
	color: #000000;
	font-size: 16px;
	border: 1px solid #D19056;
	background: none;
		-webkit-transition-duration: 1s;
			   -o-transition-duration: 1s;
				    transition-duration: 1s;
	margin: 5px;
}

button:hover {
  background-color: #D19056;
  color: white;
	-webkit-transition-duration: 0.2s;
			 -o-transition-duration: 0.2s;
					transition-duration: 0.2s;
}

/* Collapsible About Section */
#collapseModule {
  border: none;
  text-align: center;
  outline: none;
  font-size: 15px;
	display: none;
}

#aboutBottom:hover {
  cursor: pointer;
}

.aboutContent {
  max-height: 0;
  overflow: hidden;
	-webkit-transition: max-height 0.3s ease;
  		 -o-transition: max-height 0.3s ease;
  	 			transition: max-height 0.3s ease;
	width: 80%;
	margin: 0 auto;
}

.closed {
    transition: all 0.5s ease-in-out;
    transform: rotate(-90deg);
}

.opened {
    transition: all 0.5s ease-in-out;
    transform: rotate(45deg);
}

#plus {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
		left: 2px;
}

.horizontal {
    position: absolute;
    background-color: black;
    width: 10px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vertical {
    position: absolute;
    background-color: black;
    width: 2px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#main {
	flex: 1;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	overflow-y: auto;
	position: relative;
}

#mainContent {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 10vw;
}

#alertBoxContainer {
	position: fixed;
	padding: 20px;
	display: flex;
	justify-content: center;
	width: calc(100% - 400px);
	z-index: 10;
}

#alertBox {
	width: 360px;
	padding: 25px 15px;
	text-align: center;
  -webkit-box-shadow: 5px 5px 15px rgba(119,119,119,.25);
	box-shadow: 5px 5px 15px rgba(119,119,119,.25);
	cursor: default;
	display: block;
	background: #D19056;
	background: linear-gradient(to right, #D19056, #ECAF78);
	border: 0px solid #ffffff;
	opacity: 0;
	-webkit-transition: opacity 1.5s ease;
	     -o-transition: opacity 1.5s ease;
	        transition: opacity 1.5s ease;
	font-family: CeraCompactPro;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 10px;
	color: white;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
	border-radius: 10px;

}

#alertBox.active {
	display: block;
	opacity: 1;
	-webkit-transition: opacity 0s ease;
			 -o-transition: opacity 0s ease;
			 		transition: opacity 0s ease;
}

/* Type Styles*/

@font-face {
  font-family: PensumPro;
  src: url(./fonts/PensumPro-Regular.woff);
}

@font-face {
  font-family: CeraCompactPro;
  src: url(./fonts/CeraCompact-pro-Bold.woff);
}

p {
  color: #333333;
	margin: 5px;
	line-height: 1.25;
	font-size: 16px;
}

p.largeText {
	font-size: 30px;
	font-family: PensumPro;
	line-height: 1.4;
	white-space: pre-line;
}

p.fade {
	-webkit-animation: fadein 1s;
		 -moz-animation: fadein 1s;
			-ms-animation: fadein 1s;
			 -o-animation: fadein 1s;
					animation: fadein 1s;
}

h1 {
	font-family: CeraCompactPro;
	font-size: 45px;
	text-transform: uppercase;
	letter-spacing: 5px;
	color: #D19056;
	background: linear-gradient(to right, #D19056, #F9BE8A);
	-webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
	margin: 5px;
}

h1 a:link, h1 a:visited {
	text-decoration: none;
}

h1 a:hover {
	color: #777777;
}

h2 {
	font-family: PensumPro;
	font-size: 20px;
	margin: 5px 5px 40px 5px;
}

h3 {
  font-family: CeraCompactPro;
	font-size: 16px;
  text-transform: uppercase;
	letter-spacing: 2px;
	margin: 5px;
}

a:link, a:visited {
	color: #D19056;
  text-decoration: underline;
	-webkit-transition-duration: 0.5s;
	     -o-transition-duration: 0.5s;
			  	transition-duration: 0.5s;
}

a:hover {
	color: #777777;
}

img {
	display: block;
}

::-moz-selection {
  background: #EEF7FF;
}

::selection {
  background: #EEF7FF;
}

/* Media Queries */

@media screen and (max-width: 1024px) {

	#sidebar {
		flex: 0 0 250px;
	}

	#sidebarContent {
		max-width: 160px;
	}

	#alertBoxContainer {
		width: calc(100% - 250px);
	}

	p.largeText {
		font-size: 24px;
	}

}

@media screen and (max-width: 700px) {

	#sidebar {
		flex: 0 0 200px;
	}

	#sidebarContent {
		padding: 20px 0 0 0;
	}

	#alertBoxContainer {
		width: calc(100% - 200px);
	}

}

@media screen and (max-width: 600px) {

	body {
		max-height: none;
	}

	#sidebar {
	  width: 100%;
		height: auto;
		bottom: 0;
		position: fixed;
		text-align: center;
		-webkit-box-shadow: 0 -5px 15px rgba(119,119,119,.25);
		box-shadow: 0 -5px 15px rgba(119,119,119,.25);
		padding-bottom: 20px;
	}

	#sidebarContent {
		max-width: none;
		width: 100%;
		height: auto;
	}

	#alertBoxContainer {
		width: 100%;
	  top: 25%;
	}

	#main {
	  width: 100%;
		margin-bottom: 160px;
	}

	p.largeText {
		font-size: 18px;
	}

	#aboutLeft {
		display: none;
	}

	#genSen {
		display: none;
	}

	#sidebar p.smallText {
		margin-bottom: 0;
	}

	#titleLeft {
		display: none;
	}

	#titleTop {
		display: block;
	}

	#collapseModule {
		display: block;
	}

}
