:root {
    /* default theme variables */
    --main-bg-image: url("./assets/capital.webp");
    --spinny-bg-image: url("./assets/bush.webp");
    --contact-bg-image: url("./assets/glory.webp");
    --sidebar-bg-image: url("./assets/fear2.webp");
    --mpd-bg-image: url("./assets/floyd2-trans.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --spinny-radius: 0px;
    --main-font: hack;
    --theme-name: 'main theme';

    /* --main-bg-image-old: url("./assets/Untitled4_20240521191316.png");
    --spinny-bg-image-old: url("./assets/floyd.webp");
    --contact-bg-image-old: url("./assets/floyd.webp");
    --sidebar-bg-image-old: url("./assets/fear.webp");
    --main-font-old: hack; */
}

:root:has(input[value="default"]:checked) {
    --main-bg-image: url("./assets/capital.webp");
    --spinny-bg-image: url("./assets/bush.webp");
    --contact-bg-image: url("./assets/glory.webp");
    --sidebar-bg-image: url("./assets/fear2.webp");
    --mpd-bg-image: url("./assets/floyd2-trans.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --spinny-radius: 0px;
    --main-font: hack;
    --theme-name: 'main theme';
}

:root:has(input[value="old"]:checked) {
    --main-bg-image: url("./assets/Untitled4_20240521191316.png");
    --spinny-bg-image: url("./assets/floyd2.webp");
    --contact-bg-image: url("./assets/floyd.webp");
    --sidebar-bg-image: url("./assets/fear.webp");
    --mpd-bg-image: url("./assets/floyd2-trans.webp");
    --mandelborder-image: none;
    --spinny-radius: 6rem;
    --main-font: hack;
    --theme-name: 'old theme';
}

:root:has(input[value="lunar"]:checked) {
    --main-bg-image: url("./assets/moonpalm.webp");
    --spinny-bg-image: url("./assets/phantom.webp");
    --contact-bg-image: url("./assets/naturalfractals.webp");
    --sidebar-bg-image: url("./assets/wall.webp");
    --mpd-bg-image: url("./assets/wall.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --spinny-radius: 0px;
    --main-font: hack;
    --theme-name: 'lunar theme';
}

:root:has(input[value="solar"]:checked) {
    --main-bg-image: url("./assets/sol.webp");
    --spinny-bg-image: url("./assets/mist.webp");
    --contact-bg-image: url("./assets/phantom.webp");
    --sidebar-bg-image: url("./keys/lock.webp");
    --mpd-bg-image: url("./assets/fear2.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --spinny-radius: 0px;
    --main-font: hack;
    --theme-name: 'solar theme';
}

html[data-theme='accessible'] {
    --main-bg-image: url("./assets/wall.webp");
    --spinny-bg-image: url("./assets/floyd2.webp");
    --contact-bg-image: url("./assets/floyd.webp");
    --sidebar-bg-image: url("./assets/fear.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --mpd-bg-image: url("./assets/floyd2-trans.webp");
    --mandelborder-image: url('./assets/border2.webp');
    --spinny-radius: 0px;
    --main-font: hack;
}

#themes input[type=radio] {
    display: none;
}

#spinny::before {
    border-radius: var(--spinny-radius);
}

#themes {
    margin: auto;
    display: inline;
    color: white;
    padding: 1px;
    border-radius: 5px;
    font-size: 18px;
}

.theme-toggle {
    background: -webkit-linear-gradient(#ff0f0f, #f00ff0);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle:hover {
    background: -webkit-linear-gradient(#0ff, #fff);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle:has(input:checked) {
    background: -webkit-linear-gradient(#fcc7fe, #fe8aa3);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@font-face {
    font-family: hack;
    src: url("./assets/HackNerdFont-RegularSubset.woff2");
}

@font-face {
    font-family: barcode;
    src: url("./assets/LibreBarcode128-Regular.woff2");
}

@font-face {
    font-family: barcode-text;
    src: url("./assets/LibreBarcode128Text-Regular.woff2");
}

@font-face {
    font-family: serial-subset;
    src: url("./assets/serial.woff2");
}

body {
    display: block;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    background-color: black;
    background-image: var(--main-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    margin: auto;
    font-family: var(--main-font);
    text-rendering: optimizeLegibility;
    font-variant-ligatures: normal;
}

#about {
    background: -webkit-radial-gradient(in oklab, #fbf, #f0f) !important;
    background-clip: unset !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

#mpd {
    width: fit-content;
    padding-right: 8px;
    border-style: outset;
    border-width: 3px;
    border-color: #999900;
    margin: auto;
    margin-top: 18px;
    display: flex;
    background-image: var(--mpd-bg-image);
    background-blend-mode: hue;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#mpd-infolist {
    margin-left: 8px;
    background: -webkit-radial-gradient(#d62e02, #fd9855, #fff, #d161a2, #a20160);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#mpd-cover {
    width: 100px;
    height: 100px;
    background-image: url("./assets/fallback_cover.webp");
    display: inline-block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.pixelperfect {
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
}

.corruptions {
    background-color: black;
    background-image: url("./assets/bg2.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    border-radius: 65px;
    image-rendering: initial;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

#meowatme {
    background-image: url('./assets/floyd2-trans.webp');
    background-color: #00000000;
    background-blend-mode: saturation;
    background-position: center;
    color: whitesmoke;
    font-family: hack;
    font-size: 20px;
    border-style: 10px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-radius: 10px;
    border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
}

#meowatme:focus {
    outline: none;
    border-image-source: linear-gradient(to left in oklab, #d5109a, #d56d18);
}

#meowbutton {
    background-image: url('./assets/floyd2-trans.webp');
    color: whitesmoke;
    background-color: #00000000;
    background-blend-mode: saturation;
    border-style: 10px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: radial-gradient(#a432d5, #f53a9d);
}

#meowbutton:hover {
    border-image-source: radial-gradient(in oklch, #f5301d, #f4fba5);
}

#screen_container {
    justify-content: center;
    width: fit-content;
    margin: auto;
    font-family: hack;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: normal;
}

#vga {
    border: 20px solid transparent;
    border-image: var(--mandelborder-image) 120 repeat stretch;
    border-image-outset: 0;
    border-image-repeat: round;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
}

.mandelborder {
    border: 60px solid transparent;
    border-image: var(--mandelborder-image) 152 repeat stretch;
    border-image-outset: 0;
    border-image-repeat: round;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
}


.lesbian {
    color: white;
    margin: auto;
    background: -webkit-linear-gradient(#d62e02, #fd9855, #fff, #d161a2, #a20160);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transradial {
    color: white;
    margin: auto;
    background: -webkit-radial-gradient(#5bcefa, #f5a9b8, #fff, #f5a9b8, #5bcefa);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trans {
    color: white;
    margin: auto;
    background: -webkit-linear-gradient(#5bcefa, #f5a9b8, #fff, #f5a9b8, #5bcefa);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradtext {
    color: white;
    margin: auto;
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#blog,
#gg {
    scale: 0%;
    size: 0%;
    margin-bottom: -28px;
    margin-top: -28px;
    padding: 0px;
    display: block;
}

#blobcat {
    animation: rotate 4s infinite cubic-bezier(0.18, -1.53, 1, 1);
    width: 10px;
    scale: 2000%;
    margin-bottom: 80px;
    margin-top: 80px;
}

#girlfriend {
    justify-content: center;
    color: pink;
    margin-bottom: 3px;
}

#andme {
    justify-content: center;
    color: pink;
    margin-bottom: 8px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes spin3d {
    to {
        transform: rotateY(359deg) rotateZ(359deg);
    }
}

#neocat:hover {
    animation-name: spin3d;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

@keyframes rotate {
    to {
        transform: rotate(359deg);
        /* some browsers don't display spin when it is 360 deg */
    }
}

@keyframes lift {
    from {
        bottom: 0px;
        scale: 1;
        z-index: 0;
        filter: drop-shadow(0 0 0.0rem transparent);
    }

    to {
        bottom: 5px;
        scale: 1.15;
        z-index: 1;
        filter: drop-shadow(0 0 0.45rem black) drop-shadow(0 0 1rem rgba(0, 0, 0, 0.4));
    }
}

@keyframes drop {
    from {
        bottom: 5px;
        scale: 1.15;
        z-index: 1;
        filter: drop-shadow(0 0 0.45rem black) drop-shadow(0 0 1rem rgba(0, 0, 0, 0.4));
    }

    to {
        bottom: 0px;
        scale: 1;
        z-index: 0;
        filter: drop-shadow(0 0 0.0rem transparent);
    }
}

.hoverimg {
    position: relative;
    display: inline-block;
    animation-name: drop;
    animation-duration: 0.5s;
    animation-fill-mode: backwards;
}

.hoverimg:hover {
    position: relative;
    animation-name: lift;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.button {
    position: relative;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
    box-sizing: border-box;
    display: inline-block;
    animation-name: drop;
    animation-duration: 0.5s;
    animation-fill-mode: backwards;
}

.button:hover {
    position: relative;
    animation-name: lift;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.button-container {
    text-wrap: wrap;
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px black) drop-shadow(0 0 20px black) drop-shadow(0 0 30px black);
}

.top-bar {
    border-style: groove;
    border-width: 2px;
    border-color: black;
    border-radius: 15px;
    text-wrap: wrap;
    width: max-content;
    height: 30px;
    text-align: center;
    gap: 10px;
    background: -webkit-linear-gradient(#202, #000, #101);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 2px;
}

.leftside {
    margin-right: auto;
    margin-left: auto;
    min-width: 3rem;
    max-width: 4rem;
    background: brown;

    border-style: ridge;
    border-width: 2px;
    border-color: white;
    border-radius: 15px;
    background: var(--sidebar-bg-image);
    height: 460px;
    padding-right: 10px;
}

#leftlist {
    padding: 0px;
}

.leftlistitem {
    background: -webkit-radial-gradient(42% 52%, circle closest-corner, #e1b, #bfc, #23c);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    text-decoration-style: none;
}

.leftside li {
    display: block;
    margin-bottom: 18px;
}

.rightside {
    margin-left: auto;
    margin-right: auto;
    min-width: 3rem;
    max-width: 4rem;
    background: brown;

    border-style: ridge;
    border-width: 2px;
    border-color: white;
    border-radius: 15px;
    background: var(--sidebar-bg-image);
    background-position: center;
    height: 460px;
    padding-right: 10px;
}

#rightlist {
    padding: 0px;
}

.rightlistitem {
    background: -webkit-linear-gradient(20deg, #e1b, #bfc, #23c);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    text-decoration-style: none;
}

.rightside li {
    display: block;
    margin-bottom: 18px;
}

.rightside a,
.leftside a {
    text-decoration: none;
}

.leftlistitem:hover {
    background: -webkit-radial-gradient(center, ellipse cover, #36f, #f36);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rightlistitem:hover {
    background: -webkit-radial-gradient(#f18, #e1f);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar {
    border-style: ridge;
    border-width: 2px;
    border-color: white;
    border-radius: 15px;
    background: black;
    height: 400px;
    padding: 12px;
    margin: 8px;
}

hr.dashed {
    border-top: 3px dashed #bbb;
}

/* Dotted border */
hr.dotted {
    border-top: 3px dotted #bbb;
}

/* Solid border */
hr.solid {
    border-top: 3px solid #bbb;
}

/* Rounded border */
hr.rounded {
    border-top: 8px solid #555;
    border-radius: 5px;
    border-bottom-color: plum;
    opacity: 25%;
    margin: 30px;
}

.topnav {
    border-width: 2px;
    border-color: black;
    border-radius: 15px;
    overflow: hidden;
    background-image: url("./assets/fear.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px black);
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    width: max-content;
}

/* Change the color of links on hover */
.topnav a:hover {
    color: white;
    background: -webkit-radial-gradient(#3ce1fb, #abf9b2);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Add a color to the active/current link */
.topnav a.active {
    color: white;
    background: -webkit-radial-gradient(#ae000b, #bb01f2);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#linux-btn {
    color: white;
    background: -webkit-radial-gradient(#aee, #a2f, #ca4);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline flow-root list-item;
    margin: auto;
}

#linux-btn:hover {
    color: white;
    background: -webkit-radial-gradient(in oklch, #a42, #e18);
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    position: relative;
    image-rendering: initial;
}

.container:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-image: var(--spinny-bg-image);
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 1.0;
}

.container2 {
    position: relative;
    image-rendering: initial;
}

.container2:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-image: var(--contact-bg-image);
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 1.0;
}

.content {
    position: relative;
    z-index: 2;
}

h2 a:hover, #about:hover {
    color: white;
    background: -webkit-radial-gradient(in oklch, #ce2, #f3b) !important;
    background-clip: unset !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.whereiam:before {
    border-radius: 100px !important;
}
