@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  position: relative;
  height: 80px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #2f6b80;
}

.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.logo:hover {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.account-icon img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.account-icon img:hover {
  transform: scale(1.1);
}
.server_info{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 50px;
  margin-right: 50px;
  margin-top: 50px;
  border-radius: 10px;
  box-sizing: content-box;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


}

.server{
  padding-top: 10px;
  color: #ddd;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
}
.ip{
  font-size: 15px;
  color: #ddd;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
}
.version{
  color: #2f6b80;
  font-size: 10px;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
}
.server_info_container{
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
}
.info {
  padding: 20px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(206, 255, 190, 0.2); 
  backdrop-filter: blur(10px);         
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;                      
  box-sizing: border-box;
  color: #fff;                                
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);  
}
.about {
  text-align: center;
  padding: 30px 20px;
  max-width: 800px;
  margin: 20px auto;
  color: #333;
  line-height: 1.6;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 10px;
  font-style: normal;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 8px;
  font-style: italic;
}
.servern{
  background-color: rgba(0, 225, 255, 0.185)
}
.features {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  padding: 0 20px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.feature {
  flex: 1 1 300px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature h3 {
  color: #2c3e50;
  margin-bottom: 8px;
}

.footer {
  margin-top: 60px;
  padding: 50px 20px 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px 20px 0 0;
}

.footer-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #2b8ca3;
}

.footer-content p {
  margin-bottom: 30px;
  font-size: 1rem;
  color: #ccc;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  min-width: 130px;
}

.footer-btn:hover {
  background-color: rgb(202, 202, 202);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  margin-top: 30px;
  color: #aaa;
  font-size: 0.9rem;
}
/* === СТРАНИЦА ПРАВИЛ === */
.rules-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #333;
  line-height: 1.7;
}

.rules-container h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
  font-family: "Jost", sans-serif;
}

.rules-container h2 {
  margin: 25px 0 15px;
  font-size: 1.5rem;
  color: #2f6b80;
  border-bottom: 2px solid #2ecc71;
  padding-bottom: 5px;
}

.rules-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.rules-content ul.game-rules {
  margin: 15px 0;
  padding-left: 20px;
}

.rules-content ul.game-rules li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.rules-content strong {
  color: #2c3e50;
}

.rules-content em {
  color: #e74c3c;
  font-style: normal;
}
.ip-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
}

.ip-text {
  font-size: 1.2rem;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #2c3e50;
}

.copy-btn {
  padding: 10px 15px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #2980b9;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* === СЛАЙДЕР ГАЛЕРЕИ === */
.slider {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 500px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;

  /* Начальный слайд — первый */
  &:nth-child(1) { opacity: 1; }
}

/* Контент на слайде */
.slide-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 500px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  opacity: 0;
  transition: all 1s ease;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h3 {
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: #2ecc71;
}

.slide-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}
.prev{
  margin-right: 10px;
  padding: 10px 10px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 10px;
  border-color: #2980b9;
}
.prev:hover{
  margin-right: 5px;
  padding: 15px 15px;
  transition: padding 0.3s ease-in-out;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 10px;
  border-color: #2980b9;
  cursor: pointer; 
}
.next{
  margin-left: 10px;
  padding: 10px 10px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 10px;
  border-color: #2980b9;
}
.next:hover{
  margin-left: 5px;
  padding: 15px 15px;
  transition: padding 0.3s ease-in-out;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 10px;
  border-color: #2980b9;
  cursor: pointer; 
}
/* === FAQ — Частые вопросы === */
.faq {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-family: "Jost", sans-serif;
}

.faq h3 {
  font-size: 1.5rem;
  margin: 20px 0 12px;
  color: #006a8afd;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.faq h3::before {
  content: "❓";
  font-size: 1.4em;
}

.faq p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #000000;
  padding-left: 30px;
  position: relative;
}

.faq p::before {
  content: "➡️";
  position: absolute;
  left: 0;
  top: 0;
}

/* Для мобильных — уменьшаем отступы */
@media (max-width: 768px) {
  .faq {
    margin: 40px 15px;
    padding: 20px;
    border-radius: 15px;
  }

  .faq h3 {
    font-size: 1.4rem;
  }

  .faq p {
    font-size: 1rem;
    padding-left: 25px;
  }
}

/* Плавное появление (если хочешь анимацию) */
.faq {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.faq.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* === Уведомление о копировании IP === */
.copy-notification {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(46, 204, 113, 0.95);
  color: white;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  padding: 12px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: opacity 0.4s ease, bottom 0.4s ease;
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
}

.copy-notification.show {
  visibility: visible;
  opacity: 1;
  bottom: 20px;
}

.copy-notification strong {
  font-weight: 600;
  color: #fff;
}
/* === Модальные окна === */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 998;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  width: 100%;
  max-width: 400px;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 30px;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-family: "Jost", sans-serif;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Jost", sans-serif;
}

.modal-content input:focus {
  outline: none;
  border-color: #2ecc71;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.modal-content button:hover {
  background-color: #27ae60;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}

.close-btn:hover {
  color: #333;
}

.switch-text {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

.switch-text a {
  color: #2980b9;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* === Профиль после входа === */
.profile-menu {
  display: none;
  position: absolute;
  top: 80px;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 15px 20px;
  width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  color: #333;
}

.profile-menu h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.profile-menu p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}

.profile-menu button {
  width: 100%;
  padding: 8px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background 0.3s;
}

.profile-menu button:hover {
  background-color: #c0392b;
}

/* Иконка аккаунта */
.account-icon {
  cursor: pointer;
}

.account-icon-img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.account-icon-img:hover {
  transform: scale(1.1);
}
/* === Поле пароля с глазом === */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 40px !important;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  user-select: none;
}

.toggle-password:hover {
  color: #555;
}

/* === Галочка "Запомнить меня" === */
.remember-me {
  font-size: 0.95rem;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input {
  margin: 0;
}

/* === Ссылка "Забыли пароль?" === */
.forgot-password {
  font-size: 0.95rem;
  color: #2980b9;
  text-decoration: none;
  display: block;
  margin: 10px 0 15px;
  text-align: center;
}

.forgot-password:hover {
  text-decoration: underline;
}
/* === Панель администратора === */
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.admin-actions button {
  padding: 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.admin-actions button:hover {
  background: #c0392b;
}

.admin-actions button:nth-child(1) { background: #3498db; }
.admin-actions button:nth-child(1):hover { background: #2980b9; }

.admin-actions button:nth-child(2) { background: #2ecc71; }
.admin-actions button:nth-child(2):hover { background: #27ae60; }

.admin-actions button:nth-child(3) { background: #e67e22; }
.admin-actions button:nth-child(3):hover { background: #d35400; }

#admin-output {
  font-family: monospace;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.logo {
  background-color: rgba(0, 162, 255, 0.123);
  border-radius: 999px;
  transition: block-size 0.3s ease;
}

.logo:hover {
  background-color: rgba(0, 162, 255, 0.123);
  border-radius: 999px;
  block-size: 55px;
  transition: block-size 0.3s ease;
}
