@font-face {
  font-family: 'Montserrat';
  src: url('/Home/fonts/Montserrat-Regular.ttf') format('truetype');
  font-style: normal;
}

@font-face {
  font-family: 'MontserratSemibold';
  src: url('/Home/fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-style: normal;
}

body, html {
  padding-top: 70px;
  background: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
}

.nav {
  font-family: 'MontserratSemibold', sans-serif;
  display: flex;
  align-items: center;
  gap: 1.5vw;
  padding: 1rem 2vw;
  background-color: rgba(14, 14, 14, 0.4);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.nav .logo {
  margin-right: 2vw;
  margin-left: 5vw;
  display: flex;
  align-items: center;
  gap: 1vw;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.nav .logo img {
  width: clamp(20px, 4vw, 30px);
  height: clamp(20px, 4vw, 30px);
  border-radius: 5px;
}

.nav a {
  font-family: "Unbounded", sans-serif;
  display: flex;
  align-items: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.7s ease;
}

.nav a:hover {
  color: #c3c3c3;
}

.nav img {
  width: clamp(15px, 2vw, 20px);
  height: clamp(15px, 2vw, 20px);
}

@keyframes loadingShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-img {
  width: clamp(20px, 4vw, 30px);
  height: clamp(20px, 4vw, 30px);
  border-radius: 5px;
  display: inline-block;
  background: linear-gradient(90deg, #666 25%, #888 50%, #666 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

.title {
  position: relative;
}

h3 {
  margin-top: 2rem;
  margin-left: 8vw;
  margin-right: 8vw;
  font-weight: 400;
  font-family: 'Unbounded', sans-serif;
  color: #888888;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

h1 {
  width: 90%;
  max-width: 1000px;
  position: relative;
  font-size: clamp(2rem, 8vw, 4rem);
  margin-left: 8vw;
  margin-top: 0;
  margin-bottom: 0;
  color: #fff;
  z-index: 1;
  font-family: "Unbounded", sans-serif;
}

.tem {
  position: relative;
  display: inline-block;
}

.tem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0a0a0a, rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

.tem2 {
  position: relative;
  display: inline-block;
}

.tem2::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0a0a0a, rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

.info {
  gap: 0.5rem;
  margin-top: 2rem;
  margin-left: 8vw;
  display: flex;
  align-items: center;
  font-family: "Unbounded", sans-serif;
  color: #7f7f7f;
  font-size: 14px;
}

#version-img {
  transform: rotate(17deg);
  display: inline-block;
  vertical-align: middle;
  width: clamp(20px, 3vw, 25px);
  height: clamp(20px, 3vw, 25px);
}

#java-img {
  width: clamp(25px, 4vw, 35px);
  height: clamp(25px, 4vw, 35px);
  display: inline-block;
  vertical-align: middle;
}

.button-group {
  margin-top: 1.5rem;
  margin-left: 8vw;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.button {
  font-family: "Unbounded", sans-serif;
  display: flex;
  align-items: center;
}

.copy-btn:hover {
  background-color: #151515;
  transform: scale(0.97);
}

.copy-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 17px;
  border: 2px solid #212121;
  cursor: pointer;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  background-color: #111111;
  color: #fff;
  transition: transform 0.5s, background 0.2s;
}

.telegram-btn {
  padding: 0.6rem 0.9rem;
  border-radius: 15px;
  border: 2px solid #092331;
  cursor: pointer;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  background-color: #0a1318;
  color: #fff;
  transition: transform 0.5s, background 0.2s;
}

.telegram-btn:hover {
  transform: scale(0.97);
  background-color: #0a161c;
}

.button img {
  width: clamp(15px, 2vw, 20px);
  height: clamp(15px, 2vw, 20px);
}

.carousel {
  margin-right: 120px;
  margin-left: 120px;
  margin-top: 30px;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.photos {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
}

.photos img {
  width: 350px;
  height: 200px;
  border-radius: 15px;
  object-fit: cover;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a, rgba(0,0,0,0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a, rgba(0,0,0,0));
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.server-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  margin: 40px auto;
  padding: 20px 30px;
  max-width: 650px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  color: #eeeeee;
}


.server-stats .status,
.server-stats .players {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.server-stats img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

#server-status span {
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.intro {
  color: #bbb;
  font-style: italic;
  font-size: 10px;
  font-family: 'Unbounded', sans-serif;
}

.toc {
  display: flex;
  padding-left: 0px;
  gap: 30px;
  color: #ffffff;
  font-family: 'Unbounded', sans-serif;
}

.toc a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.toc a:hover {
  color: #fff;
}

.rules-wrapper {
  margin: 0 8vw 40px;
}

.rules-category {
  background: #100f0f;
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 25px 30px;
}

.rules-category h2 {
  font-size: 20px;
  font-family: 'Unbounded', sans-serif;
  position: relative;
  color: #fff;
}

.rules-category ol {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-category li {
  font-size: 15px;
  font-family: 'Unbounded', sans-serif;
  counter-increment: item;
  margin-bottom: 20px;
  padding: 15px 20px;
  position: relative;
  border-radius: 8px;
  background: #151515;
  color: #ddd;
}

.rules-category li::before {
  content: counter(item) ".";
  position: absolute;
  left: 15px;
  top: 15px;
  font-weight: bold;
  font-size: 1.2em;
}

.rule-text {
  margin-left: 20px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.penalty {
  background: #0e0e0e;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  color: #ff5757;
  font-style: normal;
}

.rules-category cite {
  display: block;
  margin-top: 3px;
  font-size: 0.85em;
  color: #aaa;
  font-style: italic;
}

.rules-category.general h2 { color: #4caf50; }
.rules-category.social h2 { color: #03a9f4; }
.rules-category.building h2 { color: #9c27b0; }

@media (max-width: 768px) {
  body, html {
    padding-top: 50px;
  }

  .rules-category li {
    font-size: 12px;
    font-family: 'Unbounded', sans-serif;
    counter-increment: item;
    margin-bottom: 16px;
    padding: 10px 10px 10px 45px;
    position: relative;
    border-radius: 8px;
    background: #151515;
    color: #ddd;
  }

  .toc {
    display: flex;
    flex-direction: column; 
    gap: 5px;
  }

  .toc a {
    font-size: 17px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
  }

  .carousel {
    margin-top: 30px;
    position: relative;
    overflow: hidden;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 2rem 3vw;
  }
  
  .nav a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    text-decoration: none;
  }

  h3 {
  margin-top: 2rem;
  margin-left: 8vw;
  margin-right: 8vw;
  font-weight: 400;
  font-family: 'Unbounded', sans-serif;
  color: #888888;
  font-size: 14px;
}
  
  .nav .logo {
    display: none;
  }

  .nav a img {
    display: none;
  }

  .skeleton-img {
    display: none;
  }

  h1, h3 {
    width: 80%;
  }

  .copy-btn, .telegram-btn {
    width: 100%;
    margin-right: 30px;
    justify-content: center;
  }

  .button-group {
    flex-wrap: wrap;
  }
}

.server-stats {
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  font-size: 13px;
}

.server-stats img {
  width: 26px;
  height: 26px;
  padding: 3px;
}

#server-status span {
  font-size: 12px;
  padding: 2px 6px;
}


@media (max-width: 480px) {
  .server-stats {
    margin-left: 0px;
    margin-right: 10px;
    gap: 12px;
    padding: 12px 15px;
    font-size: 13px;
  }

  .server-stats img {
    width: 26px;
    height: 26px;
    padding: 3px;
  }

  #server-status span {
    font-size: 12px;
    padding: 2px 6px;
  }
  
  .carousel {
    margin-left: 10px;
    margin-top: 30px;
    position: relative;
    width: 400px;
    height: 200px;
    overflow: hidden;
  }

  .nav {
    align-items: flex-start;
    gap: 2rem;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    text-decoration: none;
  }

  .nav .logo {
    display: none;
  }

  .nav a img {
    display: none;
  }

  .skeleton-img {
    display: none;
  }

  h1 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  h3 {
    font-size: 14px;
  }

  .copy-btn, .telegram-btn {
    width: 100%;
    margin-right: 50px;
    justify-content: center;
  }

  .button-group {
    flex-wrap: wrap;
  }
}





