* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    padding: 20px;
}

.game-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.score-display {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.color-box {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}



.color-option {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover {
    transform: scale(1.05);
}

.new-game-btn {
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.new-game-btn:hover {
    background-color: #45a049;
}

.game-status {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    min-height: 1.5em;
}

.correct {
    color: #4CAF50;
    animation: fadeIn 0.5s ease;
}

.wrong {
    color: #f44336;
    animation: shake 0.5s ease;
}


@media (max-width: 500px) {
    .color-options {
        grid-template-columns: repeat(2, fr);
        gap: 8px;
        margin-bottom: 10px;


    }
    h1{
        font-size: 1.5em;
    }
    p{
        font-size: 0.7em;
    }
    .color-box {
        width: 100%;
        height: 110px;
        border-radius: 8px;
        margin-bottom: 10px;
        transition: background-color 0.3s ease;
    }

    /* .new-game-btn {
        margin-top: -40;
    } */
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
