/*==========================*/
/*---------IMPORTS----------*/
/*==========================*/

/*==========================*/
/*-----GLOBAL VARIABLES-----*/
/*==========================*/
:root {
	/* SIZES */
	--headernavheight: 35px;
	--detailsexpandheight: 200px;
	--headernavfontsize: 1.5em;
	/* COLOURS */
	--s2titlered: #fc0000;
	--s2titleblue: #2448d8;
	--s2titlegreen: #009000;
	--s2titleyellow: #fcfc00;
	--sectionbordercolour: (0, 18, 162, 1);
	/* TIMES */
	--expandtime: 0.25s;
}
/*==========================*/
/*--------ANIMATIONS--------*/
/*==========================*/
@keyframes bgscroll {
	from {
		background-position: 0 0;
	}
	to {
		background-position: -100% 0;	
	}
}
/*==========================*/
/*------HELPER CLASSES------*/
/*==========================*/
.clearfloat{
	float: none;
}
.leftfloat{
	float: left;
}
.rightfloat{
	float: right;
}
.top{
	top: 0!important;
}
.right{
	right: 0!important;
}
.bottom{
	bottom: 0!important;
}
.left{
	left: 0!important;
}
.flex-distribute{
	display: flex;
	justify-content: space-evenly;
}
.margin-oneper{
	margin: 1%;
}
.sticky{
	position: sticky;
	top: 0;
}
/*==========================*/
/*-------HELPER TAGS--------*/
/*==========================*/
vr{
	display: inline-block;
	margin: auto 0.5em auto 0.5em;
	height: 100%;
	width: 1px;
	border: none;
	background: #000;
	background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5) 50%, rgba(255,255,255,0) 100%); 
}
/*==========================*/
/*---------COMMONS----------*/
/*==========================*/
body{
	margin: 0;
	padding-bottom: 2em;
	/*
	background-color: #2746ec;
	background-image: url('/myfiles/b-banner.png');
	background-attachment: fixed;
	background-position: bottom;
	background-repeat: repeat-x;*/
	/*
	background-color: #e1e1e1;
	background-image: url('/hy/myfiles/background-grid.png');
	background-repeat: repeat;
	background-attachment: fixed;
	*/
	overflow-x: hidden;
	-ms-overflow-style: none;
	scrollbar-width: none;
	
	font-family: Arial;
}
body:-webkit-scrollbar{
	display:none
}
a, a:visited{
	text-decoration: none;
	color: var(--s2titleyellow);
}
a:hover{
	text-decoration: underline;
}
#background-cheat{
	position: fixed;
	overflow: hidden;
	width: 100vw;
	height: 100vh;
	z-index: -9999;
}
#background-cheat::before {
	content: "";
	position: absolute;
	width: 200%;
	height: 200%;
	top: -50%;
	left: -50%;
	z-index: -2;
	background-color: #ece7e3;
	background-image: url('/asset/background-grid.png');
	background-repeat: repeat;
	background-position: 0 0;
	transform: rotate(-8deg);
	overflow: hidden;
	animation-name: bgscroll;
	animation-duration: 100s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
hr{
	display: block;
	margin: auto 0.5em auto 0.5em;
	width: 100%;
	height: 1px;
	border: none;
	background: #000;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5) 50%, rgba(255,255,255,0) 100%);
}
#banner {
	width: 100%;
	height: 100px;
	background-color: var(--s2titleblue);
	background-image: url('/asset/header_bg.png');
	background-size: auto;
	background-position: center;
	z-index: 8;
}
#banner-overlay{
	position: relative; /* This is necessary for #banner-overlay-title to snap to its bottom left */
	height: 100%;
	background-image: url('/asset/title-backdrop.png');
	background-repeat: repeat-y;
}
#banner-overlay-title{
	position: absolute;
	left: 0;
	bottom: 0;
}
#container{
	/*background-color: rgba(0,0,0,0.5);*/
}
#blog-header{
	color: red;
}
#bg-doll{
	transform-origin: center;
	top: 50%;
	left: 50%;
}
/*==========================*/
/*------TOP NAVIGATION------*/
/*==========================*/
#header-nav{
	z-index: 10;
	height: 35px;
	width: 100%;
	position: sticky;
	top: 0;
}
#header-nav .major{
	font-size: var(--headernavfontsize);
}
#header-nav a{
	color: var(--s2titleblue);
}
nav{
	overflow: auto;
	background-color: var(--s2titleyellow);
}
nav>div{
	height: 100%;
	float: left;
	overflow-x: auto;
	min-width: 30px;
	width: 20%;
	height: 35px;
	text-align: center;
}
nav div:hover{
	animation-name: nav-hover;
	animation-duration: 1s;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
}
nav div vr{
	float: right;
	height: 100%;
	margin:0;
}
/*==========================*/
/*---EXPANDED NAVIGATION----*/
/*==========================*/
#expanded-nav-container{
	width: 20%;
	position: sticky;
	margin-top: -35px;
	margin-left: 80%;
	background-color: var(--s2titleyellow);
	transition: width var(--expandtime);
	z-index: 9;
}
#expanded-nav-container hr{
	display:none;
}
#expanded-nav-container details {
	top: 35px;
	-webkit-overflow-scrolling: auto;
	overflow-y: hidden;
}
#expanded-nav-container summary {
	margin-top: -35px;
}
#expanded-nav-container summary:focus{
	outline: none;
}
#expanded-nav-container details > summary, #expanded-nav-container ::-webkit-details-marker{
	/*list-style: none;*/
	height: var(--headernavheight);
	width: var(--headernavheight);
	text-align: center;
	padding: 0;
	margin: 0 auto;
}
/* The elements inside the details tag disappear immediately upon close state and do not transition -- find fix or workaround? */
#expanded-nav-container details[open]{
	height: var(--detailsexpandheight);
	transition: height var(--expandtime);
}
#expanded-nav-container details:not([open]){
	height: var(--headernavheight);
	transition: height var(--expandtime);
}
#expanded-nav-container ul{
	list-style-type:none;
	padding: 0;
	margin-top: 0;
}
#expanded-nav-items{
	height: calc(var(--detailsexpandheight) - var(--headernavheight));
	padding: 2px;
	position: sticky;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
#expanded-nav-items:last-child:after{
	content: '';
	display: block;
	width: 100%;
	height: 8px;
}
#expanded-nav-items::-webkit-scrollbar{
	display:none
}
/*==========================*/
/*--------MAIN STYLE--------*/
/*==========================*/
#content-wrapper{
	width: 100%;
}
main{
	margin: 0;
	z-index: 2;
	padding: 1%;
}
/*==========================*/
/*---------SECTIONS---------*/
/*==========================*/
.section-container{
	margin-top: 2em;
}
.section-wrapper{
	/*border-width: 2px 2px 8px 2px;*/
	border: 2px solid rgba (0, 18, 162, 1);
	
	border-radius: 15px;
	overflow: hidden;
	background-color: var(--s2titleblue);
	
	-webkit-box-shadow: rgba(0, 18, 162, 1) 0 4px 0;
	-moz-box-shadow: rgba(0, 18, 162, 1) 0 4px 0;
	-ms-box-shadow: rgba(0, 18, 162, 1) 0 4px 0;
	-o-box-shadow: rgba(0, 18, 162, 1) 0 4px 0;
	box-shadow: rgba(0, 18, 162, 1) 0 4px 0;
	
}
.section-header-wrapper{
	-webkit-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-16px 0px 0px rgba(0, 0, 0, 1));
	-moz-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-16px 0px 0px rgba(0, 0, 0, 1));
	-ms-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-16px 0px 0px rgba(0, 0, 0, 1));
	-o-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-16px 0px 0px rgba(0, 0, 0, 1));
	filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-16px 0px 0px rgba(0, 0, 0, 1));
}
.section-header{
	background-color: var(--s2titlered);
	padding-bottom: 12px;
	color: white;
	margin: 0;
	text-align: center;
	font-family: Verdana;
	
	mask-image: url('/asset/title-top-mask.png'),url('/asset/title-bottom-mask.png');
	mask-size: 100% 85%,auto;
	mask-position: top,bottom;
	mask-repeat: repeat-x,repeat-x;
	mask-clip: view-box;
	mask-mode: alpha,match-source;
	
	-webkit-mask-image: url('/asset/title-top-mask.png'),url('/asset/title-bottom-mask.png');
	-webkit-mask-size: 100% 85%,auto;
	-webkit-mask-position: top,bottom;
	-webkit-mask-repeat: repeat-x,repeat-x;
	-webkit-mask-clip: view-box;
	-webkit-mask-mode: alpha,match-source;
	
	-ms-mask-image: url('/asset/title-top-mask.png'),url('/asset/title-bottom-mask.png');
	-ms-mask-size: 100% 85%,auto;
	-ms-mask-position: top,bottom;
	-ms-mask-repeat: repeat-x,repeat-x;
	-ms-mask-clip: view-box;
	-ms-mask-mode: alpha,match-source;
}
/*
.section-header:after{
	content:'';
	margin: 8px -1% 3% -1%;
	padding: 0;
	display:block;
	border-image: url('./myfiles/title-bottom.png') 8 fill / 8px / 8px round;
}
*/
h1.section-header, h2.section-header, h3.section-header, h4.section-header, h5.section-header, h6.section-header, h7.section-header {
	margin: 0;
	padding-top: 4px;
	/*
	-webkit-text-stroke: 1px black;
	-moz-text-stroke: 1px black;
	-ms-text-stroke: 1px black;
	-o-text-stroke: 1px black;
	text-stroke: 1px black;
	-webkit-text-fill-color: white;
	-moz-text-fill-color: white;
	-ms-text-fill-color: white;
	-o-text-fill-color: white;
	text-fill-color: white;
	*/
   color: white;
   text-shadow:
       3px 3px 0 #000,
     -1px -1px 0 #000,  
      1px -1px 0 #000,
      -1px 1px 0 #000,
       1px 1px 0 #000;
}
.spark{
	margin-left: -22.5px;
	margin-bottom: -90px;
	position: relative;
	z-index: -1;
	
	-webkit-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-3px 0px 0px rgba(0, 0, 0, 1));
	-moz-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-3px 0px 0px rgba(0, 0, 0, 1));
	-ms-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-3px 0px 0px rgba(0, 0, 0, 1));
	-o-filter: drop-shadow(3px 0px 0px rgba(0, 0, 0, 1)) drop-shadow(-3px 0px 0px rgba(0, 0, 0, 1));
	filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 1)) drop-shadow(-1px 1px 0px rgba(0, 0, 0, 1)) drop-shadow(1px -1px 0px rgba(0, 0, 0, 1)) drop-shadow(-1px -1px 0px rgba(0, 0, 0, 1));
}
.section-content{
	padding: 1em;
	color: #fff;
	overflow: hidden;
}
/*==========================*/
/*-----------BLOG-----------*/
/*==========================*/
#blog{
}
#blog-content-wrapper{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
#blog-placeholder{
	width: 75%;
}
#blog-archive-placeholder{
	width: 25%;
}
/*==========================*/
/*----------FOOTER----------*/
/*==========================*/
#footer-container{
	z-index: 24;
	width: 100%;
	height: 24px;
	background-color: #dea044;
	border: 2px outset #bc8022;
	
	display: flex;
	justify-content: space-evenly;
	position: fixed;
	bottom: 0;
}
/*==========================*/
/*-----MEDIA OVERRIDES------*/
/*==========================*/
/* THESE MUST BE LAST SO IT WILL OVERRIDE PROPERLY */
@media (max-aspect-ratio: 4/3){
	html, body{
		overflow-x: hidden;
	}
	#header-nav{
		height: calc(var(--headernavheight) * 2);
	}
	#expanded-nav-container {
		margin-top: 0;
		margin-left: 0;
		transition: width var(--expandtime);
		width: 100%;
		float: none;
	}
	#expanded-nav-items{
		top: 70px;
	}
	#expanded-nav-container hr{
		display:block;
	}
	nav div {
		width: 25%;
	}
	nav div:last-child vr{
		display: none;
	}
}