@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');
:root {
  --primary: #ffffff;
  --primary-soft: #8f8f8f;
  --glass: rgba(27, 27, 27, 0.205);
  --glass-border: rgba(36, 36, 36, 0.123);
}

/*suka blyat*/
@media (max-width: 1524px) {

.nav-left {
  margin-left: 10px !important;
  }
  
.logo {
    height: 32px;
    margin-left: auto;
}
  
.nav-right {
    margin-right: 110px !important;
}

}

/*1084px*/
@media (max-width: 1084px) {
.nav-left {
  margin-left: 0px !important;
  }

.logo {
  margin-left: 80px !important;
}

.nav-right {
    margin-right: 0px !important;
    margin-left: 80px !important;
}

.nav-center {
  gap: 15px !important;
}
  
.nav-center a {
  font-size: 24px !important;
  margin: 0 5px !important;
}


}

/*768px*/
@media (max-width: 768px) {
.nav-left {
  margin-left: 0px !important;
  }

.logo {
  margin-left: 50px !important;
}


}

/*725px*/
@media (max-width: 725px) {
.nav-left {
  justify-content: center !important;
  align-items: center !important;
  margin-left: 0px !important;  
  margin-right: 0px !important;
  }

.logo {
  justify-content: center !important;
  align-items: center !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
.nav-right {
    display: none !important;
}
.nav-center {
    display: none !important;

}
.top-nav {
    justify-content: center !important;
}
.btn {
  width: 100% !important;
  max-width: 460px !important;
  height: 55px !important;
  font-size: 20px !important;
}

}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color:#090a0b;
}

.topbarback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 80px;
  background: rgba(0, 0, 0, 0);
  color : #00000000;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #090a0b; 
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
.top-nav.scrolled {
  background: rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #141414;
}

.nav-left {
  margin-left: 210px;
}

.logo {
   height: 32px;
  margin-left: 210px;
  transition: transform 0.1s ease;
  cursor: pointer;
}
.logo:active {
  transform: scale(0.95);
}


.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-center a.active {
  color: #ffffff;
  font-weight: 800;
}

.nav-center a {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.05em;
  color: rgba(87, 87, 87, 1);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
  user-select: none;
}
.nav-center a:hover {
  color: #ffffff;
}
.nav-right {
  display: flex;
  gap: 15px;
  margin-right: 350px;
}
.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #777;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: white;
}

.social-icon {
  color: #777;
  font-size: 24px;
  margin-left: 12px;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: #ffffff;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  right: 30px;
  top: 70px;
}

#search-input {
  padding: 5px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  background: var(--glass);
  color: #e0e0e0;
  width: 150px;
}

#search-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(60, 130, 255, 0.4);
  transition: transform 0.2s, background 0.2s;
}

#search-btn i {
  font-size: 16px;
  color: #000000;
}

#search-btn .material-icons {
  font-size: 14px;
}

#search-btn:hover {
  background: linear-gradient(135deg, var(--primary) , var(--primary-soft));
  transform: scale(1.01);
}
.main {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
.sidebar {
margin-left: 220px;
top: 80px;
width: 260px;
height: 100%;
padding-right: 8px;
background: #090a0b;
border-right: 1px solid #2b2b2b00;
padding: 30px 0 32px 0;
box-shadow: 2px 0 8px rgba(0,0,0,0.03);
max-height: 100%;
overflow-y: scroll;
flex-shrink: 0;
position: sticky
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 12px;
}

.sidebar strong {
  color: #59656b;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.sidebar a {
  color: var(--primary-soft);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.sidebar a:hover {
  background: #0e0f11;
  color: var(--primary-soft);
}

.sidebar a.active {
  color: var(--primary);
  font-weight: 500;
}
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

  .content {
  position: relative;
  flex: 1 1 0;
  background: #090a0b;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px;
  min-height: 800px;
  height: 100%;
  margin-right: 410px;
  }
.search-bar {
  margin-right: 110px;
  position: fixed;
  top: 120px;
  right: 40px;
  width: 260px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 100;
}

.content h1 {
  font-size: 28px;
  color: var(--primary-soft);
  margin-bottom: 10px;
}

.content h2 {
  font-size: 18px;
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 8px;
}

.content p {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 14px;
}
.legal-footer {
  width: 100%;
  background-color: #090a0b;
  color: #090a0b;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
  gap: 20px;
  font-family: sans-serif;
  font-size: 14px;
  border-top: 1px solid #090a0b;
}
#toc {
  margin-top: 10px;
  color: #59656b !important;
  position: fixed;
  top: 100px;
  right: 40px;
  width: 200px;
  max-height: 80vh;
  overflow-y: auto;
  background: #090a0b;
  padding-left: 15px;
}
#toc a:hover {
  color: #fff !important;
  text-decoration: underline;
}
#toc a {
  color: var(--primary-soft) !important;
  text-decoration: underline;
}
.legal-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.server-name {
  font-weight: 600;
  color: #eeeeee;
  margin: 0;
}

.mojang-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgb(255, 255, 255);
}

.mojang-legal img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

.legal-links a {
  color: #888888;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.legal-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

.legal-links a:hover::after {
  width: 100%;
}

.legal-links a.active {
  color: #ffffff;
  font-weight: bold;
}

.legal-links a.active::after {
  width: 100%;
  background-color: #ffffff;
}

.legal-right {
  display: flex;
  align-items: center;
}

.shop-button {
  background-color: #0b0c0e;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.shop-button:hover {
  background-color: #13131396;
  color: #ffffff;
}
.legal-footer {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  pointer-events: auto;
}

.legal-footer a {
  pointer-events: auto;
}

.legal-footer * {
  -webkit-user-drag: none;
  user-drag: none;
}

.blue-text {
  color: var(--primary-soft);
}

#dc-btn i, #tg-btn i {
  font-size: 16px;
  color: #aaa;
  transition: color 0.2s;
}

#dc-btn:hover i, #tg-btn:hover i {
  color: var(--primary-soft);
}

#dc-btn {
  margin-left: 15px;
  margin-right: 5px;
}

#tg-btn {
  margin-left: 5px;
  margin-right: 2px;
}

#dc-btn:last-child, #tg-btn:last-child {
  margin-right: 0;
}

.welcome-image {
  display: block;
  margin: 20px auto;
  width: 950px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.infobox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  background-color: #2e2e2e;
  color: #e0e0e0;

  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.infobox i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.6;
}


.infobox-info {
  background-color: #2e2e2e;
  color: #e0e0e0;
}


.infobox-warning {
  background-color: #3d2d20;
  color: #f3e6d2;
}

hr {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 20px 0;
}

.highlight-block {
  position: relative;
  padding: 12px 16px;
  margin: 20px 0;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
}


.highlight-block::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100% - 16px);
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
}
.social-links {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  font-size: 20px;
}



.social-links a::after {
  content: ' ↗';
  font-size: 0.9em;
  color: inherit;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary-soft);
}

a {
  color: var(--primary);
}

a:visited {
  color: var(--primary-soft);
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}
.status-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

  .server-card {

    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px #090a0b;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
    font-family: "Segoe UI", sans-serif;
    width: 458px;
  }

  
.favicon {
  width: 82px;
  height: 82px;
}

  .server-info h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
  }

  .server-info p {
    margin: 3px 0;
    font-size: 14px;
  }

  .error {
    color: red;
  }

  .online-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  top: 120%;
  left: 0;
  z-index: 10;
  width: max-content;
  max-width: 300px;
  box-shadow: 0 0 10px #090a0b;
  transition: opacity 0.3s ease;
}

.online-wrapper:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.player-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.player-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.no-players {
  font-size: 14px;
  color: #aaa;
}
.status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  display: inline-block;
  border: 1px solid transparent;
  line-height: 1;
}

.online {
  background-color: #2ecc71;
  color: #000000;
  border-color: #2ecc71;
}

.offline {
  background-color: #e74c3c;
  color: #000000;
  border-color: #e74c3c;
}
.divider {
color: #090a0b;
}

.admin-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.admin-card {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Segoe UI", sans-serif;
  user-select: none;
  pointer-events: auto;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(41, 41, 41, 0.3);
}

.admin-card img {
  border-radius: 2px;
  margin-bottom: 10px;
  user-select: none;
  pointer-events: none;
}
.admin-card p {
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.4em;
}
.error-page {
  text-align: center;
  margin-top: 60px;
  color: #ffffff;
  animation: fadeIn 0.4s ease-in-out;
}
.error-page h1 {
  font-size: 1.8rem;
  margin-top: 20px;
}
.error-page img {
  opacity: 0.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
