/*
	styles/styles.css
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* active variables */
:root {
	--body-fgcolor: #1D3557;
	--body-bgcolor: #EFEDEA;

	--theme-title-font: Nunito, sans-serif;
	--theme-heading-font: Nunito, sans-serif;
	--theme-text-font: Nunito, sans-serif;

	--theme-button-font: Helvetica, Arial, sans-serif;

	--theme-topbar-fgcolor: White;
	--theme-topbar-bgcolor: #1892A5;
	--theme-main-fgcolor: #1D3557;
	--theme-main-bgcolor: #EFEDEA;
	--theme-section-fgcolor: #1D3557;
	--theme-section-bgcolor: #EFEDEA;
	--theme-button-fgcolor: White;
	--theme-button-bgcolor: #ED9947;

	--theme-border-color: Black;
	--theme-hover-color: #FFF323;
	--theme-active-color: #FFCA03;
}

body {
	color: var(--body-fgcolor);
	background-color: var(--body-bgcolor);
	font-family: var(--theme-text-font);
}
body > header {
	margin-bottom: 2em;
}
body > footer {
	margin-top: 4em;
	font-size: 0.75em;
	text-align: center;
}

#banner {
	background-color: #D3D3D355;
	color: black;
}
#banner table {
	width: 100%;
}
#banner td:first-child {
	text-align: left;
}
#banner td:last-child {
	text-align: right;
}

main {
	color: var(--theme-main-fgcolor);
	background-color: var(--theme-main-bgcolor);
	margin-left: 0;
	margin-right: 0;
}

article {
	margin: 1rem;
	text-align: left;
	text-justify: inter-word;
	font-family: var(--theme-text-font);
	overflow: hidden;
}

article section {
	color: var(--theme-section-fgcolor);
	background-color: var(--theme-section-bgcolor);
	border: 1px solid var(--theme-border-color);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
}
article h1 {
	text-align: left;
}
article h2 {
	margin-top: 0;
	font-family: var(--theme-heading-font);
	text-align: left;
}

/* topbar area */
.topbar {
	color: var(--theme-topbar-fgcolor);
	background-color: var(--theme-topbar-bgcolor);
	display: grid;
 	grid-template-columns: auto auto 1fr;
	grid-template-rows: auto;
	grid-gap: 0.5em;
	padding: 0.5em;
	border-radius: 0.5rem;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
	min-height: 0;
}
.topbar .logo {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
	flex-shrink: 0;
}
.topbar .logo img {
	height: 3rem;
	width: auto;
	object-fit: contain;
}
.topbar .name {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--theme-title-font);
	font-size: 2em;
}

/* mobile side panel styles */
.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 998;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.menu-overlay.active {
	display: block;
	opacity: 1;
}

/* menu bar - mobile side panel */
.menubar {
	position: fixed;
	top: 0;
	left: 0;
	width: 20rem;
	height: 100vh;
	background-color: var(--theme-topbar-bgcolor);
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	box-sizing: border-box;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	font-size: 1.5em;
}
.menubar.mobile {
	transform: translateX(0);
}
.menubar .sidepanel-close {
	align-self: flex-end;
	cursor: pointer;
	color: var(--theme-topbar-fgcolor);
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	padding: 0.25rem;
}
.menubar .sidepanel-close:hover {
	opacity: 0.7;
}
.menubar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.menubar li {
	text-decoration: none;
	display: block;
}
.menubar a {
	color: var(--theme-topbar-fgcolor);
	font-family: var(--theme-button-font);
	text-decoration: none;
	display: block;
	padding: 0.75rem 1rem;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 0.25rem;
}
.menubar a:hover {
	border: 1px solid var(--theme-hover-color);
}
.menubar a.active {
	color: var(--theme-topbar-bgcolor);
	background-color: var(--theme-active-color);
}

/* menu icon - always displayed at top left */
.menuicon {
	grid-column: 1;
	grid-row: 1;
	display: inline-block;
	cursor: pointer;
	width: 2.5rem;
	height: 2.5rem;
	fill: var(--theme-button-fgcolor);
	padding: 0.25em;
	align-self: center;
}

/* big items are hidden on mobile */
.big {
	display: none;
}

/* for centering elements */
.center {
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
}

/* force an element to be square */
.square-container {
	position: relative;
}
.square-container:after {
	content: "";
	display: block;
	padding-bottom: 100%;
}
.square {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
}

/* controls */
select {
	font-family: var(--theme-button-font);
	font-size: 1rem;
}
button {
	font-family: var(--theme-button-font);
	font-size: 2em;
	font-weight: bold;
	padding-left: 1em;
	padding-right: 1em;
	border-radius: 0.5em;
}

/* content styles */
.note {
	font-style: italic;
	font-size: 0.8em;
}

/* example design elements */
.example-heading-font {
	font-family: var(--theme-heading-font);
	font-size: 1.5em;
}
.example-text-font {
	font-family: var(--theme-text-font);
	font-size: 1em;
}

/* item list */
.items {
	text-align: center;
}
.items > ul {
	display: grid;
	grid-template-columns: repeat(1,1fr);
	grid-gap: 1em;
	list-style-type: none;
	list-style-position: inside;
	padding: 0;
}

/* mobile first responsive design */

/* responsive: 640+ */
@media screen and (min-width: 640px) {
/* NOTE: increase margin on larger screens?
	main {
		margin-left: 1%;
		margin-right: 1%;
	}
*/
	/* show big items */
	.big {
		display: block;
	}
	/* menubar always stays as side panel - no horizontal menu */
	/* hide overlay on desktop when menu is closed */
	.menu-overlay:not(.active) {
		display: none !important;
	}
}

/* responsive: 800+ */
/*
@media screen and (min-width: 800px) {
}
*/

/*EOF*/
