body {
    margin: 0;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.image-container {
    width: 774px;
    height: 79px;

    margin: 0 auto;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.text-overlay {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Grid layout for the 5 games */
.games-grid {
    max-width: 1020px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.game-link {
    text-decoration: none;
    display: block;
}

/* Game container */
.game-container {
    width: 300px;
    text-align: center;
}

/* Blank thumbnail placeholder */
.game-thumbnail {
    width: 300px;
    height: 169px;

    background-color: #222;
    border: 2px solid #444;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-link:hover .game-thumbnail {
    transform: scale(1.03);
    border-color: white;
}

/* Game title underneath the thumbnail */
.game-title {
    margin-top: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
