﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #191931;
}

.row {
    margin: 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 20px;
}

/* Add styles for smaller screens */


.game-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    width: 90%; /* Adjust width to allow for larger items */
}

    .game-item img,
    .game-item video {
        width: 100%; /* Make the image/video take the full width of the item */
        height: auto; /* Maintain aspect ratio */
        max-height: 150px; /* Increase max height for larger display */
    }

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row */
        justify-items: center; /* Center items */
    }

    .game-item {
        width: 90%; /* Keep this for consistency */
    }

        .game-item img,
        .game-item video {
            max-height: 150px; /* Increased height */
        }
}


    .game-item video {
        display: none; /* Hide video by default */
    }

h1 {
    color: white;
    padding: 20px;
}

.responsive-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .responsive-iframe iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .responsive-iframe {
        padding-bottom: 56.25%;
        height: 347px; /* Maintain 16:9 Aspect Ratio */
    }
}

@media (max-width: 992px) {
    .game-item img,
    .game-item video {
        width: 150px; /* Adjust image/video size for tablets */
        max-height: 80px; /* Adjust height for tablets */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem; /* Smaller font size for mobile */
        padding: 10px;
    }

    .game-item img,
    .game-item video {
        width: 120px; /* Adjust image/video size for mobile */
        max-height: 70px; /* Adjust height for mobile */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.2rem; /* Even smaller font size for very small screens */
        padding: 5px;
    }

    .game-item img,
    .game-item video {
        width: 100px; /* Further adjust size for very small screens */
        max-height: 60px; /* Further adjust height for very small screens */
    }
}
