/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

/* Container voor volledige scherm layout */
.container {
    display: flex;
    height: calc(100vh - 80px); /* Ruimte voor ticker onderaan (80px) */
    width: 100vw;
    margin-top: 0;
}

/* Linker sectie: Klok (40% van scherm) */
.left-section {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem 0;
}

/* Rechter sectie: Agenda (60% van scherm) */
.right-section {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    overflow: hidden;
}

/* Agenda container */
.agenda-container {
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dag sectie in agenda */
.agenda-day {
    flex-shrink: 0;
}

/* Dag header */
.agenda-day-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agenda-date {
    flex: 1;
}

.agenda-temperature {
    margin-left: 1rem;
    white-space: nowrap;
}

/* Afspraken lijst */
.agenda-appointments {
    padding-left: 1.5rem;
}

/* Individuele afspraak */
.agenda-appointment {
    font-size: 2.5rem;
    color: #2c3e50;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-weight: bold;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PHOTO DISPLAY VIEWS - Foto weergave
   ============================================ */

/* Photo Display View - Fullscreen foto weergave */
.photo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.photo-container:not(.hidden) {
    display: flex;
}

.photo-display {
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.photo-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-counter {
    font-weight: 600;
    font-size: 1.8rem;
}

.photo-hint {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* QR Code View - QR-code voor foto upload */
.qr-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.qr-container:not(.hidden) {
    display: flex;
}

.qr-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 900px;
}

.qr-title {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.qr-code-wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    display: inline-block;
}

.qr-code {
    display: block;
    width: 400px;
    height: 400px;
}

.qr-instructions {
    font-size: 1.8rem;
    line-height: 2;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.qr-instructions p {
    margin-bottom: 15px;
}

.qr-photo-count {
    font-size: 2.2rem;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: inline-block;
    font-weight: 600;
}

/* Feestdag styling - Rood/feestelijk */
.agenda-appointment-feestdag {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 6px solid #e74c3c;
    color: #000000;
}

/* Verjaardag styling - Blauw/vrolijk */
.agenda-appointment-verjaardag {
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border-left: 6px solid #3498db;
    color: #000000;
}

/* Afspraak styling - Standaard (zoals nu) */
.agenda-appointment-afspraak {
    /* Gebruikt de standaard .agenda-appointment styling */
}

/* Geen afspraken indicator */
.agenda-no-appointments {
    font-size: 2.2rem;
    color: #7f8c8d;
    padding: 0.8rem 1rem;
    margin-left: 1.5rem;
    font-style: italic;
}

/* Quote aan het einde van de dag */
.agenda-quote {
    font-size: 1.8rem;
    color: #000000;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    font-style: normal;
    font-weight: bold;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    border-left: 4px solid #667eea;
    line-height: 1.5;
}

/* Klok container */
#clock-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-display {
    width: 100%;
}

.clock-display.hidden {
    display: none;
}

/* Digitale klok styling */
#digital-clock .time {
    font-size: 8rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

/* Analoge klok styling */
.clock-face {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: url('images/clock-face.jpg') center center / 150%;
    position: relative;
    margin: 0 auto;
}

.clock-number {
    display: none;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: #333;
    border-radius: 10px;
}

.hour-hand {
    width: 2%;
    height: 30%;
    margin-left: -1%;
    background: #2c3e50;
}

.minute-hand {
    width: 1.5%;
    height: 40%;
    margin-left: -0.75%;
    background: #34495e;
}

.second-hand {
    width: 0.8%;
    height: 44%;
    margin-left: -0.4%;
    background: #e74c3c;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5%;
    height: 5%;
    border-radius: 50%;
    background: #2c3e50;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Footer binnen analoge klok */
.analog-footer {
    margin-top: 2rem;
    margin-left: 100px;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.analog-footer:hover {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.analog-footer p {
    margin: 0;
}

/* Lichtkrant (News Ticker) */
.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    z-index: 998;
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #ffd700;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-left: 100%;
    will-change: transform;
}

/* Dynamische animatie - wordt via JavaScript ingesteld */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer op hoofdpagina */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    z-index: 999;
    transition: all 0.3s ease;
}

.main-footer:hover {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.main-footer p {
    margin: 0;
}


/* Responsive aanpassingen voor kleinere schermen */
@media (max-width: 1200px) {
    .day-name { font-size: 3rem; }
    .event { font-size: 3rem !important; }
    .date { font-size: 2.5rem; }
    .season { font-size: 2rem; }
    .quote-text { font-size: 2rem; }
    .message-text { font-size: 2rem; }
    #digital-clock .time { font-size: 6rem; }
    .clock-face { width: 400px; height: 400px; }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-section,
    .right-section {
        flex: 1;
    }
}

/* ============================================
   ANIMAL OF THE DAY VIEW STYLING
   ============================================ */

.animal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.animal-container.hidden {
    display: none;
}

.animal-content {
    width: 90%;
    max-width: 1400px;
    text-align: center;
    padding: 2rem;
}

.animal-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.animal-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.animal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.animal-name {
    font-size: 5rem;
    font-weight: bold;
    color: white;
    margin: 2rem 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.animal-navigation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.animal-hint {
    font-size: 2rem;
    color: white;
    font-weight: 500;
}

/* ============================================
   YOUTUBE SHORT VIEW STYLING
   ============================================ */

/* News container - full screen overlay */
.news-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    box-sizing: border-box;
}

.news-container.hidden {
    display: none;
}

/* News article card - white background wrapper */
.news-article-card {
    width: 100%;
    height: 100%;
    max-width: 1920px;
    max-height: 1080px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* News article layout */
.news-article {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 33% 1fr;
    grid-template-rows: 1fr auto;
    gap: 2rem;
}

/* Image wrapper */
.news-image-wrapper {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

/* News image */
.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content wrapper */
.news-content-wrapper {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1rem;
}

/* News title */
.news-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* News text/content */
.news-text {
    font-size: 2.5rem;
    color: #2c3e50;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
    overflow-y: auto;
    max-height: 70vh;
    font-weight: bold;
}

/* Navigation footer */
.news-navigation {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Counter */
.news-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hint text */
.news-hint {
    font-size: 1.8rem;
    color: rgba(44, 62, 80, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-weight: bold;
}

/* ============================================
   WEATHER FORECAST STYLING
   ============================================ */

/* Weather container - full screen */
.weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Volledige hoogte wanneer ticker verborgen is */
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.weather-container.hidden {
    display: none;
}

/* Weather forecast card */
.weather-forecast {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Weather title */
.weather-title {
    font-size: 4rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 1rem 0;
}

/* Weather days grid */
.weather-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    flex: 1;
    align-items: start;
}

/* Individual weather day card */
.weather-day {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.weather-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Weather day header */
.weather-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.8rem;
}

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

.weather-day-date {
    font-size: 1.5rem;
    color: #7f8c8d;
}

/* Weather icon */
.weather-icon {
    font-size: 5rem;
    line-height: 1;
}

/* Weather description */
.weather-description {
    font-size: 1.6rem;
    color: #34495e;
    text-align: center;
    font-weight: 500;
}

/* Temperature display */
.weather-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.temp-max {
    color: #e74c3c;
}

.temp-min {
    color: #3498db;
}

.temp-separator {
    color: #95a5a6;
}

/* Precipitation */
.weather-precipitation {
    font-size: 1.5rem;
    color: #3498db;
    font-weight: 500;
}

/* Detailed weather description section - full width below weather cards */
.weather-detail-section {
    width: 100%;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f1 100%);
    border-radius: 12px;
    border-left: 6px solid #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weather-detail-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.weather-detail-text {
    font-size: 2rem;
    color: #34495e;
    line-height: 1.8;
    font-weight: 600;
    text-align: center;
}

/* Weather navigation */
.weather-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.weather-hint {
    font-size: 2rem;
    color: rgba(44, 62, 80, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-weight: bold;
}

/* Responsive adjustments for weather */
@media (max-width: 1400px) {
    .weather-days-grid {
        gap: 1rem;
    }
    
    .weather-day {
        padding: 1rem;
    }
    
    .weather-title {
        font-size: 3.5rem;
    }
    
    .weather-day-name {
        font-size: 1.8rem;
    }
    
    .weather-icon {
        font-size: 4rem;
    }
    
    .weather-description {
        font-size: 1.4rem;
    }
    
    .weather-temp {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .weather-days-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .weather-day:nth-child(n+5) {
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .weather-title {
        font-size: 2.5rem;
    }
    
    .weather-days-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .weather-day {
        padding: 0.8rem;
    }
    
    .weather-day-name {
        font-size: 1.5rem;
    }
    
    .weather-day-date {
        font-size: 1.2rem;
    }
    
    .weather-icon {
        font-size: 3rem;
    }
    
    .weather-description {
        font-size: 1.2rem;
    }
    
    .weather-temp {
        font-size: 1.8rem;
    }
    
    .weather-precipitation {
        font-size: 1.2rem;
    }
    
    .weather-detail-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .weather-detail-title {
        font-size: 2rem;
    }
    
    .weather-detail-text {
        font-size: 1.6rem;
    }
    
    .weather-hint {
        font-size: 1.5rem;
    }
}

/* ============================================
   TOMORROW & DAY AFTER TOMORROW STYLING
   ============================================ */

/* Tomorrow container - full screen */
.tomorrow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tomorrow-container.hidden {
    display: none;
}

/* Tomorrow content wrapper */
.tomorrow-content {
    width: 100%;
    max-width: 1800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tomorrow grid - 2 columns */
.tomorrow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
}

/* Tomorrow column */
.tomorrow-column {
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tomorrow agenda container */
.tomorrow-agenda-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tomorrow navigation */
.tomorrow-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.tomorrow-hint {
    font-size: 2rem;
    color: rgba(44, 62, 80, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-weight: bold;
}

/* Responsive adjustments for tomorrow view */
@media (max-width: 1200px) {
    .tomorrow-title {
        font-size: 3rem;
    }
    
    .tomorrow-hint {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tomorrow-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 1rem;
    }
    
    .tomorrow-title {
        font-size: 2.5rem;
    }
    
    .tomorrow-column {
        padding: 1rem;
    }
    
    .tomorrow-hint {
        font-size: 1.2rem;
    }
}

/* ============================================
   FUN FACT & JOKE STYLING
   ============================================ */

/* Fun Fact container */
.funfact-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Volledige hoogte wanneer ticker verborgen is */
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.funfact-container.hidden {
    display: none;
}

.funfact-content {
    max-width: 1800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem;
    border-radius: 20px;
    border: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.funfact-title {
    font-size: 6rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.funfact-text {
    font-size: 4rem;
    color: #2c3e50;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.funfact-navigation {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.funfact-hint {
    font-size: 2.5rem;
    color: #667eea;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-weight: bold;
}

/* Joke container */
.joke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Volledige hoogte wanneer ticker verborgen is */
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.joke-container.hidden {
    display: none;
}

.joke-content {
    max-width: 1400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem;
    border-radius: 20px;
    border: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.joke-title {
    font-size: 6rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.joke-text {
    font-size: 4rem;
    color: #2c3e50;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.joke-navigation {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.joke-hint {
    font-size: 2.5rem;
    color: #667eea;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-weight: bold;
}

/* Responsive adjustments for fun fact & joke */
@media (max-width: 1200px) {
    .funfact-title, .joke-title {
        font-size: 4rem;
    }
    
    .funfact-text, .joke-text {
        font-size: 2.8rem;
    }
    
    .funfact-hint, .joke-hint {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .funfact-container, .joke-container {
        padding: 2rem;
    }
    
    .funfact-title, .joke-title {
        font-size: 3rem;
    }
    
    .funfact-text, .joke-text {
        font-size: 2rem;
    }
    
    .funfact-hint, .joke-hint {
        font-size: 1.5rem;
    }
}

/* ============================================
   YOUTUBE SHORTS STYLING
   ============================================ */

/* YouTube container - full screen */
.youtube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f1 100%);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.youtube-container.hidden {
    display: none;
}

.youtube-content {
    max-width: 1260px; /* 10% kleiner dan 1400px */
    width: 90%; /* 10% kleiner dan 100% */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    border: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.youtube-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* YouTube player wrapper - responsive 16:9 aspect ratio */
.youtube-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.youtube-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-video-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
    line-height: 1.3;
}

.youtube-description {
    font-size: 1.8rem;
    color: #2c3e50;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.youtube-navigation {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.youtube-hint {
    font-size: 2rem;
    color: #667eea;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-weight: bold;
}

/* Responsive adjustments for YouTube */
@media (max-width: 1200px) {
    .youtube-title {
        font-size: 3.5rem;
    }
    
    .youtube-video-title {
        font-size: 2rem;
    }
    
    .youtube-description {
        font-size: 1.5rem;
    }
    
    .youtube-hint {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .youtube-container {
        padding: 1rem;
    }
    
    .youtube-content {
        padding: 2rem 1.5rem;
    }
    
    .youtube-title {
        font-size: 2.5rem;
    }
    
    .youtube-video-title {
        font-size: 1.6rem;
    }
    
    .youtube-description {
        font-size: 1.3rem;
    }
    
    .youtube-hint {
        font-size: 1.3rem;
    }
}

/* Responsive adjustments for news pages */
@media (max-width: 1200px) {
    .news-title {
        font-size: 3rem;
    }
    
    .news-text {
        font-size: 2rem;
    }
    
    .news-counter {
        font-size: 2rem;
    }
    
    .news-hint {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-article {
        grid-template-columns: 1fr;
        grid-template-rows: 30% 1fr auto;
        gap: 1rem;
    }
    
    .news-image-wrapper {
        grid-row: 1;
        grid-column: 1;
    }
    
    .news-content-wrapper {
        grid-row: 2;
        grid-column: 1;
    }
    
    .news-navigation {
        grid-row: 3;
        grid-column: 1;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
    
    .news-text {
        font-size: 1.8rem;
        -webkit-line-clamp: 8;
    }
    
    .news-counter {
        font-size: 1.8rem;
    }
    
    .news-hint {
        font-size: 1.2rem;
    }
}

/* ============================================
   BIRTHDAY CELEBRATION STYLING
   ============================================ */

/* Birthday celebration container - only visible when enabled and birthday detected */
.birthday-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.birthday-celebration.hidden {
    display: none;
}

/* Garland/Slingers styling */
.birthday-garland {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 10000;
}

.garland-flag {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 50px solid;
    margin: 0 5px;
    animation: garland-sway 3s ease-in-out infinite;
    transform-origin: top center;
}

/* Verschillende kleuren voor de vlaggetjes */
.garland-flag:nth-child(6n+1) { border-top-color: #ff6b6b; }
.garland-flag:nth-child(6n+2) { border-top-color: #4ecdc4; }
.garland-flag:nth-child(6n+3) { border-top-color: #ffe66d; }
.garland-flag:nth-child(6n+4) { border-top-color: #a8e6cf; }
.garland-flag:nth-child(6n+5) { border-top-color: #ff8b94; }
.garland-flag:nth-child(6n) { border-top-color: #c7ceea; }

/* Sway animatie voor slingers */
@keyframes garland-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Confetti container */
.birthday-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual confetti piece */
.confetti-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    top: -40px;
    opacity: 0;
    animation: confetti-fall linear infinite;
}

/* Verschillende vormen en kleuren voor confetti */
.confetti-piece:nth-child(odd) {
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    width: 32px;
    height: 48px;
}

.confetti-piece:nth-child(4n) {
    width: 48px;
    height: 32px;
}

.confetti-piece:nth-child(5n+1) { background: #ff6b6b; }
.confetti-piece:nth-child(5n+2) { background: #4ecdc4; }
.confetti-piece:nth-child(5n+3) { background: #ffe66d; }
.confetti-piece:nth-child(5n+4) { background: #a8e6cf; }
.confetti-piece:nth-child(5n) { background: #ff8b94; }

/* Confetti fall animatie */
@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 1;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        top: 100vh;
        opacity: 0.3;
        transform: translateX(var(--confetti-x)) rotateZ(var(--confetti-rotation));
    }
}

/* Verschillende animatie duren en delays voor natuurlijk effect */
.confetti-piece:nth-child(1) { left: 5%; animation-duration: 3s; animation-delay: 0s; --confetti-x: 20px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(2) { left: 10%; animation-duration: 3.5s; animation-delay: 0.2s; --confetti-x: -30px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(3) { left: 15%; animation-duration: 2.8s; animation-delay: 0.4s; --confetti-x: 40px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(4) { left: 20%; animation-duration: 3.2s; animation-delay: 0.1s; --confetti-x: -20px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(5) { left: 25%; animation-duration: 3.7s; animation-delay: 0.3s; --confetti-x: 50px; --confetti-rotation: 540deg; }
.confetti-piece:nth-child(6) { left: 30%; animation-duration: 2.9s; animation-delay: 0.5s; --confetti-x: -40px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(7) { left: 35%; animation-duration: 3.4s; animation-delay: 0.2s; --confetti-x: 30px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(8) { left: 40%; animation-duration: 3.1s; animation-delay: 0.4s; --confetti-x: -50px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(9) { left: 45%; animation-duration: 3.6s; animation-delay: 0.1s; --confetti-x: 25px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(10) { left: 50%; animation-duration: 2.7s; animation-delay: 0.3s; --confetti-x: -35px; --confetti-rotation: 540deg; }
.confetti-piece:nth-child(11) { left: 55%; animation-duration: 3.3s; animation-delay: 0.5s; --confetti-x: 45px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(12) { left: 60%; animation-duration: 3.8s; animation-delay: 0.2s; --confetti-x: -25px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(13) { left: 65%; animation-duration: 3.0s; animation-delay: 0.4s; --confetti-x: 35px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(14) { left: 70%; animation-duration: 3.5s; animation-delay: 0.1s; --confetti-x: -45px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(15) { left: 75%; animation-duration: 2.8s; animation-delay: 0.3s; --confetti-x: 55px; --confetti-rotation: 540deg; }
.confetti-piece:nth-child(16) { left: 80%; animation-duration: 3.2s; animation-delay: 0.5s; --confetti-x: -30px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(17) { left: 85%; animation-duration: 3.7s; animation-delay: 0.2s; --confetti-x: 40px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(18) { left: 90%; animation-duration: 2.9s; animation-delay: 0.4s; --confetti-x: -50px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(19) { left: 95%; animation-duration: 3.4s; animation-delay: 0.1s; --confetti-x: 20px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(20) { left: 8%; animation-duration: 3.1s; animation-delay: 0.3s; --confetti-x: -40px; --confetti-rotation: 540deg; }
.confetti-piece:nth-child(21) { left: 18%; animation-duration: 3.6s; animation-delay: 0.5s; --confetti-x: 30px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(22) { left: 28%; animation-duration: 2.7s; animation-delay: 0.2s; --confetti-x: -35px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(23) { left: 38%; animation-duration: 3.3s; animation-delay: 0.4s; --confetti-x: 45px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(24) { left: 48%; animation-duration: 3.8s; animation-delay: 0.1s; --confetti-x: -25px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(25) { left: 58%; animation-duration: 3.0s; animation-delay: 0.3s; --confetti-x: 50px; --confetti-rotation: 540deg; }
.confetti-piece:nth-child(26) { left: 68%; animation-duration: 3.5s; animation-delay: 0.5s; --confetti-x: -20px; --confetti-rotation: 180deg; }
.confetti-piece:nth-child(27) { left: 78%; animation-duration: 2.8s; animation-delay: 0.2s; --confetti-x: 40px; --confetti-rotation: 270deg; }
.confetti-piece:nth-child(28) { left: 88%; animation-duration: 3.2s; animation-delay: 0.4s; --confetti-x: -30px; --confetti-rotation: 360deg; }
.confetti-piece:nth-child(29) { left: 12%; animation-duration: 3.7s; animation-delay: 0.1s; --confetti-x: 35px; --confetti-rotation: 450deg; }
.confetti-piece:nth-child(30) { left: 22%; animation-duration: 2.9s; animation-delay: 0.3s; --confetti-x: -45px; --confetti-rotation: 540deg; }
