body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh; /* Ensure body takes full viewport height */
    background: radial-gradient(circle, rgba(180, 58, 58, 1) 0%, rgba(8, 0, 0, 1) 100%, rgba(252, 69, 69, 1) 100%);
    background-attachment: fixed; /* Fixes the background */
    display: flex;
    flex-direction: column; /* Necessary for footer positioning */
}


.container {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto;
    background: #1e1e1e;
    border: 1px solid #fffb3b;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.7);
    overflow: hidden;
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
}

/* Header */
header {
    color: #ccc;
    text-align: center;
    border-radius: 10px;
}

.logo img {
    max-width: 100%;   /* Ensures the image doesn't exceed the container width */
    height: auto;      /* Maintains the aspect ratio */
    display: block;    /* Removes any space below the image */
    margin: 0 auto;    /* Centers the image horizontally if needed */
}

/* Main Content */
h1 {
    color: #ffeb3b;
}

.info {
    padding: 5px;
    background: #333;
    border-radius: 10px;
    color: white;
    margin: 20px 0;
    font-size: 18px;
}

/* Game Grid */
.games {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default to 4 columns */
    gap: 22px;
    padding: 5px;
}

.game {
    border: 1px solid #111;
    background: #333;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.game a {
    text-decoration: none; /* Removes the default underline from the link */
    color: inherit;        /* Inherits color from the parent (so no need to change text color) */
    display: block;        /* Makes the entire div clickable */
}

.game img {
    max-width: 100%;       /* Ensures the image fits the container */
    height: auto;          /* Maintains the aspect ratio */
    border-top-left-radius: 10px;  /* Adjust the radius value as needed */
    border-top-right-radius: 10px; /* Adjust the radius value as needed */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow to the image */
    margin-bottom: 5px;   /* Adds space between the image and the text */
}

.game h3 {
    margin: 2px 0;
    font-size: 20px;
    color: #ffe;
}

.game p {
    font-size: 14px;
    color: #ddd;
}

.game:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
    background: radial-gradient(circle, rgba(180, 58, 58, 1) 0%, rgba(8, 0, 0, 1) 100%, rgba(252, 69, 69, 1) 100%);
    color: black;
}

/* Description */

.description {
    margin-top: 20px;
    padding: 20px;
    background: #333;
    border-radius: 10px;
    color: white;
}

/* Game Area */
.game-area {
    text-align: center;
    padding: 10px;
}

.game-screen {
    position: relative;
    padding-top: 56.25%; /* Aspect ratio of 16:9 (100 / 16 * 9) */
    margin-bottom: 20px;
    background-color: #222;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
}

.game-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.controls, .how-to-play {
    background: #444;
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    color: white;
}

/* New Games Section */
.new-games {
    margin-top: 30px;
    text-align: center;
}

.new-games .games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.new-games .game {
    background: #444;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-games .game:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 20px;
    background: #333;
    border-radius: 10px;
    color: white;
    text-align: center;
}

/* Responsive Design: Adjust Grid Layout */
@media (max-width: 1200px) {
    .games {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 900px) {
    .games {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

@media (max-width: 600px) {
    .games {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}
