/* Platform-common CSS */

@font-face {
	font-family: "Zilla Slab Regular";
	src: url(/fonts/ZillaSlab-Regular.ttf);
}

@font-face {
	font-family: "Zilla Slab Bold";
	src: url("/fonts/ZillaSlab-Bold.ttf");
}

:root {
	--font-main: "Zilla Slab Regular", Serif;
	--font-main-bold: "Zilla Slab Bold", "Zilla Slab", Serif;
	--font-header: "Courier New", monospace;
	--primary-color: #ff8383;
	--primary-color2: ;
	--accent-color: #9a0101;
	--accent-color2: #7d0101;
	--text-color: black;
	--text-color2: white;
	--bg-color: lightgrey;
}

a:hover {
	color: var(--accent-color);
}

html {
	font-family: var(--font-main);
	margin: 0;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-header);
	margin-top: .5em;
	margin-bottom: .2em;
}

p {
	margin-top: .2em;
	margin-bottom: .2em;
}

object[name="header"] {
	height: 6em;
	width: 100%;
}

#header {
	font-family: var(--font-header);
	width: 100%;
	/*padding: 5px 1% 5px 1%;*/
	background-color: var(--primary-color);
	display: flex;
	justify-content: space-between;
}

#hleft {
	margin-left: 15px;
}

#hright {
	display: flex;
	flex-direction: row-reverse;
	background-color: var(--accent-color);
	padding: 2px 5px 2px 5px;
}

#hright img {
	margin: 0 5px 0 5px;
}

#titlename {
	text-decoration: none;
	color: black;
	font-size: 2em;
	font-weight: bold;
}

#menu {
	font-family: var(--font-main-bold);
	width: 100vw;
	color: var(--text-color2);
	background-color: var(--accent-color);
	display: flex;
}

#mleft {
	display: flex;
}

#mright {
	display: flex;
	align-items: center;
}

.hbar {
}

.hbar a {
	text-decoration: none;
	color: var(--text-color2);
}

.hbar a:hover {
	background-color: var(--accent-color2);
	color: var(--text-color2);
}

#content {
	width: 100vw;
	display: flex;
}

#sidemenu {
	font-family: var(--font-main-bold);
	display: flex;
	flex-direction: column;
	background-color: var(--bg-color);
}

#sidemenu a {
	color: var(--accent-color2);
}

#sidemenu a:hover {
	background-color: darkgrey;
}

#textarea {
	flex-grow: 2;
	min-height: 100vh;
	max-width: 60em;
	padding-right: 1em;
	margin-bottom: 5em;
	display: flex;
	flex-direction: column;
}

#textarea ul li {
	margin-bottom: 1em;
}

.center {
	margin-top: 15px;
	align-self: center;
}

#footer {
	font-size: 1em;
	width: 100%;
	border-top: 2px dashed lightgrey;
	padding: 20px 0 10px 0;
	display: flex;
	justify-content:center;
}

#footer a {
	color: grey;
}

#footer a:hover {
	color: var(--accent-color);
}

/* Mobile css */
@media screen and (max-aspect-ratio: 0.71) {
	html {
		font-size: 1rem;
	}

	p {
		
	}

	#header {
		align-items: stretch;
	}

	#hleft {
		font-size: 2vh;
	}

	#hright {
		margin: 0;
		border: 0;
		width: 50%;
	}

	#hright img {
		height: 20vw;
		width: auto;
		max-width: 100%;
	}

	#menu {
		align-items: stretch;
		flex-direction: column;
		font-size: 2vh;
	}

	#mleft {
		align-items: stretch;
	}

	#mright {
		flex-direction: column;
		background-color: var(--accent-color);
		width: 100%;
	}

	.hbar {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.hbar a {
		padding: 1vh 0 1vh .5em;
		border-top: 2px solid black;
	}

	#content {
		flex-direction: column;
		align-items: center;
	}

	#sidemenu {
		width: 100%;
		font-size: 2vh;
		border-bottom: 2px dashed gray;
	}

	#sidemenu a {
		padding: 1vh 0 1vh .5em;
		color: var(--accent-color2);
		border-top: 2px solid darkgrey;
	}

	#textarea {
		font-size: 2.5rem;
		padding-left: 1em;
		padding-right: 1em;
		padding-top: 1rem;
	}

	#textarea p {
		line-height: 1.5em;
	}

	#footer {
		font-size: 2em;
		padding-bottom: 1em;
	}
}

/* Desktop CSS */

@media only screen and (min-aspect-ratio: 0.72) {
	#header {
		align-items: center;
		border-bottom: 2px solid black;
	}

	#hright {
		height: 100%;
		width: 250px;
	}

	#menu {
		height: 2em;
		justify-content: space-between;
		align-items: center;
	}

	#mleft {
		align-items: center;
	}

	#mright {
		height: 100%;
		flex-direction: row-reverse;
		background-color: crimson;
		width: 210px;
	}

	.hbar {
		margin: 0 5px 0 5px;
	}

	.hbar a {
		padding: .25em 5px .25em 5px;
	}

	#content {
		flex-direction: row;
	}

	#sidemenu {
		width: 8em;
		padding-top: 1em;
	}

	#sidemenu a {
		margin-left: 10px;
		padding: .5em 5px .5em 5px;
	}

	#textarea {
		padding-left: 2em;
		padding-top: 1em;
	}

	#menu, #sidemenu, #textarea p, #textarea ul {
		font-size: 1.2em;
	}
}
