@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

body {
    background: url(img/bg.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 50% 35%;
}

#root {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(8px);
}

.top {
    width: 100%;
    height: 10vh;
    padding-top: 10vh;
    text-align: center;
    color: white;
    animation: top-anim 20s ease infinite;
    font-size: 200%;
}

.main {
    width: 100%;
    height: 78vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.box {
    width: 400px;
    height: 400px;
    background-color: rgb(65, 65, 65);
    margin: 0 1vw;
    box-shadow: 0 0 0 0 #2b2a2a;
    scale: 1;
    transition: all 0.7s ease;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
}

.box:hover {
    cursor: pointer;
    scale: 1.1;
    box-shadow: 4px 4px 8px 0 #2b2a2a;
}

.box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.front {
    z-index: 2;
}

.back {
    opacity: 0;
    z-index: 1;
}

.box:hover .back {
    opacity: 1;
}

.box:hover .front {
    opacity: 0;
}

.box h3{
    z-index: 200;
    position: absolute;
    color: white;
    text-transform: uppercase;
    font-size: 150%;
    width: 100%;
    letter-spacing: 0px;
    transition: all 0.9s ease;
}

.box:hover h3 {
    font-size: 170%;
    letter-spacing: 3px;
}

.box a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
}


.footer {
    width: 100%;
    height: 2vh;
    background-color: black;
    color: #858585;
    font-size: 80%;
    text-align: center;
    font-style: italic;
}

@keyframes top-anim {
    0% {
        letter-spacing: 1px;
    }
    50% {
        letter-spacing: 10px;
    }
    100% {
        letter-spacing: 1px;
    }
}

@media only screen and (max-width: 680px) {
    body {
        background-size: 250%;
        background-position: 50% 35%;
    }

    .top {
        width: 100%;
        height: 10vh;
        padding-top: 10vh;
        text-align: center;
        color: white;
        animation: top-anim 20s ease infinite;
        font-size: 100%;
    }

    @keyframes top-anim {
        0% {
            letter-spacing: 1px;
        }
        50% {
            letter-spacing: 2px;
        }
        100% {
            letter-spacing: 1px;
        }
    }

    .main {
        flex-wrap: wrap;
    }

    .box {
        width: 300px;
        height: 300px;
        background-color: rgb(65, 65, 65);
        margin: 0 1vw;
        box-shadow: 0 0 0 0 #2b2a2a;
        scale: 1;
        transition: all 0.7s ease;
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
    }

}