/*==========START RESET TEMPLATE===========*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*==========END OF RESET TEMPLATE==========*/

@font-face {
    font-family: wind95;
    src: url(w95fa.woff);
}
:root {
    color-scheme: light dark;
    --text: light-dark(#000, #FFF);
    --bg: light-dark(LavenderBlush, #4A2F30);
    --accent: light-dark(#e66119,#ffaa5e);
    --bga: light-dark(coral,#d08159);
    --pre: light-dark(#dbd0d0,#614747);
    color: var(--text);
    background-color: var(--bg);

    &:has(.themetoggle > input:checked){
        color-scheme: dark;
    }
    &:has(.themetoggle > input:not(:checked)){
        color-scheme: light;
    }

    scrollbar-color: light-dark(coral,#d08159) light-dark(lavenderblush,#4A2F30);
    scrollbar-width: thin;
}
body {
    font-family: wind95;
}
body, html {
    height: 100%;
}
h1 {
    font-size: xx-large;
    font-weight: bolder;
    margin-bottom: 15px;
    margin-top: 12px;
}
h2 {
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 12px;
    & > img {
        vertical-align: -5px;
    }
}
h3 { 
    font-size: x-large;
    font-weight: bold;
}
a, a:visited {
    color: var(--accent);
}
p {
    margin-top: 15px;
    margin-bottom: 15px;
}
strong {
    font-weight: bolder;
}
img {
    vertical-align: -2px;
}
pre {
    font-family: monospace;
    font-size:16px;
    background-color: light-dark(#dbd0d0,#614747);
    width:fit-content;
    margin-top:-15px;
    overflow-x:auto;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}
img,
svg,
video {
  max-width: 100%;
}
sp-quote {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid light-dark(coral,#d08159);
}
sp-quote + br {
    margin-top:3px
}
.hiddenLink, .hiddenLink:visited {
    color: var(--text);
    text-decoration: none;
}
.pixeled{
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
.container {
    display: flex;
    flex-flow: column;
    height: 100%;
    font-size: 20px;
    line-height: 1.5;
}
.header {
    text-align: center;
    padding: 5px;
    padding-top: 0px;
    padding-bottom: 16px;
    flex: 0 1 auto;
    background-color: var(--bga);
    margin-bottom: 25px;
}
.themetoggle{
    position: absolute;
    right: 25px;
    top: 21px;
    cursor: pointer;
    background-image: url("sun.png");
    background-size: 32px;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}
.themetoggle:has(input:checked){
    background-image: url("full_moon.png");
}
.themetoggle > input{
    display: none;
}
.navbutton, .navbutton:visited {
    background-color: var(--bg);
    color: var(--text);
    border: 2px solid;
    border-radius: 10px;
    padding: 10px;
    margin: 4.5px;
    font-size: large;
    text-decoration: none;
    & > img {
        vertical-align: -2px;   
    }
}
.mobile-nav {
    display: none;
}
.hamburger > input{
    display: none;
}
.content {
    width: 100%;
    max-width: min(95ch, 100% - 4rem);
    margin-inline: auto;
    flex: 1 1 auto;
}
.footer {
    flex: 0 1 40px;
    text-align: center;
    padding: 5px;
    font-size: medium;
}
.marquee_container {
    width: 100%;
    height: fit-content;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
}
.marquee {
  --duration: 20;

  
  width: max-content;
  white-space: nowrap;
  display: flex;
  gap: 0.3rem;
  padding-left: 1rem;
  animation: marquee calc(var(--duration) * 1s) linear infinite;
}
.marquee:hover {
  animation-play-state: paused
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.imgborder {
    border: 1px solid;
}
::selection {
    background-color: light-dark(coral,#d08159);
    color: light-dark(#fff,black);
}
::-moz-selection {
    background-color: light-dark(coral,#d08159);
    color: light-dark(#fff,black);
}
::-o-selection {
    background-color: light-dark(coral,#d08159);
    color: light-dark(#fff,black);
}
::-ms-selection {
    background-color: light-dark(coral,#d08159);
    color: light-dark(#fff,black);
}
::-webkit-selection {
    background-color: light-dark(coral,#d08159);
    color: light-dark(#fff,black);
}
@media only screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
    .topnav a.icon {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
    }
    #navlinks_mobile {
        position:absolute;
        left: 0px;
        top: 108px;
        border: 2px solid;
        border-radius: 0px 0px 10px 10px;
        background-color: var(--bga);
        border-color: var(--bga);
        display: none;
    }
    .hamburger{
        position: absolute;
        left: 20px;
        top: 63px;
        background-image: url("arrow_right.png");
        background-size: 32px;
        background-repeat: no-repeat;
        width: 32px;
        height: 32px;
        cursor: pointer;
    }
    .hamburger:has(input:checked){
        background-image: url("multiply.png");
    }
    .navbutton-mobile{
        line-height: 55px;
        font-size: 25px;
    }
    
    #navlinks_mobile:has(+ .hamburger > input:checked){
        display: block;
    }
    .header {
        padding-bottom: 13px;
    }
    .content {
        max-width: min(90ch, 100% - 2rem);
    }
}

