* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

body::before, body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: black;
    z-index: -1;
}

.clock-wrapper {
    max-width: 1000px;
    width: 100%;
    padding: 0 5vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#holiday-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

.clock-display {
    white-space: nowrap;
    font-size: clamp(8vw, 12vw, 14vw);
    letter-spacing: 0.3vw;
    line-height: 1;
}

/* Pasek */
#ticker-wrapper {
    width: 100%;
    margin: 1rem 0;
    height: 1.8rem;
    display: flex;
    justify-content: center;
}

#ticker-inner {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
}

#ticker-content {
    position: absolute;
    white-space: nowrap;
    font-size: 0.95rem;
    color: #888;
    will-change: transform;
    transition: transform 0.1s linear;
    left: 0;
    top: 0;
}

#ticker-content a {
    color: #888;
    text-decoration: none;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
}

#ticker-content a:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#sync-dot {
    color: #aaa;
    transition: color 0.3s ease;
}

.sync-ok {
    color: #00ff00 !important;
}

.sync-fail {
    color: #ff3333 !important;
}
