:root {
	--text: black;
	--line: #352741;
	--accent: white;
	--bg: transparent;
	--fill: white;
}

body { 
	color: var(--text);
	font-family: verdana, sans-serif; 
  background-image: url('/images/composition.jpg');
  background-repeat: repeat;
  background-attachment: scroll;
}

@keyframes sparkle-animation {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

* { 
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-color: var(--text) var(--line) }

*::-webkit-scrollbar { width: 20px; }
*::-webkit-scrollbar-track { background: var(--line); }
*::-webkit-scrollbar-thumb { background-color: var(--text); border: transparent; }

img { max-width: 100% }

	@font-face {
	font-family: 'Kleymissky';
	src: url('myfont-webfont.eot?#iefix') format('embedded-opentype'), 
	     url('/fonts/Kleymissky.woff') format('woff'), 
	     url('/fonts/Kleymissky.ttf')  format('truetype'),
	     url('myfont-webfont.svg#svgFontName') format('svg');
	}
	
		@font-face {
	font-family: 'Handles';
	src: url('myfont-webfont.eot?#iefix') format('embedded-opentype'), 
	     url('/fonts/Handles.woff') format('woff'), 
	     url('/fonts/Handles.ttf')  format('truetype'),
	     url('myfont-webfont.svg#svgFontName') format('svg');
	}
	
	.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

section {
	-webkit-animation: fadein 0.5s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 0.5s; /* Firefox < 16 */
  -ms-animation: fadein 0.5s; /* Internet Explorer */
  -o-animation: fadein 0.5s; /* Opera < 12.1 */
  animation: fadein 0.5s;
}

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

nav {
	float: left;
	width: 15%;
	background-color: var(--bg);
	background-image: url('/images/stainedglass.jpg');
	top: 0;
  height: 100%;
  position: fixed;
  border-right: 25px solid #352741;
}

nav div {
	height: fit-content;
	width: fit-content;
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	right: -1.5vw;
	text-align: center;
}

nav a {
  font-family: 'Kleymissky';
	display: block;
	margin: 10px 0;
	padding: 0;
	font-size: 2em;
	text-decoration: none;
	color:var(--fill);
}

nav a:hover, nav a:focus {
	color: var(--accent);
	text-shadow: 0px 0px 8px rgb(255,255,255);
}

main {
	float: right;
	width: 82%;
	height: 100vh;
	padding: 2em;
	background-color: var(--bg);
}

.container { max-width: 1500px }

section {
	margin: 2em 0;
	padding: 1em 2em;
	border: 30px solid transparent;
  padding: 10px;
  border-image: url('/images/floral.png') 30 30 round;
  overflow: auto;
  margin: 5px;
  background-color: transparent;
  background-image: url('/images/notebook.jpg');
  margin-bottom: 30px;
}

.stripe {
	float: left;
	width: 3%;
	height: 100vh;
	background-color: var(--line);
}

hr {
	border: none;
	border-top: 5px solid var(--line);
}

header {
  font-family: 'Kleymissky';
	font-size: 3em;
	margin-bottom: 2rem;
	color:var(--fill);
	max-width: 700px;
	margin: 0 auto;
}

h1 {
  padding: 10px;
  color: white;
  text-align: center;
}

h2, h3, h4, h5, h6, p, table, details, cite, blockquote, img {
	margin: 1rem 0;
}

ul, ol, dl {
	margin: 1rem 0 1rem 2rem;
}

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

table,  ul, ol, dl {
	font-size: 1rem;
}

p {
  font-family: 'Handles';
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: bold;
}

h2 {
  font-family: 'Handles';
  font-size: 2.5rem!important;
  background: transparent!important;
}

a { 
	color: purple;
	padding: 2px;
}

p a:hover { 
	color: purple;
	background-color: #ffe1f9;
}

h6 { font-size: 1em; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5em; }
h3 { font-size: 1.75em; }
h2 { font-size: 2em;
	text-align: left;
	background-color: var(--accent);
	padding: 5px;
}

blockquote {
	background-color: var(--accent);
	color: var(--fill);
	padding: 1em;
}

blockquote a, blockquote code {
	color: var(--text);
}

cite { 
	display: block;
	text-align: right;
}

code, details, pre {
	background-color: var(--bg);
}

code { 
	font-family: 'Courier New', monospace; 
	padding: 2px;
}

details, pre {
	padding: 1em;
}

pre { overflow-x: auto; }

details p { margin: 1rem 0 1rem 2rem; }

figcaption {
  font-family: 'Handles';
	font-size: 1.3em;
	font-weight: bold;
	margin: -0.5em 1em 1em 1em;
}

.row {
  display: flex;
  margin-left: -5px;
  margin-right: -5px;
}

.column {
  flex: 50%;
  padding: 5px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 16px;
}

footer { 
	font-size: 1em;
	text-align: center;
	background-color: transparent; 
	margin-top: 2em;
	padding: 5px;
}

footer a { color: var(--text); }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: -1em;
	align-items: flex-start;
}

.flex-box section {
	margin: 1em;
		margin-bottom: 30px;
	}

.full { flex: 1 1 100%;}
.half { flex: 1 1 calc(50% - 2em); }
.third { flex: 1 1 calc(33% - 2em); }
.twothird { flex: 1 1 calc(66% - 2em); }
.quarter { flex: 1 1 calc(25% - 2em); }
.threequarter { flex: 1 1 calc(75% - 2em); }

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

	nav, main, .stripe {
		float: none;
		width: 100%;
		height: fit-content;
	}
	
	nav {
	  border-right: 0px;
	  border-bottom: 10px solid #352741;
	}
	
	main {
	  margin-top: 50px;
	}
	
	.half { flex: 1 1 calc(100% - 2em);
	}
	
	nav { padding: 2vw }
	
	nav div {
		height: fit-content;
		width: 100%;
		position: static;
		-ms-transform: translateY(0);
		transform: translateY(0);
		text-align: right;
	}
	
	nav img {
		z-index: -1;
		position: absolute;
		left:0;
		max-height: 100%;
	}
	
	nav a {
		display: inline-block;
		margin: 5px;
	}
	
	nav a::after { content: " "; }
	
	main { 
		overflow: auto;
		padding: 2em 1em;
	}
	
	header { 
		text-align: center;
		font-size: 1.5em;
	}
	
	section { padding: 0 1em; }
	
	.stripe { height: 30px; }
	
	*::-webkit-scrollbar { width: 10px; }
	
}

.rainbow-text {
  text-align: center;
  background: linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #eeff41, #f9a825, #ff5722);
  background-size: 200% auto; /* Make gradient wider for animation */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback for non-webkit browsers */
  animation: rainbow_animation 6s ease-in-out infinite;
}

@keyframes rainbow_animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.doubleUnderline {
  text-decoration-line: underline;
  text-decoration-style: double;
}

.left-align-figure {
  float: left;
  width: 30%;
  margin: 0 20px 20px 0;
}

.left-align-figure img {
  width: 100%;
  height: auto;
}

.left-align-figure figcaption {
  font-family: 'Handles';
  margin-top: 5px;
  font-weight: bold;
}

li {
  font-family: 'Handles';
  font-size: 1.5em;
  font-weight: bold;
}

li::before {
  content: "\26E4";
  }