/* Загальні стилі */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #0e101b; /* або transparent */
  overflow-x: hidden;
   scroll-behavior: smooth;

}


/* Альтернатива відео – зображення */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg.jpg') no-repeat center center/cover;
    z-index: -1;
}

/* Контент */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}


/* Кнопка */
.btn {
    padding: 0.8rem 1.6rem;
    background-color: #35CFFF;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 1rem;
}


/* Шапка */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background-color: #0B0C17; /* або будь-який, щоб не був прозорий */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* необов'язково: додати тінь */
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 70px;
  display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Навігація */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover {
    color: #35CFFF;
}



/* Кнопка реєстрації зі скошеними краями з обох сторін */
.btn-register {
    position: relative;
    display: inline-block;
    padding: 12px 36px;
    font-weight: bold;
    font-size: 13px;
    color: white;
    text-decoration: none;
    background: linear-gradient(to right, #35CFFF, #009dcf);
    border: none;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transition: background 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}


.btn-register:hover {
    background: linear-gradient(to right, #52dfff, #0099cc);
}

/* Кнопка входу */
.btn-link {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-size: 14px;
}
.btn-link:hover {
  color: #35CFFF;
}
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px; /* зменш цю цифру для меншої відстані */
}
.right-controls {
  display: flex;
  align-items: center;
  gap: 20px; /* відстань між мовою та кнопками */
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px; /* відстань між кнопками */
}
/* Мова + Авторизація */
.language-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Вибір мови */
.lang-switch {
    position: relative;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.lang-switch img {
    height: 18px;
    margin-right: 6px;
}

/* Випадаюче меню */
.lang-dropdown {
    position: relative;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
}
.lang-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.lang-current img {
    width: 18px;
    margin-right: 6px;
}

.lang-options {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0e101b;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.lang-options a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lang-options a:hover {
    background-color: #1c1f2b;
}

.lang-options img {
    width: 18px;
    margin-right: 8px;
}

.lang-dropdown:hover .lang-options {
    display: flex;
}

/* загрузка во время подгрузки страниц  */
#preloader {
  position: fixed;
  inset: 0;
  background: #0e101b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.star {
  font-size: 24px;
  color: gray;
  opacity: 0.3;
  animation: lightUp 1s ease-in-out calc(var(--i) * 0.3s) forwards;
}

@keyframes lightUp {
  to {
    color: gold;
    opacity: 1;
    transform: scale(1.2);
  }
}
@media (max-width: 992px) {
  .logo img {
    max-height: 50px;
  }

  .main-nav ul {
    gap: 14px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .btn-register {
    font-size: 11px;
    padding: 10px 24px;
  }

  .btn-link {
    font-size: 12px;
  }

  .container {
    flex-direction: column;
    gap: 10px;
  }

  .right-controls {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .site-header {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .container {
    width: 95%;
    flex-direction: column;
    align-items: center;
  }

  .btn-register {
    font-size: 11px;
    padding: 8px 18px;
  }

  .main-content {
    padding: 20px;
  }

  .lang-options {
    right: 0;
    left: auto;
  }
}

@media (max-width: 480px) {
  .main-nav a,
  .btn-link,
  .lang-switch {
    font-size: 12px;
  }

  .btn-register {
    padding: 6px 14px;
    font-size: 10px;
  }

  .logo img {
    max-height: 40px;
  }

  .main-content {
    padding: 10px;
  }

  .lang-options a {
    padding: 6px 10px;
  }
}
@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }

  .main-nav a {
    font-size: 16px;
  }

  .btn-register {
    font-size: 15px;
    padding: 14px 36px;
  }
}
/* выпадающее меню в моб версии сайта*/
.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: #0e101b;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
  }

  .main-nav ul.show {
    display: flex;
  }
}
@media (max-width: 768px) {
  .main-nav ul {
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    flex-direction: column;
    background-color: #0e101b;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    text-align: center;
  }

  .main-nav ul.show {
    max-height: 500px; /* або більше, якщо треба */
    opacity: 1;
    padding: 20px 0;
  }
}
/* Сховати стандартний скролбар і задати власні стилі */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.50); /* прозорий фон */
  border-radius: 10px;
}

/* Firefox підтримка */
* {
  scrollbar-width: auto;
  scrollbar-color: #24C6F2 #000000;
}
