/*----- The CSS (Styles & Themes) -------*/
:root {
    --bg-color: #1a1a1a;
    --text-color: #e0d5c3; /* Off-white/gold tint from image */
    --accent-blue: #00b4d8;
    --btn-bg: #2b3a67;
    --text-white: #ffff;          /* Bright White Paragraph Text [Bright White]*/
    --glass: rgba(255, 255, 255, 0.01);        /* Transparent Glass Effect */
    --glass-border: rgba(168, 255, 158, 0.2);  /* Glass Border Effect */
}

.theme-light {
    --bg-color: #f0f0f0;
    --text-color: #333333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial Black', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background 0.5s ease;
}

.clock-container {
    text-align: center;
}

#date-display {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}

#time-display {
    font-size: 12rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.controls {
    margin-top: 50px;
    margin-bottom: 50px;
}

.theme-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

#btn-system { background: var(--accent-blue); color: white; }
#btn-dark { background: #1e2a4a; color: white; }
#btn-light { background: #ffffff; color: black; }

/* Switch Styling */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent-blue); }   
input:checked + .slider:before { transform: translateX(24px); }

/* Button Styling */
.click {
    background: var(--glass-border);
    color: var(--text-white);
    border: none;
    border-radius:  20px;
    cursor: pointer;
    margin-top: 50px;
    font-weight: bold;
    transition: background 0.3s;
    padding: 10px;
    text-decoration: none;
    border-style: outset;
}

.click:hover {
    background: var(--glass);
    border-style: inset;
}
