body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: white;
    margin: 0;
}

#game-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#question {
    font-size: 2em;
    margin-bottom: 10px;
}

#instructions {
    font-size: 1em;
    margin-bottom: 10px;
}

#typed-answer {
    font-size: 2em;
    margin: 10px 0;
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
}

#score {
    margin-top: 10px;
    font-size: 1.5em;
}

#progress-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.progress-dot {
    width: 20px;
    height: 20px;
    background-color: grey; /* Default color */
    border-radius: 50%;
}

.correct {
    background-color: green;
}

.incorrect {
    background-color: red;
}

#start-over, #play-again {
    margin-top: 20px;
    font-size: 1.5em;
    padding: 10px 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#start-over:hover, #play-again:hover {
    background-color: #45a049;
}

#where-to-improve {
    margin-top: 20px;
}

#improvement-list {
    list-style-type: none;
    padding: 0;
}

#where-to-improve h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#improvement-list li {
    margin: 5px 0;
}

/* Settings Modal */
#settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 5px;
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: left;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
    font-weight: bold;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group input[type="number"] {
    width: 60px;
    padding: 5px;
}

#save-settings {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

#save-settings:hover {
    background-color: #45a049;
}

footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #666;
}

footer a {
    color: #008CBA;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
