* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Windows XP Pipes Screensaver Background */
.desktop-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
}

/* Main Window */
.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: #ece9d8;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Title Bar */
.title-bar {
    background: linear-gradient(to bottom, #0997ff 0%, #0053ee 4%, #0050ee 6%, #06f 8%, #06f 92%, #0353ee 96%, #0353ee 100%);
    padding: 3px 3px 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    border-radius: 8px 8px 0 0;
}

.title-bar-text {
    color: white;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.window-icon {
    width: 16px;
    height: 16px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 21px;
    height: 21px;
    border: none;
    background: linear-gradient(to bottom, #3c8dff 0%, #1e62d0 100%);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.title-bar-controls button:hover {
    background: linear-gradient(to bottom, #5ca5ff 0%, #3e82f0 100%);
}

.title-bar-controls button:active {
    background: linear-gradient(to bottom, #1e62d0 0%, #3c8dff 100%);
}

.title-bar-controls button:nth-child(1)::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: white;
}

.title-bar-controls button:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border: 2px solid white;
    border-top-width: 3px;
}

.title-bar-controls button:nth-child(3)::before,
.title-bar-controls button:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: white;
}

.title-bar-controls button:nth-child(3)::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.title-bar-controls button:nth-child(3)::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Window Body */
.window-body {
    padding: 20px;
    background: linear-gradient(to bottom, #ece9d8 0%, #d6d3ce 100%);
    min-height: 400px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(to bottom, #003da5 0%, #0066ff 50%, #00aaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #000080;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Countdown Container */
.countdown-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.countdown-box {
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 20px 15px;
    min-width: 120px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.time-unit {
    text-align: center;
}

.time-value {
    font-size: 3rem;
    font-weight: bold;
    color: #0066cc;
    font-family: 'Arial Black', Arial, sans-serif;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.time-label {
    font-size: 0.75rem;
    color: #000080;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 8px;
}

.separator {
    font-size: 3rem;
    color: #0066cc;
    font-weight: bold;
}

/* Status Bar */
.status-bar {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c7c7c7 100%);
    border-top: 1px solid #808080;
    padding: 3px 5px;
    font-size: 11px;
    color: #000;
    margin: -20px -20px 0 -20px;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Windows XP Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #3c8dff 0%, #1e62d0 100%);
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.3), 0 1px 5px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Start Button */
.start-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 3px;
    background: linear-gradient(to bottom, #5cb35c 0%, #3a843a 100%);
    border: 1px solid #1a5e1a;
    border-radius: 0 6px 6px 0;
    color: white;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    height: 24px;
}

.start-button:hover {
    background: linear-gradient(to bottom, #6cc36c 0%, #4a944a 100%);
}

.start-button:active {
    background: linear-gradient(to bottom, #3a843a 0%, #5cb35c 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.start-icon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffcc00 0%, #ff6600 100%);
    border-radius: 50%;
    display: inline-block;
}

.start-text {
    font-family: 'Trebuchet MS', sans-serif;
    font-style: italic;
}

/* Taskbar Items */
.taskbar-items {
    flex: 1;
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.taskbar-item {
    background: linear-gradient(to bottom, #3c8dff 0%, #2668d0 100%);
    border: 1px solid #1a5eb0;
    padding: 3px 8px;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 3px;
    max-width: 200px;
    cursor: pointer;
    transition: background 0.15s;
}

.taskbar-item:hover {
    background: linear-gradient(to bottom, #5ca5ff 0%, #3e82f0 100%);
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #2668d0 0%, #1a5eb0 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.taskbar-item img {
    width: 16px;
    height: 16px;
}

/* System Tray */
.system-tray {
    background: linear-gradient(to bottom, #5ca5ff 0%, #3e82f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    margin-left: 10px;
    border-radius: 3px;
}

.clock {
    color: white;
    font-size: 11px;
    font-weight: normal;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

/* Glitch Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch-overlay.hidden {
    display: none;
}

.glitch-content {
    text-align: center;
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-5px, 5px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(5px, -5px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(-5px, -5px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(5px, 5px);
        filter: hue-rotate(360deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

.error-message {
    font-size: 5rem;
    color: #ff0000;
    font-weight: 900;
    text-shadow: 0 0 20px #ff0000;
    animation: error-flash 0.2s infinite;
    font-family: 'Arial Black', sans-serif;
}

@keyframes error-flash {
    0%, 100% { opacity: 1; color: #ff0000; }
    50% { opacity: 0.5; color: #ff00ff; }
}

.error-code {
    font-size: 2rem;
    color: #00ff00;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.error-text {
    font-size: 1.5rem;
    color: #ffff00;
    margin: 20px 0;
}

.scramble {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.8rem;
    word-break: break-all;
    max-width: 80%;
    margin: 20px auto;
    animation: scramble-anim 0.1s infinite;
}

@keyframes scramble-anim {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Windows XP Celebration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebration.hidden {
    display: none;
}

.bliss-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Windows XP Bliss colors gradient */
    background: linear-gradient(to bottom, #5cb3ff 0%, #1e7ac7 50%, #5cb3ff 100%);
    animation: bliss-fade-in 2s ease-in;
}

@keyframes bliss-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.celebration-content {
    position: relative;
    text-align: center;
    z-index: 11001;
    animation: content-fade-in 2s ease-in 1s backwards;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes content-fade-in {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.celebration-title {
    font-size: 4rem;
    font-weight: 900;
    color: #0066cc;
    text-shadow:
        3px 3px 0 #003d7a,
        6px 6px 10px rgba(0, 0, 0, 0.3);
    animation: bounce 1s ease-in-out infinite;
    font-family: 'Arial Black', sans-serif;
}

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

.celebration-subtitle {
    font-size: 1.8rem;
    color: #0053ee;
    margin-top: 20px;
    font-weight: bold;
}

.celebration-message {
    font-size: 1.3rem;
    color: #333;
    margin-top: 30px;
    padding: 20px 40px;
    background: linear-gradient(to bottom, #ffd700 0%, #ffaa00 100%);
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 2000s Weather Widget */
.weather-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 200px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
    font-family: 'Tahoma', sans-serif;
}

.weather-widget-header {
    background: linear-gradient(to bottom, #4a90e2 0%, #2e5f9e 100%);
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: bold;
    border-bottom: 1px solid #1a4f8e;
}

.weather-widget-body {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    font-size: 3rem;
    line-height: 1;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 0.75rem;
    color: #333;
    text-transform: capitalize;
}

.weather-location {
    font-size: 0.7rem;
    color: #666;
    margin-top: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .window {
        width: 95%;
        max-width: none;
    }

    .main-title {
        font-size: 2rem;
    }

    .time-value {
        font-size: 2rem;
    }

    .separator {
        font-size: 2rem;
    }

    .countdown-box {
        min-width: 80px;
        padding: 15px 10px;
    }

    .error-message {
        font-size: 3rem;
    }

    .celebration-title {
        font-size: 2.5rem;
    }

    .celebration-content {
        padding: 40px 30px;
    }

    .weather-widget {
        width: 150px;
        top: 10px;
        right: 10px;
    }
}
