html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Fonts */

@font-face {
	font-family: "NeueBit";
	src: url("fonts/NeueBit-Regular.otf") format("opentype"),
		 url("fonts/NeueBit-Regular.woff") format("woff"),
		 url("fonts/NeueBit-Regular.woff2") format("woff2");
  font-weight: normal;
}
@font-face {
	font-family: "NeueBit";
	src: url("fonts/NeueBit-Bold.otf") format("opentype"),
		 url("fonts/NeueBit-Bold.woff") format("woff"),
		 url("fonts/NeueBit-Bold.woff2") format("woff2");
  font-weight: bold;
}
@font-face {
	font-family: "Basis";
	src: url("fonts/BasisGrotesquePro-Regular.otf") format("opentype");
  font-weight: normal;
}
@font-face {
	font-family: "Basis";
	src: url("fonts/BasisGrotesquePro-Bold.otf") format("opentype");
  font-weight: bold;
}
@font-face {
	font-family: "Basis";
	src: url("fonts/BasisGrotesquePro-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
}
@font-face {
	font-family: "Basis";
	src: url("fonts/BasisGrotesquePro-BoldItalic.otf") format("opentype");
  font-weight: bold;
  font-style: italic;
}

/* Base Styles */

body {
	background-color: rgb(240,240,240);
	margin: 0;
}
h1 {
	font-family: NeueBit;
	font-size: 12rem;
	line-height: 8rem;
	margin: 0 0 1rem 0;
}
h2 {
	font-family: NeueBit;
	font-size: 3rem;
	line-height: 3rem;
	margin: 0 0 1rem 0;
}
h3 {
	font-family: NeueBit;
	font-size: 2rem;
	line-height: 2.5rem;
	margin: 0;
}
h4 {
	font-family: NeueBit;
	font-size: 1rem;
	line-height: 1rem;
	margin: 0;
}
p {
	font-family: Basis;
	font-size: 1.5rem;
	line-height: 2rem;
	margin: 0;
	color: rgb(50,50,50);
}
a {
	text-decoration: none;
}
sup {
	line-height: .5em;
}
sub {
	line-height: .5em;
}

/* Header */

.header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: calc(100vw - 40);
	height: calc(100vh - 40);
	background-color: white;
	color: #323232;
	border-radius: 20px;
	margin: 20px 20px 80px 20px;
	padding: 20px;
}
.header-title {
	display: flex;
	flex-direction: column;
	align-content: flex-end;
	justify-content: flex-end;
	padding: 40px;
}
.header-title h1 {
	padding: 0;
	margin: 0;
	color: rgb(50,50,50);
	animation-name: header-title;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
@keyframes header-title {
	from {
		transform: translateY(-1rem);
	}
	to {
		transform: translateY(0rem);
	}
}
.header-title h2 {
	padding: 0;
	margin: 0;
	max-width: 600px;
	color: rgb(100,100,100);
}
.sketch-holder {
	display: flex;
	position: relative;
	align-items: center;
	align-content: center;
}
.sketch-holder img {
	width: 100%;
	max-width: 800px;
	position: absolute;
	padding: 40px;
	box-sizing: border-box;
}

/* Key terms */

.keyterm {
	font-family: NeueBit;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1.8rem;
  padding-top: 4px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  border-bottom: 1px solid rgb(50,50,50);
  cursor: pointer;
  line-height: 1.5rem;
  color: rgb(50,50,50);
}
.keyterm:hover {
  animation-name: keyterm-glow;
  animation-duration: .5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
@keyframes keyterm-glow {
  from {
    color: rgb(50,50,50);
  }
  to {
    color: rgb(150,150,150);
  }
}
.keyterm .keytermdef {
  visibility: hidden;
  width: 200px;
  background-color: rgb(50,50,50);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 20px 20px 18px 20px;
  font-size: 1.4rem;
  line-height: 1rem;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -120px;
  animation-name: keyterm-float;
  animation-duration: .5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
.keyterm:hover .keytermdef {
  visibility: visible;
  cursor: pointer;
}
@keyframes keyterm-float {
	from {
    bottom: 100%;
  }
  to {
    bottom: 120%;
  }
}
.keyterm .keytermdef::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(50,50,50) transparent transparent transparent;
}

/* References */

.reference {
	font-weight: bold;
	font-size: .8rem;
	color: white;
	background-color: rgb(50,50,50);
	border-radius: 2rem;
	text-align: center;
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	line-height: 1.6rem;
	vertical-align: super;
	transition: .2s;
}
.reference:hover {
	text-decoration: none;
	background-color: white;
	color: rgb(50,50,50);
}
.reference:active {
	opacity: .5;
}
.reftxt {
	font-family: Basis;
	font-size: 1rem;
	margin-bottom: -15px;
}
.reftxt-item {
	display: grid;
	background-color: white;
	color: rgb(50,50,50);
	padding: 20px;
	border-radius: 20px;
	grid-template-columns: .1fr 1fr;
	grid-gap: 10px;
	margin-bottom: 15px;
	margin-top: 5px;
	transition: .2s;
}
.reftxt-item:hover {
	background-color: rgb(50,50,50);
	color: white;
}
.reftxt-item:active {
	opacity: .5;
}

/* Body styles */

.bodycontainer {
	padding: 0px 20px 0px 20px;
}
.bodysection {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 60px 0 60px 0;
}
.bodycontent {
	display: grid;
	grid-template-columns: 3fr 1fr;
	grid-gap: 40px;
	max-width: 1000px;
	width: 100%;
	flex-direction: column;
}
.bodycontent p {
	max-width: 800px;
	grid-column: 1;
	position: relative;
}
.bodyimg {
	background-color: white;
	padding: 20px;
	grid-column: 1;
	display: flex;
	justify-content: center;
	border-radius: 20px;
}
.bodyimg img {
  max-width: 100%;
  max-height: 500px;
  height: 100%;
}
.imgcap {
	font-family: Basis;
	font-size: 1rem;
	align-self: end;
	color: rgb(100,100,100);
}
.imgcap-desc {
	display: inline-block;
	padding-bottom: 5px;
}
.imgcap a {
	border-bottom: 1px solid rgb(100,100,100);
	color: rgb(100,100,100);
	transition: .2s;
}
.imgcap a:hover {
	border-bottom: 1px solid rgb(50,50,50);
	color: rgb(50,50,50);
}
.imgcap a:active {
	opacity: .5;
}
.bodycontainer h3 {
	font-size: 5.5rem;
	line-height: 4rem;
}

/* Section breaks */

.sectionhead-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 60px 20px 60px 20px;
	margin: 60px 0 60px 0;
	text-align: center;
	flex-direction: column;
	box-sizing: border-box;
	background-color: rgb(50,50,50);
	border-radius: 20px;
}
.sectionhead {
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  border: 5px solid rgb(200,200,200);
  color: white;
  padding: 55px 20px 40px 20px;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
.sectionhead h3 {
	font-size: 18rem;
	line-height: 12rem;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
#sectionhead1 {
  animation-name: sectionhead1;
	transform: scale(.7) rotate(0);
  animation-delay: -250ms;
}
#sectionhead1 h3{
  animation-name: sectionhead1-txt;
}
@keyframes sectionhead1 {
	from {
		transform: scale(.7) rotate(5deg);
	}
	to {
		transform: scale(.7) rotate(-5deg);
	}
}
@keyframes sectionhead1-txt {
	from {
		transform: scale(.7) rotate(5deg);
	}
	to {
		transform: scale(.7) rotate(-5deg);
	}
}
#sectionhead2 {
  animation-name: sectionhead2;
	transform: scale(.8);
  animation-delay: -250ms;
}
#sectionhead2 h3{
  animation-name: sectionhead2-txt;
  color: rgb(50,50,50);
	text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}
@keyframes sectionhead2 {
	from {
		border: 5px solid white;
		margin: 0;
		transform: scale(.7);
	}
	to {
		border: 1px solid white;
		margin: 4px;
		transform: scale(.8);
	}
}
@keyframes sectionhead2-txt {
	from {
		transform: scale(.8);
		color: rgba(255,255,255);
	}
	to {
		transform: scale(.85);
		color: rgb(50,50,50);
	}
}
#sectionhead3 {
  animation-name: sectionhead3;
  animation-delay: -250ms;
}
#sectionhead3 h3{
  animation-name: sectionhead3-txt;
}
@keyframes sectionhead3 {
	from {
		transform: scale(.3);
		border: 10px solid rgb(50,50,50);
	}
	to {
		transform: scale(.5);
		border: 10px solid rgb(200,200,200);
	}
}
@keyframes sectionhead3-txt {
	from {
		transform: scale(.6);
		color: rgb(120,120,120);
	}
	to {
		transform: scale(2);
		color: white;
	}
}

/* Key term and reference index */

#index {
	background-color: white;
	border-top: 2px solid rgb(50,50,50);
	margin-top: 60px;
	flex-direction: column;
	align-items: center;
	padding: 60px 20px 60px 20px;
	box-sizing: border-box;
}
.index {
	width: 100%;
	max-width: 1000px;
	padding: 60px 0 60px 0;
}
.index-title {
	width: 100%;
	text-align: center;
	border-radius: 20px;
	padding: 25px 20px 20px 20px;
	margin-bottom: 20px;
	box-sizing: border-box;
  background-color: rgb(50,50,50);
  color: white;
}
.index-title h3 {
	text-transform: uppercase;
	font-size: 2.5rem;
	letter-spacing: 2px;
	line-height: 2rem;
  animation-name: index-title;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;	
}
@keyframes index-title {
	from {
		transform: translateX(-10px);
	}
	to {
		transform: translateX(10px);
	}
}
.index-desc {
	text-align: center;
	font-size: 1rem;
	line-height: 1rem;
	margin-bottom:20px;
}
.index-items {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 20px;
}
.index-keyterms a {
	border-radius: 20px;
	padding: 20px;
	transition: .2s;
	color: rgb(50,50,50);
	background-color: rgb(240,240,240);
	font-family: Basis;
}
.index-keyterms a:hover {
	background-color: white;
	color: rgb(50,50,50);
}
.index-keyterms a:focus {
	background-color: rgb(50,50,50);
	color: white;
}
.index-keyterm-title {
	font-family: NeueBit;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1.5rem;
  padding-top: 4px;
  letter-spacing: 2px;
  line-height: 1.5rem;
  display: inline-block;
  margin-bottom: 10px;
}
.index-keyterm-info {
	font-size: 1rem;
	margin: 0;
	line-height: 1rem;
}
.index-references a {
	border-radius: 20px;
	padding: 20px;
	transition: .2s;
	color: rgb(50,50,50);
	background-color: rgb(240,240,240);
	font-family: Basis;
	font-size: 1rem;
	display: grid;
	grid-template-columns: .2fr 1fr;
}
.index-references a:hover {
	background-color: white;
	color: rgb(50,50,50);
}
.index-references a:focus {
	background-color: rgb(50,50,50);
	color: white;
}
.index-reference-title {
	font-weight: bold;
}

/* Footer */

.footer {
	width: 100%;
	background-color: rgb(50,50,50);
	padding: 60px 20px 60px 20px;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	text-align: right;
}
.footer p {
	font-family: NeueBit;
	width: 100%;
	text-transform: uppercase;
	color: white;
	font-size: 1.8rem;
	max-width: 1000px;
	line-height: 1.8rem;
	padding: 0;
	margin: 0;
}
.footer-link {
	border-bottom: 1px solid white;
	color: white;
	padding-bottom: 2px;
	transition: .2s;
}
.footer-link:hover {
	opacity: .8;
}
.footer-link:active {
	opacity: .5;
}
.return {
	background-color: white;
	color: rgb(50,50,50);
	border-radius: 20px;
	padding: 20px 20px 18px 20px;
	transition: .2s;
	border: 2px solid white;
}
.return:hover {
	background-color: rgb(50,50,50);
	color: white;
}
.return:active {
	opacity: .5;
}

/* Responsive styles */

@media screen and (max-width: 800px) { 
	.header {
		grid-template-columns: 1fr;
		padding: 10px;
		margin: 10px;
	}
	.header-title {
		padding: 20px 10px 20px 10px;
	}
	.header h1 {
		font-size: 4rem;
		line-height: 4rem;
	}
	.header h2 {
		font-size: 2rem;
		line-height: 2rem;
	}
	.keyterm {
		font-size: 1.3rem;
	  padding-top: 4px;
	  line-height: 1.2rem;
	}
	.bodysection {
		padding: 20px 0 20px 0;
	}
  .bodycontent {
		grid-template-columns: 1fr;
		grid-gap: 20px;
  }
  p {
  	font-size: 1.2rem;
  	line-height: 1.8rem;
  }
  .keytermdef {
  	display: none;
  }
  .reference {
  	font-size: .7rem;
		width: 1.2rem;
		height: 1.2rem;
		line-height: 1.3rem;
  }
  .reftxt {
  	display: none;
  }
  .sectionhead-container {
		padding: 10px;
		margin: 60px -10px 60px -10px;
		text-align: center;
		flex-direction: column;
		box-sizing: border-box;
		border-radius: 20px;
		width: calc(100vw - 20px);
	}
	.sectionhead {
	  padding: 25px 10px 20px 10px;
	}
	.sectionhead h3 {
		font-size: 4rem;
		line-height: 3rem;
	}
	#index {
		padding: 60px 20px 60px 20px;
	}
	.index {
		padding: 0;
		margin: 20px 0 20px 0;
	}
	.index-title h3{
		font-size: 1.8rem;
	}
	.index-items {
		grid-template-columns: 1fr;
		grid-gap: 10px;
	}
	.index-keyterm-title {
		font-size: 1.3rem;
	  padding-top: 4px;
	  line-height: 1.2rem;
	}
	.index-references a {
		grid-template-columns: .1fr 1fr;
	}
	.footer {
		padding: 60px 20px 60px 20px;
		text-align: center;
	}
	.footer p {
		font-size: 1.3rem;
		max-width: 1000px;
		line-height: 1.3rem;
	}
	.footer-link {
		padding-bottom: 1px;
	}
	.return {
		padding: 10px 20px 8px 20px;
	}
} 