:root[theme="light"] {
    --background-color: #e6e5e5;
    --background-color-opacity: #e6e5e57b;
    --background-color-opacity2:#f5f5f5db;
    --background-color-opacity3: #3737378b;
    --text-color: #262626;
    --text-color-second: #464646;
    --text-color-third: #6b6b6b;
    --button-color: #191919;
    --on-button-color: #f0f0f0;
    --black-bg: #323232bf;
    --blue: #2a10ed;
}

:root[theme="dark"] {
    --background-color: #121113;
    --background-color-opacity: #1211137b;
    --background-color-opacity2: #121113db;
    --background-color-opacity3: #cfcfcf8b;
    --text-color: #e4e4e4;
    --text-color-second: #c1c1c1;
    --text-color-third: #9c9c9c;
    --button-color: #efefef;
    --on-button-color: #2f2e31;
    --black-bg: #e3e3e3bf;
    --blue: #3319f9;
}

*::selection {
    background-color: var(--blue);
    color: #f3ff08;
}

noscript {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #2a10ed;
    color: #f3ff08;
    z-index: 999;
    display: grid;
    place-items: center;
}

body {
    margin: 0;
    font-family: "JetBrains Mono Variable", "Source Han Sans SC VF", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

p, span, a {
    font-size: 16px;
}

p, span, a, h1, h2, h3 {
    transition: color .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);
}

p {
    margin-block-start: 3px;
    margin-block-end: 3px;
}

.icon {
    color: var(--text-color);
}

#themebtn {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: .8;
    transition: opacity .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);

    &.homebt {
        top: 0;
        bottom: inherit;
    }

    span {
        font-size: 35px;
        transition: color .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);

        &::before {
            transition: rotate .2s cubic-bezier(0.00, 0.64, 0.61, 1.24);
            rotate: var(--rotate);
        }
    }

    &:hover {
        opacity: 1;
    }
}

#menubt {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    margin: 2vw;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: .8;
    transition: opacity .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);

    span {
        font-size: 35px;
        transition: color .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);
    }

    &:hover {
        opacity: 1;
    }
}

#loading {
    z-index: 2;
    position: absolute;
    background-color: var(--blue);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;

    #loading_txt {
        font-size: 23px;
        font-weight: bold;
        color: #f3ff08;
        animation: flash_txt .16s infinite;
    }
}

@keyframes flash_txt {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes pop {
    0% {
        width: 13vw;
        height: 13vw;
    }
    50% {
        width: 16vw;
        height: 16vw;
    }
    100% {
        width: 13vw;
        height: 13vw;
    }
}

#menu_list {
    position: fixed;
    width: 40%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 3;
    background-color: var(--blue);
    overflow: hidden;
    opacity: 1;
    display: none;
    transition: width .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);

    @media screen and (max-width: 800px) {
        width: 100%;
    }
}

#menu_list_container {
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    padding: 7vw;
    display: flex;
    flex-direction: column;

    a {
        position: relative;
        color: #ffffff;
        text-decoration: none;
        margin: 10px 5px;
        user-select: none;
        letter-spacing: 5px;
        padding: 5px;
        width: fit-content;
        font-size: 22px;
    }

    a:not(.actived) {
        transition: color .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);

        &::before {
            content: '';
            width: 0;
            height: 100%;
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background-color: var(--text-color);
            z-index: -1;
            transition: width .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);
        }

        &:hover {
            &::before {
                width: 100%;
            }

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

    a.actived {
        text-decoration: line-through;
        color: #f3ff08;
    }
}

@media screen and (max-width: 800px) {
    #menu_list_container {
        padding: 10vw;
        padding-top: 18vw;
    }
}
