html[theme='light'] {
    --spot: rgba(0, 0, 0, 0.4);
    --mg: #b3b3b3;
}

html[theme='dark'] {
    --spot: rgba(255, 255, 255, 0.4);
    --mg: #484848;
}

#home_background {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: fixed;
    overflow: hidden;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: .4;
    background-image: radial-gradient(var(--spot) 40%, transparent 40%);
    background-size: 5px 5px;

    #grid_bg {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        background-image:
            linear-gradient(to right, var(--blue) 1.5px, transparent 1.5px),
            linear-gradient(to bottom, var(--blue) 1.5px, transparent 1.5px);
        background-size: 15vh 15vh;
        background-position: center center;
    }
}

@keyframes flash {
    0% {
        background-color: #505050;
    }
    50% {
        background-color: #323232;
    }
    100% {
        background-color: #505050;
    }
}

#home {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--background-color-opacity);
    z-index: 1;
    box-sizing: border-box;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: 3vw;
    padding-bottom: 3vw;
    display: flex;
    flex-direction: column;

    #home_middleground {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
        padding-left: calc(5vw - 30px);
        padding-right: calc(5vw - 30px);
        padding-top: calc(3vw - 20px);
        padding-bottom: calc(3vw - 20px);
        box-sizing: border-box;

        #mid_block {
            box-sizing: border-box;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            border: 2px solid var(--blue);
        }
    }

    .greeting {
        display: flex;
        flex-direction: column;
        flex: 1;

        .zz_greet {
            font-size: 24px;
            font-weight: bold;
            width: fit-content;
            background-image: linear-gradient(to right, var(--text-color), var(--mg));
            color: var(--background-color);
            padding: 2px;
            box-sizing: border-box;
            user-select: none;
        }

        .hello_greet {
            font-size: 43px;
            display: inline-block;

            @media screen and (max-width: 800px) {
                font-size: 34px;
            }

            .names_typed {
                font-size: 43px;
                color: var(--blue);
                position: relative;

                &::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    height: 5px;
                    background-image: linear-gradient(to right, #bdbdbd, var(--blue));
                }
            }
        }

        .platforms {
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-top: 20px;

            .soc_txt {
                margin-right: 10px;
                user-select: none;
                border-bottom: 3px solid var(--blue);
            }

            .pbtn {
                position: relative;
                background-color: transparent;
                padding: 5px;
                margin: 3px 10px 3px 3px;
                width: 40px;
                height: 40px;
                border: none;
                cursor: pointer;
                color: var(--text-color);

                svg {
                    transition: color .3s;
                }

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

                &:hover {

                    svg {
                        color: #f3ff08;
                    }

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

        .latest {
            margin-top: 10px;
            padding: 10px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            background-color: var(--background-color-opacity3);
            color: var(--background-color);
            width: 88%;

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

            .l_head {
                display: flex;
                flex-direction: row;
                align-items: center;

                .l_text {
                    font-size: 18px;
                    flex: 1;
                }

                a {
                    text-decoration: none;
                }

                .watch {
                    color: var(--text-color);
                    background-color: var(--background-color);
                    font-size: 17px;
                    padding: 5px;
                    margin-left: 10px;
                    box-sizing: border-box;
                    transition: opacity .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);
                    user-select: none;

                    &:hover {
                        opacity: .7;
                    }
                }
            }

            .latest_info {
                margin-top: 10px;
                display: flex;
                flex-direction: row;
                flex: 1;
                justify-content: center;

                .img_bg {
                    width: 160px;
                    height: 90px;
                    background-color: #505050;
                    animation: flash .3s infinite;

                    img {
                        width: 100%;
                        object-fit: cover;
                        user-select: none;
                        transition: opacity .3s;
                    }
                }

                .work_info {
                    margin-left: 20px;
                    display: flex;
                    flex-direction: column;
                    
                    .work_title {
                        letter-spacing: 3px;
                        font-weight: bolder;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        text-overflow: ellipsis;
                        -webkit-line-clamp: 2;
                        font-size: 17px;
                        overflow: hidden;
                    }

                    .work_date {
                        font-size: 15px;
                        opacity: .8;
                    }
                }

                @media screen and (max-width: 800px) {
                    img {
                        width: 112px;
                        height: 63px;
                    }

                    .work_info {
                        margin-left: 10px;

                        .work_title {
                            font-size: 12px;
                        }

                        .work_date {
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }

    .entries_container {
        display: flex;
        flex-direction: row;
        margin-top: 10px;
        box-sizing: border-box;

        .ent_block {
            flex: 1;
        }

        .entries {
            display: flex;
            flex-direction: row;
            align-items: center;

            @media screen and (max-width: 800px) {
                flex-direction: column;
            }

            a {
                text-decoration: none;
            }

            .entry {
                font-size: 37px;
                margin: 10px;
                padding: 10px 10px;
                box-sizing: border-box;
                background-color: transparent;
                border: none;
                position: relative;
                cursor: pointer;
                display: flex;
                flex-direction: column;
                align-items: center;
                background-color: var(--background-color);
                border: 1px solid var(--blue);

                span {
                    font-family: "JetBrains Mono Variable", "Source Han Sans SC VF", sans-serif;
                    letter-spacing: 5px;
                    color: var(--blue);
                    z-index: 1;
                    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(--blue);
                    z-index: 1;
                    transition: width .3s cubic-bezier(0.00, 0.37, 0.61, 0.99);
                }

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

                    span {
                        color: #f3ff08;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 800px) {
    #home {
        flex-direction: column;
    }
}

@keyframes fade_left {
    0% {
        opacity: 0;
        transform: translateX(-10vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade_right {
    0% {
        opacity: 0;
        transform: translateX(10vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#footer {
    z-index: 2;
    background-color: var(--black-bg);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    span, a {
        font-size: 17px;
    }
    .process {
        color: rgb(255, 132, 132);
    }
    .powerd {
        color: var(--background-color);
    }
    a {
        color: rgb(59, 133, 236);
    }
}