html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* #region Карточки */

.custom-card {
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: var(--bs-card-border-radius);
}

.custom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  /*transition: all ease-in-out 0.3s;*/
}

.custom-card-overlay {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-card:hover .custom-card-overlay {
  opacity: 1;
}

.custom-card:hover img {
  transform: scale(1.2);
}

/* #endregion Карточки */

/* Фикс непрозрачности плавающих ярлыков */

.form-floating > label::after {
  background-color: transparent !important;
}

.form {
  max-width: 400px;
}

/* Переопределение htmx-indicator */

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  display: inline;
}

.htmx-indicator-spinner {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(var(--bs-secondary-rgb), 0.9);
    /* Выравнивание по display: flex*/
    align-items: center;
    justify-content: center;
}
