body {
  font-family: Arial, sans-serif;
  background: #f5f3ef;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
header {
  background: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5em;
  font-weight: bold;
  color: #2b4f2d;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo {
  font-size: 2em;
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px;
  flex-grow: 1;
}
.nav-btn {
  background-color: #2b4f2d;
  color: white;
  font-size: 1.4em;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s;
  border: none;
}
.nav-btn:hover {
  background-color: #3e6c41;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 15px 30px;
  font-size: 1.2em;
  color: #2b4f2d;
}
.home-btn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #2b4f2d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.qr-code {
  width: 80px;
}
.instruction {
  text-align: center;
  padding: 10px;
  background: #e0e0e0;
  font-size: 1em;
}
.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-toggle {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  flex-direction: column;
  background-color: #3e6c41;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
  display: flex;
}

.dropdown-menu.show {
  max-height: 500px;
}

.dropdown-menu a {
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  border-top: 1px solid #2b4f2d;
  background-color: #3e6c41;
}

.dropdown-menu a:first-child {
  border-top: none;
  border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 10px 10px;
}

/* Стили для слайдшоу */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.mySlides {
  display: none;
}

img {
  width: 100%;
  height: auto;
}

/* Эффект перехода (fade) */
.fade {
  animation-name: fade;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Сетка фото */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Количество колонок адаптируется под экран */
  gap: 20px; /* Отступы между элементами */
  padding: 20px;
}

.photo-item {
  position: relative;
}

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.photo-item img:hover {
  transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Модальное окно */
.modal {
  display: none; /* Скрыть модальное окно по умолчанию */
  position: fixed;
  z-index: 1; /* Слой поверх остальной страницы */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Окно с прокруткой, если изображение слишком большое */
  background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#caption {
  text-align: center;
  color: #ccc;
  font-size: 16px;
  padding: 10px;
}

.footer-left {
  display: flex; /* Используем flexbox для выравнивания */
  align-items: center; /* Центрируем элементы по вертикали */
  justify-content: flex-start; /* Размещаем элементы слева */
}

.time-container {
  display: flex; /* Используем flexbox для вертикального выравнивания */
  flex-direction: column; /* Размещаем элементы в столбик */
  margin-right: 10px; /* Отступ между временем и картинкой */
}

#clock,
#date {
  margin: 0; /* Убираем отступы между строками времени и даты */
}

.qr-code {
  width: 110px; /* Устанавливаем ширину для QR-кода */
  height: 110px; /* Устанавливаем высоту для QR-кода */
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative; /* Важно для абсолютного позиционирования кнопки */
}

.home-btn {
  padding: 15px 20px;
  font-size: 1em;
  background-color: #2b4f2d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: absolute; /* Делаем кнопку абсолютно позиционированной */
  top: -25px; /* Начальная позиция кнопки сверху */
  left: 72px; /* Начальная позиция кнопки слева */
  user-select: none; /* Отключаем выделение текста кнопки при перетаскивании */
}



