/* ********************************* RESET ********************************* */
/* 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;
}

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;
}

/******************************** GENERAL ************************************/

/* CHANGE THESE COLORS TO MATCH YOUR THEME WITH THE FIGMA FILE */

:root {
    --white: #ffffff;
    --cream: #fbeede;
    --blue: #505aa7;
    --baby-blue: #acd0ff;
    --red: #d75764;
    --yellow: #f3cc38;
    --pink: #db618c;
    --black: #303231;

    --window-border-radius: 3px;
}

@font-face {
    font-family: "rainyhearts";
    src: url("../fonts/rainyhearts.woff2") format("woff2"),
        url("../fonts/rainyhearts.woff") format("woff"),
        url("../fonts/rainyhearts.ttf") format("truetype");
}

html {
    background-color: var(--blue);
}

html,
body {
    font-family: "rainyhearts", Courier, Georgia, Times, "Times New Roman",
        serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-image: linear-gradient(var(--black), var(--blue), var(--black));
    min-height: 100vh;
    overflow: hidden;
    cursor: url("../PNG/star_cursor.png"), crosshair;
}

#mobile {
    display: none;
}
#desktop {
    display: block;
}

#background-overlay {
    position: absolute;
    z-index: 0;
    height: 100vh;
    width: 100vw;
    opacity: 0.4;
    background-image: url("../PNG/bkgrnd_texture.png");
}

#top-border,
#bottom-border {
    max-height: 125px;
}

#tritonfest-logo {
    position: relative;
    display: block;
    margin: 25px auto 0;
    z-index: 2;
}

.window > div:nth-child(1) {
    background-color: var(--blue);
    display: flex;
    justify-content: end;
    padding-inline-end: 5px;
    border-top-right-radius: var(--window-border-radius);
    border-top-left-radius: var(--window-border-radius);
    border-bottom: 1px solid black;
}

main.window > div:nth-child(1) {
    padding-inline-end: 10px;
}

.window > div:nth-child(1) > span {
    background-color: antiquewhite;
    border: var(--black) 1px solid;
    border-radius: var(--window-border-radius);
    height: 20px;
    width: 20px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.window > div:nth-child(1) > span {
    height: 30px;
    width: 30px;
    margin: 4px;
}

.window,
.icon {
    width: max-content;
}

.window {
    border: var(--black) 1px solid;
    border-radius: 5px;
}

.icon {
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    padding: 5px;
}

.icon:hover {
    background-color: var(--baby-blue);
    box-shadow: 0 0 10px var(--black);
}

main {
    top: 30%;
    left: max(600px, 55vw);
    background-color: var(--white);
    font-size: 2rem;
    z-index: 3;
}

main > ul {
    border-color: var(--blue);
    border-width: 4px 2px;
    border-style: solid;
    border-radius: 5px;
    margin: 20px;
}

main ul p,
main ul h3 {
    display: inline;
}

main ul li {
    background-color: var(--cream);
    border-color: var(--blue);
    border-width: 3px 5px;
    border-style: solid;
    border-radius: 8px;
    margin: 20px;
    padding: 10px;
    transition: 0.3s;
}

main ul li:hover {
    background-color: var(--baby-blue);
}

main ul a {
    color: var(--black);
    text-decoration: none;
}

.tf-character {
    background-image: radial-gradient(var(--cream), var(--yellow));
    height: max-content;
    width: max-content;
    border-bottom-right-radius: var(--window-border-radius);
    border-bottom-left-radius: var(--window-border-radius);
}

.tf-character.alt {
    background-image: radial-gradient(var(--cream), var(--pink));
}

.tf-character > img {
    height: 200px;
    width: 200px;
    margin: 5px;
    border: var(--blue) 2px solid;
    border-radius: 2px;
}

.bouncing-star {
    position: absolute;
}

/****************************** RESPONSIVENESS ********************************/
@media screen and (max-width: 300px) {
    html,
    body {
        overflow: auto;
    }
}

@media screen and (pointer: coarse) {
    :root {
        --mobile-width: clamp(300px, 80vw, 600px);
        --chonk-dim: clamp(150px, 45vw, 250px);
        --bunny-dim: clamp(150px, 60vw, 300px);
        --kitty-dim: clamp(150px, 40vw, 200px);
        --icon-dim: clamp(40px, 10vw, 100px);
        --icon-fs: clamp(0.7rem, 2.5vw, 1rem);
        --bouncing-star-dim: clamp(30px, 10vw, 50px);
    }

    html,
    body {
        background-image: linear-gradient(
            90deg,
            var(--black),
            var(--blue),
            var(--black)
        );
        overflow-y: auto;
        cursor: default;
    }

    #mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 8vh;
        min-height: 100vh;
        background-image: url("../PNG/mobile_texture.png");
        min-width: 300px;
    }
    #desktop {
        display: none;
    }

    #tritonfest-logo,
    main.window {
        width: var(--mobile-width);
    }

    .window,
    footer {
        z-index: 0;
    }

    main.window {
        right: auto;
        font-size: 1.5rem;
    }

    main.window ul {
        margin: 5px;
    }

    main.window ul li {
        margin: 20px 10px;
    }

    main ul li {
        display: flex;
        align-items: center;
    }

    main ul li span {
        display: block;
    }

    main ul li span + p {
        padding: 0 2rem;
    }

    section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 0.5fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    #chonk {
        grid-area: 1 / 1 / 2 / 4;
    }

    #chonk .tf-character img {
        height: var(--chonk-dim);
        width: var(--chonk-dim);
    }

    #bunny {
        grid-area: 2 / 2 / 3 / 4;
        z-index: 2;
        margin: -80px 0 0 -20px;
    }

    #bunny .tf-character img {
        height: var(--bunny-dim);
        width: var(--bunny-dim);
    }

    #kitty {
        grid-area: 3 / 1 / 3 / 3;
        margin: -50px 0 0 10px;
        z-index: 1;
    }

    #kitty .tf-character img {
        height: var(--kitty-dim);
        width: var(--kitty-dim);
    }

    footer {
        background-color: var(--blue);
        width: max(100vw, 300px);
        padding: 30px 0;
        display: flex;
        justify-content: center;
    }
    footer menu {
        width: var(--mobile-width);
        display: flex;
        justify-content: space-evenly;
    }

    .icon {
        position: relative;
        font-size: var(--icon-fs);
        text-decoration: none;
    }
    .icon img {
        height: var(--icon-dim);
        width: var(--icon-dim);
    }

    .bouncing-star {
        height: var(--bouncing-star-dim);
        width: var(--bouncing-star-dim);
        z-index: 0;
    }
}

@media screen and (max-width: 1023px) {
    :root {
        --mobile-width: clamp(300px, 80vw, 600px);
        --chonk-dim: clamp(150px, 45vw, 250px);
        --bunny-dim: clamp(150px, 60vw, 300px);
        --kitty-dim: clamp(150px, 40vw, 200px);
        --icon-dim: clamp(40px, 10vw, 100px);
        --icon-fs: clamp(0.7rem, 2.5vw, 1rem);
        --bouncing-star-dim: clamp(30px, 10vw, 50px);
    }

    html,
    body {
        background-image: linear-gradient(
            90deg,
            var(--black),
            var(--blue),
            var(--black)
        );
        overflow-y: auto;
        cursor: default;
    }

    #mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 8vh;
        min-height: 100vh;
        background-image: url("../PNG/mobile_texture.png");
        min-width: 300px;
    }
    #desktop {
        display: none;
    }

    #tritonfest-logo,
    main.window {
        width: var(--mobile-width);
    }

    .window,
    footer {
        z-index: 0;
    }

    main.window {
        right: auto;
        font-size: 1.5rem;
    }

    main.window ul {
        margin: 5px;
    }

    main.window ul li {
        margin: 20px 10px;
    }

    main ul li {
        display: flex;
        align-items: center;
    }

    main ul li span {
        display: block;
    }

    main ul li span + p {
        padding: 0 2rem;
    }

    section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 0.5fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    #chonk {
        grid-area: 1 / 1 / 2 / 4;
    }

    #chonk .tf-character img {
        height: var(--chonk-dim);
        width: var(--chonk-dim);
    }

    #bunny {
        grid-area: 2 / 2 / 3 / 4;
        z-index: 2;
        margin: -80px 0 0 -20px;
    }

    #bunny .tf-character img {
        height: var(--bunny-dim);
        width: var(--bunny-dim);
    }

    #kitty {
        grid-area: 3 / 1 / 3 / 3;
        margin: -50px 0 0 10px;
        z-index: 1;
    }

    #kitty .tf-character img {
        height: var(--kitty-dim);
        width: var(--kitty-dim);
    }

    footer {
        background-color: var(--blue);
        width: max(100vw, 300px);
        padding: 30px 0;
        display: flex;
        justify-content: center;
    }
    footer menu {
        width: var(--mobile-width);
        display: flex;
        justify-content: space-evenly;
    }

    .icon {
        position: relative;
        font-size: var(--icon-fs);
        text-decoration: none;
    }
    .icon img {
        height: var(--icon-dim);
        width: var(--icon-dim);
    }

    .bouncing-star {
        height: var(--bouncing-star-dim);
        width: var(--bouncing-star-dim);
        z-index: 0;
    }
}

@media screen and (pointer: fine) and (min-width: 1024px) {
    :root {
        --events-window-width: clamp(300px, 40vw, 600px);
    }

    #desktop {
        height: 100vh;
        width: 100vw;
    }

    main.window {
        width: var(--events-window-width);
    }

    .window,
    .icon {
        position: absolute;
    }

    /* TF-Mosnter Window Positioning */
    div.window:nth-of-type(2) {
        top: 25%;
        left: min(27%, 950px);
    }
    div.window:nth-of-type(3) {
        top: 55%;
        left: min(27%, 950px);
    }
    div.window:nth-of-type(4) {
        top: 40%;
        left: min(40%, 1000px);
    }

    /* Desktop Icon Positioning */
    div.icon:nth-of-type(5) {
        top: 20%;
        left: 15%;
    }
    div.icon:nth-of-type(6) {
        top: 35%;
        left: 10%;
    }
    div.icon:nth-of-type(7) {
        top: 50%;
        left: 15%;
    }
    div.icon:nth-of-type(8) {
        top: 65%;
        left: 12%;
    }
}
