:root {
  --grass: #6fb04b;
  --dirt: #8b5a2b;
  --sky: #7ec0ee;
  --stone: #777777;
  --card: #f3efe6;
  --text: #000000;
}

/* ------------------ ОБЩИЕ СТИЛИ ------------------ */
body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  background: #212121;
  color: var(--text);
  padding-top: 70px; 
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
}

/* ------------------ HERO ------------------ */
  .hero {
  background: url(img/fon.jpg) no-repeat center center; 
  background-size: cover; 
  padding: 200px 16px 80px; 
  text-align: center; 
  color: white;
}


h1.title {
  font-size: 28px;
  color: #07411a;
  text-shadow: 2px 2px 0 #c7f2c9;
}

/* ------------------ NAV HERO ------------------ */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ------------------ КНОПКИ ------------------ */
.btn {
  background: var(--dirt);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  border: 4px solid #5a3f20;
  cursor: pointer;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: #704122;
}

/* ------------------ КАРТОЧКИ ------------------ */
.card {
  background: var(--card);
  border: 6px solid #d6c4a3;
  border-radius: 6px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
}

/* ------------------ GRID ------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ------------------ PLAYER ------------------ */
.player {
  background: #fff;
  border: 4px solid #d0b58a;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.player:hover {
  transform: scale(1.05);
}

.avatar {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 4px solid #6b4d28;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 0 10px #00000040;
}

/* ------------------ МОДАЛЬНОЕ ВОКНО ------------------ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.box {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  text-align: left;
  box-shadow: 0 0 10px #000;
  position: relative;
}

.close {
  background: #d33;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}


footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #000000;
  
}

.minecraft-footer {
  background-color: #202020;
  color: #bbb;
  padding: 40px 8%;
  font-family: "Press Start 2P", sans-serif;
  font-size: 10px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 80px;
  border-radius: 3px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: #8dc63f;
  text-decoration: none;
}

.footer-col a:hover {
  color: #a7ff4d;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  text-align: center;
  font-size: 10px;
}

.footer-bottom a {
  color: #8dc63f;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #a7ff4d;
}

.download-btn {
  display: inline-block;
  position: absolute;
  top: 20px;
  right: 30px;
  background-color: #523f2f;
  color: white;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 10px 14px;
  border: 3px solid #2e2b23;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #3a331e;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background-color: #2d271c;
  transform: scale(1.05);
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(33,33,33,0.95);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  color: var(--grass);
  text-decoration: none;
  font-size: 1.3em;
}

.nav-links {
  list-style: none;
  display: flex; 
  gap: 10px;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--grass);
}

.nav-btn {
  background: var(--dirt);
  padding: 8px 14px;
  border-radius: 6px;
  border: 3px solid #5a3f20;
  text-decoration: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.nav-btn:hover {
  background: #704122;
} 
.test-btn-container {
  background:#2f2d2d; /* тёмно-серый, как в Minecraft */
  border: 4px solid #414141; /* внешняя рамка */
  box-shadow:
    inset 0 0 0 2px #5a5a5a, /* внутренняя светлая рамка */
    0 0 15px rgba(0, 0, 0, 0.8); /* мягкая тень снаружи */
  border-radius: 6px;
  padding: 25px;
  max-width: 600px;
  margin: 40px auto;
  color: #e0e0e0;
  text-align: center;
}

.test-btn-container p {
  color: #cfcfcf;
  font-size: 14px;
  margin-bottom: 20px;
}

.test-btn-container .btn {
  background: #3b8526;
  border: 3px solid #1e5010;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 25px;
  cursor: pointer;
  transition: 0.2s;
}

.test-btn-container .btn:hover {
  background: #57a636;
  transform: scale(1.05);
}
.test-btn-container a {
  text-decoration: none;
  border: none;
  outline: none;
}
.logo img {
  height: 200px;        /* увеличь или уменьши по вкусу */
  width: auto;         /* чтобы не растягивалось по ширине */
  display: block;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  height: 70px; /* фиксированная высота панели */
}
 
.social-bar {
  background-color: #181717; /* темный фон */
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.social-bar .container {
  display: flex;
  flex-direction: column; /* текст сверху, иконки снизу */
  align-items: center;
  gap: 10px;
}

.social-text {
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: #202020;
  border: 2px solid #202020;
  border-radius: 27px;
  transition: transform 0.2s, background-color 0.2s;
  overflow: hidden;
}

.social-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  margin: 20%;
  transition: transform 0.2s;
}

.social-icon:hover {
  background-color: #212121; /* подсветка при наведении */
  transform: scale(1.1);
}

.social-icon:hover img {
  transform: scale(1.2);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

/* Випадаюче меню */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  z-index: 10;
}

.dropdown-content a {
  color: white;
  padding: 10px 14px;
  display: block;
  text-align: left;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}
