:root{
    --text-color: rgb(237, 233, 248);
    --hover-text-color: rgb(44, 42, 49);

    --button-color: rgb(132, 108, 160);
    --hover-button-color: rgb(159, 128, 189);

    --inner-container-color: rgb(43, 39, 49);
    --container-color: rgb(18, 18, 18);
    --container-border-color: rgb(51, 51, 51);
    --background-color: rgb(0, 0, 0);

    --green: rgb(116, 173, 119);
    --yellow: rgb(228, 206, 110);
    --red: rgb(182, 105, 105);

    --design-width: 1920;
    --design-height: 1080;

    --scale: min(
        calc(100vw / var(--design-width)),
        calc(100vh / var(--design-height))
    );
}

@font-face {
    font-family: bricolage-grotesque;
    src: url(../assets/fonts/BricolageGrotesque-VariableFont_opsz\,wdth\,wght.ttf);
}

@font-face {
    font-family: sans-code;
    src: url(../assets/fonts/GoogleSansCode-VariableFont_MONO\,wght.ttf);
}

@font-face {
    font-family: rustic-roadway;
    src: url(../assets/fonts/RusticRoadway.otf) format("opentype");
}

body {
    opacity: 0;
    animation: fade 0.2s ease-out forwards;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#menu-toggle {
    position: fixed;
    top: 30px;
    left: 20px;

    background: var(--button-color);
    border-radius: 5px;
    padding: 8px 10px;

    cursor: pointer;
    z-index: 1000;

    font-family: sans-code, monospace;
    transition: left 0.3s ease;
}

#menu-toggle:hover {
    background: var(--hover-button-color);
    color: var(--hover-text-color);
}

#sidebar {
    position: fixed;
    top: 0;
    left: -250px; 
    height: 100%;

    width: 200px;
    padding: 20px;

    background: var(--container-color);
    border-right: 1px solid var(--container-border-color);

    display: flex;
    flex-direction: column;
    gap: 10px;

    transition: left 0.3s ease;
    z-index: 999;
}

#menu-toggle.active {
    left: 250px;
}

#sidebar.active {
    left: 0;
}

#sidebar a {
    text-decoration: none;
    color: var(--text-color);

    background: var(--button-color);
    padding: 8px;
    border-radius: 5px;

    font-family: sans-code, monospace;
}

#sidebar a:hover {
    background: var(--hover-button-color);
    color: var(--hover-text-color);
}

#sidebar p {
    text-align: center;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

#overlay.active {
    display: block;
}