/*
 * Utilities
 */
.overflow-hidden {
    overflow: hidden;
}
a.disabled {
    color: currentColor;
    cursor: not-allowed;
    opacity: 0.5;
    outline: none;
    text-decoration: none;
}

/*
 * Arrows navigation
 */
i.arrow {
    border-color: #5A5A5A !important;
    border-style: solid;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 7px;
}
i.arrow:hover {
    border-color: #000000 !important;
}
.arrow.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}
.arrow.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}
.arrow.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}
.arrow.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

/*
 * Sticky (appointments' modal - only three stackable items)
 */
.sticky-wrapper .sticky-content {
    height: 33.333333%;
}
.sticky-content {
    left: 0;
    position: relative;
    top: 0;
    width: 100%;
}
.sticky-wrapper .sticky-content:nth-child(2) {
    top: 33.333333%;
}
.sticky-wrapper .sticky-content:nth-child(3) {
    top: 66.666666%;
}
.sticky-item {
    background-color: #FFFFFF;
    box-shadow: 0 0.125rem 0 rgba(0, 0, 0, 0.075);
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    padding: 5px;
}

/*
 * Calendar navigation
 */
.prev-month:hover,
.next-month:hover {
    cursor: pointer;
}

/*
 * Top navigation drop down menu
 */
.dropdown-menu {
    min-width: 100px;
    padding-bottom: 0;
    padding-top: 0;
    z-index: 1030;
}
.dropdown-menu .dropdown-item {
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}
.dropdown-menu .dropdown-item:hover {
    border-radius: 0.25rem;
}
.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus {
    color: #000000;
    background-color: #F8F9FA;
}

/*
 * Top navigation link
 */
.nav-link {
    border-bottom: none;
}

/*
 * Container
 */
.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    .navbar-expand-lg>.container,
    .navbar-expand-lg>.container-fluid {
        flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/*
 * Centered container
 */
.container-center {
    bottom: 0;
    height: 50%;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

/*
 * Calendar
 */
.calendar-container .weekend-day {
    background: #F0F0F0;
}
.calendar-container .current-day span.date:after {
    border-top-style: solid;
    border-top-width: 2px;
    content: '';
    display: block;
    width: 22px;
}
.calendar-container .bookable-day:hover {
    cursor: pointer;
}

/*
 * Appointment (Sidebar)
 */
.appointment-content h5:after {
    border-top: 1px solid #DEE2E6;
    content: '';
    display: block;
    margin-top: 0.25rem;
}

#appointmentModal .appointment-hour {
    border: 1px solid #5A5A5A;
}
#appointmentModal .appointment-hour.active,
#appointmentModal .appointment-hour:hover {
    color: #FFFFFF;
    cursor: pointer;
}

/*
 * Spinner
 */
.spinner-container {
    background-color: rgba(255, 255, 255, 0.3);
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 999;
}
.spinner {
    animation: rotate 2s linear infinite;
    height: 50px;
    left: 50%;
    margin: -25px 0 0 -25px;
    position: absolute;
    top: 50%;
    width: 50px;
    z-index: 1000;
}
.spinner .path {
    animation: dash 1.5s ease-in-out infinite;
    stroke: hsl(0, 0%, 50%);
    stroke-linecap: round;
}
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /*
     * Arrows navigation
     */
    i.arrow {
        border-color: #000000;
        padding: 5px;
    }

    /*
     * Book wrapper
     */
    .book-wrapper {
        height: 70vh;
    }
    .book-wrapper .col-12:first-child {
        max-height: 70vh;
        overflow-y: scroll;
    }
    .book-wrapper .col-12:last-child {
        max-height: 70vh;
    }

    /*
     * Calendar
     */
    .calendar-container header {
        background-color: #FFFFFF;
        box-shadow: 0 0.125rem 0 rgba(0, 0, 0, 0.075);
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 1000;
    }
    .calendar-container h2 {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /*
     * Appointment (Sidebar)
     */
    .appointment-container .day h5 {
        padding: 10px;
        margin: -8px;
    }
    .appointment-container .date {
        padding-left: 4px;
    }

    /*
     * Form links after submit button
     */
    .form-links span::after {
        clear: both;
        content: "";
        display: block;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /*
     * Centered container
     */
    .container-center {
        width: 70%;
    }

    /*
     * Calendar
     */
    .day {
        height: 6vw;
    }

    /*
     * Form links after submit button
     */
    .form-links span::after {
        clear: both;
        content: "";
        display: block;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /*
     * Centered container
     */
    .container-center {
        width: 60%;
    }

    /*
     * Calendar
     */
    .day {
        height: 6vw;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /*
     * Centered container
     */
    .container-center {
        width: 50%;
    }

    /*
     * Calendar
     */
    .day {
        height: 6vw;
    }
}