/* WIDELY USED COLORS */
:root {
	--kafblue: #5200ff;
	--kafpink: #ce8ce6;

	--kafublue: #0202ff;
	--kafuyellow: #f7ff41;
	--kafudarkblue: #2a2a4a;
	--kafublack: #161626;
	--kafulightblue: #02abff;
	--kafulightestblue: #d5f1ff;
}

/* IMPORT POKEMON DP FONT */
@font-face {
	font-family: pkmndpp;
	src: url('../fonts/pkmndpp.ttf');
}

/* IMPORT BOLD POKEMON DP FONT */
@font-face {
	font-family: pkmndpbold;
	src: url('../fonts/pkmndpbold.ttf');
}

/* IMPORT POKEMON GS FONT */
@font-face {
	font-family: pkmngs;
	src: url('../fonts/pkmngs.ttf');
}

/* IMPORT POKEMON EMERALD FONT */
@font-face {
	font-family: pkmnem;
	src: url('../fonts/pkmnem.ttf');
}

/* BASIC PAGE LAYOUT */
* {
	box-sizing: border-box;
}
body {
	background-image: url('../images/pokebg.jpg');
	background-size: cover;
	font-family: Verdana;
	margin: 0;
}

/* SPLIT SCREEN IN HALF WITH BAR IN CENTER */

.halves {
	width: 50%;
	margin: 0 auto;
	height: 100vh; /* vh = viewport height, extends containers to bottom of screen */
}

/* TEMPORARY STYLING FOR VISION - DELETE LATER */


/* STACK HALVES ON MOBILE */
@media only screen and (max-width: 768px) {
	.halves {
		width: 100%;
		height: 45vh;
	}
	
	#kikihalf, #ayanohalf, #centerbar {
		float: none;
		display: block;
	}
}

.mask {
	display: flex;
	width: 100vw;
	height: 100vh;
	position: fixed;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.318) ;
	z-index: 999;
}

.enter {
	display: block;
	width: 40px;
	height: 40px;
}

.enter>button {
	cursor: pointer !important;
}

.dollar {
	font-family: arial;
	font-size: 15px;
}

/* BASICS FOR BOTH SIDES */
.floatright {
	float: right;
}
.floatleft {
	float: left;
}
.alignright {
	text-align:right;
}
.alignleft {
	text-align:left;
}
.aligncenter {
	text-align:center;
}
.clearfix {
	clear:both;
	content: "";
	display: table;
}

/* KIKI HALF SPECIFIC BASIC STYLING */
#kikihalf {
	
	
	font-family: pkmndpp;
	font-size: 18px;
	line-height: 20px;
}
#kikihalf p, #kikihalf ul {
	margin-top:5px;
	line-height: 18px;
}
#kikihalf h1, #kikihalf h2, #kikihalf h3, #kikihalf h4 {
	font-family: pkmndpbold;
	margin:0;
	line-height:30px;
	margin-top: 10px;
}
#kikihalf h1 {margin-bottom: 5px;}
#kikihalf section {
	overflow: auto;
}
#kikihalf a:link {
	color: var(--kafublue);
}
#kikihalf a:visited {
	color: var(--kafublue);
}
#kikihalf a:hover {
	color: var(--kafulightblue);
}
#kikihalf a:active {
	color: var(--kafulightblue);
}

#kikihalf ul {
	list-style-type: square;
	list-style-image: url('../images/starbullet.png');
}
#kikihalf li {
	margin:4px;
}
#kikihalf ul, #kikihalf ol {
	background-color:white;
	padding-bottom:2px;
	border-top: 3px solid var(--kafublue);
	border-bottom: 3px solid var(--kafublue);
}
#kikihalf hr {
	margin:0;
	margin-top: -10px;
	color: var(--kafublue);
	background-color: var(--kafublue);
	border: 1px solid var(--kafublue);
}

/* CUSTOM SCROLLBARS */
#kikihalf::-webkit-scrollbar {width:10px;}
#kikihalf::-webkit-scrollbar-track {background:#636392;}
#kikihalf::-webkit-scrollbar-thumb {background:#636392;}
#kikihalf::-webkit-scrollbar-thumb:hover {background:var(--kafublue);}
#kikihalf {
	scrollbar-color: var(--kafulightblue) var(--kafudarkblue);
	scrollbar-width: thin;
}
.kikismallboxes::-webkit-scrollbar {width:10px;}
.kikismallboxes::-webkit-scrollbar-track {background:var(--kafulightblue);}
.kikismallboxes::-webkit-scrollbar-thumb {background:var(--kafudarkblue);}
.kikismallboxes::-webkit-scrollbar-thumb:hover {background:var(--kafublue);}

/* HEADER (EARLY WIP) */
#kikiheader {
	color: var(--kafublack);
	width: 100%; 
	text-align: center;
}
/* FOOTER (EARLY WIP) */
#kikifooter {
	overflow: auto;
	color: var(--kafublack);
	width: 100%; 
	text-align: center;
}

/* HOVERABLE WINDOW BUTTONS */
.windowborder {
	border: 7px solid transparent;
	border-image: url(../images/kafuwindowborder.png) 7 stretch;
}
.windowheader {
	width: 100%;
	height: 25px;
	background: rgb(2,2,255);
	background: linear-gradient(0deg, rgba(2,2,255,1) 25%, rgba(2,171,255,1) 100%); 
	border-bottom: 2px solid var(--kafudarkblue);
}
.windowtitle {
	float: left;
	padding-left: 4px;
	color:white;
	font-family: pkmndpbold;
	font-size: 22px;
	max-width: 250px;
	max-height: 20px;
	overflow: hidden;
}
.closebutton {
	background-image: url("../images/closebutton.png");
	width: 44px;
	height: 23px;
	float: right;
}
.closebutton:hover {
	background-image: url("../images/closebuttonhover.png");
}
.maxbutton {
	background-image: url("../images/maxbutton.png");
	width: 44px;
	height: 23px;
	float: right;
}
.maxbutton:hover {
	background-image: url("../images/maxbuttonhover.png");
}
.minbutton {
	background-image: url("../images/minbutton.png");
	width: 40px;
	height: 23px;
	float: right;
}
.minbutton:hover {
	background-image: url("../images/minbuttonhover.png");
}

/* WINDOW STYLING */
.kikibox {
	vertical-align: top;
	width: 100%;
	background: linear-gradient(0deg, rgba(233,248,255,0.8) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.8) 100%);
	color: var(--kafublack);
	text-align: left;
}
.kikibox p, .kikibox h1, .kikibox h3, .kikibox h4 {
	padding-left:10px;
	padding-right:10px;
}

/* IMAGE STYLING */
#kikiavi {
	max-width: 150px;
}

/* WINDOW SPACING AND POSITIONING */
.kikigroupitem {
	display: table-cell;
}
.kikigroup {
	display: table;
	border-spacing: 16px 8px;
	margin: auto;
	position: relative;
	z-index: 10;
}

/* COLUMN AND ROW WIDTHS */
#kikibox1 {width:30%;}
#kikigroup2 {width:70%;}
#kikigroup3 {width:95%;}
#kikibox4, #kikibox5 {width:49%;}
#kikibox4 {float:left;}
#kikibox5 {float:right;}

/* SMALL BOX HEIGHT AND SCROLL */
.kikismallboxes {
	max-height: 200px;
	overflow: auto;
}

/* OVERLAP THE WINDOWS */
#kikibox2 {margin-top:5px;margin-right:10px;margin-left:-22px;}
#kikibox3 {margin-top:-19px;margin-bottom:-10px;}
#kikibox4 {margin-top:-28px;}
#kikibox5 {margin-top:-10px;}
#kikibox6 {margin-top:-20px;}

/* REPOSITION AND RESIZE WINDOWS ON SMALLER SCREENS */
@media only screen and (max-width: 1450px) {
	#kikihalf {padding: 10px;}

	/* CHANGE HEADER SIZE TO FIT */
	#kikiheader {
		font-size:13px;
	}

	/* CHANGE IMAGE SIZES */
	#kikiavi {max-width:180px;}

	/* STACK BOXES VERTICALLY */
	.kikigroup {border-spacing:0;} /* removes extra spacing from table */
	.kikigroupitem {display:block;} /* stacks all the windows */
	.kikismallboxes {max-height:100%;} /* removes scroll */
	#kikigroup1, #kikigroup2, #kikigroup3 {width:100%;} /* overrules previous width rules */
	#kikibox1, #kikibox2, #kikibox3, #kikibox4, #kikibox5, #kikibox6 {width:100%;margin:0;margin-bottom:6px;}
}

/* basic stylizing for entire half */
#ayanohalf {
	font-family: pkmngs;
	background-color: black;
	background-image: url("../images/skybg.png");
	word-spacing: 4px;
}
#ayanohalf ul {
	list-style-type: square;
	list-style-image: url('../images/pokebullet.png');
	margin-top: 2px;
	margin-bottom: 2px;
	padding-left: 10px;
	list-style-position:inside;
	background-color:black;
	color: white;
}
#ayanohalf li {
	padding:4px;
}

/* main content boxes */
.ayanobox {
	margin: auto;
	width: 90%;
	min-height: 180px;
	font-size: 11px;
	color: black;
	background-color: var(--kafpink);
	z-index: 10;
	position: relative;
	border: 2px solid var(--kafblue);
	border-radius: 5px;
}
.ayanoleftbox {
	width: 44%;
	margin-left: 5%;
	float: left;
}
.ayanorightbox {
	width: 44%;
	margin-right: 5%;
	float: right;
}
.ayanotransparentbox {
	background-color: transparent;
	border: none;
	color: white;
}
.ayanoboxheader { /* these are the title bars for each box */
	width: 100%;
	background-color: black;
	color: white;
	height: 40px;
	padding-left: 6px;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}
.ayanobox h2 {line-height:38px;}
.ayanobox h2, .ayanobox p {
	margin: 0;
	padding: 2px;
}
.ayanofloatbox {
	margin: auto;
	width: 90%;
	z-index: 10;
	position: relative;
}
#ayanohalf em {
	font-style:normal;
	color:var(--kafblue);
	font-weight:bold;
}
#ayanohalf a:link {
	color: white;
}
#ayanohalf a:visited {
	color: white;
}
#ayanohalf a:hover {
	color: var(--kafblue);
}
#ayanohalf a:active {
	color: var(--kafblue);
}

/* spacers between content boxes */
.spacer {
	height: 30px;
	clear: both;
}

.jp {
	font-family: pkmndpbold;
	font-size: 22px;
}

/* image positioning */
#kafsleep {
	margin-left: -25px;
	margin-top: -50px;
}

#treeloop {
	bottom: 0;
	height: 286px;
	width: 100%;
	z-index: 5;
	position: fixed;
	background-image: url('../images/treeloop.png');
	background-repeat: repeat-x;
}

#blackgradient {
	background: rgb(0,0,0);
	background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
	width: 5%;
	height: 100vh;
	z-index: 6;
	position: fixed;
}

/* change sizing/positioning on smaller screens */
@media only screen and (max-width: 1200px) {
	.ayanobox {font-size:11px;}
	.spacer {height:15px;}
	#kafsleep {
		max-width: 200px;
		margin-top: 0px;
		margin-left: -15px;
	}
	#blackgradient {display:none;}
	.windowtitle {max-width:200px;}
}

@media only screen and (max-width: 768px) {
	#treeloop {display:none;}
	#pokemonspacers {display:none;}
}

/* CUSTOM SCROLLBARS */
#ayanohalf::-webkit-scrollbar {width:10px;}
#ayanohalf::-webkit-scrollbar-track {background:black;}
#ayanohalf::-webkit-scrollbar-thumb {background:black;}
#ayanohalf::-webkit-scrollbar-thumb:hover {background:var(--kafblue);}
#ayanohalf {
	scrollbar-color: var(--kafblue) var(--kafpink);
	scrollbar-width: thin;
}



/* basic styling for the bar in the center */
#centerbar {
	padding: 5px;
	font-family: pkmnem;
	color: var(--kafublack);
	text-align: center;
	background: rgb(213,241,255);
	background: linear-gradient(0deg, rgba(213,241,255,1) 0%, rgba(2,171,255,1) 50%, rgba(206,140,230,1) 100%); 
}

#centerbar nav div {
	background-color: white;
	padding: 5px;
	border-radius: 4px;
}

#centerbar img {
	display: block;
	margin: auto;
}

/* buttons stylizing */
.centerbutton {
	display: inline-block;
	margin: 4px;
	padding: 10px;
	border: none;
	font-family: pkmnem;
	font-size: 16px;
	color: white;
	text-align: center;
 	text-decoration: none;
	background-color: var(--kafpink);
  	cursor: pointer;
	border-radius:4px;
	vertical-align: middle;
}

/* change button colors when hovered over */
.centerbutton:hover {
	background-color: var(--kafulightblue);
	color: white;
}

/* center and resize buttons as necessary */
#centerbar nav {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

@media only screen and (max-width: 768px) {
	#centerbar {
		background: rgb(213,241,255);
		background: linear-gradient(90deg, rgba(213,241,255,1) 0%, rgba(2,171,255,1) 50%, rgba(206,140,230,1) 100%); 
		border-top: 4px solid white;
		border-bottom: 4px solid white;
		border-right: none;
		border-left: none;
	}
	.mobilehide {
		display: none;
	}
	#centerbar nav div {
		background-color: transparent;
		padding: 0px;
		border-radius: 0px;
	}
	#centerbar img {
		display: none;
	}
	.centerbutton {
		padding: 5px;
		border: 2px solid white;
	}
}

@media only screen and (min-width:769px) {
	.PChide {
		display: none;
	}
}