

:root
{
    --nav-height: 60px;
    --footer-min-height: 80px;

    /* COLOURS */
    --light-dropshadow: #00000050;
    --light-icon-dropshadow: #ffffff50;
    --light-primary: wheat;
    --light-off-primary: #b5a07a;
    --light-accent: brown;
    --light-off-accent: maroon;
    --light-text: black;
    --light-inverted-text: white;
    --light-thematic: #ffaa33;
    --light-thematic-plus: #ff9933;
    --light-thematic-minus: #ffbb33;
    --light-stark: aqua;

    --colour-dropshadow: var(--light-dropshadow);
    --colour-icon-dropshadow: var(--light-icon-dropshadow);
    --colour-primary: var(--light-primary);
    --colour-off-primary: var(--light-off-primary);
    --colour-accent: var(--light-accent);
    --colour-off-accent: var(--light-off-accent);
    --colour-text: var(--light-text);
    --colour-inverted-text: var(--light-inverted-text);
    --colour-thematic: var(--light-thematic);
    --colour-thematic-plus: var(--light-thematic-plus);
    --colour-thematic-minus: var(--light-thematic-minus);
    --colour-stark: var(--light-stark);
}

*
{
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

body
{
    width: 100vw;
    /* min-height: calc(100vh - var(--nav-height)); */
    min-height: 100vh;

    overflow: hidden auto;

    background: var(--colour-thematic);
    /* background: linear-gradient(180deg, #ff9933 0%, #ffaa33 40%, #ffbb33 100%); */
}

section
{
    width: 100vw;
}









/* ICON LINKS */
a.icon-link /* used in both the header bar and the nav bar */
{
    display: inline-block;
    width: 30px;
    height: 30px;

    cursor: pointer;

    background-position: 0 0;
    background-size: 100% 200%;
    background-repeat: no-repeat;
}
a.icon-link:hover
{
    background-position: 0 100%;
    filter: drop-shadow(0 0 5px var(--colour-icon-dropshadow));
}
a.icon-link.itch {
    background-image: url("images/icons/itch.svg");
}
a.icon-link.twitter {
    background-image: url("images/icons/twitter.svg");
}
a.icon-link.discord {
    background-image: url("images/icons/discord.svg");
}
a.icon-link.bluesky {
    background-image: url("images/icons/bluesky.svg");
}
a.icon-link.youtube {
    background-image: url("images/icons/youtube.svg");
}
a.icon-link.instagram {
    background-image: url("images/icons/instagram.webp");
}












/* HEADER BAR */
div.title
{
    width: 100vw;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    z-index: 15;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    pointer-events: none;
}

div.title a,
div.title a:visited
{
    font-size: 28px;
    text-align: center;
    font-family: monospace;
    font-weight: bold;
    color: var(--colour-inverted-text);
    text-decoration: none;
    pointer-events: all;
}



div.nav
{
    width: 100vw;
    height: var(--nav-height);

    position: fixed;
    top: 0;
    z-index: 11;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;

    background-color: var(--colour-off-primary);
    filter: drop-shadow(0 0 5px var(--colour-dropshadow));
}

div.nav div.hamburger
{
    width: 100px;
    padding: 10px 20px;
}
div.nav div.hamburger-icon
{
    height: 100%;
    aspect-ratio: 1;

    background-position: 0 0;
    background-size: 100% 200%;
    background-repeat: no-repeat;
    background-image: url("images/icons/hamburger.svg");
}
div.nav div.hamburger-icon:hover
{
    background-position: 0 101.5625%;
}

div.nav div.icon-link-container
{
    flex-grow: 1;
    padding: 15px 20px;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

@media only screen and (max-width: 600px)
{
    div.nav div.icon-link-container
    {
        display: none;
    }
}











/* NAV BAR */
nav
{
    height: 100vh;
    width: 300px;

    padding-top: var(--nav-height);
    position: fixed;
    left: -310px;
    z-index: 10;
    transition: left 0.25s;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    overflow-y: auto;

    background-color: var(--colour-accent);
    filter: drop-shadow(0 0 5px var(--colour-dropshadow));
}

div.nav:has(div.hamburger:hover) + nav,
nav:hover
{
    left: 0;
}

nav a.navbar-item,
nav a.navbar-item:visited
{
    height: 60px;
    padding: 20px;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;

    cursor: pointer;
}
nav a.navbar-item:hover
{
    background-color: var(--colour-off-accent);
}

a.navbar-item p
{
    color: var(--colour-inverted-text);
}

nav div.icon-link-container
{
    height: 50px;
    margin: 5px 0px;
    padding: 10px 20px;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}









/* MAIN */
main
{
    width: 100vw;
    height: fit-content;
    min-height: calc(100vh - var(--footer-min-height));
    padding: calc(var(--nav-height) + 10px) 10px 10px 10px;

    background-color: var(--colour-primary);
}










/* FOOTER */
footer
{
    width: 100vw;
    min-height: var(--footer-min-height);

    background-color: var(--colour-thematic);
    filter: drop-shadow(0 0 5px var(--colour-dropshadow));
}

footer div.footer-content
{
    padding: 10px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer a,
footer a:visited,
footer p
{
    font-family: monospace;
    color: var(--colour-text);
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

footer a:hover
{
    text-decoration: underline;
}

footer a.small,
footer p.small
{
    font-size: 10px;
}









/* TEMP */
main
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
main h1
{
    text-align: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    -webkit-text-stroke: black 2px;
}