html {
    font-size: 16px; /* 1rem = 16px */
}

body {
    margin: 0;
    background-color: rgb(0, 120, 215);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh 2vw;
    text-align: center;
    text-rendering: optimizeLegibility;
}

h1 {
    font-family: "Luckiest Guy", sans-serif;
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 400;
    font-style: normal;
    margin: 0;
}

.game-card {
    margin-top: 4vh;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 2rem;
    max-width: 450px;
    width: 90%;
}

.game-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    font-family: "Darumadrop One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.game-card h3 {
    font-family: "Readex Pro", sans-serif;
    font-size: 1.255rem;
    font-weight: 400;
    font-optical-sizing: auto;
    margin: 1.5rem 0 1rem;
}

.game-card p {
    font-family: "Readex Pro", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    font-optical-sizing: auto;
    text-align: left;
    margin: 1rem auto 1.5rem auto;
    max-width: 410px;
    width: 100%;
}

.preview-container {
    position: relative;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    max-width: 400px;
    width: 90%
}

.thumbnail, .video {
    width: 100%;
    display: block;
    border-radius: 1rem;
    transition: opacity 0.3s ease;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.204);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
    display: none;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.mobile-play svg {
    width: 48px;
    height: 48px;
}

footer {
    margin-top: 6vh;
    font-family: "Readex Pro", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: underline;
}

@media (hover: none) and (pointer: coarse) {
    .mobile-play {
        display: block;
    }
}
