html, body {
    scroll-behavior: smooth;
    background: radial-gradient(at bottom right, #1b2c2e, #502131, #1b2c2e);
    background-color: #222;
    background-attachment: fixed;
    min-height: 100dvh;
}

* {
    font-family: Helvetica, Arial, sans-serif;
    color: gainsboro;
    text-align: center;
}

body {
    margin: 0 auto;
    max-width: 80vw;
}

main {
    margin: 20px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    max-width: 350px;
}

#game-cards {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.card {
    margin: 10px 20px;
    text-decoration: none;
}

.card img {
    width: 100%;
    max-width: 400px;
    transition: filter 0.4s ease;
    border: 1px solid black;
    filter: blur(4px) brightness(75%);
}

.card h2 {
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease;
    top: 40%;
}

@media (hover: hover) {
    .card img{
        filter: none;
    }

    .card:hover img {
        filter: blur(4px) brightness(75%);
    }

    .card h2 {
        opacity: 0;
    }

    .card:hover h2 {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .card h2 {
        font-size: 11px;
    }
}

iframe {
    aspect-ratio: 16/9;
    width: 80vw;
    border: 5px solid black;
    display: none;
    margin-top: 25px;
}   

iframe:target {
    display: block;
}

@media screen and (min-width: 769px) {
    iframe {
        margin-top: 100px;
    }
}

footer {
    margin-bottom: 40px;
}