:root {
    --primary-colour: #E91E63;
    --secondary-colour: #CC1452;
    --background-colour: #1d1d1b;
    --text-colour: #F5F5F5;
    --button-background-colour: var(--primary-colour);
    --button-text-colour: #FFFFFF;
    --outline-colour: var(--secondary-colour);
    --calendar-highlight-colour: #242422;
    --input-text-colour: #1d1d1b;
}

html, body {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    background-color: var(--background-colour);
}

body {
    margin: 0 !important;
    height: 100vh;
}

.loading-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.spinner {
    --size: 30px;
    --first-block-clr: #2d2d2d;
    --second-block-clr: #4fac7a;
    width: 100px;
    height: 100px;
    position: relative;
}

.spinner::after,
.spinner::before {
    box-sizing: border-box;
    position: absolute;
    content: "";
    width: var(--size);
    height: var(--size);
    top: 50%;
    left: 50%;
    background: var(--first-block-clr);
    animation: up 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
}

.spinner::after {
    background: var(--second-block-clr);
    top: calc(50% - var(--size));
    left: calc(50% - var(--size));
    animation: down 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
}

@keyframes down {
    0%,
    100% {
        transform: none;
    }

    25% {
        transform: translateX(100%);
    }

    50% {
        transform: translateX(100%) translateY(100%);
    }

    75% {
        transform: translateY(100%);
    }
}

@keyframes up {
    0%,
    100% {
        transform: none;
    }

    25% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-100%) translateY(-100%);
    }

    75% {
        transform: translateY(-100%);
    }
}

.calendar-scale-wrapper {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 1.5em;
    display: grid;
    place-items: center;
}

.calendar-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    box-sizing: border-box;
    --scale: 1;
}

    /* If there are 2 or more children, increase the gap */
    .calendar-container:has(> :nth-child(2)) {
        gap: 10%;
    }

    /* If 4 or more children, use a default gap */
    .calendar-container:has(> :nth-child(4)) {
        gap: 1em;
    }

    /* Scale calendars based of number of calendars */
    /* 2 items */
    .calendar-container:has(> :nth-child(2)) {
        --scale: 0.95;
    }

    /* 3 items */
    .calendar-container:has(> :nth-child(3)) {
        --scale: 0.85;
    }

    /* 4 items */
    .calendar-container:has(> :nth-child(4)) {
        --scale: 0.75;
    }

.waiting-list {
    width: 25%;
    height: 100%;
    text-align: center;
    border-radius: 25px;
    border: 3px solid var(--outline-colour);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-colour);
    color: var(--text-colour);
    --scale: 1;
}

.waiting-list-title {
    width: 100%;
    color: var(--text-colour);
    line-height: 1rem;
}

    .waiting-list-title h2 {
        font-size: 1.4em;
    }

.timer-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.time-remaining {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--button-background-colour);
    padding: 0;
    line-height: 1px;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--button-background-colour);
    line-height: 1px;
}

.timer-min {
    min-width: 2ch;
    text-align: right;
    color: var(--button-text-colour);
}


.timer-second {
    min-width: 2ch;
    text-align: left;
    color: var(--button-text-colour);
}

.timer-part {
    min-width: 2ch;
    text-align: left;
    color: var(--button-text-colour);
}

.timer-colon {
    min-width: 1ch;
    text-align: center;
    color: var(--button-text-colour);
}

.time-remaining-text {
    color: var(--button-text-colour);
}

.booking-customer-block-container {
    width: 100%;
    height: 100%;
    text-align: center;
    color: var(--text-colour);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.next-free-slot {
    width: 100%;
    background-color: var(--button-background-colour);
    margin-top: auto;
}

.next-free-slot-text {
    color: var(--button-text-colour);
}

.waitinglist-booking {
    background-color: var(--background-colour);
    flex: 1;
    overflow: hidden;
}

    .waitinglist-booking:nth-child(even) {
        background: var(--calendar-highlight-colour);
    }

p {
    margin: 0;
    font-weight: normal;
    color: var(--text-colour);
}

/* Scale text for calendars on page */
.timer-min,
.timer-second,
.timer-part,
.timer-colon,
.time-remaining-text {
    font-size: calc(2rem * var(--scale));
}

.waiting-list-title h2 {
    font-size: calc(1.2rem * var(--scale));
}

.next-free-slot-text {
    font-size: calc(1rem * var(--scale));
}

p {
    font-size: calc(0.9rem * var(--scale));
}

.demo-advert,
.demo-empty-state {
    width: 100vw;
    height: 100vh;
}

.demo-empty-state {
    display: grid;
    place-items: center;
    background: #2d2d2d;
    color: #fff;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 800;
}

.demo-advert-image {
    position: relative;
    overflow: hidden;
    background: #111;
}

.demo-advert-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(35px) brightness(0.6) saturate(1.3) contrast(1.5);
    transform: translate(-50%, -50%) scale(5);
}

.demo-advert-media {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
}

.demo-advert-video {
    display: grid;
    place-items: center;
    background: #000;
}

.demo-advert-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
