@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
    margin: 0;
    color: white;
    font-family: "Poppins", sans-serif;
    a {
        text-decoration: none;
    }
}
:root {
    --blue: rgb(66, 73, 211);
}
body {
    overflow-x: hidden;
    min-height: 100vh;
    background: rgb(10, 10, 10);
    div.landing {
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        div.title {
            color: white;
            margin: 20px;
            font-size: 3em;
            border-bottom: 4px solid var(--blue);
            padding-right: 15px;
            transition: border 0.3s ease-in-out;
            &:hover,
            &:active {
                border-bottom: 4px solid;
                border-image: linear-gradient(to right, red, yellow, lime, aqua, blue, magenta, red) 1;
                span:first-child {
                    transform: translate(-40px) rotate(360deg);
                }
                span:nth-child(2) {
                    opacity: 1;
                    background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red);
                    background-clip: text;
                }
            }
            span {
                transition: all 0.3s ease-in-out;
                &:first-child {
                    transform: translateX(20px) rotate(0deg);
                }
                &:nth-child(2) {
                    opacity: 0;
                    color: white;
                }
                &:first-child {
                    position: absolute;
                }
            }
        }
        div.desc {
            color: white;
        }
        div.scrollanim {
            position: absolute;
            top: calc(95% - 80px);
            left: 50%;
            width: 100px;
            height: 80px;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            > div {
                margin: 5px;
                width: 80px;
                height: 20px;
                display: flex;
                justify-content: center;
                align-items: center;
                &:nth-child(2) span {
                    animation-delay: 0.2s;
                }
                &:nth-child(3) span {
                    animation-delay: 0.4s;
                }
                > span {
                    width: 30px;
                    height: 5px;
                    display: block;
                    position: relative;
                    background: rgb(255, 255, 255);
                    animation: scrollanim 0.6s linear infinite alternate;
                    &:first-child {
                        transform: rotate(20deg) translateX(2px);
                    }
                    &:last-child {
                        transform: rotate(-20deg) translateX(-2px);
                    }
                }
            }
        }
    }
    div.body {
        background: rgba(255, 255, 255, 0.05);
        min-height: 100vh;
        div.showcase {
            display: flex;
            justify-content: center;
            flex-direction: column;
            div.header {
                margin: 20px;
                h2 {
                    font-weight: 300;
                    text-align: center;
                }
                div.subtext {
                    margin: 20px;
                    display: flex;
                    justify-content: center;
                    b {
                        font-weight: 300;
                        color: var(--blue);
                    }
                }
            }
            div.versions {
                display: flex;
                justify-content: center;
                flex-direction: column;
                width: 100vw;
                h1 {
                    text-align: center;
                    font-weight: 300;
                    margin-top: 40px;
                }
                div.box {
                    display: flex;
                    justify-content: center;
                    margin-top: 40px;
                    div.gallery {
                        display: grid;
                        width: 80vw;
                        grid-template-columns: repeat(auto-fill, minmax(300px, 3fr));
                        justify-items: center;
                        gap: 20px;
                        a {
                            div.version {
                                width: 250px;
                                height: 250px;
                                border-radius: 20px;
                                outline: solid white;
                                margin-top: 20px;
                                background: rgba(40, 40, 50, 1);
                                display: flex;
                                flex-direction: column;
                                cursor: pointer;
                                box-shadow: 0 0 5px 3px white;
                                &::after {
                                    content: "";
                                    position: absolute;
                                    width: 250px;
                                    height: 250px;
                                    border-radius: 20px;
                                    transition: all 0.3s linear;
                                    background-size: cover;
                                    background-position-x: 50%;
                                    opacity: 1;
                                    transition: all 0.3s ease-in-out;
                                    pointer-events: none;
                                }
                                &:hover {
                                    div.name,
                                    div.desc {
                                        transform: translateY(0);
                                        opacity: 1;
                                    }
                                    &::after {
                                        opacity: 0.1;
                                    }
                                }
                                div.name {
                                    width: 100%;
                                    text-align: center;
                                    transform: translateY(-20px);
                                    opacity: 0;
                                    transition: all 0.3s ease-in-out;
                                    h2 {
                                        font-weight: 500;
                                        padding: 5px;
                                    }
                                }
                                div.desc {
                                    transition: all 0.3s ease-in-out;
                                    width: calc(100% - 20px);
                                    bottom: 0;
                                    position: relative;
                                    padding: 10px;
                                    opacity: 0;
                                    transform: translateY(20px);
                                }
                            }
                            &:nth-child(1) div.version::after {
                                background-image: url(img1.png);
                            }
                            &:nth-child(2) div.version::after {
                                background-image: url(img2.png);
                            }
                            &:nth-child(3) div.version::after {
                                background-image: url(img3.png);
                            }
                            &:nth-child(4) div.version::after {
                                background-image: url(graph4/favicon.ico);
                            }
                        }
                    }
                }
            }
        }
    }
}
@keyframes scrollanim {
    0%,
    50% {
        background: rgb(35, 35, 35);
    }
    100% {
        background: rgb(255, 255, 255);
    }
}
