body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(-45deg, #1e1e1e, #2c3e50, #34495e, #1e1e1e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #00ff00;
    transition: all 0.5s ease;
}

body.light {
    background: linear-gradient(-45deg, #f0f0f0, #d1d1d1, #e0e0e0, #f5f5f5);
    color: #333;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.clock-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 5vh 5vw;
    border-radius: 15px;
    box-shadow: 0 0 15px #00ff00;
    transition: all 0.5s ease;
    max-width: 90%;
    width: clamp(280px, 80%, 600px);
}

body.light .clock-container {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px #333;
}

.clock-container h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: clamp(0.5rem, 2vw, 3rem);
    margin: 0;
}

.clock-container h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin: 2vh 0 3vh 0;
    color: #00ff88;
}

#theme-toggle {
    padding: clamp(0.5rem, 2vh, 1rem) clamp(1rem, 4vw, 2rem);
    font-size: clamp(1rem, 4vw, 1.5rem);
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.2);
    color: inherit;
    transition: all 0.3s ease;
}

body.light #theme-toggle {
    background: rgba(0, 0, 0, 0.1);
}



.clock-container p {
    margin-top: 2vh;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #00ff88;
    opacity: 0.7;
}
body.light .clock-container p {
    color: #333;
    opacity: 0.7;
}

.clock-container p a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
}

body.light .clock-container p a {
    color: #333;
}

.clock-container p a:hover {
    text-decoration: underline;
}

