@font-face {
  font-family: "Minecraft";
  src: url("minecraft.ttf") format("truetype");
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;
  background: url("background.png") no-repeat center center fixed;
  background-size: cover;
}

.overlay {
  background: rgba(0, 0, 0, 0.4);
  min-height: 100vh;
}


/* ===== Навигация ===== */
header {
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.6);
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: "Minecraft", sans-serif;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

nav a:hover {
  color: #b054d1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #b054d1;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}


.hero {
  min-height: 70vh;          /* только высота экрана */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;          /* отступы для мобильных */
  box-sizing: border-box;
}


.welcome {
  font-family: "Minecraft", sans-serif;
  font-size: 48px;
  margin: 0;
}

.server-name {
  font-family: "Minecraft", sans-serif;
  font-size: 70px;
  color: #b054d1;
  margin: 20px 0;
}

/* ===== Кнопка "Играть" ===== */
.play-btn {
  font-family: "Minecraft", sans-serif;
  background: #b054d1;
  border: none;
  padding: 15px 30px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  animation: pulse 2s infinite;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  margin-top: 40px;
  color: #000;
}

.play-btn:hover {
  transform: scale(1.15);
  background: #663179;
  color: #fff;
  box-shadow: 0 0 25px rgba(176, 84, 209, 0.7);
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #9c4bb9; }
  50% { box-shadow: 0 0 25px #9c4bb9; }
  100% { box-shadow: 0 0 10px #9c4bb9; }
}

/* ===== Соц кнопки ===== */
.social-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-buttons a img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.social-buttons a img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* ===== Особенности ===== */
.features {
  padding: 80px 10px;
  min-height: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features h3 {
  font-family: "Minecraft", sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: rgba(0, 0, 0, 0.7);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  font-family: "Minecraft", sans-serif;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.7s ease;
}

.feature.show {
  opacity: 1;
  transform: translateY(0);
}

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.3s; }
.feature:nth-child(3) { transition-delay: 0.5s; }
.feature:nth-child(4) { transition-delay: 0.7s; }

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.feature .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature h4 {
  font-size: 20px;
  margin: 10px 0;
  color: #b054d1;
}

.feature p {
  font-size: 14px;
  color: #ddd;
}

/* ===== Футер ===== */
footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 40px;
  text-align: center;
  font-family: "Minecraft", sans-serif;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
}

.footer-links a:hover {
  color: #b054d1;
}

/* ===== 📱 Мобильная адаптация ===== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr); /* планшет: 2 в ряд */
  }

  .server-name {
    font-size: 50px;
  }

  .welcome {
    font-size: 36px;
  }

  .play-btn {
    font-size: 20px;
    padding: 12px 24px;
  }
}

@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav a {
    font-size: 16px;
    padding: 6px 12px;
  }

  .server-name {
    font-size: 36px;
  }

  .welcome {
    font-size: 28px;
  }

  .play-btn {
    font-size: 18px;
    padding: 10px 20px;
    margin-top: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr; /* телефон: по одной */
  }

  .feature {
    padding: 15px;
  }

  .social-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-buttons a img {
    width: 35px;
    height: 35px;
  }

  footer {
    padding: 15px;
    font-size: 12px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 14px;
  }
}
