@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&family=Huninn&display=swap');

@font-face {
    font-family: "SFPixelateShaded-bold";
    src: url(fonts/SFPixelateShaded-Bold.ttf) format("truetype");
    font-weight: bold;
}

:root {
    --accent: #61FFCA;
    --primary: rgb(141, 141, 141);
    --sidebar-txt: #d6d6d6;
    --sidebar-bg: rgb(22, 21, 32);
}

body {
    background-color: #161520;
    color: white;
    margin: 0;
    user-select: none;
    transition: background-color 0.5s ease;
}

.blurred {
    filter: blur(2px) contrast(70%);
    opacity: 0.5;
    transition: all 0.5s ease-in;
}

.bg-wrapper {
    z-index: -1;
    position: absolute;
    overflow: hidden;
    width: 100vw;
    height: 100vh;

}

.background {
    position: relative;
    filter: brightness(0.3);
    z-index: -1;

    .fa-1,
    .fa-0 {

        position: absolute;
        color: var(--accent);
        text-shadow:
            var(--accent) 0px 0px 30px,
            #61ffcabd 0px -12px 3px,
            #61ffca62 0px -24px 3px;
        transition: opacity 0.5s ease;
    }
}

.page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: opacity 0.2s ease;
}

.toggle-btn {
    -webkit-tap-highlight-color: transparent;
    position: absolute;
    top: 30px;
    right: 30px;
    height: 30px;
    width: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;

    span {
        background-color: #61FFCA;
        height: 2px;
        width: 100%;
        display: block;
        border-radius: 5px;
        transition: 0.3s ease;

        &:first-child {
            transform: translateY(-4px);

        }

        &:last-child {
            transform: translateY(4px);
        }
    }

    span.crossed {
        &:first-child {
            transform: translateY(1px) rotate(45deg) !important;
        }

        &:last-child {
            transform: translateY(-1px) rotate(-45deg) !important;
        }
    }
}

h1 {
    font-family: "SFPixelateShaded-bold", monospace;
    letter-spacing: 10px;
    font-weight: 900;
    font-size: 5vw;
    text-align: center;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;

    span {
        color: var(--accent);
        text-shadow: rgba(0, 225, 255, 0.712) 0px 0px 20px;
        transition: text-shadow 0.3s ease-out, opacity 0.3s ease-out;
    }
}

hr {
    width: 30vw;
    height: 1px;
    background-color: var(--primary);
    border: none;
    border-radius: 20px;
    margin: 5px auto;
}

.links ul {
    display: flex;
    list-style: none;
    padding: 0;

    li {
        margin: 0 15px;

        a {
            -webkit-tap-highlight-color: transparent;
            text-decoration: none;

            svg {
                width: 45px;
                height: 45px;

                g path {
                    transition: all 0.3s ease;
                }
            }
        }

        a:hover svg g path {
            fill: var(--accent);
        }
    }
}


.footer {
    font-family: "Azeret Mono", monospace;
    letter-spacing: 1px;
    font-weight: 400;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--primary);
    text-align: center;
    text-shadow: var(--primary) 0px 0px 10px;
    opacity: 0.3;
}

.sidebar {
    overflow: hidden;
    background-color: var(--sidebar-bg);
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 350px;
    display: flex;
    justify-content: center;
    z-index: 1;
    border-left: #61ffca81 1px solid;
    border-radius: 10px 0px 0px 10px;
    transition: 0.4s ease;

    &.collapsed {
        width: 0px;
        overflow: hidden;
        transform: translateX(2px);
    }

    &.expanded {
        box-shadow: -3px 0px 40px 0px #61ffca3d;
    }

    ul {
        list-style: none;
        padding: 200px 30px;
        width: 100%;
        margin: 0;
        opacity: 0;
        transition: opacity 0.4s ease-in;
        

        li {
            font-family: "Huninn", sans-serif;
            font-size: 1.5rem;
            width: -webkit-fill-available;
            height: 50px;
            display: flex;
            align-items: center;
            border-radius: 5px;
            padding: 0 20px;

            a {
                text-decoration: none;
                color: var(--sidebar-txt);
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: end;
            }

            &:not(.sidebar-header):hover {
                background-color: hsl(245, 21%, 12%);
            }
        }
    }
}

@media only screen and (min-width: 900px) {
    .toggle-btn:hover span {
        &:first-child {
            transform: translateY(-5px) rotate(10deg);
        }

        &:last-child {
            transform: translateY(5px) rotate(-10deg);
        }
    }
}

@media only screen and (max-width: 600px) {
    .sidebar {
        width: 225px;

        ul li {
            font-size: 1.2rem;
            height: 40px;
        }
    }

    h1 {
        font-size: 14vw;
        letter-spacing: 5px;
        max-height: min-content;
        margin-bottom: 3px;
    }

    hr {
        width: 70vw;
        margin-bottom: 2px;
    }

    .links ul li {
        margin: 0 6px;

        a svg {
            width: 35px;
            height: 35px;
        }
    }

    .footer {
        font-size: 0.8rem;
        opacity: 0.2;
    }

    .fa-1,
    .fa-0 {
        font-size: 0.5rem;
        opacity: 0.8;
        text-shadow:
            var(--accent) 0px 0px 30px,
            #61ffcabd 0px -9px 3px,
            #61ffca62 0px -18px 3px;
    }
}