* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #764ba2;
    font-size: 3rem;
    flex: 1;
}

.score-display {
    display: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 15px;
}

.word-display {
    text-align: center;
    margin: 60px 0 30px;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
    transition: gap 0.3s ease;
}

.word-display.show-hints {
    gap: 8px;
}

.phonogram {
    font-family: 'Georgia';
    font-size: 6rem;
    font-weight: bold;
    padding: 10px 0px;
    border-radius: 15px;
    cursor: default;
    transition: all 0.3s ease;
    display: inline-block;
    user-select: none;
    color: #2c3e50;
    background-color: transparent;
    letter-spacing: 10px;
}

.show-hints .phonogram {
    padding: 10px 15px;
    cursor: pointer;
}

.show-hints .phonogram:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.show-hints .phonogram:active {
    transform: scale(1.25);
}

.phonogram.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Color assignments for phonograms - only show when hints are active */
.show-hints .color-0 { background-color: #FFB5B5; }  /* Red */
.show-hints .color-1 { background-color: #A6E6E1; }  /* Teal */
.show-hints .color-2 { background-color: #FFF2B6; }   /* Yellow */
.show-hints .color-3 { background-color: #CAF0E9; }   /* Mint */
.show-hints .color-4 { background-color: #F9C0C0; }  /* Pink */
.show-hints .color-5 { background-color: #D4CAEC; }  /* Purple */
.show-hints .color-6 { background-color: #FDDCE9; }   /* Light Pink */
.show-hints .color-7 { background-color: #D3EBF4; }   /* Sky Blue */
.show-hints .color-8 { background-color: #FFD4D3; }  /* Coral */
.show-hints .color-9 { background-color: #FFE3EE; }   /* Rose */
.show-hints .color-10 { background-color: #DEF1D3; }  /* Light Green */
.show-hints .color-11 { background-color: #FFECE0; }  /* Peach */
.show-hints .color-12 { background-color: #D9D3EA; } /* Lavender */
.show-hints .color-13 { background-color: #CCE8E9; }  /* Aqua */
.show-hints .color-14 { background-color: #E5EDED; }  /* Gray Blue */

.instructions {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
}

.emoji-game {
    margin: 50px 0;
    display: none;
}

.emoji-game.active {
    display: block;
}

.game-prompt {
    text-align: center;
    font-size: 1.8rem;
    color: #764ba2;
    margin-bottom: 20px;
    font-weight: bold;
}

.emoji-choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.emoji-choice {
    font-size: 5rem;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 4px solid transparent;
}

.emoji-choice:hover {
    transform: scale(1.1);
    background: #e0e0e0;
}

.emoji-choice.correct {
    border-color: #4CAF50;
    background: #C8E6C9;
    animation: success 0.5s ease;
}

.emoji-choice.incorrect {
    border-color: #f44336;
    background: #FFCDD2;
    animation: shake 0.5s ease;
}

@keyframes success {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.feedback {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    min-height: 40px;
}

.feedback.success {
    color: #4CAF50;
}

.feedback.error {
    color: #f44336;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px;
}

.nav-btn {
    font-size: 1.3rem;
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.hint-btn {
    font-size: 1.8rem;
    padding: 15px 25px;
    background: #f0f0f0;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hint-btn:active {
    transform: translateY(0);
}

.hint-btn.active {
    background: #667eea;
    color: white;
    border-color: #764ba2;
}

.mode-toggle {
    text-align: center;
    margin: 30px 0;
}

.mode-toggle label {
    font-size: 1.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.mode-toggle input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

footer {
    display: none;
    text-align: center;
    margin-top: 30px;
    font-size: 1.2rem;
    color: #999;
}

footer span {
    font-weight: bold;
    color: #667eea;
}
