body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.game-area, .settings-area, .wordlist-area {
    display: none;
}

.active {
    display: block;
}

.prompt {
    font-size: 24px;
    margin: 20px 0;
    color: #333;
    background-color: #e6f7ff;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #1890ff;
}

.letters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.letter {
    width: 50px;
    height: 50px;
    background-color: #ffd166;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    user-select: none;
}

.letter:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.letter.selected {
    background-color: #06d6a0;
    color: white;
}

.answer-container {
    min-height: 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.answer-slot {
    width: 50px;
    height: 50px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 2px dashed #adb5bd;
    user-select: none;
}

.answer-slot.filled {
    background-color: #a5d8ff;
    border: 2px solid #4dabf7;
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.check-btn {
    background-color: #51cf66;
    color: white;
}

.reset-btn {
    background-color: #fcc419;
    color: white;
}

.next-btn {
    background-color: #339af0;
    color: white;
}

.prev-btn {
    background-color: #9775fa;
    color: white;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.feedback {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.correct {
    color: #51cf66;
}

.incorrect {
    color: #ff6b6b;
}

.score {
    font-size: 18px;
    margin-top: 15px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.flower {
    color: #ff6b6b;
    font-size: 20px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

select, input, textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 16px;
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: monospace;
}

.start-btn {
    background-color: #7950f2;
    color: white;
    margin-top: 20px;
}

.switch-btn {
    background-color: transparent;
    color: #339af0;
    border: 2px solid #339af0;
    margin-top: 20px;
}

.edit-wordlist-btn {
    background-color: #20c997;
    color: white;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #e9ecef;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tab.active {
    background-color: white;
    font-weight: bold;
    color: #339af0;
}

.question-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.question-card {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.question-card:hover {
    background-color: #dee2e6;
}

.question-card.current {
    background-color: #4dabf7;
    color: white;
    font-weight: bold;
}

.question-card.correct {
    background-color: #51cf66;
    color: white;
}

.wordlist-editor {
    margin-top: 20px;
}

.wordlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.save-btn {
    background-color: #20c997;
    color: white;
}

.cancel-btn {
    background-color: #fa5252;
    color: white;
}

.import-export {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #7f8c8d;
}
