:root {
    --panel-bg: rgba(14, 20, 28, 0.58);
    --panel-border: rgba(255, 255, 255, 0.25);
    --panel-text: #f3f7ff;
    --field-bg: rgba(255, 255, 255, 0.14);
    --field-border: rgba(255, 255, 255, 0.35);
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --danger: #f97316;
}

body {
    padding: 0;
    margin: 0;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

#bgVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

#container, #button, #settings {
    position: relative;
    z-index: 1;
}

#clockContainer, #dateContainer, #dateDayContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Share Tech Mono, monospace;
    font-size: 100px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7);

}

#button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

#button button {
    cursor: pointer;
    height: 40px;
    width: 40px;
    border-radius: 25px;
    opacity: 0.3;

}

#button button:hover {
    opacity: 1;
}

#container {
    position: relative;
    width: fit-content;
    transform: translate(0px, 0px);
    transition: transform 0.1s ease;
}

#settings {
    position: absolute;
    top: 80px;
    right: 20px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--panel-bg), rgba(24, 33, 46, 0.42));
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    color: var(--panel-text);
    font-family: Montserrat, sans-serif;
}

#settings div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#settings label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#settings input[type="number"], #settings input[type="color"], #settings input[type="file"], #settings select {
    background: var(--field-bg);
    color: var(--panel-text);
    border: 1px solid var(--field-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
}

#settings input[type="number"], #settings select {
    width: 140px;
}

#settings input[type="file"] {
    width: 160px;
    font-size: 12px;
}

#settings input:focus-visible, #settings select:focus-visible, #settings button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#saveSettings, #resetSettings, #fullscreen {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease, background-color 0.2s ease;
}

#saveSettings {
    background: var(--accent);
    color: #04221f;
}

#saveSettings:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

#resetSettings {
    background: rgba(255, 255, 255, 0.16);
    color: var(--panel-text);
}

#resetSettings:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

#fullscreen {
    background: var(--danger);
    color: #fff;
}

#fullscreen:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#credits {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    opacity: 0.9;
}

#credits a {
    color: #a7f3d0;
}

#toggleSettings::before {
    content: "⚙️";
    font-size: 18px;
    line-height: 1;
}

#settings option {
    background: #1a2535;
    color: #f3f7ff;
}

@media (max-width: 700px) {
    #settings {
        top: 72px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    #settings div {
        flex-wrap: wrap;
    }

    #settings input[type="number"], #settings select, #settings input[type="file"] {
        width: 100%;
    }
}