/* static/main.css */

/* Общие сбросы и переменные */
body {
  margin: 0;
  padding: 0;
  --stroke-clr: #2B2A29;
  --stroke-thin: 2.75px;
  --stroke-thick: 9.72px;
  background-image: url('/static/background/fon1.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.fon2{
    background-image: url('/static/background/fon2.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.success-blink {
  animation: blink-success 0.6s ease-in-out;
}

@keyframes blink-success {
  0% { box-shadow: 0 0 0 rgba(0, 0, 255, 0); }
  50% { box-shadow: 0 0 10px 5px rgba(120, 55, 225, 0.8); }
  100% { box-shadow: 0 0 0 rgba(0, 0, 255, 0); }
}

/* Фоновый цвет за галереей */
.container-fluid {
  background-color: var(--grey-bg);
}

/* Заголовок */
h1.display-4 {
  font-family: 'Rubik', sans-serif
  font-weight: normal;
  color: var(--stroke-clr);
}

/* Каркас квадрата */
.crop-container {
  background: var(--white-bg);
  border: var(--stroke-thin) solid var(--stroke-clr);
  border-radius: 17%; /* из SVG ry=11.1 */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}

/* Плейсхолдер: убираем заливку, центруем SVG, блокируем события */
.crop-container .placeholder {
  background: none;            /* убираем background-color: currentcolor */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* Вложенный SVG тоже без событий */
.crop-container .placeholder svg {
  width: 40%;
  height: 40%;
  pointer-events: none;
}

/* Загруженное изображение */
.crop-container img {
  width: 100%;
  display: block;
}

/* Слой-эффект */
.crop-container .overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: url('/static/eff/eff1.png') center/100% 100% no-repeat;
  pointer-events: none;
}
.crop-container.filled .overlay {
  display: block;
}

/* Лейблы над квадратами */
.crop-wrapper .label {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--stroke-clr);
}

/* Кнопка «отправить» *//*
#uploadBtn {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  border: var(--stroke-thin) solid var(--stroke-clr);
}
*/

#uploadBtn {
  font-family: 'Rubik', sans-serif;
  font-size: 1.5vw; /* масштабируется от ширины вьюпорта */
  padding: 0.6em 1.2em;
  border: var(--stroke-thin) solid var(--stroke-clr);
  width: 100%;
  word-break: break-word;
}

/* Модалка */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

/* Содержимое модалки */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  height: auto;
  max-height: 90%;
  position: relative;
  margin: auto;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Тело модалки с изображением */
.modal-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

/* Кнопка закрытия */
.close {
  position: absolute;
  top: 0.5rem; right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

/* Кнопка «Подтвердить» в модалке */
#confirmCrop {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Адаптивные мелочи */
@media (max-width: 576px) {
  .display-4 { font-size: 2rem; }
  .btn-lg    { font-size: 1.25rem; }
}
