@font-face {
    font-family: gill;
    src: url(/themes/second_nature/css/fonts//gillsans.ttf)
}

.success,
.errors {
    font-size: 16px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.success {
    color: black;
    white-space: pre-wrap;
}

.errors {
    color: #F79748;
}

.scheduler {
    display: flex;
}

.left {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;    
    flex-direction: column;
    margin-top: 30px;
}

.right {
    flex: 1;
    padding: 0px 20px;
    position: relative;
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.slots-container {
    display: none;    
    margin-top: 5px;
    flex-direction: column;
    transition: all 1s;
}

.slots-container.active {
    display: flex;
    margin-top: 5px;
}

.slot {
    display: flex;
    justify-content: center;
    font-size: 14px; 
    cursor: pointer;
}

.slots-1 {
    margin: 0 20px;
}

.slots-2 {
    margin: 0 20px
}

.slot.confirmed,
.slot.selected {
    background-color: #F79748;
}

.selected-day {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    margin-bottom: 50px;
    align-items: center;
    justify-content: center;
}

.selected-slots {
    text-align: center;
}

.slot.disabled {
    background-color: grey;
    pointer-events: none;
}

.confirmed-heading {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.confirmed-date {
    font-size: 12px;
}

.all-slots {
    text-align: center;
    font-size: 14px;
}

.hour-container {
    margin-top: 40px;
    text-align: center;    
}

.hour {
    font-size: 16px;
    cursor: pointer;
}

#toggle:hover {
    background-color: white;   
    color: #B7CBD8 !important;
}

#toggle {
    border-color: #B7CBD8;
    color: #B7CBD8;
    flex: 1;
    justify-content: flex-end;
    font-size: 12px;
    display: flex;
    cursor: pointer;
}

.datepicker table tr td span.active.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled.disabled, .datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active.disabled:hover.active, .datepicker table tr td span.active.disabled:hover.disabled, .datepicker table tr td span.active.disabled:hover:active, .datepicker table tr td span.active.disabled:hover:hover, .datepicker table tr td span.active.disabled:hover[disabled], .datepicker table tr td span.active.disabled[disabled], .datepicker table tr td span.active:active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active:hover.active, .datepicker table tr td span.active:hover.disabled, .datepicker table tr td span.active:hover:active, .datepicker table tr td span.active:hover:hover, .datepicker table tr td span.active:hover[disabled], .datepicker table tr td span.active[disabled],
.datepicker table tr td.active.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled.active, .datepicker table tr td.active.disabled.disabled, .datepicker table tr td.active.disabled:active, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active.disabled:hover.active, .datepicker table tr td.active.disabled:hover.disabled, .datepicker table tr td.active.disabled:hover:active, .datepicker table tr td.active.disabled:hover:hover, .datepicker table tr td.active.disabled:hover[disabled], .datepicker table tr td.active.disabled[disabled], .datepicker table tr td.active:active, .datepicker table tr td.active:hover, .datepicker table tr td.active:hover.active, .datepicker table tr td.active:hover.disabled, .datepicker table tr td.active:hover:active, .datepicker table tr td.active:hover:hover, .datepicker table tr td.active:hover[disabled], .datepicker table tr td.active[disabled] {
    background-color: #F79748 !important;
    text-shadow: none;
    background-image: none;
    background-repeat: no-repeat;
    border-radius: 0px;
    border: none;
}

#submit.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.bg-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(https://oursecondnature.com/modules/kbgiftcard/views/img/osn-michelia-front.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.intro .title {
    font-size: 25px;
    margin-bottom: 20px;    
}

.intro {
    text-align: center;
    margin-bottom: 50px; 
    display: flex;
    justify-content: center;
    flex-direction: column;   
}

.intro .content {
    display: flex;
    flex: 1;
    justify-content: center;
    max-width: 500px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: pre-wrap;
    font-size: 14px;
}

.scheduler > .intro {
    display: none;
    margin-top: 50px;
}

.appointments-input {
    min-width: 400px;
}

.survey-results {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    background-color: white;
    border: 1px solid black;
    padding: 10px 20px;
}

.survey-results.active {
    display: block;
}

.survey-results .close {
    position: absolute;
    top: 5px;
    right: 5px;
}

.survey-results .question {
    font-weight: bold;
}

.survey-results .answer {
    padding-bottom: 1em;
}


@media screen and (max-width: 735px) {
    .intro {
        margin-bottom: 0px;
    }
    
    .all-slots {
        margin-bottom: 30px;
    }

    .left {
        flex-direction: column-reverse;
    }

    .scheduler > .intro {
        display: block;
    }

    .right .intro {
        display: none;
    }

    .scheduler { 
        flex-direction: column;
    }

    .slots {
        text-align: center;
    }

    .selected-day {
        flex-direction: column;
    }

    .selected-day .text {
        width: 100%;
        text-align: center;
        transform: none;
        left: unset;
    }

    .slots-1 {
        margin: 0 5px;
    }
    
    .slots-2 {
        margin: 0 5px
    }
}