/* === Color Scheme === */
:root {
	--text: #274444;
	--border: lightgrey;
	--accent: rgb(0, 109, 128);
	--link-visited: rgb(100, 155, 165);
	--bg: #dce3e1;
	--gradientTop: white;
	--gradientBottom: rgb(240, 248, 255, .8);
}
/* 
disabling dark mode until i figure out the contrast issues
@media (prefers-color-scheme: dark) {
	:root {
		--text: #c5dce3;
		--border: #6a9ab0;
		--accent: rgb(70, 170, 190);
		--link-visited: rgb(50, 120, 140);
		--bg: #1e2d35;
		--gradientTop: rgba(35, 55, 68, 0.95);
		--gradientBottom: rgba(20, 38, 48, 0.85);
	}
} */

/* @font-face {
	font-family: "DOS";
	src: url('fonts\Px437_DOS-V_re_ANK24.ttf') format('truetype');
} */

/* A bunch of these styling ideas were modified from templates from ribo.zone, go check them out they are super cool! */

* {
	box-sizing: border-box;
}


body {
	padding: 15px;
	font-family: "DOS", "Courier New", Courier, monospace;
	font-smooth: never;
	-webkit-font-smoothing: none;
	-moz-font-smoothing: greyscale;
	color: var(--text);
}

p {
	padding: 0 0 10px 0;
}

.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;
	background-color: var(--gradientBottom);
}

/* Column widths */
.small { flex: 0.5 0.1 9%; }
.large { flex: 1 1 82%; }
.full  { flex: 1 1 100%; }
.half  { flex: 1 1 49%; }

header {
	background-size: cover;
	background-position: 50% 40%;
	width: 100%;
	height: 75px;
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}

header span {
	font-size: 1.8rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow:
		1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}

nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}

nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}

nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right, var(--bg), var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}

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

nav a:hover, nav a:focus {
	background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* Optional: image inside .small column */
div.small > img {
	display: block;
	margin: 5px auto;
	border: 2px ridge var(--border);
	border-radius: 5px;
}

section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
	padding: 5px;
}

footer {
	text-align: center;
	margin: auto;
	margin-bottom: 5vw;
	font-size: 0.8rem;
	background-color: var(--bg);
	width: fit-content;
	border-radius: 5px;
}

footer a {
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
	margin: 5px;
	line-height: 1.2;
}

h1 {
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}

h2 {
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}

h3 { font-size: 1.1rem; }

h4 {
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

a:hover, a:focus {
	font-style: italic;
}

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

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

img { max-width: 100%; }
pre { overflow-x: auto; }

.imgtxt {
	width: fit-content;
	height: fit-content;
	display: inline-block;
	position: relative;
}

.imgtxt span {
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 99;
	font-size: 2.5rem;
	color: #FFF;
	filter:
		drop-shadow(1px 1px 0 black)
		drop-shadow(-1px 1px 0 black)
		drop-shadow(1px -1px 0 black)
		drop-shadow(-1px -1px 0 black);
}

.imgtxt:hover span, .imgtxt:focus span {
	opacity: 1;
}

.imgtxt:hover img, .imgtxt:focus img {
	rotate: 10deg;
}

@media (max-width: 600px) {
	body { padding: 25px; }
	.small, .large, .half { flex: 1 1 100%; }
	.container {gap: 20px}
}

/* Button */
.button {
	background-color: #63b55fee;
	color: white;
	padding: 20px 34px;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	border: 2px ridge var(--border);
	display: inline-block;
	font-size: 20px;
	margin: 4px 2px;
	cursor: pointer;
}
