/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600&display=swap');

/* Общие стили */
body {
  margin: 0;
  font-family: 'Jura', sans-serif;
  background-color: #1e1e1e;
  color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 10px;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}

main {
  flex: 1 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #2a2a2a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 0 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.si_logo {
  position: absolute;
  left: 20px;
  top: 10px;
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #CCB4E4;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#intro-top,
#intro-bottom {
  margin-top: 60px;
  text-align: center;
  padding: 20px 0;
}

.intro-content p {
  margin: 5px 0;
  font-size: 18px;
  color: #CCCCCC;
}

#projects h2 {
  text-align: center;
  margin-top: 40px;
  font-size: 28px;
  color: #ffffff;
}

.projects-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.projects-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
}

.project {
  background: linear-gradient(to bottom, #2a2a2a, #4a2a6a);
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  flex: 0 0 calc((100% - 40px) / 3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #aaa;
}

.project:hover {
  transform: scale(1.05);
}

.image-wrapper {
  border-radius: 15px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.project header {
  margin-top: 10px;
}

.project h3 {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  text-decoration: none;
}

.project a {
  text-decoration: none;
  color: inherit;
}

.year {
  display: inline-block;
  background-color: #CCB4E4;
  color: #1A1A1A;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 5px;
}

.play-btn {
  font-family: 'Jura', sans-serif;
  display: block;
  width: 100%;
  background-color: #CCB4E4;
  color: #1A1A1A;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 15px;
  text-decoration: none;
}

.play-btn:hover {
  background-color: #B99DD3;
}

.project:not(.active) {
  opacity: 0.5;
}

.arrow-btn {
  font-family: 'Roboto', sans-serif;
  background-color: #4a2a6a;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-decoration: none;
  border: 2px solid #ffffff;
}

.arrow-btn:hover {
  background-color: #5a3a7a;
}

#left-arrow {
  left: 10px;
}

#right-arrow {
  right: 10px;
}

.site-footer {
  background-color: #2a2a2a;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

.copyright {
  font-size: 14px;
  color: #aaa;
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.7);
  transition: background-color 0.3s ease;
  border-radius: 50%;
}

.social-btn:hover::before {
  background-color: transparent;
}

.social-btn:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.telegram-btn {
  background-color: #0088cc;
}

.telegram-btn:hover {
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.8);
}

.discord-btn {
  background-color: #7289da;
}

.discord-btn:hover {
  box-shadow: 0 0 10px rgba(114, 137, 218, 0.8);
}

.roblox-btn {
  background-color: #0074ef;
}

.roblox-btn:hover {
  box-shadow: 0 0 10px rgba(0, 162, 232, 0.8);
}

.social-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.policy-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.policy-link {
  color: #888888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: #ffffff;
}

/* Стили для verification, verify-options и policy */
.verification-container,
.verify-options-container,
.policy-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
  background-color: #1e1e1e;
  padding: 20px;
  margin-top: 70px;
}

.verification-frame,
.verify-options-frame {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 300px;
}

.verification-input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 200px;
  text-align: left;
  margin: 10px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.verification-input:focus {
  border-color: #CCB4E4;
  box-shadow: 0 0 8px rgba(204, 180, 228, 0.5);
}

.verification-input::placeholder {
  color: #aaa;
}

.verify-btn {
  padding: 12px 20px;
  font-size: 16px;
  font-family: 'Jura', sans-serif;
  font-weight: bold;
  color: #fff;
  background-color: #28a745;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin: 10px auto;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  display: block;
}

.verify-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
  box-shadow: none;
}

.verify-btn:not(:disabled):hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.verify-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.verify-option-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: #CCB4E4;
  color: #1A1A1A;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
  width: 100%;
}

.verify-option-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
}

.verify-option-btn:not(.disabled):hover {
  background-color: #1A1a1A;
  color: #CCB4E4;
  box-shadow: 0 0 10px #CCB4E4;
}

.verify-option-btn.disabled {
  background-color: #555;
  color: #aaa;
  cursor: not-allowed;
}

.verify-option-btn.disabled span {
  font-size: 12px;
  color: #ff5555;
}

.server-list {
  width: 100%;
  padding: 10px;
  font-family: 'Jura', sans-serif;
  font-size: 18px;
  color: #ffffff;
  background-color: #333;
  border: 2px solid #444;
  border-radius: 10px;
  appearance: none;
  cursor: pointer;
  margin-bottom: 15px;
}

.server-list:focus {
  outline: none;
  border-color: #CCB4E4;
  box-shadow: 0 0 8px rgba(204, 180, 228, 0.5);
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: cover;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.discord-icon {
  background-image: url('/assets/discord-icon.png');
}

.x-icon {
  background-image: url('/assets/x-icon.png');
}

.youtube-icon {
  background-image: url('/assets/youtube-icon.png');
}

.policy-container {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
  background-color: #2a2a2a;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.policy-container h1 {
  color: #CCB4E4;
  text-align: center;
}

.policy-container h2 {
  color: #FFFFFF;
  margin-top: 20px;
}

.policy-container p,
.policy-container ul {
  color: #CCCCCC;
  line-height: 1.6;
}

.policy-container ul {
  margin-left: 20px;
}

.policy-container a {
  color: #CCB4E4;
  text-decoration: none;
}

.policy-container a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .projects-container {
    flex-direction: column;
    gap: 15px;
    transform: none !important;
  }

  .project {
    flex: 0 0 100%;
  }

  .arrow-btn {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .copyright,
  .policy-links {
    text-align: center;
  }

  .navbar {
    height: 60px;
    padding: 0 10px;
  }

  .si_logo {
    height: 40px;
    top: 10px;
    left: 10px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 16px;
  }

  .verification-frame {
    flex-direction: column;
    padding: 20px;
  }

  .verify-btn {
    width: 100%;
    text-align: center;
  }
}