/* Stylesheet created by Caleb Short */

/* TODO:
    alternative coloring for light mode
*/

/* variables declaration */
:root {
	/* primary background for page */
	--main-background: #879ea3;

	/* other colors */

	/* fonts */
	--heading-font: "Georgia", sans-serif;
	--heading-color: #000000;

	--main-font: "Verdana", sans-serif;
	--main-text-color: #000000;

	--font-base-size: 16px;
	--font-bold-weight: 700;

	/* container coloration */
	--container-background: #2f418f;
	--sub-container-background: #3b5fa1;

	/* Link Colors */
	--link-text-color: "#353535ff";


	/* nav-area stuff */
	--navarea-height: 50px;

	/* setting root values */
	font-size: var(--font-base-size);
	background-color: var(--main-background);


}

/* Apply box-sizing to all elements for consistent box model */
*,
*::before,
*::after {
	box-sizing: border-box;
}


/* 
Size reference:
h1: 2em 
h2: 1.5em 
h3: 1.17em 
h4: 1em 
h5: 0.83em 
h6: 0.67em

HEADER SETTINGS
*/
h1,
h2,
h3,
h4 {
	font-family: var(--heading-font);

	margin-left: 10px;
	margin-top: 0.25em;
	margin-bottom: 0em;
	color: var(--heading-color);
}

p,
label,
legend,
li {
	font-family: var(--main-font);
	margin: 10px;
	margin-top: 0.15em;
	color: var(--main-text-color);
}

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

ul {
	margin-top: 0;
	margin-bottom: 0;
}



.signature {
	font-family: 'Brush Script MT',
		cursive;
	font-size: 1.5em;
}



/* primary container */
.container {
	background-color: var(--container-background);
	border-radius: 1em;
	border: 2px solid black;
	display: flex;
	flex-direction: column;
	padding: 5px;
}

.container>a {
	font-family: var(--main-font);
	margin: 10px;
	margin-top: 0.15em;
	color: var(--main-text-color);
}

/* div stuff! */
.main-content {
	max-width: 1200px;
	margin: auto;
	padding: 5px;
}

/* intended for containers within containers */
.sub-container {
	background-color: var(--sub-container-background);
	border-radius: 1em;
	border: 2px solid black;
	display: flex;
	flex-direction: column;
	padding: 2px;
}

.sub-container-row {
	background-color: var(--sub-container-background);
	border-radius: 1em;
	border: 2px solid black;
	display: flex;
	flex-direction: row;
	padding: 2px;
	flex-wrap: wrap;
}

/* make a container use a row display instead of column */
.flex-row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;

}

/* navigation items */
#nav-row {
	padding: 0;
	width: 100%;
	margin-bottom: 5px;
	display: flex;
	flex-direction: row;
}

#logo {
	width: var(--navarea-height);
	height: var(--navarea-height);
	margin: 0;
}

#nav-area {
	flex-grow: 1;
	height: var(--navarea-height);
	padding: 0;
	margin: 5px;
}

.nav-item {
	height: 100%;
	flex: 1;
	border: 2px solid black;
	border-radius: 1em;
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
	background-color: var(--sub-container-background);

	font-family: var(--main-font);
	color: var(--main-text-color);
	font-size: 1.25em;
	font-weight: 900;
	margin: 0;
}


#darkmode {
	height: var(--navarea-height);
	width: var(--navarea-height);
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
}

#darkmode-label {
	font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
	margin: 0;
}



/* extra 'tags' */
.unselectable {
	/* Credit to https: //stackoverflow.com/questions/6900124/how-to-make-certain-text-not-selectable-with-css */
	-webkit-user-select: none;
	/* Safari */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* IE10+/Edge */
	user-select: none;
	/* Standard */
}

/* make any container invisible */
.invisible {
	background-color: transparent;
	border: none;
}

.invisible-with-border {
	background-color: transparent;
	border: 2px solid black;
	border-radius: 1em;
}



/* ====== Blog stuff ======= */


.blog-entry {
	/* basic formatting */
	width: 100%;
	min-height: 100px;
	background-color: var(--sub-container-background);
	border: 2px solid black;
	border-radius: 1em;
	display: flex;
	flex-direction: column;
}

.blog-meta {
	margin: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: center;
	justify-content: space-between;
}

.blog-meta-info {
	min-width: 150px;
}

.blog-content {
	margin: 10px;
	display: flex;
	flex-direction: column;
}

.blog-content>img {
	max-width: 80%;
}

/* for p elements */
.blog-meta-text {
	font-size: 0.9em;
	font-weight: bold;
}

/* Different categories */
.author-update {
	color: red;
}

.games {
	color: purple
}

.brain-leak {
	color: green;
}

/* Games Stuff */


.game-summary {
	width: 25%;
	background-color: var(--container-background);
	margin: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
}

.game-summary>img {
	width: 90%;
	height: calc(width);

}

.game-title {
	font-weight: bold;
}

/* Override Unity template positioning to keep it inside the flex container */
#unity-container {
	position: relative !important;
	width: 100% !important;
	max-width: 960px !important;
	height: auto !important;
	margin: 10px auto !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
}

/* Ensure the canvas and loading elements scale fluidly within the container */
#unity-container canvas {
	width: 100% !important;
	height: auto !important;
	display: block;
}

#unity-container #unity-loading-bar,
#unity-container #unity-warning,
#unity-container #unity-footer {
	width: 100% !important;
}