* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Neue', cursive;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

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

.student-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    color: #4a90e2;
    font-weight: bold;
}

.student-info input {
    padding: 12px;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.student-info input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255,107,107,0.5);
}

.question-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.question-section:hover {
    transform: translateY(-5px);
}

h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.matching-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.items, .labels {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.item {
    min-width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: white;
    border: 2px solid #4a90e2;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: grab;
    transition: all 0.2s;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.item:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.item .word {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.speak-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: transform 0.2s;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.speak-btn:hover {
    transform: scale(1.1);
    background-color: #45a049;
}

.label {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.label.drag-over {
    background: #e9ecef;
    transform: scale(1.05);
    border-color: #4a90e2;
}

.label.correct {
    background: #d4edda;
    border-color: #28a745;
    animation: correct 0.5s;
}

.label.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    animation: wrong 0.5s;
}

@keyframes correct {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

.senses-question {
    margin-top: 20px;
}

.sense-group {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sense-group h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 20px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.options label:hover {
    background-color: #e3f2fd;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.yes-no-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.question:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.question-text {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2em;
    color: #4a90e2;
}

.question-text span {
    font-weight: bold;
}

.question select {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #4a90e2;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    min-width: 180px;
}

.question select:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255,107,107,0.3);
}

.question select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 8px rgba(255,107,107,0.5);
}

.question .speak-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question .speak-btn:hover {
    transform: scale(1.1);
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.coloring-section {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.coloring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.shape {
    width: 100px;
    height: 100px;
    border: 3px solid #4a90e2;
    transition: transform 0.3s ease;
}

.shape:hover {
    transform: scale(1.1);
}

.circle {
    border-radius: 50%;
}

.square {
    border-radius: 10px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid #4a90e2;
    background: none;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.submit-button {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.submit-button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

.celebration {
    text-align: center;
    margin-bottom: 30px;
}

.celebration h2 {
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.confetti {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, #ff6b6b, #4a90e2, #4CAF50);
    animation: confetti 2s ease-in-out infinite;
}

@keyframes confetti {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

#score {
    font-size: 2em;
    color: #4a90e2;
    text-align: center;
    margin: 20px 0;
}

#feedback {
    font-size: 1.2em;
    color: #333;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.answer-button {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.answer-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

#correctAnswers {
    margin-top: 30px;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 15px;
}

.answers-content {
    margin-top: 15px;
    line-height: 1.6;
}

/* Animaciones para respuestas correctas/incorrectas */
@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

.correct {
    background-color: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    transition: all 0.3s ease;
    animation: pulse 1s;
}

.incorrect {
    background-color: rgba(244, 67, 54, 0.2);
    border: 2px solid #F44336;
    transition: all 0.3s ease;
    animation: shake 0.5s;
}

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

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

.audio-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    transform: scale(1.1);
    background-color: #45a049;
}

/* Fireworks Styles */
.firework-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: particle 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes particle {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

.celebration-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    z-index: 10000;
    animation: popIn 0.5s ease-out forwards;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.celebration-message h2 {
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.celebration-message p {
    color: #4a90e2;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.celebration-message button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.celebration-message button:hover {
    transform: scale(1.1);
    background: #45a049;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.sense-option {
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: transform 0.3s ease;
}

.sense-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.option-text {
    font-size: 1.1em;
    color: #4a90e2;
    flex-grow: 1;
}

.yes-no-buttons {
    display: flex;
    gap: 10px;
}

.answer-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.answer-btn.yes {
    background-color: #4a90e2;
    color: white;
}

.answer-btn.no {
    background-color: #f44336;
    color: white;
}

.answer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.answer-btn.correct {
    animation: pulse 0.5s;
    background-color: #4CAF50 !important;
}

.answer-btn.incorrect {
    animation: shake 0.5s;
    background-color: #f44336 !important;
} 