body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Dark gradient background */
    color: #ecf0f1;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #8e44ad; /* Purple accent */
    text-shadow: 2px 2px #3498db; /* Blue shadow */
}

header p {
    font-size: 1.2em;
    color: #bdc3c7;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: rgba(44, 62, 80, 0.8); /* Slightly transparent dark background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: grid; /* Use grid for main content area */
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 40px; /* Space between categories */
}

.game-category {
    margin-bottom: 0; /* Remove margin as grid handles spacing */
}

.game-category h2 {
    font-size: 2.2em;
    color: #f39c12; /* Orange accent */
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    main {
        grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
    }
}

@media (min-width: 1024px) {
    main {
        grid-template-columns: repeat(3, 1fr); /* Three columns for even larger screens */
    }
}

.game-card {
    background-color: #34495e;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2c3e50;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.game-card h3 {
    font-size: 1.8em;
    color: #2ecc71; /* Green accent */
    margin-bottom: 10px;
}

.game-card p {
    font-size: 1em;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.play-button {
    display: inline-block;
    background-color: #3498db; /* Blue button */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #2980b9;
}

.game-card.coming-soon {
    background-color: #5d5a5e; /* Greyed out for coming soon */
    cursor: not-allowed;
    opacity: 0.7;
}

.game-card.coming-soon h3 {
    color: #ecf0f1;
}

.game-card.coming-soon .play-button {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

.game-card.coming-soon .play-button:hover {
    background-color: #7f8c8d;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}
