@font-face {
  font-family: "Minecraft";
  src: url("../fonts/minecraft.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Общие стили */
:root {
  --base-color: #baef00;
  --base-color-hover: #d9ff56;
  --base-color-active: #a3d200;
  --border-color: #e3e3e3;
  --placeholder-color: #8d8d8d;
  --base-color-black: #263238;
}

html {
  box-sizing: border-box;
  line-height: 19.36px;
}

*,
::after,
::before {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
}

body {
  /* background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)),
    url(../img/background.png) no-repeat center center;
  background-size: cover; */
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("../img/Dirt_background_BE2.webp");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: scroll;
  background-position: center;

  /*font-family: "Minecraft", Arial, sans-serif; */
  font-size: 18px;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p,
ul,
li {
  line-height: 1.4;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

.logo a {
  font-size: 2em;
  color: white;
  margin-left: 10px;
  font-weight: 700;
  font-family: "Minecraft", "Arial", sans-serif;
}

a {
  text-decoration: none;
  color: var(--base-color);
}
a:hover {
  color: var(--base-color-hover);
}
a:active {
  color: var(--base-color-active);
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.mc-header {
  position: fixed; /* Закрепляем */

  top: 0; /* Прижимаем к верхней границе */
  left: 0;
  width: 100%; /* Во всю ширину окна */
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  align-items: center;
  background: rgba(20, 20, 20, 0.95); /* Полупрозрачный фон */
  backdrop-filter: blur(6px); /* Размытие фона под хедером */
  padding: 15px 0;
   /* Поверх всего */
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 48px;
  vertical-align: middle;
  /* border-radius: 30px; */
}
.logo a {
  font-size: 2em;
  color: white;
  margin-left: 10px;
  font-weight: 700;
  font-family: "Minecraft", "Arial", sans-serif;
}

/* nav {
    display: flex;
    gap: 20px;
} */

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 1.2em;
  transition: color 0.2s;
}
nav a:hover {
  color: #6a9a1f;
}

#crepeerImage {
  width: 30px;
  height: 30px;
  cursor: pointer;
  vertical-align: middle;
}

.mc-section {
  /* display: none; */
  /* background: linear-gradient(145deg, #0b0b0b, #1c1c1c); */
  /* background: linear-gradient(rgba(0, 0, 0, 0.2)),  url(/img/dirt_text.jpg) repeat top left;; */
  margin: 30px auto;
  max-width: 1440px;
  /* border-radius: 8px; */
  padding: 24px;
  /* box-shadow: 0 0 16px #000a; */
}
.mc-section[style*="display: block"] {
  display: block;
}

.server-title {
}

.about-title .mc-section h2 {
  color: #ffffff;
  font-family: "Minecraft", Arial, sans-serif; 
}

.mc-section h2 {
  color: #ffffff;
  font-family: "Minecraft", "Arial", sans-serif;
}

h1 {
  font-family: "Minecraft", Arial, sans-serif;
}
h3 {
  font-family: "Minecraft", Arial, sans-serif;
}

.mc-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.mc-screenshots img {
  width: 220px;
  border-radius: 4px;
  background: #111;
}

.mc-footer {
  background: linear-gradient(145deg, #0b0b0b, #1c1c1c);
  font-family: "Minecraft", "Arial", sans-serif;
  color: #aaa;
  text-align: center;
  padding: 16px 20%;
  margin-top: 40px;
  /* border-top: 2px solid #6a9a1f; */
  font-size: 0.95em;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  /* font-weight: 700; */
}

nav a.active {
  color: #baef00;
  text-shadow: 0 0 6px #6a9a1f, 0 0 2px #fff;
  font-weight: bold;
}

/* ЮТУБ видео */

.video-mini {
  text-align: center;
}

.video-mini-responsive {
  position: relative;
  width: 100%;
  max-width: 780px; /* Максимальная ширина, можно изменить */
  margin: 20px auto;
  padding-bottom: 56.25%; /* Соотношение 16:9 (9/16 = 0.5625) */
  height: 0;
  box-shadow: 0 0 12px #000a;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.video-mini-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* Скриншоты МОДАЛКА */
.screenshot-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}

.screenshot-modal.active {
  display: flex;
}

.screenshot-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.screenshot-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 24px #000a;
  background: #222;
  margin-bottom: 15px;
}

.screenshot-modal-info {
  text-align: center;
  color: #fff;
  border-radius: 8px;
  max-width: 90vw;
  word-wrap: break-word;
}

.screenshot-author {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: var(--base-color);
}

.screenshot-comment {
  font-size: 1em;
  line-height: 1.4;
  color: #e0e0e0;
}

.screenshot-modal-close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 8px #000;
  user-select: none;
}

/* ТАБС "КАК ПОЛЬЗОВАТЬСЯ" */
.mc-tabs {
  margin: 24px 0;
  /* max-width: 400px; */
  margin-left: auto;
  margin-right: auto;
}

.mc-tab {
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px #000a; */
  background: none;
  border: none;
}

.mc-tab-btn {
  width: 100%;
  display: block;
  text-align: center;
  background: #919191;
  color: #fff;
  font-family: "Minecraft", Arial, sans-serif;
  font-size: 1.15em;
  padding: 13px 0 11px 0;
  border: 2px solid #fff;
  border-radius: 1px;
  box-shadow: 0 3px 0 #888, 0 0 8px #0004;
  text-shadow: 2px 2px 0 #222;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s, border-color 0.12s;
  outline: none;
  margin: 0;
}

.mc-tab-btn:hover,
.mc-tab.open .mc-tab-btn {
  background: #e0e0e0;
  /* color: #222; */
  border-color: #ffe;
}

.mc-tab-btn:active {
  background: #a0a0a0;
  box-shadow: 0 1px 0 #666;
}

.mc-tab-content {
  display: none;
  padding: 18px 18px 12px 18px;
  color: #e0e0e0;
  font-size: 1em;
  background: rgba(40, 40, 40, 0.98);
  border-radius: 0 0 6px 6px;
  border-top: 2px solid #fff;
  box-shadow: 0 2px 8px #0004 inset;
}

.mc-tab.open .mc-tab-content {
  display: block;
}
/* КОНЕЦ ТАБ */

/* Заголовки */
.about-title {
  color: #6ff;
  text-align: center;
  font-size: 1.7em;
}

.about-subtitle {
  text-align: center;
  font-style: italic;
}

.section-title {
  color: #0f0;
  text-align: center;
  margin-top: 30px;
}

/* Видео */
.video-wrapper {
  margin: 20px 0;
  text-align: center;
}

.video-wrapper iframe {
  width: 100%;
  height: 30em;
}

/* Карточки */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.card {
  flex: 1 1 280px;
  /* background: #222; */
  /* border: 1px solid #333; */
  /* border-radius: 8px; */
  padding: 15px;
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.5)), */
    /* url(/img/Minecraft-Stone-Block.jpg); */
  /* background-size: cover; */
}

.fishki {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5)),
    url(/img/Minecraft-Stone-Block.jpg);
  background-size: cover;
  padding: 15px;
}

/* Сетка фич */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* Цитата */
.quote {
  margin-top: 30px;
  border-left: 4px solid #6ff;
  padding-left: 15px;
  color: #ccc;
  font-style: italic;
}

.carousel {
  position: relative;
  max-width: 800px;
  /* width: 96vw; */
  max-height: 350px;
  margin: 20px auto;
  overflow: hidden;
  /* border-radius: 8px; */
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Кнопки */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Ссылки */
.links {
  margin-top: 30px;
  font-size: 14px;
  color: #888;
  text-align: center;
}

.links a {
  color: #6ff;
}

.mcip-solo {
  background: url("https://magicraft.creepy.cz/demo/wp-content/themes/magicraft/library/skins/dirt/world-cube.png")
    no-repeat center left;
  padding: 0 0 0 40px;
}

.server-section {
  /* background: linear-gradient(145deg, #0b0b0b, #1c1c1c); */
  /* padding: 30px; */
  /* border-radius: 12px; */
  /* color: #ddd; */
  /* max-width: 1000px; */
  /* margin: 40px auto; */
  /* box-shadow: 0 0 20px rgba(0,0,0,0.5); */
}

td {
      border: 1px solid rgb(255, 255, 255); 
}

.play-mine {
  color: white;
  font-weight: 700;
  padding: 10px;
  background: #222;
}

/* Статус */
.status {
  font-size: 1.2em;
}
.server-status {
  text-align: center;
  margin-bottom: 20px;
}
.status-online {
  color: #0f0;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}
.server-ip {
  font-size: 1em;
  color: #6ff;
  margin-top: 5px;
}
@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 5px #0f0;
  }
  50% {
    text-shadow: 0 0 15px #0f0;
  }
}

/* Особенности */
.server-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 25px;
}
.feature-card {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5)),
    url(/img/Minecraft-Stone-Block.jpg);
  background-size: cover;
  padding: 12px;
  /* border-radius: 8px; */
  text-align: center;
  border: 1px solid #333;
}

/* Плагины */
.plugin-section {
  margin-bottom: 30px;
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.plugin-card {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5)),
    url(/img/Minecraft-Stone-Block.jpg);
  background-size: cover;
  padding: 10px;
  /* border-radius: 6px; */
  border: 1px solid #2a2a2a;
}

/* История */
.history-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.history-text {
  flex: 1 1 300px;
}
.history-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Видео */
.server-video {
  text-align: center;
  margin-top: 20px;
}
.project-link {
  color: rgb(255, 255, 255);
  background: #111;
  padding: 10px 15px;
  /* border-radius: 8px; */
  text-decoration: none;
  border: 1px solid #333;
}
.project-link:hover {
  background: #222;
}

.social_links {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  align-items: flex-start;
}

.link_img {
  width: 30px;
  height: 30px;
}
