/* Reset some default styles */
body, h1, h2, p, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set a font for the entire website */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #add8e6, #87ceeb);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Main content styles */
main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button styles */
button {
    background-color: #008CBA;
    color: white;
    padding: 15px 32px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005f73;
}

/* Game list section styles */
#game-list-section {
    display: none;
}

#game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    max-height: 500px; /* Adjust as needed */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Individual game item styles */
.game-item {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.game-item:hover {
    transform: scale(1.05);
}

.game-item h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.game-item p {
    font-weight: 300;
    margin-bottom: 15px;
}

.game-item a {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.game-item a:hover {
    background-color: #218838;
}

/* Footer styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#welcome-section {
    animation: fadeIn 1s ease-in-out;
}

#game-list-section {
    display: none;
    animation: fadeIn 1s ease-in-out;
}
