/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only - voor SEO H1 titels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Global mobile fix - prevent horizontal overflow on containers */
section,
div,
article,
header,
footer,
nav,
main {
    max-width: 100vw;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C44569;
    --accent-color: #F8B500;
    --bg-light: #FFF5F7;
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 64px; /* ruimte voor de subtiele footer-toolbar */
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Header Styles
   ======================================== */
.main-header {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.header-image {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 50%, #FECFEF 100%);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    animation: bounceIn 1s ease-out;
}

.logo-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--secondary-color);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Music Toggle Button in Footer */
.footer-music-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 91 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.footer-music-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
}

.footer-music-btn:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.12);
}

.footer-music-btn.muted {
    opacity: 0.5;
}

.music-icon {
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.footer-music-btn:active .music-icon {
    transform: scale(0.9);
}

/* Share Button in Footer */
.footer-share-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 107, 157, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 91 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.footer-share-btn:hover {
    opacity: 1;
    background: rgba(255, 107, 157, 0.25);
    transform: scale(1.1);
}

.footer-share-btn:active {
    transform: scale(0.95);
    background: rgba(255, 107, 157, 0.3);
}

.share-icon {
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
    pointer-events: none;
    font-size: 1.1rem;
}

.footer-share-btn:active .share-icon {
    transform: scale(0.9) rotate(15deg);
}

/* Mobile: larger touch target */
@media (max-width: 768px) {
    .footer-music-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
        opacity: 0.8;
    }
    
    .footer-music-btn:active {
        opacity: 1;
    }
    
    .footer-share-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
        opacity: 0.9;
    }
    
    .footer-share-btn:active {
        opacity: 1;
    }
}

/* ========================================
   Navigation Styles
   ======================================== */
.main-nav {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 0.5rem;
}

.nav-row {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Fredoka', sans-serif;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav-btn:active::before {
    left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-btn:hover .nav-icon,
.nav-btn.active .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   Main Content Styles
   ======================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 280px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
    min-height: 200px;
    opacity: 1;
    visibility: hidden;
}

.content-section.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Fallback: show home section if JS fails */
.no-js .content-section#home,
.content-section#home.active {
    display: block;
    visibility: visible;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* ========================================
   Video Container Styles
   ======================================== */
.video-container {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.youtube-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: var(--border-radius);
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-container {
        margin: 0 auto 1.5rem auto;
        padding: 0 0.5rem;
    }
}

/* Make video container clickable */
.video-container {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Fullscreen Video Overlay */
.fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-video-overlay.active {
    display: flex;
}

.fullscreen-video-overlay.active ~ .main-nav,
.fullscreen-video-overlay.active ~ .main-header {
    display: none !important;
}

.fullscreen-video-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    z-index: 10002;
}

.fullscreen-video-close-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-video-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-video-close-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.fullscreen-video-container {
    width: 100%;
    max-width: 95vw;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-youtube-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Responsive fullscreen video */
@media (max-width: 768px) {
    .fullscreen-video-close-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .fullscreen-video-container {
        max-width: 100vw;
        max-height: 85vh;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .fullscreen-video-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .fullscreen-video-container {
        max-height: 80vh;
        padding: 0 0.25rem;
    }
}

/* ========================================
   Home Section Styles
   ======================================== */
.welcome-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-animation {
    position: relative;
    height: 150px;
    margin-bottom: 2rem;
}

.bouncing-ball {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: bounce 2s infinite ease-in-out;
}

.ball1 {
    background: #FF6B9D;
    left: 20%;
    animation-delay: 0s;
}

.ball2 {
    background: #4ECDC4;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.3s;
}

.ball3 {
    background: #FFE66D;
    right: 20%;
    animation-delay: 0.6s;
}

.welcome-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: white;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-card::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.5s;
}

.home-card:active::before {
    opacity: 1;
}

.home-card:hover,
.home-card:active {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

.home-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.home-card p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
}

/* ========================================
   Colors Section Styles
   ======================================== */
.colors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.color-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.color-card.special-color {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.color-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -0.5rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.color-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.color-card:active::after {
    opacity: 0.2;
    animation: pulse 0.5s ease-out;
}

.color-card:hover,
.color-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.color-card:active .color-circle {
    transform: scale(1.2) rotate(360deg);
}

.color-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.sound-icon {
    font-size: 1.25rem;
    opacity: 0.6;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.color-card:active .sound-icon {
    transform: scale(1.3);
    opacity: 1;
}

/* Color specific styles */
.color-circle.red { background: #F44336; }
.color-circle.blue { background: #2196F3; }
.color-circle.yellow { background: #FFE66D; }
.color-circle.green { background: #4CAF50; }
.color-circle.orange { background: #FF9800; }
.color-circle.purple { background: #A29BFE; }
.color-circle.pink { background: #FFB6C1; }
.color-circle.brown { background: #8B4513; }
.color-circle.white { 
    background: #FFFFFF; 
    border: 3px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-circle.black { 
    background: #000000; 
    border: 2px solid #333333;
}

.color-info {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.color-info p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.color-info strong {
    color: var(--primary-color);
}

/* ========================================
   Color Mixing Section Styles
   ======================================== */
.color-mixing-section {
    max-width: 1000px;
    margin: 3rem auto 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.mixing-toggle-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 60px;
}

/* Hide toggle button on mobile - show mixer directly */
@media (max-width: 768px) {
    .mixing-toggle-btn {
        display: none !important;
    }
    
    .color-mixer {
        display: block !important;
        margin-top: 1rem;
        visibility: visible !important;
    }
    
    .color-mixer.hidden {
        display: block !important;
        visibility: visible !important;
    }
}

.mixing-toggle-btn:hover,
.mixing-toggle-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mixing-icon {
    font-size: 1.5rem;
}

.color-mixer {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.5s ease-in;
    display: none;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.color-mixer.hidden {
    display: none !important;
}

.mixer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mixer-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
}

.mixer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.color-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.color-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.color-selector label {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.selected-color-preview {
    width: 100%;
    height: 120px;
    border-radius: var(--border-radius);
    border: 3px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f5f5f5;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.selected-color-preview.has-color {
    border: 3px solid #333;
}

.select-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.mix-symbol {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.color-picker-grid.open {
    max-height: 300px;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.color-picker-item {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.color-picker-item:hover {
    transform: scale(1.15);
    border-color: #333;
    box-shadow: var(--shadow-md);
}

.color-picker-item:active {
    transform: scale(1.1);
}

.color-picker-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
    transform: scale(1.1);
}

.mixing-animation-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 245, 245, 0.8));
    border-radius: var(--border-radius);
    min-height: 250px;
}

.mix-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 50px;
    user-select: none;
}

.mix-btn:hover:not(:disabled),
.mix-btn:active:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.mix-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mix-icon {
    font-size: 1.25rem;
}

.mixing-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-drop {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease-out;
}

.color-drop-1 {
    left: 20%;
    top: 20%;
}

.color-drop-2 {
    right: 20%;
    top: 20%;
}

.color-drop.visible {
    opacity: 1;
    animation: dropIntoCenter 1s ease-out forwards;
}

.mixing-result {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ddd;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease-out;
    border: 4px solid white;
}

.result-circle.mixing {
    animation: mixPulse 1.5s ease-in-out;
}

.result-text {
    position: absolute;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.mixing-result-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    animation: fadeInUp 0.5s ease-out;
}

.result-color-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-color-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    animation: resultPop 0.6s ease-out;
}

.result-color-name {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-dark);
}

.result-explanation {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

@keyframes dropIntoCenter {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(0, 60px) scale(0.8);
    }
    100% {
        transform: translate(0, 80px) scale(0.3);
        opacity: 0;
    }
}

@keyframes mixPulse {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1) rotate(10deg);
    }
    50% {
        transform: scale(1.15) rotate(-10deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes resultPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .color-selectors {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .mix-symbol {
        font-size: 2rem;
        transform: rotate(90deg);
        margin: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .color-selectors {
        justify-items: stretch;
    }
    
    .color-selector {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0.25rem 0.5rem 0.25rem;
        box-sizing: border-box;
        margin: 0;
    }
    
    .color-picker-grid.open {
        padding: 1rem 0.25rem 0.5rem 0.25rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .color-picker-item {
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1;
        padding: 0;
        margin: 0;
        border-width: 2px;
    }
    
    .selected-color-preview {
        height: 140px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mixing-visual {
        width: 150px;
        height: 150px;
        max-width: 100%;
    }
    
    .result-circle {
        width: 100px;
        height: 100px;
        max-width: 100%;
    }
    
    .mix-btn {
        padding: 1.25rem 2.5rem;
        font-size: 1.15rem;
        width: auto;
        max-width: 90%;
    }
    
    .color-mixer {
        padding: 1rem 0.75rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .mixer-container {
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Prevent hover effects on mobile */
    .color-picker-item:hover {
        transform: none;
    }
    
    .color-picker-item:active {
        transform: scale(0.95);
    }
    
    /* Ensure everything stays within viewport */
    .main-content {
        padding: 1rem 0.75rem;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .color-mixing-section {
        padding: 0;
        margin: 2rem 0.5rem 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
    }
    
    .selected-color-preview {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Force all content to stay within viewport */
    .color-selector,
    .mixer-container,
    .mixing-animation-area,
    .mixing-result-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 360px) {
    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        padding: 0.75rem 0.1rem 0.5rem 0.1rem;
    }
    
    .color-picker-grid.open {
        padding: 1rem 0.1rem 0.5rem 0.1rem;
    }
    
    .color-mixer {
        padding: 1rem 0.5rem;
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
}

/* ========================================
   Color Picker Modal Styles
   ======================================== */
.color-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.color-modal-overlay.active {
    display: flex;
}

.color-modal {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    position: relative;
    box-sizing: border-box;
}

.color-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.color-modal-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.color-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    touch-action: manipulation;
    flex-shrink: 0;
}

.color-modal-close:hover,
.color-modal-close:active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.color-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
}

.color-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.color-modal-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    min-height: 80px;
}

.color-modal-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: #333;
}

.color-modal-item:active {
    transform: translateY(-2px) scale(1.02);
}

.color-modal-item-color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.color-modal-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.color-modal-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
    background: rgba(255, 107, 157, 0.1);
}

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

@media (max-width: 768px) {
    .color-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-top: auto;
    }
    
    .color-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .color-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .color-modal-item {
        min-height: 100px;
        padding: 0.5rem;
    }
    
    .color-modal-item-color {
        width: 70px;
        height: 70px;
    }
    
    .color-modal-item-name {
        font-size: 1rem;
    }
    
    .color-modal-header {
        padding: 1.25rem;
    }
    
    .color-modal-content {
        padding: 1.25rem;
    }
    
    .color-modal-item:hover {
        transform: none;
    }
    
    .color-modal-item:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .color-modal-grid {
        gap: 0.75rem;
    }
    
    .color-modal-item {
        min-height: 90px;
    }
    
    .color-modal-item-color {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   Welcome Modal Styles
   ======================================== */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.4s ease-out;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
    pointer-events: auto;
}

.welcome-modal-overlay.active {
    display: flex;
}

.welcome-modal {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 50%, #FFFFFF 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: welcomeModalIntro 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    box-sizing: border-box;
    border: 4px solid rgba(33, 150, 243, 0.3);
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    z-index: 10002;
    pointer-events: auto;
}

.welcome-modal-header {
    padding: 1.5rem 1.5rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(144, 202, 249, 0.15));
    gap: 0.5rem;
    flex-wrap: wrap;
}

.welcome-rainbow {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.3s forwards;
}

.welcome-modal-title {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: #1976D2;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    flex: 1;
    min-width: 0;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.welcome-modal-content {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.welcome-logo {
    width: clamp(120px, 25vw, 180px);
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    animation: logoPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.welcome-modal-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
}

.welcome-modal-text strong {
    color: #1976D2;
    font-weight: 700;
}

/* Cookie Consent Section - Subtiel geïntegreerd */
.cookie-consent-section {
    width: 100%;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    margin: 1rem 0 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out 0.85s forwards;
    border: 2px solid rgba(33, 150, 243, 0.15);
}

.cookie-consent-text {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

.welcome-modal-btn {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto 0;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: buttonPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
    position: relative;
    z-index: 10002;
    pointer-events: auto !important;
}

.welcome-modal-btn:hover,
.welcome-modal-btn:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.welcome-modal-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.welcome-modal-btn span {
    display: block;
    line-height: 1.2;
}

@keyframes welcomeModalIntro {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    60% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px) rotate(-10deg);
    }
    60% {
        transform: scale(1.1) translateY(-5px) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonPopIn {
    0% {
        opacity: 0.3;
        transform: scale(0.8) translateY(10px);
        pointer-events: auto;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-3px);
        pointer-events: auto;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }
}

/* Ensure button is always clickable, even during animation */
.welcome-modal-btn {
    pointer-events: auto !important;
}

.welcome-modal-overlay.active .welcome-modal-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10003 !important;
}

/* Ensure modal content doesn't block button */
.welcome-modal-content {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .welcome-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-top: auto;
        border-width: 3px;
    }
    
    .welcome-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .welcome-modal-header {
        padding: 1.25rem 1.25rem 0.5rem;
        gap: 0.4rem;
    }
    
    .welcome-modal-content {
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }
    
    .welcome-logo {
        width: clamp(100px, 20vw, 150px);
    }
    
    .welcome-rainbow {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .welcome-modal-text {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        line-height: 1.7;
    }
    
    .welcome-modal-btn {
        padding: 1.1rem 2rem;
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        max-width: 100%;
    }
    
    .welcome-modal-btn:hover {
        transform: none;
    }
    
    .welcome-modal-btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .welcome-modal-header {
        padding: 1rem 1rem 0.5rem;
        gap: 0.3rem;
    }
    
    .welcome-modal-content {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .welcome-modal-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .welcome-modal-btn {
        padding: 1rem 1.75rem;
        font-size: 1.1rem;
    }
    
    .welcome-logo {
        width: clamp(90px, 18vw, 130px);
    }
    
    .welcome-rainbow {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }
}

/* ========================================
   Share Modal Styles
   ======================================== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.share-modal-overlay.active {
    display: flex;
}

.share-modal {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFFFF 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    position: relative;
    box-sizing: border-box;
    border: 3px solid rgba(255, 107, 157, 0.2);
}

.share-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 182, 193, 0.1));
}

.share-modal-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
    flex: 1;
}

.share-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    touch-action: manipulation;
    flex-shrink: 0;
    font-weight: 300;
}

.share-modal-close:hover,
.share-modal-close:active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.share-modal-content {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
    text-align: center;
}

.share-modal-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    min-height: 120px;
    box-shadow: var(--shadow-sm);
}

.share-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.share-button:active {
    transform: translateY(-2px) scale(1.02);
}

.share-button-icon {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.share-button:hover .share-button-icon {
    transform: scale(1.2) rotate(10deg);
}

.share-button-text {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Fredoka', sans-serif;
}

.share-facebook {
    border-color: rgba(59, 89, 152, 0.2);
}

.share-facebook:hover {
    background: rgba(59, 89, 152, 0.05);
    border-color: #3b5998;
}

.share-whatsapp {
    border-color: rgba(37, 211, 102, 0.2);
}

.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.05);
    border-color: #25d366;
}

.share-twitter {
    border-color: rgba(29, 161, 242, 0.2);
}

.share-twitter:hover {
    background: rgba(29, 161, 242, 0.05);
    border-color: #1da1f2;
}

.share-messenger {
    border-color: rgba(0, 132, 255, 0.2);
}

.share-messenger:hover {
    background: rgba(0, 132, 255, 0.05);
    border-color: #0084ff;
}


.share-modal-footer {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 107, 157, 0.1);
}

@media (max-width: 768px) {
    .share-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-top: auto;
    }
    
    .share-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .share-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .share-button {
        min-height: 100px;
        padding: 1.25rem 0.75rem;
    }
    
    .share-button-icon {
        font-size: 2rem;
    }
    
    .share-button-text {
        font-size: 0.9rem;
    }
    
    .share-modal-header {
        padding: 1.25rem;
    }
    
    .share-modal-content {
        padding: 1.5rem 1.25rem;
    }
    
    .share-button:hover {
        transform: none;
    }
    
    .share-button:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .share-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .share-button {
        min-height: 90px;
        padding: 1rem 0.5rem;
    }
    
    .share-button-icon {
        font-size: 1.75rem;
    }
    
    .share-button-text {
        font-size: 0.85rem;
    }
    
    .share-modal-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   Numbers Section Styles
   ======================================== */
.numbers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.number-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.number-card:active::before {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

.number-card:hover,
.number-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.number-display {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.number-card:active .number-display {
    transform: scale(1.3) rotate(10deg);
}

.number-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 120px;
    position: relative;
    z-index: 1;
}

.number-dots .dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.number-card:active .dot {
    transform: scale(1.5) rotate(360deg);
    animation: dotBounce 0.5s ease-out;
}

.number-word {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

/* ========================================
   Fruits Section Styles
   ======================================== */
.fruits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.fruit-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.fruit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.fruit-card:active::before {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

.fruit-card:hover,
.fruit-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.fruit-emoji {
    font-size: clamp(4rem, 8vw, 5rem);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.fruit-card:active .fruit-emoji {
    transform: scale(1.3) rotate(10deg);
    animation: fruitBounce 0.6s ease-out;
}

.fruit-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.fruit-hint {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.fruit-info {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.fruit-info p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.fruit-info strong {
    color: var(--primary-color);
}

@keyframes fruitBounce {
    0%, 100% {
        transform: translateY(0) scale(1.3) rotate(10deg);
    }
    50% {
        transform: translateY(-30px) scale(1.4) rotate(15deg);
    }
}

/* ========================================
   Animals Section Styles
   ======================================== */
.animals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.animal-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.animal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 218, 0, 0.1), rgba(255, 107, 157, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.animal-card:active::before {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

.animal-card:hover,
.animal-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.animal-emoji {
    font-size: clamp(4rem, 8vw, 5rem);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: inline-block;
}

/* Thumbnails voor pooldieren SVG's in de dieren-sectie */
.animal-emoji img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.animal-card:active .animal-emoji {
    transform: scale(1.3) rotate(10deg);
    animation: animalJump 0.6s ease-out;
}

.animal-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.animal-sound {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
}

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

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--confetti-color);
    border-radius: 50%;
    animation: confettiFall linear;
}

/* ========================================
   Animations
   ======================================== */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

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

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes animalJump {
    0%, 100% {
        transform: translateY(0) scale(1.3) rotate(10deg);
    }
    50% {
        transform: translateY(-30px) scale(1.4) rotate(15deg);
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-image {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }
    
    .main-nav {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-row {
        gap: 0.25rem;
    }
    
    .nav-btn {
        min-height: 55px;
        padding: 0.4rem 0.2rem;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    .nav-text {
        font-size: 0.6rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .colors-container,
    .numbers-container,
    .fruits-container,
    .animals-container,
    .shapes-container,
    .alphabet-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .shape-card,
    .music-card {
        min-height: 180px;
        padding: 1.25rem 0.75rem;
    }
    
    .color-card,
    .number-card,
    .fruit-card,
    .animal-card {
        min-height: 160px;
        padding: 1.25rem 0.75rem;
    }
    
    .color-hint {
        font-size: 0.65rem;
    }
    
    .color-circle {
        width: 60px;
        height: 60px;
    }
    
    .number-display {
        font-size: 2.5rem;
    }
    
    .animal-emoji {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .colors-container,
    .numbers-container,
    .fruits-container,
    .animals-container,
    .shapes-container,
    .alphabet-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-animation {
        height: 100px;
    }
    
    .bouncing-ball {
        width: 40px;
        height: 40px;
    }
    
    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.75rem 0.15rem 0.5rem 0.15rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .color-picker-grid.open {
        padding: 1rem 0.15rem 0.5rem 0.15rem;
        max-width: 100vw;
    }
    
    .color-picker-item {
        width: 100%;
        aspect-ratio: 1;
        max-width: 100%;
        border-width: 2px;
    }
    
    .color-mixer {
        padding: 0.75rem;
    }
    
    .mixer-container {
        gap: 1rem;
    }
    
    .color-selectors {
        gap: 1.5rem;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover {
        background: transparent;
        transform: none;
    }
    
    .nav-btn:active,
    .nav-btn.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transform: scale(0.95);
    }
    
    .home-card:hover {
        transform: none;
    }
    
    .home-card:active {
        transform: translateY(-4px) scale(1.02);
    }
    
    .color-card:hover,
    .number-card:hover,
    .fruit-card:hover,
    .animal-card:hover {
        transform: none;
    }
    
    .color-card:active,
    .number-card:active,
    .fruit-card:active,
    .animal-card:active {
        transform: translateY(-3px) scale(1.02);
    }
}

/* ========================================
   Shapes Section Styles
   ======================================== */
.shapes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.shape-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.shape-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.shape-card:active::before {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

.shape-card:hover,
.shape-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.shape-visual {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.circle-shape {
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
}

.square-shape {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 8px;
}

.triangle-shape {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #FFE66D;
    background: none;
}

.rectangle-shape {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #A29BFE, #6C5CE7);
    border-radius: 8px;
}

.oval-shape {
    width: 120px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB6C1, #FF8FA3);
}

.star-shape {
    width: 100px;
    height: 100px;
    position: relative;
    background: none;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: linear-gradient(135deg, #F8B500, #FFD700);
    margin: 0 auto;
}

.heart-shape {
    width: 70px;
    height: 63px;
    position: relative;
    background: none;
    margin: 0 auto;
}

.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 56px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    border-radius: 35px 35px 0 0;
    top: 0;
}

.heart-shape::before {
    left: 35px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-shape::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.diamond-shape {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #95E1D3, #4ECDC4);
    transform: rotate(45deg);
    border-radius: 8px;
}

.shape-card:active .shape-visual {
    transform: scale(1.3) rotate(360deg);
}

.shape-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.shape-hint {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ========================================
   Drawing Section Styles
   ======================================== */
.drawing-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.drawing-container .drawing-canvas-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.drawing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
}

.color-picker-drawing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-picker-drawing label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.color-input {
    width: 60px;
    height: 40px;
    border: 3px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.color-input:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.brush-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brush-size label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.size-slider {
    width: 100px;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

#brushSizeValue {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 30px;
    text-align: center;
}

.save-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.save-btn:hover,
.save-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.clear-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.clear-btn:hover,
.clear-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fullscreen-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}

.fullscreen-btn:hover,
.fullscreen-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hide fullscreen button on mobile */
@media (max-width: 768px) {
    .fullscreen-btn {
        display: none;
    }
    
    .drawing-canvas {
        max-width: 100%;
    }
}

.drawing-canvas {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 3px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
    cursor: crosshair;
    touch-action: none;
    display: block;
    margin: 0 auto;
}

.drawing-hint {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
}

.drawing-hint p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-dark);
    margin: 0;
}

.drawing-hint strong {
    color: var(--primary-color);
}

/* Coloring Card in Drawing Section */
.coloring-card-container {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.coloring-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.coloring-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.coloring-card:active::before {
    opacity: 1;
}

.coloring-card:hover,
.coloring-card:active {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.coloring-card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.coloring-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.coloring-card p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .drawing-canvas {
        height: 300px;
    }
    
    .drawing-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .color-picker-drawing,
    .brush-size {
        width: 100%;
        justify-content: space-between;
    }
    
    .coloring-card-container {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .coloring-card {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   Fullscreen Drawing Styles
   ======================================== */
.fullscreen-drawing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 10001;
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    touch-action: none;
}

.fullscreen-drawing-overlay.active {
    display: flex;
}

.fullscreen-drawing-overlay.active ~ .main-nav,
.fullscreen-drawing-overlay.active ~ .main-header {
    display: none !important;
}

.fullscreen-drawing-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Toolbar Elements */
.fullscreen-drawing-toolbar .color-picker-drawing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-drawing-toolbar .color-picker-drawing label {
    display: none;
}

.fullscreen-drawing-toolbar .color-input {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
}

.fullscreen-drawing-toolbar .color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.fullscreen-drawing-toolbar .color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.fullscreen-drawing-toolbar .color-input:active {
    transform: scale(0.95);
    border-color: var(--primary-color);
}

.fullscreen-drawing-toolbar .brush-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.fullscreen-drawing-toolbar .brush-size label {
    display: none;
}

.fullscreen-drawing-toolbar .size-slider {
    flex: 1;
    max-width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin: 0;
}

.fullscreen-drawing-toolbar .size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fullscreen-drawing-toolbar .size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fullscreen-drawing-toolbar #fullscreenBrushSizeValue {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
    background: rgba(255, 107, 157, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

.fullscreen-save-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
}

.fullscreen-save-btn:active {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.3);
}

.fullscreen-clear-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.4);
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
}

.fullscreen-clear-btn:active {
    background: linear-gradient(135deg, #C44569, #A0355A);
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(255, 107, 157, 0.3);
}

.fullscreen-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #E53935;
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.fullscreen-close-btn:active {
    background: #C62828;
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(229, 57, 53, 0.3);
}


.fullscreen-drawing-canvas {
    width: 100%;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    border: none;
    background: white;
    cursor: crosshair;
    touch-action: none;
    display: block;
    margin: 0;
    margin-top: 48px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 10001;
}

@media (max-width: 768px) {
    .fullscreen-drawing-toolbar {
        height: 48px;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .fullscreen-drawing-toolbar .color-input {
        width: 36px;
        height: 36px;
    }
    
    .fullscreen-drawing-toolbar .size-slider {
        max-width: 100px;
        height: 6px;
    }
    
    .fullscreen-drawing-toolbar #fullscreenBrushSizeValue {
        font-size: 0.8rem;
        min-width: 22px;
        padding: 0.15rem 0.3rem;
    }
    
    .fullscreen-save-btn,
    .fullscreen-clear-btn,
    .fullscreen-close-btn {
        width: 38px;
        height: 38px;
    }
    
    .fullscreen-drawing-canvas {
        margin-top: 48px;
        height: calc(100vh - 48px);
        height: calc(100dvh - 48px);
    }
}

@media (max-width: 480px) {
    .fullscreen-drawing-toolbar {
        height: 46px;
        padding: 0.35rem;
        gap: 0.3rem;
    }
    
    .fullscreen-drawing-toolbar .color-input {
        width: 34px;
        height: 34px;
    }
    
    .fullscreen-drawing-toolbar .size-slider {
        max-width: 80px;
        height: 5px;
    }
    
    .fullscreen-drawing-toolbar #fullscreenBrushSizeValue {
        font-size: 0.75rem;
        min-width: 20px;
        padding: 0.1rem 0.25rem;
    }
    
    .fullscreen-save-btn,
    .fullscreen-clear-btn,
    .fullscreen-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .fullscreen-drawing-canvas {
        margin-top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

/* ========================================
   Alphabet Section Styles
   ======================================== */
.alphabet-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.letter-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.letter-card:active::before {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

.letter-card:hover,
.letter-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.letter-display {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.letter-card:active .letter-display {
    transform: scale(1.3) rotate(10deg);
}

.letter-name {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.letter-type {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.alphabet-info {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.alphabet-info p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.alphabet-info strong {
    color: var(--primary-color);
}

.alphabet-footer {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1rem;
    text-align: center;
}

.letterland-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.letterland-link:hover,
.letterland-link:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.letterland-icon {
    font-size: 1.5rem;
    line-height: 1;
    animation: wiggle 2s ease-in-out infinite;
}

.letterland-text {
    line-height: 1.2;
}

.video-info {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.video-info p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.video-info strong {
    color: var(--primary-color);
}

/* ========================================
   Footer / Toolbar onderaan
   ======================================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto !important;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    position: relative;
    z-index: 91;
    pointer-events: auto;
}

.footer-center {
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--text-light);
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.footer-logo {
    height: 24px;
    width: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.footer-brand {
    font-weight: 600;
    color: var(--text-dark);
}

.footer-copy {
    font-size: 0.7rem;
}

.footer-settings-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-settings-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
}

.footer-settings-btn:disabled {
    cursor: default;
}

.footer-settings-label {
    font-size: 0.7rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .site-footer {
        padding: 0.35rem 0.5rem;
    }

    .footer-inner {
        gap: 0.5rem;
    }

    .footer-center {
        display: none; /* op kleine schermen nog compacter, alleen logo + ouders */
    }

    body {
        padding-bottom: 56px;
    }
}

/* ========================================
   Games Section Styles
   ======================================== */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 218, 0, 0.1), rgba(255, 107, 157, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover::before,
.game-card:active::before {
    opacity: 1;
}

.game-card:hover,
.game-card:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.game-icon {
    font-size: clamp(4rem, 8vw, 5rem);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
}

.game-icon img {
    width: clamp(4rem, 8vw, 5rem);
    height: clamp(4rem, 8vw, 5rem);
    object-fit: contain;
    transition: var(--transition);
}

.game-card:active .game-icon {
    transform: scale(1.2) rotate(10deg);
    animation: wiggle 0.6s ease-out;
}

.game-name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.game-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.play-game-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.play-game-btn:hover,
.play-game-btn:active {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* Tetris Game Styles */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.game-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .game-header {
        padding: 1rem 1.25rem;
    }
}

.game-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.close-game-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #E53935;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-out;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.close-game-btn:hover,
.close-game-btn:active {
    background: #C62828;
    transform: scale(0.9);
}

.game-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

.game-info {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
}

.score-display,
.next-block-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label,
.next-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    font-weight: 600;
}

.score-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
}

.tetris-canvas {
    border: 3px solid #ddd;
    border-radius: var(--border-radius);
    background: #f0f0f0;
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.game-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.game-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    box-shadow: var(--shadow-md);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-btn:hover,
.game-btn:active {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

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

.game-instructions {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: var(--border-radius);
    width: 100%;
}

.game-instructions p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 768px) {
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-overlay {
        padding: 0;
        align-items: stretch;
        background: white;
    }
    
    .game-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .game-content {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .tetris-canvas {
        width: 100%;
        max-width: 100%;
        touch-action: none;
        flex-shrink: 0;
    }
    
    .game-controls {
        flex-shrink: 0;
        width: 100%;
    }
    
    .game-instructions {
        flex-shrink: 0;
    }
    
    .game-instructions {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }
    
    .game-instructions p {
        margin: 0;
    }
    
    .game-controls {
        gap: 0.5rem;
    }
    
    .game-btn {
        min-width: 60px;
        min-height: 60px;
        padding: 1rem 1.25rem;
        font-size: 1.5rem;
    }
    
    .game-controls {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    .game-btn:hover {
        transform: none;
    }
    
    .alphabet-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .letter-card {
        min-height: 140px;
        padding: 1.25rem 0.75rem;
    }
    
    .letter-display {
        font-size: 2.5rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-btn:focus-visible,
.home-card:focus-visible,
.color-card:focus-visible,
.number-card:focus-visible,
.fruit-card:focus-visible,
.animal-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

