/* Analog clock. Each hand is a layer as big as the dial, turned around its middle. */
.analogClock {
    position: relative;
    flex: none;
    width: 14em;
    height: 14em;
    margin-bottom: 0.4em;
}

.analogClock + .countdownLabel {
    font-size: 1.15em;
}

.analogClock svg {
    display: block;
    width: 100%;
    height: 100%;
}

.analogClock line {
    stroke: var(--textColor);
    stroke-linecap: round;
}

.clockTick {
    stroke-width: 0.6;
    opacity: 0.35;
}

.clockTickHour {
    stroke-width: 1.4;
}

.clockTickQuarter {
    stroke-width: 2;
}

.clockHand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(var(--angle));
    animation: clockTurn linear infinite;
}

.clockHand::before {
    content: "";
    position: absolute;
    left: 50%;
    border-radius: 1em;
    background-color: var(--textColor);
    transform: translateX(-50%);
}

.clockHand-hour {
    animation-duration: 43200s;
}

.clockHand-hour::before {
    top: 24%;
    bottom: 44%;
    width: 2.2%;
}

.clockHand-minute {
    animation-duration: 3600s;
}

.clockHand-minute::before {
    top: 8%;
    bottom: 44%;
    width: 1.4%;
}

.clockHand-second {
    animation-duration: 60s;
}

.clockHand-second::before {
    top: 4%;
    bottom: 38%;
    width: 0.7%;
    background-color: var(--accentColor);
}

.clockPin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4%;
    height: 4%;
    border-radius: 50%;
    background-color: var(--accentColor);
    transform: translate(-50%, -50%);
}

.clockPinPlain {
    background-color: var(--textColor);
}

@keyframes clockTurn {
    from {
        transform: rotate(var(--angle));
    }

    to {
        transform: rotate(calc(var(--angle) + 360deg));
    }
}

/* The unit in a portrait slide follows the width, so the dial needs more of it. */
@media (max-aspect-ratio: 5/4) {
    .analogClock {
        width: 26em;
        height: 26em;
    }
}
