@font-face {
  font-family: "BRUSNIKA";
  src: url("../fonts/brusnika.otf");
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: "Great";
  src: url("../fonts/great.ttf");
  font-weight: normal;
  font-style: normal;
}

body {
  --background-color: #d9d9d9;
  --header-color: #303030;
  --text-color: #303030;
  --element-color-green: #a1b087;
  --element-color-yellow: #f1d089;
  --element-color-pGreat: #eec1d5;
  --element-color-blue: #bccdd7;

  --main-font: "BRUSNIKA", sans-serif !important;
  --beauty-font: "Great", sans-serif !important;
  --secondary-font: "Hagin", sans-serif;
}

body {
  font-family: var(--main-font);
  font-size: 32px;
  line-height: 120%;
  color: var(--text-color);
}
.welcome_title_text {
  font-family: var(--beauty-font);
  font-size: 64px;
  line-height: 120%;
  color: var(--text-color);
}
.title_text {
  font-family: var(--beauty-font);
  font-size: 64px;
  line-height: 80%;
  color: var(--text-color);
  padding: 0px 20px;
  margin: 0px auto 25px;
  text-align: center;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.descr_text {
  font-family: var(--main-font);
  font-size: 32px;
  line-height: 100%;
  color: var(--text-color);
  text-align: center;
}
.info-date__invitation {
  margin-bottom: 50px;
}
.childhood-img-bg {
  background-image: url("../images/childhood/Childhood-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: auto;
  margin: auto;
  position: fixed;
  top: 0;
  z-index: -10;
}

.header-blocks p {
  font-size: 42px;
  margin: 10px 0;
}
.header-block-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.header-blocks {
  padding: 20px 0 20px;
  width: 90%;
  max-width: 600px;
  margin: auto;
}
#playButton {
  max-width: 70px;
  margin: auto;
}
#music {
  padding: 50px 0;
}
.info-date,
.places,
#plan,
#details,
#dresscode,
.counter,
#questions,
.footer {
  width: 90%;
  max-width: 600px;
  margin: auto;
}
.separate-img-block {
  width: 40px;
  margin: auto;
  padding: 50px 0;
}
.date-calendar {
  border: 1px solid var(--header-color);
  padding: 20px 5px;
  margin: auto;
  background: white;
  max-width: 500px;
}

.date-calendar h3 {
  text-align: center;
}

h3 {
  font-size: 28px;
  font-family: var(--beauty-font);
  border-bottom: 1px solid var(--header-color);
  padding: 0 0px 10px;
  margin: 0 20px 20px;
}
table {
  margin: auto;
}
th {
  text-transform: uppercase;
  font-weight: 100;
}
tbody,
td,
tfoot,
th,
thead,
tr {
  padding: 4px 8px;
}
#place-one,
#place-two,
#questions,
#plan {
  border: 1px solid var(--header-color);
  border-radius: 20px;
  padding: 20px;
  background: white;
}
#questions {
  margin-bottom: 20px;
  padding-top: 40px;
}

#plan {
  padding-top: 40px;
}

.question__text-mini,
.error-rsvp {
  font-size: 22px;
  color: var(--element-color-green);
  text-align: center;
}
.question__label {
  line-height: 100%;
  margin: 0;
}
#question {
  text-align: left;
  line-height: 100%;
  padding-bottom: 20px;
}
.timer__text span {
  font-size: 20px;
  text-transform: uppercase;
}
.timer__block {
  border-radius: 10px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  display: flex;
  text-align: center;
  justify-content: center;
}
#clockdiv {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.timer-title {
  font-size: 28px;
}
.timer__number_var_day {
  background: var(--element-color-yellow);
}
.timer__number_var_hour {
  background: var(--element-color-green);
}
.timer__number_var_min {
  background: var(--element-color-blue);
}
.timer__number_var_sec {
  background: var(--element-color-pGreat);
}
input[type="text"] {
  font-size: 24px;
  border: 0px;
  border-bottom: 1px solid var(--header-color);
  border-radius: 0px;
  padding: 8px !important;
  width: 100%;
}
input[type="text"]::placeholder {
  color: black;
}
.rsvp__button {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--element-color-yellow);
  text-transform: uppercase;
  color: var(--header-color);
}
.registration_title_text,
.banquet_title_text {
  text-transform: uppercase;
  color: var(--element-color-green);
  text-align: center;
}
.info-place__text {
  margin: 0 auto;
}
.map-place {
  border: 1px solid var(--header-color);
  margin: 0;
  padding: 0;
  height: auto;
  height: 310px;
}
.map-place iframe {
  width: calc(100% - 10px);
  height: 300px;
  border: 1px solid var(--header-color);
  margin: 5px;
}
.registration_descr_text,
.banquet_descr_text {
  padding: 0 0 20px;
}
.timetable__block {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 30px;
  margin: 0 auto;
  width: 100%;
}
.timetable__block-stroke {
  background: var(--element-color-yellow);
  border-radius: 10px;
  padding: 20px 15px 10px;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  align-items: stretch;
  width: 100%;
}
.timetable__block-up {
  text-align: left;
}
.timetable__block-name {
  font-family: var(--main-font);
  font-size: 32px;
}
.timetable__block-descr {
  font-size: 24px;
  line-height: 100%;
}
.timetable__block-time {
  text-align: right;
  font-size: 32px;
  line-height: 100%;
}
#details-container {
  display: flex;
  gap: 30px;
  flex-direction: column;
}
.details__text {
  margin: 0px 0;
}
.dresscode__row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.dresscode__color {
  border-radius: 8px;
  max-height: 35px;
  height: 30px;
}
.dresscode__colors {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__container {
  padding: 50px 0;
}
.footer-name {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 36px;
}
#groom-bride-footer {
  margin: 0;
  line-height: 100%;
}
.footer-img-frame {
  width: 70px;
}

.question__visible-radio {
  position: relative;
  display: inline-block;
  width: 16px; /* Adjust as needed */
  height: 16px; /* Adjust as needed */
  border: 2px solid #000; /* Black border */
  border-radius: 50%; /* Makes it circular */
  margin-right: 8px;
  vertical-align: middle; /* Important for proper alignment */
  box-sizing: border-box;
}

.question__unvisible:checked + .question__visible-radio::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; /* Adjust as needed - this is the size of the inner dot */
  height: 8px; /* Adjust as needed */
  border-radius: 50%;
  background-color: #000; /* Black fill */
}
.question__unvisible {
  display: none;
}

/* For checkboxes */
.question__visible-checkbox {
  position: relative;
  display: inline-block;
  width: 16px; /* Adjust as needed */
  height: 16px; /* Adjust as needed */
  border: 2px solid #000; /* Black border */
  margin-right: 8px;
  vertical-align: middle;
  box-sizing: border-box;
}

.question__unvisible:checked + .question__visible-checkbox::before {
  content: "✔"; /* Use a checkmark character */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px; /* Adjust as needed */
  color: #000; /* Black checkmark */
}

.header-text-small {
  text-align: center;
}
.wedding-day {
  color: var(--text-color);
  background: url(../images/childhood/heart-blue-date-01.svg) center center
    no-repeat;
  background-position: center center;
}
.places {
  max-width: 600px;
}
@media screen and (max-width: 1700px) {
}

@media screen and (max-width: 1300px) {
}

@media screen and (max-width: 800px) {
  body {
    font-family: var(--main-font);
    font-size: 28px;
    line-height: 120%;
    color: var(--text-color);
  }

  .childhood-img-bg {
    background-image: url(../images/childhood/Childhood-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: auto;
    max-width: 800px;
    margin: auto;
    position: fixed;
    top: 0;
    z-index: -10;
  }
  .welcome_title_text {
    font-family: var(--beauty-font);
    font-size: 36px;
    line-height: 130%;
    color: var(--text-color);
    text-align: center;
  }
  .title_text {
    font-size: 36px;
  }
  .descr_text {
    font-family: var(--main-font);
    font-size: 28px;
    line-height: 100%;
    color: var(--text-color);
    text-align: center;
  }
  .header-blocks p {
    font-size: 38px;
  }
  .timer-title {
    font-size: 24px;
  }
  .timetable__block-descr {
    font-size: 22px;
    line-height: 80%;
  }
  .question__text-mini,
  .error-rsvp {
    font-size: 20px;
    line-height: 100%;
    color: var(--element-color-green);
  }
  .map-place {
    border: 1px solid var(--header-color);
    margin: 0;
    padding: 0;
    height: auto;
    height: 210px;
  }
  .map-place iframe {
    width: calc(100% - 10px);
    height: 200px;
    border: 1px solid var(--header-color);
    margin: 5px;
  }
}
#question .opros-grup-title {
  font-weight: 600;
}
#question .question__string {
  padding: 10px 0;
}
#lGreatblock {
  width: 90%;
  margin: auto;
  max-width: 500px;
}

/* Стили для галереи Dress Code */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* Ограничение ширины */
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  display: flex;
  gap: 15px; /* Расстояние между фото */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: 90%;

  /* Скрытие скроллбара для красоты */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.gallery-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
  flex: 0 0 auto;
  /* Высота картинок. На мобильных можно меньше, на ПК больше */
  height: 400px;
  width: auto;
  border-radius: 4px; /* Легкое скругление, если нужно */
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* Кнопки навигации */
.gallery-btn {
  background: transparent;
  border: none;
  color: var(--header-color); /* Ваш красный цвет */
  font-size: 40px;
  cursor: pointer;
  padding: 0 10px;
  z-index: 10;
  transition:
    opacity 0.3s,
    transform 0.2s;
  font-family: var(--main-font); /* Основной шрифт */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gallery-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.gallery-btn:active {
  transform: scale(0.9);
}

/* Адаптивность */
@media screen and (max-width: 800px) {
  .gallery-item {
    height: 450px; /* Уменьшаем высоту на планшетах */
  }
  .gallery-btn {
    font-size: 30px;
    padding: 0 5px;
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .gallery-container {
    width: 100%;
  }
  .gallery-track {
    width: 100%;
    padding: 0 15px; /* Отступы по краям */
  }
  .gallery-item {
    height: 450px; /* Уменьшаем высоту на телефонах */
  }
  /* На мобильных часто удобнее свайпать пальцем, стрелки можно скрыть или оставить маленькими */
  .gallery-btn {
    display: none;
  }
}

/* ============================================================
   QUYIDAGI KOD BLOKLARINI MAVJUD FAYLLARINGIZGA QO'SHING
   ============================================================ */

/* ============================================================
   1.  style.css ga qo'shing  (oxiriga)
   ============================================================ */

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
#preloader .preloader__heart {
  width: 60px;
  animation: heartbeat 1s ease-in-out infinite;
}
#preloader .preloader__text {
  font-family: var(--beauty-font);
  font-size: 28px;
  color: var(--text-color);
  margin-top: 16px;
  letter-spacing: 1px;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}
.preloader--hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* --- Modal --- */
#responseModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
#responseModal.modal--visible {
  opacity: 1;
  visibility: visible;
}
#modalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}
.modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.modal__icon--success {
  background: #eefaf3;
  color: #2e7d32;
}
.modal__icon--error {
  background: #fdecea;
  color: #c62828;
}
.modal__title {
  font-family: var(--beauty-font);
  font-size: 36px;
  margin: 0 0 8px;
  color: var(--text-color);
}
.modal__text {
  font-family: var(--main-font);
  font-size: 22px;
  color: #555;
  margin: 0 0 24px;
  line-height: 130%;
}
.modal__close {
  background: var(--element-color-yellow);
  border: none;
  border-radius: 12px;
  padding: 10px 32px;
  font-family: var(--main-font);
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  text-transform: uppercase;
}
.modal__close:hover {
  opacity: 0.85;
}
