/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Connection Status */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.connection-status.offline {
    color: #e74c3c;
}

.connection-status.online {
    color: #2ecc71;
}

/* Update Notification */
.update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.update-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.update-notification p {
    margin: 0;
    font-weight: 500;
}

.update-notification:hover {
    background: #2980b9;
    transform: translateY(-5px) scale(1.02);
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-title i {
    color: #f39c12;
    margin-right: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* Main Menu Styles */
.main-menu {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.menu-item:nth-child(1) { background: linear-gradient(135deg, #f8d7da 0%, #f1c2c7 100%); }
.menu-item:nth-child(2) { background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); }
.menu-item:nth-child(3) { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); }
.menu-item:nth-child(4) { background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%); }
.menu-item:nth-child(5) { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); }
.menu-item:nth-child(6) { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); }
.menu-item:nth-child(7) { background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%); }

.menu-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(52, 58, 64, 0.8);
}

.menu-item h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #343a40;
    text-shadow: none;
    font-weight: bold;
}

.menu-item p {
    color: rgba(52, 58, 64, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Activity Section Styles */
.activity-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.back-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.back-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.section-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #4a90e2;
    flex: 1;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: #343a40;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.activity-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: none;
    font-weight: bold;
    color: #343a40;
}

.activity-card p {
    font-size: 0.9rem;
    opacity: 1;
    line-height: 1.4;
    text-shadow: none;
    font-weight: 400;
    color: #6c757d;
}

/* Game Area Styles */
.game-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.game-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #4a90e2;
    flex: 1;
    text-align: center;
}

.score {
    background: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.game-content {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

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

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: #f39c12;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-animation {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.modal-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

/* Game Specific Styles */
.color-sorting-game {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.color-bucket {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.color-bucket.red { border-color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.color-bucket.blue { border-color: #3498db; background: rgba(52, 152, 219, 0.1); }
.color-bucket.green { border-color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.color-bucket.yellow { border-color: #ffeb3b; background: rgba(255, 235, 59, 0.1); }

.draggable-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 5px;
}

.draggable-item:hover {
    transform: scale(1.1);
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

/* Shape Matching Game */
.shapes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.shape-item {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.animal-card {
    width: 120px;
    height: 120px;
    flex-direction: column;
    padding: 10px;
    font-size: 2.5rem;
}

.animal-card div:last-child {
    font-size: 0.75rem !important;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 5px;
    line-height: 1.1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.shape-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.shape-item.selected {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
}

.shape-item.correct {
    background: #2ecc71;
    color: white;
    animation: correctPulse 0.6s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
}

/* Number Recognition Game */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.number-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.number-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.number-card.correct {
    background: #2ecc71;
    animation: correctPulse 0.6s ease;
}

/* Counting Game */
.counting-area {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.count-question {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #4a90e2;
    font-weight: 600;
}

.count-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.count-item {
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.count-item:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.8);
}

.count-item.counted {
    opacity: 0.5;
    transform: scale(0.8);
}

.count-display {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-header h3 {
        order: 1;
    }
    
    .back-btn {
        order: 2;
    }
    
    .score {
        order: 3;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .color-sorting-game {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Texture Patterns */
.texture-item {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.texture-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.texture-item.correct {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
    animation: correctPulse 0.6s ease;
}

.texture-pattern {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* Μοντεσόρι Patterns */
.texture-pattern.dots {
    background: 
        radial-gradient(circle at 25% 25%, #2196f3 3px, transparent 3px),
        radial-gradient(circle at 75% 25%, #2196f3 3px, transparent 3px),
        radial-gradient(circle at 25% 75%, #2196f3 3px, transparent 3px),
        radial-gradient(circle at 75% 75%, #2196f3 3px, transparent 3px),
        radial-gradient(circle at 50% 50%, #2196f3 3px, transparent 3px),
        #f5f5f5;
    background-size: 20px 20px;
    border: 2px solid #1976d2;
}

.texture-pattern.lines {
    background: repeating-linear-gradient(
        0deg,
        #4caf50 0px,
        #4caf50 3px,
        #f5f5f5 3px,
        #f5f5f5 8px
    );
    border: 2px solid #388e3c;
}

.texture-pattern.zigzag {
    background: 
        linear-gradient(135deg, #ff9800 25%, transparent 25%),
        linear-gradient(225deg, #ff9800 25%, transparent 25%),
        linear-gradient(45deg, #ff9800 25%, transparent 25%),
        linear-gradient(315deg, #ff9800 25%, transparent 25%);
    background-position: 8px 0, 8px 0, 0 0, 0 0;
    background-size: 16px 16px;
    background-color: #f5f5f5;
    border: 2px solid #f57c00;
}

.texture-pattern.circles {
    background: 
        radial-gradient(circle at 50% 50%, transparent 8px, #9c27b0 8px, #9c27b0 12px, transparent 12px),
        radial-gradient(circle at 0% 0%, transparent 8px, #9c27b0 8px, #9c27b0 12px, transparent 12px),
        radial-gradient(circle at 100% 100%, transparent 8px, #9c27b0 8px, #9c27b0 12px, transparent 12px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px, -15px -15px;
    background-color: #f5f5f5;
    border: 2px solid #7b1fa2;
}

.texture-pattern.squares {
    background: 
        linear-gradient(45deg, #e91e63 25%, transparent 25%),
        linear-gradient(-45deg, #e91e63 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e91e63 75%),
        linear-gradient(-45deg, transparent 75%, #e91e63 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
    background-color: #f5f5f5;
    border: 2px solid #c2185b;
}

.texture-pattern.spirals {
    background: 
        radial-gradient(ellipse at center, transparent 20%, #607d8b 21%, #607d8b 25%, transparent 26%),
        radial-gradient(ellipse at center, transparent 40%, #607d8b 41%, #607d8b 45%, transparent 46%),
        radial-gradient(ellipse at center, transparent 60%, #607d8b 61%, #607d8b 65%, transparent 66%);
    background-size: 40px 40px;
    background-color: #f5f5f5;
    border: 2px solid #455a64;
}

/* Sound Game Styles */
.sound-item {
    width: 120px;
    height: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    padding: 10px;
}

.sound-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #4a90e2;
}

.sound-item.correct {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
    animation: correctPulse 0.6s ease;
}

.sound-preview-btn:hover {
    background: #e67e22 !important;
    transform: scale(1.1);
}

/* Story Time Styles */
.story-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.story-page {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.story-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    max-width: 400px;
}

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

.story-controls button {
    min-width: 120px;
}

.story-progress {
    background: rgba(74, 144, 226, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    color: #4a90e2;
    font-weight: 600;
    margin-top: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Word Matching Styles */
.word-matching-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
}

.words-column, .images-column {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.word-item {
    background: #3498db;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 10px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 40px;
}

.word-item:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.word-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.word-item.matched {
    background: #27ae60;
    cursor: default;
}

.word-sound-btn, .image-sound-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-sound-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

.word-sound-btn:hover, .image-sound-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-drop-zone {
    background: #ecf0f1;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 10px;
    margin: 0;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.image-drop-zone.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.image-drop-zone.matched {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.image-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.drop-indicator {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
}

.word-matching-progress {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .word-matching-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .images-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .image-drop-zone {
        min-height: 60px;
        padding: 8px;
    }
    
    .word-item {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .image-emoji {
        font-size: 2.5rem;
    }
}

/* Shape Creation Game Styles */
.shape-creation-container {
    max-width: 900px;
    margin: 0 auto;
}

.creation-workspace {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.shapes-palette {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shape-tool {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    color: white;
    text-align: center;
    user-select: none;
}

.shape-tool:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.shape-tool.selected {
    border-color: #2c3e50;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(44, 62, 80, 0.5);
}

.big-shapes-palette {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.big-shapes-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.big-shape-tool {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.big-shape-tool:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.simple-creation-area {
    max-width: 800px;
    margin: 0 auto;
}

.selected-shape-info {
    text-align: center;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #27ae60;
}

.simple-canvas-area {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.simple-progress {
    text-align: center;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #27ae60;
}

/* Shape Recognition Game Styles */
.shape-recognition-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shape-choices {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shapes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.shape-choice {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shape-choice:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

.shape-feedback {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .shapes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .shape-choice {
        padding: 15px;
        min-height: 140px;
    }
    
    .shape-choice div:first-child {
        font-size: 3.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .shape-choice div:last-child {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    .matching-game-area {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .word-item {
        font-size: 1rem !important;
        padding: 12px !important;
    }
    
    .image-emoji {
        font-size: 2.5rem !important;
    }
}

/* Word Matching Game Styles */
.word-matching-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.matching-game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.words-column, .images-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.word-item {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 20px;
    padding: 20px 25px;
    margin: 15px 0;
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.word-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.word-item.dragging {
    opacity: 0.7;
    transform: rotate(3deg) scale(1.05);
}

.word-text {
    flex: 1;
    text-align: left;
}

.word-sound-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word-sound-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.image-drop-zone {
    background: rgba(255, 255, 255, 0.9);
    border: 4px dashed #bdc3c7;
    border-radius: 25px;
    padding: 30px;
    margin: 15px 0;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-drop-zone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-drop-zone.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.image-drop-zone.matched {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border-style: solid;
}

.image-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.drop-hint {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
}

.matched-word {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 10px 15px;
    margin-top: 15px;
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1rem;
}

.matching-progress {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    border: 3px solid #3498db;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.creation-canvas-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.template-info {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.creation-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #3498db;
}

.creation-progress div {
    margin: 5px 0;
    font-weight: bold;
    color: #2c3e50;
}

/* Responsive adjustments for shape creation */
@media (max-width: 768px) {
    .creation-workspace {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shapes-palette {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .shape-tool {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    
    .shape-tool span {
        font-size: 1.5rem !important;
    }
    
    .shape-tool div {
        font-size: 0.7rem !important;
    }
    
    #shapeCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

/* Sorting Game Styles */
.sorting-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sorting-item {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
}

.sorting-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
}

.sorting-item.dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(0.95);
}

.sorting-emoji {
    font-size: 2.5rem;
    display: block;
}

.sorting-buckets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sorting-bucket {
    background: #ecf0f1;
    border: 3px dashed #bdc3c7;
    border-radius: 20px;
    padding: 15px;
    min-height: 150px;
    transition: all 0.3s ease;
}

.sorting-bucket.drag-over {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.02);
}

.bucket-header {
    background: #4a90e2;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.bucket-content {
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bucket-drop-indicator {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.sorting-item.sorted {
    background: #d5f4e6;
    border-color: #27ae60;
    cursor: default;
    transform: none;
}

.sorting-item.sorted:hover {
    transform: none;
    box-shadow: none;
}

.sorting-progress {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive adjustments for sorting */
@media (max-width: 768px) {
    .sorting-items-container {
        gap: 10px;
        padding: 15px;
    }
    
    .sorting-item {
        min-width: 60px;
        min-height: 60px;
        padding: 10px;
    }
    
    .sorting-emoji {
        font-size: 2rem;
    }
    
    .sorting-buckets-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bucket-header {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

/* Letter Tracing Styles */
.letter-tracing-container {
    max-width: 700px;
    margin: 0 auto;
}

.tracing-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: center;
}

.letter-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.big-letter {
    font-size: 8rem;
    font-weight: bold;
    color: #4a90e2;
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tracing-canvas-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#tracingSvg {
    border: 3px solid #4a90e2;
    border-radius: 15px;
    background: white;
    cursor: crosshair;
    touch-action: none;
}

.tracing-instructions {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.tracing-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.tracing-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #e74c3c;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 0%;
}

#progressText {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a90e2;
    margin: 0;
}

/* SVG Animation for hint */
@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive adjustments for tracing */
@media (max-width: 768px) {
    .tracing-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .big-letter {
        font-size: 6rem;
    }
    
    #tracingSvg {
        width: 180px;
        height: 180px;
    }
    
    .tracing-controls {
        gap: 10px;
    }
    
    .tracing-controls button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .big-letter {
        font-size: 4rem;
    }
    
    #tracingSvg {
        width: 160px;
        height: 160px;
    }
    
    .letter-display, .tracing-canvas-container {
        padding: 15px;
    }
}

/* Grouping Game Styles */
.grouping-container {
    max-width: 900px;
    margin: 0 auto;
}

.items-pool {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pool-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    min-height: 100px;
    padding: 20px;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    background: rgba(236, 240, 241, 0.3);
}

.grouping-item {
    background: white;
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grouping-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    border-color: #2980b9;
}

.grouping-item.dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(0.9);
}

.grouping-item.grouped {
    border-color: #27ae60;
    background: #d5f4e6;
    cursor: default;
    transform: none;
    margin: 5px;
}

.item-emoji {
    font-size: 2rem;
    display: block;
}

.grouping-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.group-zone {
    background: #ecf0f1;
    border: 3px dashed #bdc3c7;
    border-radius: 20px;
    padding: 15px;
    min-height: 180px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.group-zone.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.group-zone.group-complete {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.group-header {
    background: #4a90e2;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
}

.group-zone.group-complete .group-header {
    background: #27ae60;
}

.group-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    position: relative;
    min-height: 80px;
}

.drop-hint {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
}

.group-counter {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

.group-zone.group-complete .group-counter {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.grouping-progress {
    text-align: center;
    padding: 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Responsive adjustments for grouping */
@media (max-width: 768px) {
    .pool-items {
        gap: 10px;
        padding: 15px;
    }
    
    .grouping-item {
        min-width: 50px;
        min-height: 50px;
        padding: 10px;
    }
    
    .item-emoji {
        font-size: 1.5rem;
    }
    
    .grouping-areas {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .group-zone {
        min-height: 150px;
        padding: 12px;
    }
    
    .group-header {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .grouping-item {
        min-width: 45px;
        min-height: 45px;
        padding: 8px;
    }
    
    .item-emoji {
        font-size: 1.3rem;
    }
    
    .drop-hint {
        font-size: 0.8rem;
    }
    
    .group-counter {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Daily Activities Styles */
.daily-activities-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sequence-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.activities-pool {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pool-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
    padding: 20px;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    background: rgba(236, 240, 241, 0.3);
}

.activity-card {
    background: white;
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    border-color: #2980b9;
}

.activity-card.dragging {
    opacity: 0.6;
    transform: rotate(2deg) scale(0.95);
}

.activity-card.placed {
    border-color: #27ae60;
    background: #d5f4e6;
    cursor: default;
    transform: none;
}

.activity-emoji {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.activity-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

.activity-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.sequence-slots {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.sequence-slot {
    background: #ecf0f1;
    border: 3px dashed #bdc3c7;
    border-radius: 15px;
    padding: 15px;
    min-height: 80px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sequence-slot.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.sequence-slot.correct-position {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.sequence-slot.wrong-position {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

.slot-number {
    background: #4a90e2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sequence-slot.correct-position .slot-number {
    background: #27ae60;
}

.sequence-slot.wrong-position .slot-number {
    background: #e74c3c;
}

.slot-content {
    flex: 1;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.drop-placeholder {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.daily-progress {
    text-align: center;
    padding: 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 20px 0;
}

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

/* Responsive adjustments for daily activities */
@media (max-width: 768px) {
    .sequence-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .activity-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .activity-emoji {
        font-size: 2rem;
        min-width: auto;
    }
    
    .activity-name {
        font-size: 1rem;
    }
    
    .activity-description {
        font-size: 0.8rem;
    }
    
    .sequence-slot {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        min-height: 100px;
    }
    
    .slot-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pool-container, .slots-container {
        min-height: 250px;
        padding: 15px;
    }
    
    .activity-card {
        padding: 12px;
    }
    
    .activity-emoji {
        font-size: 1.8rem;
    }
    
    .sequence-slot {
        padding: 12px;
        min-height: 80px;
    }
    
    .daily-controls {
        gap: 10px;
    }
    
    .daily-controls button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Coordination Game Styles */
.coordination-container {
    max-width: 800px;
    margin: 0 auto;
}

.coordination-game-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    position: relative;
}

.coordination-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a90e2;
}

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

/* Ball Catch Game */
.ball-catch-area {
    width: 100%;
    height: 100%;
}

.catch-zone {
    width: 100%;
    height: 350px;
    border: 3px dashed #4a90e2;
    border-radius: 15px;
    position: relative;
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.falling-ball {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
    animation: ballBounce 0.5s ease-in-out infinite alternate;
}

.falling-ball:hover {
    transform: scale(1.2);
}

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

@keyframes ballCatch {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

/* Path Following Game */
.path-follow-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
}

#pathSvg {
    border: 2px solid #4a90e2;
    border-radius: 15px;
    background: white;
    cursor: crosshair;
    touch-action: none;
}

/* Target Practice Game */
.target-practice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.target-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ecf0f1;
    border: 5px solid #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.target-circle.target-active {
    background: #d5f4e6;
    border-color: #27ae60;
    animation: targetPulse 0.5s ease-in-out infinite alternate;
}

.target-circle.target-hit {
    background: #4a90e2;
    border-color: #357abd;
    transform: scale(1.1);
}

.target-center {
    font-size: 3rem;
    transition: all 0.3s ease;
}

.target-circle.target-active .target-center {
    transform: scale(1.2);
}

@keyframes targetPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(39, 174, 96, 0); }
}

/* Responsive adjustments for coordination */
@media (max-width: 768px) {
    .coordination-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-label, .stat-value {
        display: inline;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .catch-zone {
        height: 300px;
    }
    
    .falling-ball {
        font-size: 2rem;
    }
    
    #pathSvg {
        width: 350px;
        height: 250px;
    }
    
    .target-circle {
        width: 120px;
        height: 120px;
    }
    
    .target-center {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .coordination-game-area {
        padding: 20px;
        min-height: 300px;
    }
    
    .catch-zone {
        height: 250px;
    }
    
    .falling-ball {
        font-size: 1.8rem;
    }
    
    #pathSvg {
        width: 300px;
        height: 200px;
    }
    
    .target-circle {
        width: 100px;
        height: 100px;
    }
    
    .target-center {
        font-size: 2rem;
    }
    
    .coordination-controls {
        gap: 10px;
    }
    
    .coordination-controls button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Life Cycle Game Styles */
.lifecycle-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lifecycle-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.stages-pool {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stages-pool .pool-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
    padding: 20px;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    background: rgba(236, 240, 241, 0.3);
}

.stage-card {
    background: white;
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    border-color: #229954;
}

.stage-card.dragging {
    opacity: 0.6;
    transform: rotate(2deg) scale(0.95);
}

.stage-card.placed {
    border-color: #4a90e2;
    background: #e3f2fd;
    cursor: default;
    transform: none;
}

.stage-emoji {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.stage-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

.stage-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.lifecycle-sequence {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sequence-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.lifecycle-slot {
    background: #ecf0f1;
    border: 3px dashed #bdc3c7;
    border-radius: 15px;
    padding: 15px;
    min-height: 80px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.lifecycle-slot.drag-over {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.02);
}

.lifecycle-slot.correct-position {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.lifecycle-slot.wrong-position {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

.lifecycle-slot .slot-number {
    background: #27ae60;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lifecycle-slot.correct-position .slot-number {
    background: #4a90e2;
}

.lifecycle-slot.wrong-position .slot-number {
    background: #e74c3c;
}

.lifecycle-slot .slot-content {
    flex: 1;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.lifecycle-slot .drop-placeholder {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.lifecycle-slot .arrow {
    position: absolute;
    right: -25px;
    font-size: 1.5rem;
    color: #27ae60;
    z-index: 5;
}

.lifecycle-progress {
    text-align: center;
    padding: 20px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 15px;
    color: #27ae60;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 20px 0;
}

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

/* Responsive adjustments for lifecycle */
@media (max-width: 768px) {
    .lifecycle-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stage-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stage-emoji {
        font-size: 2rem;
        min-width: auto;
    }
    
    .stage-name {
        font-size: 1rem;
    }
    
    .stage-description {
        font-size: 0.8rem;
    }
    
    .lifecycle-slot {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        min-height: 100px;
    }
    
    .lifecycle-slot .slot-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lifecycle-slot .arrow {
        position: static;
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .stages-pool .pool-container, .sequence-container {
        min-height: 250px;
        padding: 15px;
    }
    
    .stage-card {
        padding: 12px;
    }
    
    .stage-emoji {
        font-size: 1.8rem;
    }
    
    .lifecycle-slot {
        padding: 12px;
        min-height: 80px;
    }
    
    .lifecycle-controls {
        gap: 10px;
    }
    
    .lifecycle-controls button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Instruments Game Styles */
.instruments-container {
    max-width: 900px;
    margin: 0 auto;
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.instrument-card {
    background: white;
    border: 3px solid #4a90e2;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.instrument-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    border-color: #357abd;
}

.instrument-card.playing {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    transform: scale(1.1);
    animation: musicPulse 0.5s ease-in-out infinite alternate;
}

.instrument-card.quiz-correct {
    background: #d4edda;
    border-color: #27ae60;
    animation: correctAnswer 0.6s ease-in-out;
}

.instrument-card.quiz-wrong {
    background: #f8d7da;
    border-color: #e74c3c;
    animation: wrongAnswer 0.5s ease-in-out;
}

.instrument-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.instrument-name {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.instrument-card.playing .instrument-name {
    color: white;
}

.instrument-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.instrument-card.playing .instrument-description {
    color: rgba(255, 255, 255, 0.9);
}

.play-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instrument-card:hover .play-indicator {
    opacity: 1;
}

.instrument-card.playing .play-indicator {
    opacity: 1;
    animation: soundWave 0.5s ease-in-out infinite alternate;
}

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

@keyframes musicPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4); }
    100% { box-shadow: 0 0 0 20px rgba(74, 144, 226, 0); }
}

@keyframes soundWave {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #27ae60; }
    100% { transform: scale(1); }
}

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

/* Responsive adjustments for instruments */
@media (max-width: 768px) {
    .instruments-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .instrument-card {
        padding: 20px;
    }
    
    .instrument-emoji {
        font-size: 3rem;
    }
    
    .instrument-name {
        font-size: 1.1rem;
    }
    
    .instrument-description {
        font-size: 0.8rem;
    }
    
    .instruments-controls {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .instruments-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instrument-card {
        padding: 15px;
    }
    
    .instrument-emoji {
        font-size: 2.5rem;
    }
    
    .instrument-name {
        font-size: 1rem;
    }
    
    .instruments-controls button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Rhythm Game Styles */
.rhythm-container {
    max-width: 800px;
    margin: 0 auto;
}

.rhythm-display {
    background: rgba(231, 76, 60, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.beat-lights {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.beat-light {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ecf0f1;
    border: 3px solid #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.beat-light.active {
    background: #e74c3c;
    border-color: #c0392b;
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
}

.rhythm-status {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 20px;
}

.rhythm-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.drum-pad {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.drum-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 5px solid #a93226;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.drum-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.drum-button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.drum-emoji {
    font-size: 3rem;
    margin-bottom: 5px;
}

.drum-text {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.pause-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border: 5px solid #6c7b7d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
}

.pause-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(149, 165, 166, 0.4);
}

.pause-button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.pause-emoji {
    font-size: 3rem;
    margin-bottom: 5px;
}

.pause-text {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.rhythm-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.rhythm-progress div {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.rhythm-progress span {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Responsive adjustments for rhythm */
@media (max-width: 768px) {
    .beat-lights {
        gap: 15px;
    }
    
    .beat-light {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .drum-button {
        width: 120px;
        height: 120px;
    }
    
    .drum-emoji {
        font-size: 2.5rem;
    }
    
    .drum-text {
        font-size: 0.8rem;
    }
    
    .rhythm-controls {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .beat-lights {
        gap: 10px;
    }
    
    .beat-light {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .drum-button {
        width: 100px;
        height: 100px;
    }
    
    .drum-emoji {
        font-size: 2rem;
    }
    
    .rhythm-status {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.pulse {
    animation: pulse 1s ease infinite;
}

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