
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10500000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade {
  transition: opacity .15s linear;
}

.modal.show {
    opacity: 1;
}

/* Стили для позиционирования и размеров окна */
.modal-dialog {
  position: relative;
  width: auto;
  margin: .5rem;
  pointer-events: none;
  margin-top: 40%;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}

/* Стили для контента внутри окна */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .3rem;
  outline: 0;
}

/* Шапка окна */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: .3rem;
  border-top-right-radius: .3rem;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  margin: auto;
    font-size: large;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.close:hover {
  opacity: .75;
}

/* Тело окна */
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

/* Подвал окна */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}

/* Стили для кнопки */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Кастомные стили для вашего контента */
.lm-modal-html {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.lm_3_flex {
    display: flex;
    justify-content: center;
    gap: 20px; /* Расстояние между ссылками */
}

.lm_3_flex a {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.lm_3_flex a:hover {
    text-decoration: underline;
}
