/* FONT IMPORT */
@import url("https://fonts.googleapis.com/css2?family=Chilanka&family=Fuzzy+Bubbles&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* start light mode styling */
:root {
	--text: #008018;
	--border: #008018;
	--accent: teal;
	--bg: #dce3e1;
	--gradientTop: white;
	--gradientBottom: rgb(240, 248, 255, 0.8);
}
header {
	background: url("pictures/gia-leuterio/sceniccloudsbig.png");
}
/* end light mode styling */

/* start dark mode styling */
@media (prefers-color-scheme: dark) {
	:root {
		--text: floralwhite;
		--border: #5a7678;
		--accent: #74c365;
		--bg: rgb(0, 60, 60, 0.8);
		--gradientBottom: rgb(0, 50, 60);
		--gradientTop: #305050;
		a:link {
			color: lightblue;
		}
	}
	header {
		background: url("/pictures/gia-leuterio/scenichill.png");
		background-position: bottom left;
		background-repeat: none;
		background-color: white;
		
	}
}
/* end dark mode styling */

* {
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: "Chilanka", sans-serif;
	color: var(--text);
	/* page background */
	background-color: #5a7678;
	background-image: url("pictures/bgs/screamingbrainstudios-clouds/Puffy_Sky-Blue_01-1024x512.png");
	background-repeat: repeat;
	background-size: auto;
	background-position: top left;
}

mark {
	background: powderblue;
	color: var(--mark);
}

.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 0 solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientBottom);
	background-image: linear-gradient(circle at 0 0, transparent 0, var(--gradientBottom) 9px),
		repeating-linear-gradient(var(--bg), var(--bg));
}
/* these control the column widths */
.small {
	flex: 1 1 9%;
}
.large {
	flex: 1 1 82%;
}
.full {
	flex: 1 1 100%;
}
.half {
	flex: 1 1 49%;
}

header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.5rem;
	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));
	overflow-x: none;
	overflow-y: hidden;
}
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 button styling like in the preview */
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-bottom: 5vw;
	font-size: 0.8rem;	
}
footer a {
	text-decoration: none;
	color: blue;
}

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;
}

/* prevents overflow on smaller screens */
img {
	max-width: 100%;
}
pre {
	overflow-x: auto;
}

a:hover,
a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

/* ADDED MANUALLY */

mask {
	color: var(--accent);
}

/* custom treeview */

ul,
#myUL {
	list-style-type: none;
}

#myUL {
	margin: 0;
	padding: 0;
}

.caret {
	cursor: pointer;
	-webkit-user-select: none; /* Safari 3.1+ */
	-moz-user-select: none; /* Firefox 2+ */
	-ms-user-select: none; /* IE 10+ */
	user-select: none;
}

.caret::before {
	content: "\25B6";
	color: black;
	display: inline-block;
	margin-right: 6px;
}

.caret-down::before {
	-ms-transform: rotate(90deg); /* IE 9 */
	-webkit-transform: rotate(90deg); /* Safari */
	transform: rotate(90deg);
}

.nested {
	display: none;
}

.active {
	display: block;
}

/**/

#statuscafe {
	padding: 0.5em;
	color: var(--text);
	background: RGB(0, 50, 60);
	background: linear-gradient(180deg, rgba(0, 50, 60, 1) 0%, rgba(48, 80, 80, 1) 50%, rgba(0, 50, 60, 1) 100%);
	border: 3px double var(--border);
}
#statuscafe-username {
	margin-bottom: 0.5em;
}
#statuscafe-content {
	margin: 0.5em 0.5em 0.5em 0.5em;
}
