body {
    background-color: black;
    color: white;
}



.backgroundvid {
    position: relative;
    width: 100%;
    border-radius: 5px;
}

.backgroundvid img {
    display: block;
    width: 100%;
    height: 750px;
    object-fit: cover;
    border-radius: 5px;
}

.backgroundvid h2,
.backgroundvid h5 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    width: 80%;
}

.backgroundvid h2 {
    top: 35%;
    font-size: 64px;
}

.backgroundvid h5 {
    top: 48%;
    font-size: 20px;
}


.blog {
    width: 150px;
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
}

.mainn {
    width: 1600px;
    height: auto;
    /*background-color: blue;*/
    margin-left: 5%;
    margin-right: 30%;

}

.playthegame {
    margin-left: 30%;
    margin-right: 30%;
}

.gallery-image {
    width: 450px;
    height: 250px;
    border: 3px solid blue;
    border-radius: 3px;
    margin-top: 5%;
}

.gallery {
    margin-left: 30%;
    margin-right: 30%;
    
}

.socials {
    margin-left: 30%;
    margin-right: 30%;
}

.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.block_article {
    display: flex;
    flex-direction: column;
    width: 256px;
    margin: 5px;
}

a {
    text-decoration: none;

}

h3, h5 {
    color: white;
}



/* ===== MOBILE FIXES ===== */

@media screen and (max-width: 768px) {

    /* Main content */
    .mainn {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero image */
    .backgroundvid img {
        height: 400px;
    }

    .backgroundvid h2 {
        top: 30%;
        font-size: 42px;
    }

    .backgroundvid h5 {
        top: 45%;
        font-size: 16px;
        line-height: 1.5;
    }

    /* Content sections */
    .playthegame,
    .gallery,
    .socials {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Gallery */
    .gallery-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-top: 20px;
    }

    .gallery-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Articles */
    .articles {
        justify-content: center;
    }

    .block_article {
        max-width: 100%;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
}


/* ===== SMALL PHONES ===== */

@media screen and (max-width: 480px) {

    .backgroundvid img {
        height: 300px;
    }

    .backgroundvid h2 {
        top: 28%;
        font-size: 34px;
    }

    .backgroundvid h5 {
        top: 43%;
        font-size: 14px;
        width: 90%;
    }

    .mainn {
        width: 92%;
    }

}
