:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #ecf0f1;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    display: grid;
    place-items: center;
    height: 100vh;
    margin: 0;
}

main {
    text-align: center;
}

#target-color {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 100px;
    height: 100px;
    border: 2px solid #333;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

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

#result {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#new-game {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#new-game:hover {
    background-color: var(--secondary-color);
}

#scoreboard {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    font-size: 1.1rem;
    min-width: 180px;
}

#scoreboard div {
    font-weight: bold;
}

#reset-data {
    margin: 10px;
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

#reset-data:hover {
    background-color: #c0392b;
}