/* 🌌 Общий стиль для фона */
body {
  margin: 0;
  padding: 0;
  background: url('../img/stars1.png') repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff;
  animation: starScroll 600s linear infinite;
  overflow-x: hidden;
}

/* 🌠 Анимация движения звёзд */
@keyframes starScroll {
  from { background-position: 0 0; }
  to { background-position: 0 -2000px; }
}

/* 🌟 Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🪐 Центрированный блок */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 120px;
  color: white;
}

/* 🔗 Ссылки */
a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #0089c2;
}

/* 🌌 Символ */
#symbol {
  width: 350px;
  height: auto;
  margin: 20px auto;
  display: block;
  opacity: 0.85;
  animation: pulse 5s infinite ease-in-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(153, 204, 255, 0.5));
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Заголовки */
h1, h2 {
  text-shadow: 0 0 5px #ffffff, 0 0 15px #99ccff;
}

/* 📱 Адаптация */
@media screen and (max-width: 600px) {
  #symbol {
    width: 90px;
  }

  .content {
    padding-top: 50px;
  }
}

/* 🌟 Навигация */
.navigation-container {
  padding-top: 50px;
  text-align: center;
}

.symbol-logo {
  width: 120px;
  animation: pulse 5s infinite ease-in-out;
  opacity: 0.9;
}

.main-heading {
  font-size: 2.5em;
  margin: 20px 0 10px;
  text-shadow: 0 0 10px #f2edef;
}

.subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* 🧭 Навигационная сетка */
.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.nav-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.nav-card img {
  width: 64px;
  margin-bottom: 10px;
}

/* ↩️ Ссылка назад */
.back-link {
  margin-top: 50px;
  font-size: 1em;
}

/* 🧭 Иконки */
.nav-icon {
  display: inline-block;
  margin: 20px;
  text-align: center;
}

.nav-icon img.nav-img {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.nav-icon img.nav-img:hover {
  transform: scale(1.1);
}

.nav-icon span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #ffffff;
}

/* 🌌 Сетка навигации */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  justify-items: center;
  margin-top: 40px;
  padding: 0 40px;
}

.nav-grid a {
  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.nav-grid a:hover {
  transform: scale(1.05);
}

.nav-img {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

.nav-grid span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.nav-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🛕 Храм */
.temple-background {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: url('../img/stars1') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
}

.voice-container {
  text-align: center;
  padding: 50px;
}

.voice-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.voice-container p {
  font-size: 20px;
  line-height: 1.5;
}

/* 🌌 Фон звёзд */
.star-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/static/img/stars1.png') repeat;
  background-size: 1000px;
  animation: starScroll 2000s linear infinite;
  z-index: 0;
  pointer-events: none; /* 💥 Важно! Пропускает клики к кнопкам */
}

/* 🚪 Кнопка "Выйти" */
.logout-button {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  color: #ff6666;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 102, 102, 0.3);
  transition: all 0.3s ease;
}

.logout-button:hover {
  background: rgba(255, 102, 102, 0.2);
  color: white;
  transform: scale(1.05);
}
