/* Reset styles */
body, h1, p, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    text-align: center;
}

header {
    background: linear-gradient(90deg, #ff7f50, #ff4500);
    color: white;
    padding: 20px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    animation: fadeIn 2s;
}

.game-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px;
}

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

.game-card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
    transition: transform 0.3s ease-in-out;
}

.game-card img:hover {
    transform: scale(1.05);
}

.game-card button {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-card button:hover {
    background-color: #ff7f50;
}

/* Button Focus for Accessibility */
.game-card button:focus {
    outline: 3px solid #ff7f50;
    outline-offset: 2px;
}

#game-container {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-card {
        width: 90%;
    }
    .game-menu {
        gap: 10px;
    }
}
