@charset "UTF-8";

/* свойства модального окна по умолчанию */
.modal {
    position: fixed; /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5); /* цвет фона */
    z-index: 1050;
    opacity: 0; /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    pointer-events: none; /* элемент невидим для событий мыши */
    margin: 0;
    padding: 0;
}
/* при отображении модального окно */
.modal:target {
    opacity: 1; /* делаем окно видимым */
	  pointer-events: auto; /* элемент видим для событий мыши */
    overflow-y: auto; /* добавляем прокрутку по y, когда элемент не помещается на страницу */
}
.disable {
 /*display:none;*/
}
/* ширина модального окна и его отступы от экрана */
.modal-dialog {
    position: relative;
    width: 95%;
    max-width: 700px!important;
    margin: 10px;
}
@media (min-width: 576px) {
  .modal-dialog {
      max-width: 500px;
      margin: 30px auto 70px; /* для отображения модального окна по центру */
  }
}
/* свойства для блока, содержащего контент модального окна */ 
.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: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
    background-color: #f3f6fe;
    /* background-image: url(/img/fon_win.webp); */
    /* background-size: contain; */
}
#openModal .modal-content {
  background:white
}
@media (min-width: 768px) {
  .modal-content {
      -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
      box-shadow: 0 5px 15px rgba(0,0,0,.5);
  }
}
/* свойства для заголовка модального окна */
.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: space-between;
    padding: 15px;
    border-bottom: 1px solid #eceeef;
}
.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}
h3.modal-title  {
  background: #2ec12f;
  text-align:center;
  color: white;
  padding: 8px;
  text-shadow: 1px 1px 1px black;
  width: 100%;
  font-weight: bold;
}
/* свойства для кнопки "Закрыть" */
.close {
    float: right;
    font-family: sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #000000;
    padding: 4px;
    text-shadow: 0 1px 0 #fff;
    opacity: .6;
    text-decoration: none;
    cursor: default;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
/* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
.close:focus, .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
}
/* свойства для блока, содержащего основное содержимое окна */
.modal-body {
  position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 15px;
    overflow: auto;
}
.modal-body img  {width: 100%;max-width: 150px;padding: 2px;margin: 4px;border: 4px outset #faf5b2;}

/* modal_ttx */

.modal-ttx > div {
    width: 100%;
    padding: 4px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px inset grey;
    background: #444444;
    color: white;
} 
.modal-ttx-title {
    text-align: center;
    width: 100%!important;
    background: #2ec12f;
    color: white;
    padding: 8px;
    font-weight: bold;
}
.modal-ttx p:first-child {
    border-right:1px inset grey;
    padding:2px;
    text-align: left;
    font-size: 13px;
}
.modal-ttx p {
     width:45%;
     text-transform: uppercase;
     text-align:center;
     text-shadow: 1px 1px 1px black;
     margin: 0;
     font-size: 13px;
}
.modal-ttx p span {
  display: flex;
   align-content: left;
   justify-content: left;
   align-items: left;
}
.modal-ttx p:nth-child(2) span {
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}


/* modal_end */