:root {
    --prmary-clr: #944324;
    /* --prmary-clr: #b38add; */
    --white-font: #000;
    --medium-font: 1.2rem;
    --small-font: .75rem;
    --input-width: fit-content;
    --mt-10: 10px;
    --mb-10: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e1dc;
}

#select-a-date-mobile {
    display:none;
}

#select-service-mobile {
    display: none;
}

#date-chosen-mobile {
    display: none;
}

.no-focus:focus {
    outline: none;
}

.select-service-err {
    display: none;
}

.unclickable {
    pointer-events: none;
    height: 90px;
    width: 14.28%;
}
::-webkit-scrollbar {
    width: 20px;
    }
    
    ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb {
    background:#fff; 
    border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
    background:rgb(54, 56, 58); 
    }
.small-font {
    font-size: var(--small-font);
}
.medium-font {
    font-size: var(--medium-font);
}
.mt-10 {
    margin-top: var(--mt-10);
}
.mb-10 {
    margin-bottom: var(--mb-10);
}
.pl-70 {
    padding-left: 70px;
}
/********** CALENDAR STYLING START *********/
.container {
    position: relative;
    width: 1200px;
    min-height: 850px;
    margin: 0 auto;
    padding: 5px;
    color: #fff;
    display: flex;
    border-radius: 10px;
    background-color: #333;
}

.left {
    width: 60%;
    padding: 20px;
    margin-bottom: 20px;
}

.calendar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #878895;
    border-radius: 5px;
    background-color: #fff;
}

/* first background page */
.calendar::before,
.calendar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 97%;
    border-radius: 0 5x 5px 0;
    background-color: #d3d5d6;
    transform: translateY(-50%);
}

/* second background page */
.calendar::before {
    height: 94%;
    left: calc(100% + 12px);
    background-color: rgb(153, 153, 153);
}

/* calendar year and month text */
.calendar .month {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.calendar .month .prev,
.calendar .month .next {
    cursor: pointer;
}

.calendar .month .prev:hover,
.calendar .month .next:hover {
    color: var(--prmary-clr);
} 

.calendar .weekdays {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
}

.calendar .weekdays div {
    width: 14.28%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar .days {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.calendar .days .day {
    width: 14.28%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--prmary-clr);
    border: 1px solid #f5f5f5;
}
.calendar .days .new-day {
    width: 14.28%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--prmary-clr);
    border: 1px solid #f5f5f5;
}

/* create hover effect on current months days only, not previous or next months days */
.calendar .day:not(.prev-date, .next-date):hover {
    color: #fff;
    background-color: var(--prmary-clr);
}

.calendar .days .prev-date,
.calendar .days .next-date {
    color: #b3b3b3;
}
.calendar .days .active {
    position: relative;
    font-size: 2rem;
    color: #fff;
    background-color: var(--prmary-clr);
}

.calendar .days .active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px 2px var(--prmary-clr);
}

.calendar .days .today {
    font-size: 2rem;
}

.calendar .days .event {
    position: relative;
}

/* put an underline on day of event */
.calendar .days .event::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 75%;
    height: 6px;
    border-radius: 30px;
    transform: translateX(-50%);
    background-color: var(--prmary-clr);
}

.calendar .event:hover::after {
    background-color: #fff;
}

.calendar .active.event::after {
    background-color: #fff;
    bottom: 20%;
}
.calendar .active.event {
    padding-bottom: 10px;
}

.calendar .goto-today {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--prmary-clr);
}

.calendar .goto-today .goto {
    display: flex;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--prmary-clr);
}

.calendar .goto-today .goto input {
    width: 100%;
    height: 30px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    color: var(--prmary-clr);
    border-radius: 5px;
}

.calendar .goto-today button {
    padding: 5px 10px;
    border: 1px solid var(--prmary-clr);
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    color: var(--prmary-clr);
}

.calendar .goto-today button:hover {
    color: #fff;
    background-color: var(--prmary-clr);
}

.calendar .goto-today .goto button {
    border: none;
    border-left: 1px solid var(--prmary-clr);
    border-radius: 0;
}
/********** CALENDAR STYLING END *********/

/********* RIGHT SIDE STYLING START ***********/

#select-stylist-avail-time, #select-stylist-btn, #show-selected-stylist, #name, #phone, #email {
    padding: 7px 12px;
    font-size: 16px;
    border-radius: 5px;
    color: #333;
}

#submit-appointment-btn {
    padding: 5px 8px;
    font-size: 16px;
    color: var(--prmary-clr);
    background-color: #fff;
    font-weight: bold;
}

#calendar-form div div input {
    font-size: 20px !important;
}

.container .right {
    position: relative;
    width: 46%;
    min-height: 100%;
    padding: 20px 10px 20px 20px;
}

.right .today-date {
    width: 100%;
    height: 50px;
    /* display: flex; */
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 40px; */
    /* padding-left: 70px;
    margin-top: 50px; */
    margin-bottom: 20px;
    /* text-transform: capitalize; */
}

.today-date .event-day {
    font-size: var(--small-font);
    font-weight: 500;
    width: var(--input-width);
    color: #000;
}

.today-date .event-date {
    font-size: var(--small-font);
    font-weight: 500;
    width: var(--input-width);
    color: #333;
}
.today-date input {
    margin-top: 10px;
}

.events {
    width: 100%;
    height: 100%;
    max-height: 600px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.events .event {
    position: relative;
    width: 95%;
    min-height: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
    padding-left: 50px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #3f4458, transparent);
}

.events .event:nth-child(even) {
    background: transparent;
}

.events .event:hover {
    background: linear-gradient(90deg, var(--prmary-clr), transparent);
}

.events .event .title {
    display: flex;
    align-items: center;
    pointer-events: none;
}

.events .event .title .event-title {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 20px
}

.events .event .title i {
    color: var(--prmary-clr);
    font-size: 0.5rem;
}

.events .event:hover .title i,
.events .event:hover .event-time {
    color: #fff;
}

.events .event .event-time {
    font-size: 0.8rem;
    font-weight: 400;
    color: #878895;
    margin-left: 15px;
    pointer-events: none;
}

.events .event::after {
    content: "x";
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: .3;
    color: var(--prmary-clr);
    transform: translateY(-50%);
}

.events .event:hover::after {
    display: flex;
}
.events .no-event {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #878787;
}

.add-event-wrapper {
    position: absolute;
    bottom: 100px;
    left: 50%;
    width: 90%;
    max-height: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: max-height 0.5s;
}

.add-event-wrapper.active {
    max-height: 300px;
}

.add-event-header {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #373c4f;
    border-bottom: 1px solid #f5f5f5;
}

.add-event-header .close {
    font-size: 1.5rem;
    cursor: pointer;
}

.add-event-header .close:hover {
    color: var(--prmary-clr);
}

.add-event-header .title {
    font-size: 1.2rem;
    font-weight: 500;
}

.add-event-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
}

.add-event-body .add-event-input {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.add-event-body .add-event-input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    padding: 0 10px;
    font-size: 1rem;
    font-weight: 400;
    color: #373c4f;
}
.add-event-body .add-event-input input::placeholder {
    color: #a5a5a5;
}
.add-event-body .add-event-input input:focus {
    border-color: var(--prmary-clr);
}
.add-event-body .add-event-input input:focus::placeholder {
    color: var(--prmary-clr);
}
.add-event-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.add-event-btn {
    height: 40px;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    border: none;
    color: #fff;
    background-color: var(--prmary-clr);
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--prmary-clr);
}
.add-event-btn:hover {
    color: var(--prmary-clr);
    background-color: transparent;
}
.add-event {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #878895;
    border: 2px solid #878895;
    opacity: 0.5;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}
.add-event:hover {
    opacity: 1;
}
.add-event i {
    pointer-events: none;
}

/*MAKE RESPONSIVE*/

@media (max-width: 750px) {
    body {
        align-items: flex-start;
        justify-content: flex-start;
    }
    .container {
        min-height: 100vh;
        flex-direction: column;
        border-radius: 0;
        align-items: center;
    }
    .container .left,
    .container .right {
        width: 75%;
        height: 100%;
        padding: 20px;
    }
    .calendar::before,
    .calendar::after
    {
        top: 100%;
        left: 50%;
        width: 97%;
        height: 12px;
        border-radius: 0 0 5px 5px;
        transform: translateX(-50%);
    }
    .calendar::before {
        width: 94%;
        top: calc(100% + 12px);
    }
    /* .events {
        padding-bottom: 340px;
    } */
    .add-event-wrapper {
        bottom: 100px;
    }

    #select-a-date-desk-top {
        display:none;
    }
    
    #select-service-desk-top {
        display: none;
    }

    #date-chosen-mobile {
        display: block;
    }

    #select-a-date-mobile {
        display:block;
        margin: 20px 0 10px 0;
    }
    
    #select-service-mobile {
        display: block;
    }

    /* #select-date-modal, #select-date-err-btn, #stylist-name-empty-text, #closse-stylist-name-err-btn {
        font-size:2.3vw !important;
    } */
}

@media (max-width: 500px) {
    .calendar .month {
        height: 75px;
    }
    .calendar .weekdays {
        height: 50px;
    }
    .calendar .days .day {
        height: 40px;
        font-size: .8rem;
    }
    .calendar .days .day.active,
    .calendar .days .day.today
    {
        font-size: 1rem;
    }
    .right .today.active {
        padding: 20px;
    }
    .container .left,
    .container .right {
        width: 100%;
        height: 100%;
        padding: 20px;
    }
}
/********* RIGHT SIDE STYLING END ***********/