body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; 
    transition: background-color 1s ease;
}

body.christmas-theme { background-color: #c0392b; }
body.newyear-theme { background-color: #000511; }

#fireworksCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

/* Muziek Knop */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
}

.music-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #c0392b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.music-btn.playing {
    animation: pulse 2s infinite;
    color: #27ae60;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Thema Switch */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.2); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: #27ae60; }
input:checked + .slider:before { transform: translateX(24px); }

/* Tekst & Countdown */
h1 { font-family: 'Brush Script MT', cursive; font-size: clamp(2.2rem, 10vw, 3.8rem); margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.subtext { font-family: 'Brush Script MT', cursive; font-size: clamp(1.8rem, 7vw, 2.8rem); margin-top: 1rem; margin-bottom: 1.5rem; }

.countdown { display: flex; gap: 10px; justify-content: center; margin: 0 auto; width: 100%; }
.time-box {
    background: white; color: #333; padding: 15px 5px; border-radius: 12px;
    flex: 1; min-width: 80px; max-width: 110px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative; display: flex; flex-direction: column; align-items: center;
}
.time-box::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: rgba(0,0,0,0.05); }
.time-box span { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: bold; line-height: 1; }
.time-box p { margin: 8px 0 0; font-size: 0.7rem; color: #c0392b; font-weight: bold; text-transform: uppercase; }

/* CA Balk & Socials */
.ca-container { margin-top: 30px; }
.ca-bar {
    background: white; color: #333; padding: 12px 20px; border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden;
}
#ca-text { font-family: 'Courier New', monospace; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; margin-right: 10px; }
#copy-toast { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #27ae60; color: white; display: flex; align-items: center; justify-content: center; transform: translateY(100%); transition: 0.3s; }
#copy-toast.show { transform: translateY(0); }

.social-icons { margin-top: 25px; display: flex; justify-content: center; gap: 15px; }
.icon-link { background: white; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: 0.2s; }
.icon-link img { width: 24px; height: 24px; object-fit: contain; }
.icon-link:hover { transform: scale(1.15); }

/* Kerst Sneeuw */
.snowflake { position: fixed; top: -10px; color: white; user-select: none; z-index: 1000; pointer-events: none; animation: fall linear infinite, sway ease-in-out infinite; }
@keyframes fall { to { top: 105vh; } }
@keyframes sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(20px); } }

@media (max-width: 480px) {
    .countdown { display: grid; grid-template-columns: repeat(2, 110px); justify-content: center; gap: 15px; }
}
