body {
    font-family: 'Trebuchet MS', sans-serif;
    background-color: #0e1a12;
    color: #e3d9b4;
    margin: 0;
}

header {
    background-color: #1b3a28;
    text-align: center;
    padding: 20px;
}

header h1 {
    color: #d4c16c;
    margin-bottom: 10px;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 10px;             
  font-size: 2em;
  color: #fff4a3;        
  font-family: "Cinzel", serif; 
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1) brightness(1.2);
  position: relative;
  top: 6px;
}


nav a {
    color: #e3d9b4;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    background-color: #314f3a;
    color: #fff;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background-image: url('');
    background-size: cover;
    background-position: center;
}
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; 
  background: url('zelda-bg-fallback.png') center/cover no-repeat;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1; 
}

.hero-content {
  animation: fadeIn 2s ease-in-out;
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 40%;
  transform: translateY(-40%);
  background: rgba(0, 0, 0, 0.3); 
  padding: 20px;
  border-radius: 10px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-50%); }
  to { opacity: 1; transform: translateY(-40%); }
}


.hero h2 {
    font-size: 2em;
    color: #fff;
}

button {
    background-color: #d4c16c;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
}

.card {
    background-color: #1e3c2a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 250px;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100px;
    height: auto;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.gallery img {
    width: 300px;
    border-radius: 10px;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

footer {
    text-align: left;
    padding: 10px;
    background-color: #1b3a28;
    color: #aaa;
}
.games-page {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.games-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}


.games-list .game {
  display: inline-block;
  color: #f4d742;
  background-color: rgba(0, 0, 0, 0.5); 
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  padding: 12px 25px;
  border: 2px solid #f4d742;
  border-radius: 10px;
  transition: all 0.3s ease;
  -webkit-appearance: none; 
  appearance: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.games-list .game:hover {
  background-color: #f4d742;
  color: #000;
  transform: scale(1.05);
}

.games-list .game:active {
  transform: scale(0.97);
  opacity: 0.9;
}


/* === Секция с картой === */
.zoom-container {
  overflow: hidden;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.zoom-container img {
  width: 100%;
  user-select: none;
  cursor: grab;
  transition: transform 0.1s ease;
  transform-origin: center center;
}

.zoom-container img:active {
  cursor: grabbing;
}

#map-image {
  width: 100%;
  transition: transform 0.3s ease;
  transform-origin: center center;
}
/* === COMMUNITY PAGE (аккуратный макет) === */
.community {
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.community h2 {
  font-size: 2em;
  color: #d4af37;
  margin-bottom: 10px;
}

.community p {
  opacity: 0.9;
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* === COMMUNITY FORM === */
#post-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
}

#post-form input,
#post-form textarea,
#post-form button {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
}

#post-form input::placeholder,
#post-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#post-form textarea {
  resize: vertical;
  min-height: 80px;
}

#post-form button {
  background-color: #3b7a57;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

#post-form button:hover {
  background-color: #4ea16d;
  transform: scale(1.02);
}

/* === POSTS CONTAINER === */
#posts {
  width: 95%;
  max-width: 800px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
  word-wrap: break-word;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.post h3 {
  margin-bottom: 8px;
  color: #3b7a57;
  font-size: 1.2em;
}

.post p {
  font-size: 1em;
  line-height: 1.4;
}

/* === MEDIA (IMAGES / VIDEOS) === */
.post img,
.post video,
.youtube-preview {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  object-fit: contain;
}

/* === YOUTUBE THUMBNAIL === */
.youtube-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.youtube-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.youtube-preview:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 45px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/7/75/YouTube_social_white_squircle_(2017).svg') no-repeat center/contain;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.youtube-preview:hover .play-button {
  opacity: 1;
}

/* === MOBILE ADAPTATION === */
@media (max-width: 768px) {
  #post-form {
    width: 90%;
    padding: 15px;
  }

  #post-form input,
  #post-form textarea,
  #post-form button {
    font-size: 14px;
    padding: 8px 10px;
  }

  .post {
    padding: 12px;
  }

  .post h3 {
    font-size: 1em;
  }

  .post p {
    font-size: 0.95em;
  }

  .play-button {
    width: 50px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  #posts {
    gap: 15px;
  }

  #post-form {
    width: 95%;
    padding: 10px;
  }

  .youtube-preview {
    aspect-ratio: 16 / 10;
  }

  .play-button {
    width: 45px;
    height: 32px;
  }

  #post-form button {
    font-size: 15px;
  }
}
/* === Навигация === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00ffcc;
}

/* === Мобильная версия === */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

/* Когда экран меньше 768px */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    width: 200px;
    padding: 15px;
    display: none;
    border-left: 2px solid #00ffcc;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

