:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --primary-color: #4a4a4a;
    --highlight-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

header {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
    color: var(--highlight-color);
}

.info {
    display: flex;
    justify-content: space-around;
    font-size: 1.5em;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#game-board {
    display: grid;
    gap: 5px;
    max-width: 600px;
    max-height: 600px;
    width: 90vw;
    height: 90vw;
    aspect-ratio: 1 / 1;
}

.color-block {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.color-block:hover {
    transform: scale(0.95);
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

button {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #cccccc;
}