/* Основные настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #5C1A1B; /* Бордовый фон главной страницы */
  color: #F5E6D3;
  font-family: 'Georgia', serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  line-height: 1.8;
  min-height: 100vh;
}

/* Заголовок сайта */
h1 {
  font-size: 4em;
  letter-spacing: 8px;
  color: #F5E6D3;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: normal;
  border-bottom: 2px solid #8B3A3B;
  padding-bottom: 20px;
}

/* Навигация (кнопка назад на внутренних страницах) */
nav {
  background-color: #3E1213;
  padding: 12px 24px;
  border-radius: 30px;
  margin-bottom: 30px;
  display: inline-block;
  border: 2px solid #8B3A3B;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li a {
  color: #F5E6D3;
  text-decoration: none;
  font-size: 1.1em;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.25s ease;
}

nav ul li a:hover {
  background-color: #8B3A3B;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* Доска-холст для стикеров на главной */
.sticker-board {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  margin: 30px auto;
}

/* Общие параметры стикеров */
.sticker {
  position: absolute;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.45));
}

.sticker img {
  display: block;
  max-width: 170px;
  height: auto;
  user-select: none;
}

/* хувер */
.sticker:hover {
  transform: scale(1.08) rotate(0deg) !important;
  filter: drop-shadow(6px 12px 14px rgba(0, 0, 0, 0.65));
  z-index: 10;
}

/* Раскладка стикеров по холсту */
.sticker-about {
  top: 30px;
  left: 8%;
  transform: rotate(-7deg);
}

.sticker-book {
  top: 15px;
  right: 12%;
  transform: rotate(5deg);
}

.sticker-vhs {
  top: 240px;
  left: 22%;
  transform: rotate(4deg);
}

.sticker-guest {
  top: 260px;
  right: 18%;
  transform: rotate(-6deg);
}

.sticker-tickets {
  top: 340px;
  right: 40%;
  transform: rotate(4deg);
}

/* Координаты для QR-кода */
.sticker-qr {
  top: 50px;
  left: -40%; 

}

/* размер gyu кр */
.sticker-qr img {
  max-width: 300px; 
}

/* Контейнер под контент на внутренних страницах */
.page-content {
  min-height: 250px;
  max-width: 800px;
  margin: 30px auto;
}

/* Фоновые стили и цвета для отдельных страниц */
body.vhs-page {
  background-color: #1a1715;
  background-image: url('soil.png');
  background-repeat: repeat;
}

body.about-page {
  background-color: #121013; /* Пепельно-угольный */
}

body.book-page {
  background-color: #241a15; /* Темный кофейный */
}

body.tickets-page {
  background-color: #121013; /* Пепельно-угольный */
}


/* Всплывающее окно выбора языка. */
.lang-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lang-box {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.lang-title {
  margin-bottom: 12px;
  font-size: 16px;
}

.lang-buttons {
  margin: 14px 0 18px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lang-buttons button {
  padding: 8px 16px;
  cursor: pointer;
  background-color: #222;
  color: #fff;
  border: 1px solid #666;
  font-size: 14px;
  transition: background-color 0.15s ease;
}

.lang-buttons button:hover {
  background-color: #383838;
}

.lang-note {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
  margin-top: 15px;
  border-top: 1px dashed #333;
  padding-top: 12px;
}

.lang-note a {
  color: #e0e0e0;
  text-decoration: underline;
}

.lang-note a:hover {
  color: #fff;
}

/* Футер */
footer {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #8B3A3B;
  font-size: 0.9em;
  color: #D4A59A;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.5px;
}

footer p {
  margin: 5px 0;
}

/* Адаптив под мобильные устройства */
@media (max-width: 600px) {
  h1 {
    font-size: 2.5em;
    letter-spacing: 4px;
  }

  .sticker-board {
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
  }

  .sticker {
    position: static;
    transform: none;
  }
}


.guestbook-frame {
  width: 100%;
  height: 1500px; 
  border: none; 
  background: transparent; 
}
/* Окно журнала обновлений */
.updates-box {
  position: absolute;
  top: -180px;
  right: -500px;
  width: 450px;
  background-color: rgba(45, 12, 13, 0.85);
  border: 1px solid #8B3A3B;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.updates-box h3 {
  font-family: 'Arial', sans-serif;
  font-size: 0.85em;
  letter-spacing: 2px;
  color: #D4A59A;
  border-bottom: 1px dashed #8B3A3B;
  padding-bottom: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
/* =========================================
   СТРАНИЦА "ТИКЕТЫ" (РУЛЕТКА ЗАМЕТОК)
   ========================================= */

.tickets-container {
  text-align: center;
}

/* Блок с кнопками */
.tickets-controls {
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ticket-btn {
  background-color: #3E1213;
  color: #F5E6D3;
  border: 2px solid #8B3A3B;
  padding: 14px 28px;
  font-family: 'Arial', sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ticket-btn:hover {
  background-color: #8B3A3B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Акцентная кнопка рулетки */
.accent-btn {
  background-color: #240a0b;
  border-color: #D4A59A;
  color: #D4A59A;
}
.accent-btn:hover {
  background-color: #D4A59A;
  color: #240a0b;
}

/* Поле, где появляется текст */
.ticket-display-area {
  background-color: rgba(26, 23, 21, 0.85); /* Темный фон под записку */
  border: 1px dashed #8B3A3B;
  padding: 30px;
  max-width: 650px;
  margin: 0 auto;
  text-align: left;
  min-height: 200px;
  border-radius: 8px;
}

.ticket-placeholder {
  text-align: center;
  color: #8B3A3B;
  font-style: italic;
  margin-top: 60px;
}

/* Дизайн самой заметки */
.ticket-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3E1213;
  animation: fadeIn 0.4s ease; /* Мягкое появление текста */
}

.ticket-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ticket-date {
  font-size: 0.85em;
  color: #D4A59A;
  font-family: 'Arial', sans-serif;
  margin-bottom: 8px;
}

.ticket-title {
  font-size: 1.6em;
  color: #F5E6D3;
  margin-bottom: 15px;
  font-weight: normal;
}

.ticket-text {
  font-size: 1.1em;
  line-height: 1.7;
}

/* Простая анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}