@charset "utf-8";
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic);
:root {
  --space-dark: #070b1d;
  --space-mid: #0e1538;
  --nebula: #5b5fff;
  --accent: #7fffd4;
  --text-main: #e6e6ff;
}


@font-face {
	font-family: MyFirstFont;
	src: url(MidtermRefs/moonveil-stellarion-personal-use.regular.ttf) format("truetype");
}
@font-face {
	font-family: Rugislay;
	src: url(MidtermRefs/Ruigslay.otf) format("opentype");
}

/*
***************Website******************
	Author:   Io Anderson

*/

body {
	background: radial-gradient(circle at top, var(--space-mid), var(--space-dark));
	color: var(--text-main);
	font-family: Sans-Serif;
	margin: 50px auto;
	width: 95%;
	min-width: 640px;
	max-width: 1024px;
	display: grid;
	position: relative;
	overflow-x: hidden;
}

.hero {
	text-align: center;
	padding: 6rem 2rem;
	background: none;
}

.hero h1 {
	font-size: 3rem;
	text-shadow: 0 0 20px var(--accent);
}

.stars {
	position: fixed;
	inset: 0;
	background: url(MidtermRefs/DarkSky3.png) repeat;
	z-index: -2;
	pointer-events: none;
	opacity: 0.8;
	animation: starDrift 180s linear infinite alternate;
}
.nebula {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(91,95,255,0.25), transparent 60%);
  z-index: -1;
  pointer-events: none;
  animation: nebulaPulse 10s ease-in-out infinite;
}

/*HEADERS*/
a.HomePage {
	display: block;
	font-family: Rugislay;
	background-color: white;
	text-align: center;
	font-size: 1.5em;
	width: 5%;
}
header h1{
	display: flex;
	color: white;
	text-align: center;
	font-family: Rugislay;
	background-image: url(MidtermRefs/twinkling.gif);
	width: 100%;
	font-size: 3.5em;
}



/*SECTIONS*/
section {
	animation: fadeUp 2s ease forwards;
	background: rgba(20, 30, 80, 0.6);
	border-radius: 16px;
	padding: 1rem;
	margin: 2rem auto;
	box-shadow: 0 0 30px rgba(0,0,0,0.6);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.4s; }
section:nth-of-type(4) { animation-delay: 0.6s; }

section:hover {
	transform: translateY(-6px);
	box-shadow: 0 0 40px rgba(127, 255, 212, 0.25);
}

section h1.Intro a {
	background: none;
	color: var(--accent);
	font-size: 1em;
	margin-bottom: 1rem;
	text-shadow: 0 0 10px rgba(127,255,212,0.4);
}

section p {
	background: none;
	font-size: 1.2em;
	line-height: 1.8;
	color: var(--text-main);
}


/*ARTICLES*/	
article p {
	font-size: 1.6em;
}



div.row {
	display: flex;
	flex-wrap: nowrap;
	padding: 0 4px;
}
div.column {
	flex: 25%;
	max-width: 25%;
	padding: 0 4px;
}
div.column img{
	margin-top: 8px;
	vertical-align: middle;
	width: 100%;
}


article p:first-of-type::first-letter {
	font-size: 3.8em;
	flex-wrap: wrap;
	line-height: 1em;
}

/*BLOCKQUOTE*/
blockquote{
	font-size: 1.4em;
	width: 60%;
	margin: 50px auto;
	font-family: Open-Sans;
	font-style: italic;
	color: #555555;
	padding: 1.2em 30px 1.2em 75px;
	border-left:8px solid #78C0A8 ;
	line-height:1.6;
	position: relative;
	background:#EDEDED;
	box-shadow: 8px 8px 5px #444444;
}

blockquote::before{
	font-family:Arial;
	content: "\201C";
	color:#78C0A8;
	font-size:4em;
	position: absolute;
	left: 10px;
	top:-10px;
}

blockquote::after{
	content: '';
}

blockquote span{
	display:block;
	color:#333333;
	font-style: normal;
	font-weight: bold;
	margin-top: 1em;
}


/*FOOTER*/
footer{
	background: linear-gradient(to top, #050711, transparent);
	color: #aaa;
	font-family: Rugislay;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 2.2em;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	order: 100;
}




/*Top Nav Bar*/
.topNav {
	background: rgba(10, 15, 40, 0.7);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	
}
.topNav > a#HomePage {
	font-size: 3em;
	float: left;
	background-image: url(MidtermRefs/io.png);
	background-size: contain;
	font-family: Rugislay;
}

.topNav a {
	background-image: url(twinkling.gif);
	color: var(--text-main);
	padding: 14px 16px;
	text-decoration: none;
	font-size: 30px;
	display: inline-block;
	font-family: MyFirstFont;
	transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.topNav a:hover {
	color: var(--accent);
	text-shadow: 0 0 8px var(--accent);
	transform: translate(-2px);
	transition: all 0.3s ease;
}
.topNav a.split {
	float: right;
	background-color: #04AA6D;
	color: white;
}


/*PARALLAX*/
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1000px 1000px;
  }
}

@keyframes nebulaPulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.3;
  }
}







/* ============================================
	Mobile Devices: 0 - 480 pixels
   ============================================
*/
@media screen and (max-width: 480px) {
	div.column {
		flex: 100%;
		max-width: 100%;
	}
	img.panel {
		width: 100%;
	}
	nav.horizontal {
		order: 99;
	}
	body > footer {
		order: 100;
	}
	section#sheets {
		order: 98;
	}
}



/* ===================================================
	Tablet and Desktop Devices: Greater than 480 pixels
   ===================================================
*/
@media screen and (min-width: 481) and (max-width: 800px) {
	nav.horizontal ul{
		display: flex;
		flex-direction: row; 
		flex-wrap: no-wrap;
		height: 40px;
	}
	nav.horizontal ul > li {
		flex: 1 1 auto;
	}
	div.column {
		flex: 0 0 50%;
		max-width: 50%;
	}
}
