/* Birthday Calendar Maker (/birthday-calendar-maker): Views/SeoLanding/_BirthdayCalendarDemo.cshtml */

/* The page keeps its shape (A4 portrait, A4 landscape or square) and fits the screen's height. */
.birthday-calendar-app .birthday-calendar-canvas {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(82vh, 980px);
    margin-inline: auto;
    touch-action: none;
    box-shadow: 0 10px 30px rgba(25, 42, 69, 0.22);
}

.birthday-calendar-app .birthday-calendar-canvas:focus-visible {
    outline: 3px solid var(--landing-accent, #2563eb);
    outline-offset: 2px;
}

.birthday-calendar-stage {
    padding: clamp(8px, 2vw, 20px);
}

.birthday-calendar-pagebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.birthday-calendar-pagename {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.birthday-calendar-pagebar .filter-landing-preset:disabled {
    opacity: 0.35;
    cursor: default;
}

/* The pages: the cover and the twelve months, seven to a row. */
.birthday-calendar-pages {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 6px 0 10px;
}

.birthday-calendar-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 3px 2px 2px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.72rem;
    line-height: 1.1;
    cursor: pointer;
}

.birthday-calendar-page[hidden] {
    display: none;
}

.birthday-calendar-page canvas {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.birthday-calendar-page span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.birthday-calendar-page:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.birthday-calendar-page.is-active {
    border-color: var(--landing-accent, #2563eb);
    font-weight: 700;
}

.birthday-calendar-controls [data-bc-photo-row][hidden],
.birthday-calendar-controls [data-bc-month-row][hidden],
.birthday-calendar-controls [data-bc-cover-row][hidden] {
    display: none !important;
}

.birthday-calendar-hint {
    margin: 2px 0 6px;
    font-size: 0.82rem;
    opacity: 0.8;
}

.birthday-calendar-all,
.birthday-calendar-reset {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.birthday-calendar-controls textarea[data-bc-birthdays] {
    min-height: 8.5em;
    font-family: inherit;
    line-height: 1.4;
}
