/* Embed controls on the public countdown page */
.countdown-action-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.countdown-actions {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 7px;
    max-width: 760px;
    margin-top: 26px;
}

.countdown-action {
    flex: 0 1 auto;
    gap: 6px;
    min-height: 38px;
    padding: 7px 12px;
    border-width: 1px;
    border-style: solid;
    font-size: .77rem;
    font-weight: 750;
    opacity: .88;
}

.countdown-action__icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.countdown-action--share {
    border-color: #fff;
}

.countdown-action--copy,
.countdown-action--calendar,
.countdown-action--embed {
    background: rgba(0, 0, 0, .05);
}

.countdown-action:hover,
.countdown-action:focus-visible {
    opacity: 1;
}

.embed-panel {
    width: min(720px, calc(100% - 32px));
    margin: 22px auto 0;
    padding: 18px;
    color: #092646;
    background: rgba(255, 255, 255, .96);
    border-radius: 16px;
    text-align: left;
}

.embed-panel[hidden] {
    display: none;
}

.embed-panel label {
    margin-top: 0;
}

.embed-panel textarea {
    min-height: 116px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .78rem;
    line-height: 1.5;
    resize: vertical;
}

.embed-panel .button {
    margin-top: 12px;
    color: #fff;
    background: #092646;
}

.embed-panel p {
    min-height: 1.4em;
    margin: 9px 0 0;
    color: #52657a;
    font-size: .8rem;
}

/* The standalone iframe page */
html:has(.embed-page),
.embed-page {
    min-height: 100%;
}

.embed-page {
    overflow: hidden;
}

.embed-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 18px 20px;
    text-align: center;
}

.embed-countdown h1 {
    max-width: 880px;
    margin: 0;
    color: inherit;
    font-size: clamp(1.65rem, 6vw, 3rem);
    line-height: 1;
}

.embed-timer {
    margin-top: 26px;
}

.embed-timer strong {
    font-size: clamp(1.85rem, 8vw, 3.5rem);
}

.embed-brand {
    margin-top: 20px;
    font-size: .72rem;
    font-weight: 800;
    opacity: .76;
    text-underline-offset: .2em;
}

@media (min-width: 600px) {
    .embed-timer {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 700px) {
    .embed-page.theme--christmas {
        background-image:
            linear-gradient(rgba(4, 43, 42, .28), rgba(2, 30, 30, .42)),
            url("../img/theme-christmas-wide.webp");
    }

    .embed-page.theme--halloween {
        background-image:
            linear-gradient(rgba(37, 18, 66, .18), rgba(27, 13, 48, .34)),
            url("../img/theme-halloween-wide.webp");
    }

    .embed-page.theme--new-year {
        background-image:
            linear-gradient(rgba(4, 19, 51, .12), rgba(3, 15, 42, .3)),
            url("../img/theme-new-year-wide.webp");
    }

    .embed-page.theme--easter {
        background-image:
            linear-gradient(rgba(255, 255, 255, .12), rgba(240, 248, 239, .18)),
            url("../img/theme-easter-wide.webp");
    }

    .embed-page.theme--valentines {
        background-image:
            linear-gradient(rgba(255, 247, 243, .1), rgba(255, 235, 229, .16)),
            url("../img/theme-valentines-wide.webp");
    }
}
