.main{
    width: 100%;
    height: 100%;
    justify-content: center;
}

#loading{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#loadingmodal{
    height: 44px;
    margin-top: 15px;
    margin-bottom: 0 !important;
    display: none;
    align-items: center;
}

.loadingdot{
    position: relative;
    border-radius: 50%;
    background: #ff6f10;
}

.loadingdot{
    width: 2em;
    height: 2em;
    margin: 0.8em;
}

#loadingmodal .loadingdot{
    width: 1em;
    height: 1em;
    margin: 0.4em;
}

.loadingdot::before{
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
}

.loadingdot:nth-of-type(1):before{
    animation: wave 2s ease-out infinite;
}

.loadingdot:nth-of-type(2):before{
    animation: wave 2s .5s ease-out infinite;
}

.loadingdot:nth-of-type(3):before{
    animation: wave 2s 1s ease-out infinite;
}

@keyframes wave {
    0%{
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes fadein {
    0%{
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeout {
    0%{
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#schedulegrid{
    flex-direction: row;
    width: 95%;
    color: #333;
    font-size: 18px;
    font-weight: 300;
    margin-top: 10vh;
}

#schedulegrid > div{
    flex-direction: column;
    width: 100%;
}

.timecolumn{
    width: 65px !important;
}

.timecolumn > div{
    border-left: 1px solid #d9d9d9 !important;
}

#schedulegrid > div > div{
    min-width: 65px;
    min-height: 30px;
    border: 1px solid #d9d9d9;
    border-top: 0;
    border-left: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2px 5px;
}

#schedulegrid > div > div:first-of-type{
    border-top: 1px solid #d9d9d9 !important;
}

.appointment{
    border: 1px solid #d9d9d9;
    border-left: 5px solid;
    border-left-color: #ff6f10;
    border-radius: 5px;
    width: 100%;
    margin: 2px 0;
    padding: 10px 14px;
    justify-content: left;
    align-items: center;
    user-select: none;
    cursor: pointer;
    transition: .2s;
}

#modalwindowcont, #modalwindowinstrcont{
    font-weight: 300;
    display: none;
    opacity: 0;
    top: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    justify-content: center;
    align-items: center;
    z-index: 99;
}

#modalwindowinstrcont{
    z-index: 999;
    background: rgba(0, 0, 0, .2);
}


#modalwindow, #modalwindowinstr{
    width: 450px;
    /* height: 500px; */
    background: #fff;
    position: relative;
    flex-direction: column;
    padding: 50px;
    border-radius: 5px;
}

#modalwindowinstr{
    width: 465px;
    align-items: center;
}

#modalwindow > div, #modalwindowinstr > div{
    margin-bottom: 10px;
    justify-content: center;
}

#modalname, #instrnamemodal{
    font-size: 28px;
    position: relative;
    margin-bottom: 22px !important;
}

#instrnamemodal{
    margin-top: 22px;
}

#instrpfp{
    width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: 3%;
}

#modalname::after, #instrnamemodal::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translate(-50%, 0);
    height: 1px;
    width: 150px;
    background: #ff6f10;
}

#modalcost, #modaltime, #modaldatetime, #dot, #makeappointment div, #modalinstrname{
    font-size: 20px;
}   

#modalinstrname div{
    flex-direction: column;
    align-items: center;
}

.underline{
    cursor: pointer;
    position: relative;
    user-select: none;
    text-align: center;
    justify-content: center;
    width: max-content;
    margin-bottom: 8px;
}

.underline::after{
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    background: #000;
    bottom: 0;
}

#dot{
    font-weight: 900;
    margin: 0 5px;
}

#dot2{
    margin: 0 5px;
}

#modaldesc, #instrdescmodal{
    min-width: 0;
    font-size: 18px;
    word-break: break-word;
    text-align: center;
}

#instrdescmodal{
    margin-top: 10px;
}

#closemodalbutton, #closeinstrbutton{
    position: absolute;
    width: 22px;
    height: 22px;
    top: 14px;
    right: 14px;
    cursor: pointer;
}

#prevnext{
    margin-top: 20px;
    padding: 14px;
    width: max-content;
    border: 1px solid #ff6f10;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: #333;
    margin: 15px 2.5%;
    display: none;
}

#schedulegrid > div:not(:first-child) > div:not(:first-child){
    justify-content: start;
}

@media only screen and (max-width: 1500px) {

    #schedulegrid {
        width: 98%;
    }

    #prevnext{
        margin: 15px 1%;
    }

}

@media only screen and (max-width: 1200px) {

    #schedulegrid {
        flex-wrap: wrap;
    }

    #schedulegrid > div {
        width: calc(100% - 65px);
    }

    .appcont{
        flex-wrap: wrap;
        flex-direction: row !important;
        justify-content: left !important;
    }

    .appointment:nth-of-type(2n){
        margin-left: 5px;
    }

    .appointment{
        width: calc(50% - 5px);
    }

    .timecolumn {
        margin-bottom: 25px;
    }

    #prevnext{
        margin: -10px 1% 15px;
    }

}

@media only screen and (max-width: 768px) {

    .appointment{
        width: calc(100% - 5px);
    }

    .appointment:nth-of-type(2n){
        margin-left: 0;
    }

    #scheduleoverlay {
        margin: 15px 15px;
        padding: 30px 20px;
    }

    #modalwindow, #modalwindowinstr {
        width: 420px;
    }

}

@media only screen and (max-width: 450px) {

    #modalwindow , #modalwindowinstr{
        width: 320px;
        padding: 40px;
    }

    #modalwindow > div, #modalwindowinstr > div {
        margin-bottom: 8px;
    }

    #modalname , #instrnamemodal{
        font-size: 26px;
    }

    #modalcost, #modaltime, #modaldatetime, #dot, #makeappointment div , #modalinstrname {
        font-size: 18px;
    }

    #modaldesc , #instrdescmodal {
        margin-top: 10px;
    }

    #schedulegrid{
        font-size: 16px;
    }

}
