:root{
    --bg:#0f172a;
    --text: #e2e8f8;
    --muted: #94a3b8;
    --accent:#22d3ee;
    --card:rgba(255,255,255,0.06);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

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

body, html{
    width: 100vw;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(1200px 800px at 70% -10%, rgba(34,211,238,0.15), transparent), var(--bg);
    color: var(--text);
    display: grid;
    place-items: center;
}

.container{
    width: min(820px, 92vw);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 36px);
    border-radius: 24px;
}

.container__title{
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0 6px;
}

.container__display{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.display__time{
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
    margin-top: 10%;
}

#time__hours,
#time__minutes,
#time__seconds{
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 800;
    text-shadow:  0 10px 30px rgba(111,125,255,0.25); 
}

#time__colon{
    font-size: clamp(48px, 9vw, 96px);
    opacity: 1;
    animation: blink 1s infinite steps(2, jump-none);
}

@keyframes blink{ from { opacity: 1;} to{ opacity: .2;}}

#time__sufix{
    font-size: clamp(14px, 2.5vw, 20px);
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-left: 6px;
}

.display__date{
    margin-top: 10%;
    color: var(--muted);
    font-size: clamp(14px, 2.2vw, 18px);
}

/* Toggle */

.display__mode{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.mode__toggle{
    position: relative;
    width: 56px;
    height: 28px;
    background: #0d0f24; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    cursor: pointer;
}

.mode__toggle input{
    appearance: none;
    width: 100%;
    height: 100%;
}

.toggle__knob{
    position: absolute;
    top: 1px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 100%;
    transition: transform .25s ease;
    box-shadow:  0 4px 14px rgba(111,125,255,.5);
}

.mode__toggle input:checked + .toggle__knob{
    transform: translateX(28px);
}

.mode__label {
    color: var(--muted);
    font-size: 14px; 
}
