

main > .table > button:hover > img{
    filter: drop-shadow(0px 0px 0.5rem #ffb300) drop-shadow(0px 0px 1rem #0010ff);
}

main > .table > button > img{
    width: 100%;
}

.bckSpace{
    display: grid;
    margin-bottom: 5rem;
}

.bckButton{
    max-width: max-content;
    height: min-content;
    justify-self: center;
    background-color: transparent;
    border: 0.1rem solid #580c63;
    color: white;
    font-size: 1.65rem;
    border-radius: 1rem;
    padding: 0.5rem 2rem;
    margin-top: 1.5rem;
    background-image: linear-gradient(to top, #2d004175 0%, #5b0e6b82 51%, #6300b53d 100%);
    /*display: none;*/
}
.bckButton:hover {
    background-color: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}


.agreementStart, .agreement, .appointment, .appointmentAlert, .appointmentSending{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000eb;
    z-index: 48;
    display: none;
    overflow-y: auto;
}
.agreementStart.active, .agreement.active, .appointment.active, .appointmentAlert.active, .appointmentSending.active{
    display: initial;
}
.agreementStart > div{
    color: white;
    padding: 0rem 1rem;
    display: grid;
    justify-content: center;
    align-content: center;
    height: 100%;
}
.agreementStart h1{
    font-size: clamp(1rem, 4vw, 2rem);
    text-align: center;
}
.agrStartText{
    min-height: 2rem;
    background: #220e32c4;
    border-radius: 0.3rem;
    font-size: 1.5rem;
    justify-self: center;
    width: 30rem;
    max-width: 100%;
    padding: 0.5rem 1rem;
    outline: 0px solid transparent;
    border: transparent 2px solid;
}
.agrStartText:focus{
    border: #8b00ff 2px solid;
}
.spin-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}
.spin-wrapper .spinner {
    position: absolute;
    height: 60px;
    width: 60px;
    border: 3px solid transparent;
    border-top-color: #a04668;
    top: 50%;
    left: 50%;
    margin: -30px;
    border-radius: 50%;
    animation: spinCards 2s linear infinite;
}
.spin-wrapper .spinner:before, .spin-wrapper .spinner:after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}
.spin-wrapper .spinner:before {
    border-top-color: #254e70;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    animation: spinCards 3s linear infinite;
}
.spin-wrapper .spinner:after {
    border-top-color: #fffbfe;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    animation: spinCards 4s linear infinite;
}
@keyframes spinCards {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.agrGrid{
    display: none;
    opacity: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    justify-items: center;
    align-content: start;
    grid-template-rows: auto auto 1fr auto 2.5rem;
    grid-template-columns: 1fr;
}
.agrGrid.loaded{
    display: grid;
    opacity: 1;
}
.agrGrid > h3{
    color: white;
    margin-top: 8rem;
    font-size: 2.25rem;
    user-select: none;
    pointer-events: none;
    text-shadow: 0px 0px 1rem #a841e1, 0px 0px 2rem #a841e1, 0px 0px 5rem #a841e1;
}
.agrGrid .agrTextContainer{
    border-top: none;
    padding: 1rem;
    color: white;
    width: 96%;
    max-width: 50rem;
    overflow: scroll;
    min-height: 30rem;
    overflow-x: hidden;
    background: #0009;
    border: 15px solid #00000024;
    border-radius: 2rem;
    box-shadow: 0px 0px 1rem #000000c4;
    margin-bottom: 1rem;
}

.agrData{
    font-size: 18px;
    text-align: end;
    padding-right: 1rem;
}

.gridfio{
    display: grid;
    grid-template-columns: auto 1fr;
}
.gridfio > h4{
    margin: 0;
    align-self: end;
    font-size: 1.3rem;
    padding: 0rem 1rem;
}

.agrFIO{
    margin-top: 1rem;
    font-size: 20px;
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
    /*margin-left: 9%;*/
    margin-right: 9%;
    outline: 0px solid transparent;
}

.agrTextContainer .textBox{
    padding-top: 0rem;
}

.agrGrid .agrTextContainer{
    min-height: 35rem;
}

.agreement .trumbowyg-dark .trumbowyg-box,
.appointment .trumbowyg-dark .trumbowyg-box{
    max-width: 50rem;
}
.agremConfrims{
    display: grid;
    justify-items: stretch;
    grid-template-columns: 1fr 1fr;
    max-width: 35rem;
    width: 100%;
    margin: 1rem 0rem;
}
.agremConfrims .checkBoxContainer{
    grid-column: span 2;
    margin: 0rem 1rem 0.75rem 1rem;
}
.checkBoxContainer input[type="checkbox"] {
    display: none;
    visibility: hidden;
}
.checkBoxContainer label {
    position: relative;
    padding-left: 1.8em;
    padding-right: 0em;
    line-height: 1.4;
    cursor: pointer;
    display: inline-flex;
    color: wheat;
    font-size: 1.25rem;
    user-select: none;
}
.checkBoxContainer label:before {
    box-sizing: border-box;
    content: " ";
    position: absolute;
    top: 0em;
    left: 0;
    display: block;
    width: 1.4em;
    height: 1.4em;
    border: 2px solid #9098A9;
    border-radius: 6px;
    z-index: -1;
}
.checkBoxContainer input[type=checkbox]:checked + label {
    /*padding: 0rem 0.75rem;*/
}
.checkBoxContainer input[type=checkbox]:checked + label:before {
    top: 0rem;
    /*width: 100%;*/
    /*height: 100%;*/
    background: #b7e6c9;
    border-color: #2cbc63;
    content: '✔';
    padding-left: 0.3rem;
    color: black;
}
.checkBoxContainer label,
.checkBoxContainer label::before {
    transition: 0.25s all ease;
}

.agrStartButtons{
    display: grid;
    /*justify-items: stretch;*/
    /*grid-template-columns: 1fr 1fr;*/
    max-width: 35rem;
    width: 100%;
    margin: 1rem 0rem;
    justify-self: center;
}

.agremConfrims .confrim, .agreementStart .agrStartconfrim{
    cursor: pointer;
    font-size: 2rem;
    padding: 0.5rem;
    background: #00ff041c;
    border: none;
    border-radius: 1rem 0rem 0rem 1rem;
    text-shadow: 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00;
    transition: background 0.3s ease;
}
.agremConfrims .confrim:hover,.agreementStart .agrStartconfrim:hover{
    background: #00ff046b;
    text-shadow: 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00, 0px 0px 1rem #20ff00;
}
.agremConfrims .confrimNOT, .agreementStart .agrStartconfrimNOT{
    cursor: pointer;
    font-size: 2rem;
    padding: 0.5rem;
    background: #ff00001c;
    border: none;
    border-radius: 0rem 1rem 1rem 0rem;
    text-shadow: 0px 0px 1rem #f00, 0px 0px 1rem #f00,0px 0px 1rem #f00,0px 0px 1rem #f00;
    transition: background 0.3s ease;
}
.agremConfrims .confrimNOT:hover, .agreementStart .agrStartconfrimNOT:hover{
    background: #ff00006b;
    text-shadow: 0px 0px 1rem #f00, 0px 0px 1rem #f00,0px 0px 1rem #f00,0px 0px 1rem #f00, 0px 0px 1rem #f00, 0px 0px 1rem #f00,0px 0px 1rem #f00,0px 0px 1rem #f00;
}

.agreementStart .agrStartconfrim{
    background: transparent;
    border-radius: 1rem;
}
.agreementStart .agrStartconfrim:hover{
    background: transparent;
}

.goAuth{
    margin: 2rem 0rem;
    box-shadow: 0px 0px 0px 2px wheat;
    color: wheat;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.5s ease;
}
.goAuth:hover{
    text-shadow: 0px 0px 1rem wheat, 0px 0px 2rem wheat, 0px 0px 5rem wheat;
    box-shadow: none;
}

@keyframes alertCheck {
    0% { transform: translate(0px, 2px); }
    33% { transform: translate(-3px, 0px); }
    66% { transform: translate(3px, -2px);  }
    100% { transform: translate(0px, 0px); }
}
.checkBoxContainer.alert {
    animation: alertCheck .2s infinite alternate;
}

.appointment > div{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    color: white;
    padding: 0rem 1rem;
    margin-top: 5rem;
}
.appointment > div > * {
    grid-column: 2;
    max-width: 50rem;
}
.appointment [contenteditable]:focus{
    outline: 0px solid transparent;
}
.appoAccept{
    width: max-content;
    margin-top: 1rem;
    background: #0000007d;
    color: #96ffa7;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    text-shadow: 0px 0px 1rem #41e196, 0px 0px 2rem #4187e1;
    transition: text-shadow 0.1s ease-in;
    padding: 1rem;
    border-radius: 1rem;
    justify-self: center;
}
.appoAccept:hover{
    text-shadow: 0px 0px 1rem #41e196, 0px 0px 2rem #4187e1, 0px 0px 1rem #41e196, 0px 0px 2rem #4187e1;
}
.appoHead{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
.appoHead > h1 {
    grid-column: 1/4;
    grid-row: 2;
    text-align: center;
    text-shadow: 0px 0px 1rem #8a41e1;
}
.appoData{
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-gap: 1.5rem;
}
.appoData > h3{
    grid-column: 2;
    grid-row: 3;
    text-align: center;
    margin: 0;
}
.appoData > .boxName{
    grid-column: 3;
    grid-row: 3;
    min-width: 15rem;
    display: grid;
    justify-content: center;
    align-content: center;
    background: #00000070;
    border: none;
    text-align: center;
    font-size: 1.2rem;
}
.appoData > h3.FIO, .appoData > .boxName.FIO{
    grid-row: 1;
}

.appoData > h4{
    grid-column: 2;
    grid-row: 2;
    text-align: center;
    margin: 0;
}
.appoData > input{
    grid-column: 3;
    grid-row: 2;
    min-width: 15rem;
    background: #00000070;
    color: white;
    border: none;
    text-align: center;
    font-size: 1rem;
}
.appoData > .boxGender{
    grid-column: 2/4;
    grid-row: 4;
    justify-self: center;
    display: flex;
    gap: 3rem;
    margin-top: 0.5rem;
}
.boxGender label{
    font-size: 1.25rem;
    cursor: pointer;
}
.boxGender input{
    appearance: none;
    display: none;
}
.boxGender input + div{
    transition: text-shadow 0.5s ease-in, scale 0.5s ease-in;
    user-select: none;
}
.boxGender #woman:checked + div{
    text-shadow: 0px 0px 1rem #dc41e1, 0px 0px 1rem #dc41e1, 0px 0px 2rem #dc41e1, 0px 0px 3rem #dc41e1;
    scale: 1.5;
}
.boxGender #man:checked + div{
    text-shadow: 0px 0px 1rem #2e44fa, 0px 0px 1rem #2e44fa, 0px 0px 2rem #2e44fa, 0px 0px 3rem #2e44fa;
    scale: 1.5;
}


.appoContxt{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto 1fr;
    padding-bottom: 1.5rem;
}
.appoContxt > h3 {
    grid-column: 2;
    margin-top: 3rem;
    font-size: 1.75rem;
}
.appoContxt > div {
    grid-column: 1/4;
    min-height: 5rem;
    background: #00000070;
    border: none;
    padding: 1rem;
    font-size: 1.25rem;
}
.appointment .checkBoxContainer{
    margin: 0.25rem 1rem;
}
.appoAgreem{
    border-top: 2px solid;
    color: burlywood;
    padding-top: 0.5rem;
    margin: 0.75rem;
    margin-bottom: 3rem;
}
.appoAgreem.service > a{
    background: #0000;
    border: none;
    color: burlywood;
    border-radius: 0.2rem;
    text-shadow: 0rem 0rem 0.2rem black, 0rem 0rem 0.3rem black;
    transition: background 0.2s ease, scale 0.1s ease, box-shadow 1s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 1.15rem;
    padding: 0.5rem;
}
.appoAgreem.service > a:hover{
    background: #deb88712;
    scale: 1.04;
    cursor: pointer;
}

.appoAgreem.content{
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    margin: 0rem 2rem;
    transition: grid-template-rows 0.75s, box-shadow 1s ease;
    background: #0000004f;
    color: white;
    border-radius: 0rem 0rem 1rem 1rem;
}
.appoAgreem.service.open .content{
    grid-template-rows: 1fr;
    box-shadow: none;
    background: #0000;
    margin-bottom: 1rem;
}
.appoAgreem.service.open > button{
    box-shadow: none;
}

.appointmentAlert.active,.appointmentSending.active{
    display: grid;
    justify-content: center;
    align-content: center;
    color: white;
}
.appointmentAlert > h1, .appointmentSending > h1{
    text-shadow: 0px 0px 1rem royalblue, 0px 0px 2rem royalblue;
    text-align: center;
}
.appointmentAlert > h2, .appointmentSending > h2{
    justify-self: center;
    margin: 0.5rem 0.5rem 2.5rem 0.5rem;
    text-align: center;
}
.appointmentAlert > h2 > span{
    color: red;
}
.appointmentAlert > button{
    background: transparent;
    border: none;
    color: #97e997;
    font-size: 1.3rem;
    text-shadow: 0px 0px 1rem #97e997, 0px 0px 2rem #97e997;
    transition: text-shadow 0.25s ease-in;
    cursor: pointer;
    width: min-content;
    justify-self: center;
    padding: 0.7rem 1rem;
}
.appointmentAlert > button:hover{
    text-shadow: 0px 0px 1rem #97e997, 0px 0px 2rem #97e997, 0px 0px 2rem #97e997, 0px 0px 3rem #97e997;
}

@media (max-width: 520px){
    .appoData > .boxName.FIO{
        grid-column: 2;
        grid-row: 2;
    }
    .appoData{
        grid-gap: 0.5rem;
    }
    .appoData > .boxName{
        grid-column: 2;
        grid-row: 2;
        min-height: 3rem;
    }
    .appoData > h4{
        grid-row: 3;
    }
    .appoData > input{
        grid-column: 2;
        grid-row: 4;
        min-height: 3rem;
    }
    .appoData > .bName{
        grid-row: 5;
    }
    .appoData > .boxName{
        grid-row: 6;
    }
    .appoData > .boxGender{
        grid-row: 7;
    }
    .rowDownButtons{
        grid-auto-flow: row;
        grid-gap: 0rem;
    }
    .agrStartText{
        width: 75vw;
    }
}


.cssload-container {
    width: 100%;
    height: 49px;
    text-align: center;
}

.cssload-zenith {
    width: 49px;
    height: 49px;
    margin: 0 auto;
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    box-shadow: 3px 3px 1px rgb(182, 171, 241);
    animation: cssload-spin 1050ms infinite linear;
    -o-animation: cssload-spin 1050ms infinite linear;
    -ms-animation: cssload-spin 1050ms infinite linear;
    -webkit-animation: cssload-spin 1050ms infinite linear;
    -moz-animation: cssload-spin 1050ms infinite linear;
    filter: drop-shadow(0px 0px 1rem royalblue) drop-shadow(0px 0px 1rem royalblue) drop-shadow(0px 0px 1rem royalblue);
}



@keyframes cssload-spin {
    100%{ transform: rotate(360deg); transform: rotate(360deg); }
}

@-o-keyframes cssload-spin {
    100%{ -o-transform: rotate(360deg); transform: rotate(360deg); }
}

@-ms-keyframes cssload-spin {
    100%{ -ms-transform: rotate(360deg); transform: rotate(360deg); }
}

@-webkit-keyframes cssload-spin {
    100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-moz-keyframes cssload-spin {
    100%{ -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

#buttonCloseAgr{
    color: white;
    background-color: #000000bd;
    border: none;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    width: max-content;
    display: none;
    grid-template-columns: auto auto;
    place-items: center;
    z-index: 48;
    position: fixed;
    left: 0;
    top: 3.5rem;
    border-radius: 0rem 0rem 2rem 0rem;
}
#buttonCloseAgr.active{
    display: grid;
}
#buttonCloseAgr > span{
    transform: rotate(180deg);
    border: 0.1rem solid white;
    font-size: 2rem;
    padding: 0rem 0.5rem 0.35rem 0.45rem;
    border-radius: 5rem;
}
#buttonCloseAgr > p{
    margin: 0px;
    font-size: 1.5rem;
    padding-left: 1rem;
}
#buttonCloseAgr:hover{
    cursor: pointer;
}
#buttonCloseAgr:hover > span, #buttonCloseAgr:active > span{
    background-color: #ffffff61;
    text-shadow: 0px 0px 0.5rem black, 0px 0px 0.5rem black;
}
#buttonCloseAgr.disabled{
    color: gray;
}
#buttonCloseAgr.disabled > span{
    border-color: gray;
}
#buttonCloseAgr.hide{
    visibility: hidden;
}
