/**
 * Kids First Class - Main Stylesheet
 * 
 * Custom styles matching the screenshot design
 */

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
    padding-bottom: 20px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}


.sour-gummy {
    font-family: "Sour Gummy", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  }

.container-fluid {
    padding: 15px;
}

/* Header Styles */
.main-header {
    margin-bottom: 15px;
}

.header-top {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 30vw;
    height: auto;
}

.header-icons {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.8;
}

.header-icons-row {
    padding: 15px 0 0 0;
    text-align: center;
    background-color: #f0f8ff;
}
.header-separator {
    height: 2px;
    background: linear-gradient(90deg, #e0f2fe 0%, #dbeafe 50%, #e0f2fe 100%);
}

.icon-circles {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.icon-circle.yellow {
    background-color: #fbbf24;
}

.icon-circle.blue {
    background-color: #60a5fa;
}

.icon-circle.red {
    background-color: #ef4444;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-circle.red:hover {
    transform: scale(1.1);
}

.icon-circle.red.active {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
}

/* Welcome Section */
.welcome-section {
    background-color: #f0f8ff;
}
.speech-bubble {
    background-color: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.speech-bubble.left::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.speech-bubble.right::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.speech-bubble h4 {
    font-size: 1.5rem;
}
.speech-bubble p {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

/* Music Box Section */
.music-box-section {
    background-color: #dbeafe;
    padding: 20px 15px;
    border-radius: 20px;
    margin: 15px;
}


.categories-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.category-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.category-btn:hover {
    transform: scale(1.05);
}

.category-btn.white {
    background-color: white;
    color: #1e40af;
}

.category-btn.blue {
    background-color: #3b82f6;
    color: white;
}

/* Song Section */
.oval {
    aspect-ratio: 2/1;
    width: 100%;
    background-color: #fff;
    border-radius: 50%;
  }
.song-section {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 20px 15px;
    border-radius: 20px;
    margin: 15px;
}

.song-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.song-header i {
    color: #1e40af;
}

.song-header h3 {
    font-weight: bold;
    color: #1e40af;
    margin: 0;
}

.song-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-lyrics {
    background-color: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-lyrics:hover {
    background-color: rgba(255,255,255,1);
}

.song-lyrics p {
    margin: 0;
    color: #333;
    line-height: 1.8;
}

.lyrics-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.lyrics-content.collapsed {
    max-height: 3.6em; /* Approximately 2 lines with line-height 1.8 and font-size fs-5 */
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.lyrics-content.expanded {
    max-height: 5000px; /* Large enough to show all content */
    mask-image: none;
    -webkit-mask-image: none;
}

.treasure-chest-small {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    pointer-events: none;
}

.video-player-container {
    position: relative;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #1e40af;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #3b82f6;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    z-index: 2;
}

.play-button-large:hover {
    transform: scale(1.1);
}

.video-nav-left,
.video-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 92, 246, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
}

.video-nav-left {
    left: 10px;
}

.video-nav-right {
    right: 10px;
}

.video-heart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    z-index: 2;
    transition: transform 0.2s, filter 0.2s, color 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.video-heart:hover {
    transform: scale(1.2);
}

.video-heart.liked {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
    transform: scale(1.1);
    text-shadow: none;
}

.video-actions {
    display: flex;
    gap: 30px;
}

.btn-audio-only,
.btn-learn-more {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-audio-only {
    background-color: #8b5cf6;
    color: white;
}

.btn-learn-more {
    background-color: #3b82f6;
    color: white;
}

.btn-audio-only:hover,
.btn-learn-more:hover {
    transform: scale(1.05);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    z-index: 10000;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.video-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-modal-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.game-modal.active {
    display: flex;
}

.game-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.game-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    z-index: 10000;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.game-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.game-modal-content .game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Presentation Modal (Video + Pictures with Audio) */
.presentation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.presentation-modal.active {
    display: flex;
}

.presentation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.presentation-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    z-index: 10000;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.presentation-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.presentation-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.presentation-video-container,
.presentation-picture-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.presentation-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.presentation-picture {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    animation: pictureFadeIn 0.5s ease-in;
}

@keyframes pictureFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Picture Modal */
.picture-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.picture-modal.active {
    display: flex;
}

.picture-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.picture-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 10000;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.picture-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.picture-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.picture-modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Audio Modal */
.audio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.audio-modal.active {
    display: flex;
}

.audio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(4px);
}

.audio-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 10000;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 8px solid #fbbf24;
    animation: audioModalAppear 0.3s ease-out;
}

@keyframes audioModalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.audio-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.audio-modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.audio-player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.audio-player-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    animation: musicPulse 2s ease-in-out infinite;
    border: 6px solid white;
}

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

.audio-player-title {
    font-size: 28px;
    color: #7c3aed;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.audio-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.audio-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.audio-btn-play {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.audio-btn-pause {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.audio-btn:active {
    transform: scale(0.95);
}

.audio-progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-progress-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    border: 4px solid white;
    cursor: grab;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.audio-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #7c3aed;
    font-family: "Sour Gummy", sans-serif;
}

/* Learn More Modal */
.learn-more-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.learn-more-modal.active {
    display: flex;
}

.learn-more-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(4px);
}

.learn-more-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    z-index: 10000;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 8px solid #3b82f6;
    animation: learnMoreModalAppear 0.3s ease-out;
    overflow-y: auto;
}

@keyframes learnMoreModalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.learn-more-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.learn-more-modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.learn-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.learn-more-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    animation: lightbulbGlow 2s ease-in-out infinite;
    border: 6px solid white;
}

@keyframes lightbulbGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
    }
}

.learn-more-title {
    font-size: 32px;
    color: #1e40af;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.learn-more-text {
    font-size: 20px;
    color: #1e3a8a;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.learn-more-text p {
    margin: 0 0 15px 0;
}

.learn-more-text p:last-child {
    margin-bottom: 0;
}

/* Pictures Section */
.pictures-section {
    background-color: #fce7f3;
    padding: 20px 15px;
    border-radius: 20px;
    margin: 15px;
}

.pictures-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pictures-section .section-header i {
    font-size: 24px;
    color: #ec4899;
}

.pictures-section .section-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.pictures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.picture-item {
    aspect-ratio: 16 / 9;
    background-color: white;
    border: 5px solid #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.picture-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.picture-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

/* Game Section */
.game-section {
    background-color: #dbeafe;
    padding: 20px 15px;
    border-radius: 20px;
    margin: 15px;
}

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

.game-text {
    flex: 1;
}

.game-text p {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.zac-character {
    width: 80px;
    height: 80px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zac-character .character-placeholder {
    color: white;
    font-weight: bold;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.game-header i {
    color: #1e40af;
}

.game-header h3 {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.game-prompt {
    margin-bottom: 20px;
}

.game-prompt p {
    color: #333;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.game-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.option-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.option-circle:hover {
    transform: scale(1.1);
}

.option-circle.yellow {
    background-color: #fbbf24;
}

.option-circle.brown {
    background-color: #92400e;
}

.game-feedback {
    text-align: center;
}

.game-feedback p {
    font-size: 18px;
    color: #10b981;
    font-weight: bold;
    margin: 0;
}

/* Game Container */
.game-container {
    position: relative;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    overflow: hidden;
    border: 4px solid #f59e0b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.game-container.game-running {
    border-color: #10b981;
}

/* Game Start Screen */
.game-start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    z-index: 10;
}

.game-start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.game-start-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    animation: gameIconBounce 2s ease-in-out infinite;
    border: 6px solid white;
}

@keyframes gameIconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.game-start-btn {
    padding: 20px 50px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 6px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.game-start-btn:active {
    transform: scale(0.95);
}

.game-start-btn i {
    font-size: 32px;
}

.game-start-hint {
    font-size: 18px;
    color: #7c3aed;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Game Iframe */
.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Guide Section */
.guide-section {
    background-color: #d1fae5;
    border-radius: 20px;
    margin: 15px;
}
.guide-section-inner {
    padding: 20px 15px;
}

.guide-header-wrap {
    border-radius: 20px 20px 0 0;
}
.guide-header {
    background-image: url(/assets/images/kfc_cover.png);
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: contain;
}

.guide-header h3 {
    font-weight: bold;
    color: #333;
}

.guide-subtitle {
    color: #666;
}

.guide-item {
    margin-bottom: 15px;
}

.guide-item strong {
    display: block;
    font-size: 16px;
    color: #059669;
    margin-bottom: 5px;
}

.guide-item p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.lesson-parent-guide {
    max-height: calc(1.6em * 6); /* 2 lines based on line-height */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

.lesson-parent-guide:not(.expanded) {
    max-height: calc(1.6em * 6);
}

.lesson-parent-guide.expanded {
    max-height: none;
}

.lesson-parent-guide.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, rgba(209, 250, 229, 0) 0%, rgba(209, 250, 229, 1) 100%);
    pointer-events: none;
}

.btn-more.hidden {
    display: none;
}

.guide-actions {
    display: flex;
    gap: 30px;
}

.btn-play-guide,
.btn-more {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-play-guide {
    background-color: #059669;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-more {
    background-color: #3b82f6;
    color: white;
}

.btn-play-guide:hover,
.btn-more:hover {
    transform: scale(1.05);
}

/* Progress Section */
.progress-section {
    background-color: #dbeafe;
    padding: 20px 15px;
    border-radius: 20px;
    margin: 15px;
}

.progress-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.progress-section .section-header i {
    font-size: 24px;
    color: #1e40af;
}

.progress-section .section-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.progress-container {
    text-align: center;
}

.progress-bar-wrapper {
    width: 100%;
    height: 30px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.progress-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.progress-message {
    color: #333;
    margin: 0;
}

/* Next Song Section */
.next-song-section {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 50%, #60a5fa 100%);
    padding: 30px 0;
    border-radius: 20px;
    margin: 15px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.next-song-section .container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.next-song-section .section-title {
    font-size: 28px;
    font-weight: 400;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Swiper Carousel Styles */
.lesson-swiper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 0 50px 0;
    overflow: hidden !important;
    position: relative;
    box-sizing: border-box;
    margin: 0;
}

.lesson-swiper .swiper-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.lesson-swiper .swiper-wrapper {
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.lesson-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
    max-width: 200px;
}

.lesson-thumbnail-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.lesson-thumbnail-wrapper:not(.active) {
    transform: scale(0.75);
    opacity: 0.8;
}

.lesson-thumbnail-wrapper.active {
    transform: scale(1);
    z-index: 2;
}

.lesson-thumbnail {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.lesson-thumbnail-wrapper.active .lesson-thumbnail {
    width: 200px;
    height: 120px;
    border-width: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lesson-thumbnail-wrapper:not(.active) .lesson-thumbnail {
    width: 100px;
    height: 100px;
}

.lesson-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-overlay i {
    margin-left: 3px;
}

/* Swiper Pagination Styles */
.lesson-swiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 20px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

.lesson-swiper .swiper-pagination-bullets {
    /* display: inline-flex !important; */
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    max-width: fit-content;
    margin: 20px auto 0 auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Limit pagination bullets to 4 */
.lesson-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 !important;
}

/* Hide bullets beyond the 4th one */
.lesson-swiper .swiper-pagination-bullet:nth-child(n+5) {
    display: none;
}

.lesson-swiper .swiper-pagination-bullet-active {
    background-color: white;
    width: 12px;
    height: 12px;
    transform: scale(1.2);
}

.lesson-swiper .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    background-color: #f0f8ff;
    padding: 30px 15px;
    text-align: center;
    margin-top: 30px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-cube {
    font-size: 48px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.footer-url {
    font-size: 14px;
    color: #3b82f6;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .game-options {
        gap: 20px;
    }
    
    .option-circle {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .thumbnail-placeholder.large {
        width: 150px;
        height: 100px;
    }
    
    .video-modal-content {
        width: 95%;
        border-radius: 10px;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .picture-modal-content {
        width: 95%;
        border-radius: 10px;
    }
    
    .picture-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .picture-modal-image {
        max-height: 85vh;
    }
    
    .audio-modal-content {
        width: 95%;
        padding: 30px 20px;
        border-radius: 25px;
        border-width: 6px;
    }
    
    .audio-player-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
        border-width: 5px;
    }
    
    .audio-player-title {
        font-size: 24px;
    }
    
    .audio-btn {
        width: 70px;
        height: 70px;
        font-size: 30px;
        border-width: 4px;
    }
    
    .audio-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
        border-width: 2px;
    }
    
    .audio-progress-bar {
        height: 10px;
    }
    
    .audio-progress-handle {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    .audio-time {
        font-size: 14px;
    }
    
    .learn-more-modal-content {
        width: 95%;
        padding: 30px 20px;
        border-radius: 25px;
        border-width: 6px;
        max-height: 85vh;
    }
    
    .learn-more-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        border-width: 5px;
    }
    
    .learn-more-title {
        font-size: 26px;
    }
    
    .learn-more-text {
        font-size: 18px;
        padding: 15px;
        border-width: 3px;
    }
    
    .learn-more-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
        border-width: 2px;
    }
    
    .game-start-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
        border-width: 5px;
    }
    
    .game-start-btn {
        padding: 15px 35px;
        font-size: 22px;
        border-width: 4px;
    }
    
    .game-start-btn i {
        font-size: 26px;
    }
    
    .game-start-hint {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
    }
    .logo img {
        max-width: 14vw;
    }

    .speech-bubble h4 {
        font-size: 2.2rem;
    }
    .speech-bubble p {
        font-size: 1.5rem;
        margin: 0;
        color: #333;
    }
}
@media (min-width: 1200px) {
	
}
