body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

#background-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darken the background to make content readable */
}

main {
    flex: 1;
}

header {
    background-color: rgba(51, 80, 44, 0.8);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 250px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    max-width: 100%;
    border-radius: 4px;
}

.game-card h3 {
    margin: 1rem 0 0.5rem;
}

.play-button {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.play-button:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(51, 80, 44, 0.8);
    color: #fff;
    width: 100%;
}
