/* свойства модального окна по умолчанию */
.modal {
    position: fixed;
    /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(8, 9, 19, 0.5);
    /* цвет фона */
    z-index: 1050;
    opacity: 0;
    /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    /* анимация перехода */
    pointer-events: none;
    /* элемент невидим для событий мыши */
}
  
/* при отображении модального окно */
.modal:target {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}
  
/* ширина модального окна и его отступы от экрана */
.modal-dialog {
    position: relative;
    width: -webkit-fill-available;
    width: -moz-available;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
  
@media (min-width: 576px) {
    .modal-dialog {
        width: -webkit-fill-available;
        width: -moz-available;
        margin: auto;
    }
}
  
/* свойства для блока, содержащего контент модального окна */
.modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #212039;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}
  
/* свойства для заголовка модального окна */
.modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: flex-end;
    padding: 5px 15px;
}
  
.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}
  
/* свойства для кнопки "Закрыть" */
    .close {
    float: right;
    font-size: 36px;
    line-height: 1;
    color: white;
    text-decoration: none;
}
  
/* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
.close:focus, .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
}
  
/* свойства для блока, содержащего основное содержимое окна */
.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0 15px 15px;
    overflow: auto;
    width: 40vw;
}

/*чтоб ничего не ехало*/
@media screen and (max-width: 745px) {
    .modal-body {
        width: -webkit-fill-available;
        width: -moz-available;
    }
}

/*поменьше окно после 370px*/
@media screen and (max-width: 370px) {
    .modal-content{
        width: 300px;
    }
}

.modal-title{
    font-family: Jost;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    padding-right: 10px;
}  



#count_bonus {
    width: 40%;
    height: 55px;
}

#Comment {
    width: -webkit-fill-available;
    width: -moz-available;
    height: 165px;
}

#Comment, #count_bonus {
    font-family: Jost;
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    padding-top: 16px;
    padding-left: 16px;
    border-radius: 10px;
    border: 0;
    resize: none;
    box-shadow: 1px 0 rgba(0, 0, 0, 0.15), 
                0 1px rgba(0, 0, 0, 0.15), 
                -1px 0 rgba(0, 0, 0, 0.15), 
                0 -1px rgba(0, 0, 0, 0.15);
}

.div_button {
    display: flex;
    justify-content: end;

    width: -webkit-fill-available;
    width: -moz-available;

    margin-top: 50px;
}


#text_min {
    padding-left: 5px !important;
    color: #DE1010;
    font-size: 12px;
    padding: 0;
}

.array {
    width: 8%;
    float: right;
    text-align: center;
    line-height: 48px;
    color: rgba(0, 0, 0, 0.5);
    box-shadow: 1px 0 rgba(0, 0, 0, 0.1) inset;
    cursor: pointer;
    padding-top: 5px;
}

#opacity1{
    width: -webkit-fill-available;
    width: -moz-available;
}








.dash-border-modal{
    height: max-content;
    border: dashed 1px #494766;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.text-input-rule-modal{
    width: -webkit-fill-available;
    width: -moz-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.black-text-modal{
    font-weight: 700;
}

.input-rule-modal{
    width: -webkit-fill-available;
    width: -moz-available;
}