* {
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%);
    min-height: 100vh;
    padding: 20px;
    color: #37474f;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    padding: 25px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

header::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

h1 {
    margin: 0;
    font-size: 2.8rem;
    color: #fff59d;
    text-shadow: 3px 3px 0 #ffb74d;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.3rem;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
    flex-wrap: wrap;
}

.btn {
    background-color: #ff8a65;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.btn:hover {
    background-color: #ffab91;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #64b5f6;
}

.btn-primary:hover {
    background-color: #90caf9;
}

.btn-success {
    background-color: #81c784;
}

.btn-success:hover {
    background-color: #a5d6a7;
}

.content-area {
    padding: 30px;
    min-height: 500px;
}

.character {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.character-img {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fff59d 0%, #ffeb3b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 45px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.speech-bubble {
    background-color: #e3f2fd;
    border-radius: 25px;
    padding: 20px;
    position: relative;
    max-width: 70%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #bbdefb;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: #e3f2fd;
    border-left: 0;
    margin-top: -15px;
    margin-left: -15px;
}

.exercise {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    border: 2px dashed #81c784;
}

.input-area {
    width: 100%;
    padding: 15px;
    border: 3px solid #64b5f6;
    border-radius: 15px;
    font-size: 1.1rem;
    margin: 15px 0;
    transition: all 0.3s;
    background-color: #f5f5f5;
}

.input-area:focus {
    outline: none;
    border-color: #ff8a65;
    box-shadow: 0 0 0 3px rgba(255, 138, 101, 0.3);
}

.result-area {
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
}

.positive {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
}

.negative {
    background: linear-gradient(135deg, #ff8a65 0%, #ff7043 100%);
    color: white;
}

.neutral {
    background: linear-gradient(135deg, #fff59d 0%, #ffeb3b 100%);
    color: #333;
}

.progress-container {
    padding: 0 30px;
}

.progress-bar {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border-radius: 15px;
    width: 0%;
    transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.emoji {
    font-size: 2.5rem;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.emoji:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #fff59d;
}

.exercise-title {
    color: #42a5f5;
    border-bottom: 3px solid #ffb74d;
    padding-bottom: 10px;
    margin-top: 0;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #42a5f5;
    text-align: center;
    margin: 20px 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.radio-group label:hover {
    background: #f1f8e9;
    transform: translateX(5px);
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #64b5f6;
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ffb74d;
}

.task-card h3 {
    margin-top: 0;
    color: #ff8a65;
}

.sound-control {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

footer {
    text-align: center;
    padding: 25px;
    background: #e8f5e9;
    color: #616161;
    font-size: 1rem;
    border-top: 1px solid #c8e6c9;
}

@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: none;
    }
    
    .character {
        flex-direction: column;
        text-align: center;
    }
    
    .character-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .speech-bubble {
        max-width: 100%;
    }
    
    .speech-bubble:after {
        left: 50%;
        top: 0;
        border: 15px solid transparent;
        border-bottom-color: #e3f2fd;
        border-top: 0;
        margin-left: -15px;
        margin-top: -15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .sound-control {
        top: 10px;
        right: 10px;
    }
}