* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Segoe UI', 'Arial Rounded MT Bold', sans-serif;
}
        
body {
    background-color: #ffecf1;
    background-image: radial-gradient(#ffc1d6 2px, transparent 2px);
    background-size: 30px 30px;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 80px;
}
        
.header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
}
        
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
        
.logo-icon {
    font-size: 40px;
    color: #ff6b9d;
    margin-right: 15px;
    animation: bounce 2s infinite;
}
        
h1 {
    color: #ff4081;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 #ffd1dc;
    margin-bottom: 5px;
    letter-spacing: 2px;
}
        
.subtitle {
    color: #ff79a9;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
        
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
}
        
.character {
    position: relative;
    margin-bottom: 20px;
}
        
.panda {
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 50%;
    position: relative;
    border: 8px solid #333;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
        
.panda-ear {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: -15px;
}

.panda-ear.left {
    left: 15px;
}
        
.panda-ear.right {
    right: 15px;
}
        
.panda-eye {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 45px;
}
        
.panda-eye.left {
    left: 30px;
}
        
.panda-eye.right {
    right: 30px;
}
        
.panda-eye-inner {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
}
        
.panda-nose {
    width: 30px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 85px;
    left: 60px;
}
        
.panda-mouth {
    width: 40px;
    height: 20px;
    border-bottom: 8px solid #333;
    border-radius: 0 0 40px 40px;
    position: absolute;
    top: 110px;
    left: 55px;
}
        
.speech-bubble {
    background-color: white;
    padding: 15px 20px;
    border-radius: 25px;
    position: absolute;
    top: -80px;
    left: 180px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid #ffb6c1;
}
        
.speech-bubble:after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: white;
    margin-top: -15px;
}
        
.bubble-text {
    font-size: 1.4rem;
    color: #ff4081;
    text-align: center;
    font-weight: bold;
}
        
.category-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}
        
.category-btn {
    background-color: #ffb6c1;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 0 #ff8fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}
        
.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 0 #ff8fa3;
}
        
.category-btn:active {
    transform: translateY(3px);
    box-shadow: 0 5px 0 #ff8fa3;
}
        
.category-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}
        
.category-btn.animals {
    background-color: #a3d977;
    box-shadow: 0 8px 0 #8bc34a;
}
        
.category-btn.animals:hover {
    box-shadow: 0 12px 0 #8bc34a;
}
        
.category-btn.animals:active {
    box-shadow: 0 5px 0 #8bc34a;
}
        
.category-btn.fruits {
    background-color: #ffcc80;
    box-shadow: 0 8px 0 #ffb74d;
}
        
.category-btn.fruits:hover {
    box-shadow: 0 12px 0 #ffb74d;
}
        
.category-btn.fruits:active {
    box-shadow: 0 5px 0 #ffb74d;
}
        
.category-btn.colors {
    background-color: #81d4fa;
    box-shadow: 0 8px 0 #4fc3f7;
}
        
.category-btn.colors:hover {
    box-shadow: 0 12px 0 #4fc3f7;
}
        
.category-btn.colors:active {
    box-shadow: 0 5px 0 #4fc3f7;
}
        
.content-area {
    background-color: white;
    border-radius: 30px;
    padding: 25px;
    width: 100%;
    max-width: 700px;
    min-height: 300px;
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.2);
    border: 10px solid #ffd1dc;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
        
.word-display {
    font-size: 4rem;
    color: #ff4081;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 5px 5px 0 #ffd1dc;
}

.image-display {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background-color: #f5f5f5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #ffb6c1;
    overflow: hidden;
}

.image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.word-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.word-image i {
    font-size: 8rem;
}

.emoji-fallback {
    font-size: 3.5rem;
}
        
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
        
.control-btn {
    background-color: #ffcc00;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 0 #ff9800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
        
.control-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 #ff9800;
}
        
.control-btn:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 #ff9800;
}
        
.control-btn.sound {
    background-color: #4caf50;
    box-shadow: 0 10px 0 #388e3c;
}
        
.control-btn.sound:hover {
    box-shadow: 0 15px 0 #388e3c;
}
        
.control-btn.sound:active {
    box-shadow: 0 5px 0 #388e3c;
}
        
.control-btn.next {
    background-color: #2196f3;
    box-shadow: 0 10px 0 #1976d2;
}
        
.control-btn.next:hover {
    box-shadow: 0 15px 0 #1976d2;
}
        
.control-btn.next:active {
    box-shadow: 0 5px 0 #1976d2;
}
        
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ff4081;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 100;
}
        
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
        
.star {
    position: absolute;
    background-color: #ffcc00;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 3s infinite;
}
        
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
        
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
        
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
        
.pop-animation {
    animation: pop 0.5s;
}
        
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .speech-bubble {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .speech-bubble:after {
        left: 50%;
        top: -25px;
        border: 15px solid transparent;
        border-bottom-color: white;
        border-right-color: transparent;
        margin-left: -15px;
        margin-top: 0;
    }
    
    .character {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .word-display {
        font-size: 3rem;
    }
    
    .category-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
        min-width: 130px;
    }
}
        
@media (max-width: 480px) {
    .category-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 90%;
    }
    
    .word-display {
        font-size: 2.5rem;
    }
    
    .image-display {
        width: 150px;
        height: 150px;
    }
    
    .control-btn {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}

