* {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

header h1 {
    background-color: #081b31;
    color: #fff;
    text-align: center;
    height: 5rem;
    line-height: 5rem;
    font-size: 2rem;
}

h2 {
    margin: 15px;
    padding: 15px;
    color: #333;
    text-align: center;
    font-size: 1.5rem;
}

.game-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.game {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.game-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #081b31;
}

.game-img {
    height: 220px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 10px;
}

.game-content p {
    color: #007185;
    font-size: 1.1rem;
}

footer {
    background-color: #081b31;
    color: #fff;
    text-align: center;
    height: 4rem;
    line-height: 4rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
        height: 4rem;
        line-height: 4rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .game-selection {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .game {
        width: 80%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.25rem;
        height: 3.5rem;
        line-height: 3.5rem;
        padding: 0 10px;
    }

    h2 {
        font-size: 1rem;
        padding: 10px;
    }

    .game-content h3 {
        font-size: 1.25rem;
    }

    .game-img {
        height: 180px;
    }

    .game-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .game {
        width: 90%;
        padding: 10px;
    }
}
