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

    draggable: false;
}

#game-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#container {
    display: flex;
    flex-direction: column;
    width: 600px;
    height: 600px;
    border: 2px solid #333;
    box-shadow: 0 0 10px orange;
}

.section {
    display: flex;
    flex-direction: row;
}

#container .section, .section .square {
    flex-grow: 10;
}

#game-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#reset-button, #close-popup {
    width: 150px;
    height: 50px;
    margin: 0 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: lowercase;
}

#reset-button:hover, #close-popup:hover {
    background-color: #45a049;
}

#size-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 600px;
    margin-left: 20px;
}

#size-slider {
    height: 400px;
    width: 20px;
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
}

#size-value {
    color: white;
    font-size: 20px;
    margin-top: 10px;
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#popup-content {
    background-color: #363636;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid orange;
    box-shadow: 0 0 20px orange;
}

#popup-content h2, #popup-content p {
    color: white;
    margin: 10px 0;
    text-transform: lowercase;
}

#final-score {
    font-size: 24px;
    font-weight: bold;
    color: orange;
}

.hidden {
    display: none !important;
}

#score-display, #timer-display {
    min-width: 120px;
}

#how-to-play {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#instructions-content {
    background-color: #363636;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid orange;
    box-shadow: 0 0 20px orange;
    max-width: 500px;
}

#instructions-content h2 {
    color: white;
    margin: 10px 0 20px;
    text-transform: lowercase;
}

#instructions-content ul {
    text-align: left;
    color: white;
    margin-bottom: 25px;
    line-height: 1.6;
}

#instructions-content li {
    margin-bottom: 8px;
}

#close-instructions {
    width: 150px;
    height: 50px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: lowercase;
}

#close-instructions:hover {
    background-color: #45a049;
}