@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: #fff;
}



.custom-lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  color: #fff; /* мягкий золотой */
  font-family: 'Inter', sans-serif;
  user-select: none;
  width: fit-content;
  margin: 20px auto; /* центруємо блок */
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  z-index: 2010;
}

.lang-dropdown-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.custom-lang-dropdown i {
  margin-right: 6px;
  color: #fff;
}

.current-lang::after {
  content: "▾";
  margin-left: 8px;
  font-size: 18px;
  opacity: 0.8;
  color: #fff;
  transition: transform 0.3s ease;
}

.custom-lang-dropdown.open .current-lang::after {
  transform: rotate(180deg);
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-8px);
  color: #d4af37;
  max-height: 300px;   /* ограничиваем высоту */
  overflow-y: auto;
  padding-right: 5px;
}

.lang-options::-webkit-scrollbar {
  width: 5px;
  padding: 5px;             /* ширина скроллбара */
}

.lang-options::-webkit-scrollbar-track {
  background: rgba(0,0,0, 0.3);  /* фон трека */
  box-shadow: 0 0 5px black;
}

.lang-options::-webkit-scrollbar-thumb {
  background: gold;    /* цвет ползунка */
  border: 2px solid black;
  min-height: 10px;
}

.lang-options::-webkit-scrollbar-thumb:hover {
  background: gold;       /* цвет при наведении */
}



.custom-lang-dropdown.open .lang-options {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.lang-options li {
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  white-space: nowrap;
  list-style: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.lang-options li:hover,
.lang-options li.active {
  background: rgba(212, 175, 55, 0.7);
  color: #fff;
  border-bottom: 2px solid gold;
}












#background-image {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4);
}

/* Центрування контенту */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

#main-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* центрирует дочерние элементы по горизонтали */
  width: 100%;         /* или ограничь max-width, если нужно */
  max-width: 600px;    /* например, ограничение ширины */
}


#main-content.hidden-during-lang {
  opacity: 0;
  pointer-events: none;
  filter: blur(5px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-wrapper {
  display: inline-block; /* чтобы рамка подгонялась по размеру */
  padding: 20px;
  border: 1px solid gold;
  border-radius: 15px;
  box-shadow: 0 0 20px gold;
  margin-bottom: 20px;
}

.logo {
  font-size: 52px;
  font-weight: 700;
  color: gold;
  user-select: none;
  text-transform: uppercase;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

















.headline {
  display: inline-block;        /* важно для работы width в ch */
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f0f0f0;
  text-shadow: 5px 2px 6px black;
}


/* Лічильник */
#counter {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px 30px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

#counter .dollar-sign {
  margin-left: 5px;
  font-weight: 400;
  opacity: 0.8;
}

.dollar-sign {
  color: gold;
  font-weight: 700;
  font-size: 36px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: pulseGold 2s infinite ease-in-out;
  user-select: none;
}

@keyframes pulseGold {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 223, 0, 1);
    transform: scale(1.1);
  }
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.buttons button {
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: black;
  background: gold;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: none;
}

/* Анимированный блик */
.buttons button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  transform: skewX(-25deg);
  transition: opacity 0.3s ease;
  animation: shine 3s infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* При наведении чуть меняем цвет текста и масштаб */
.buttons button:hover {
  color: #2c1e00; /* Темнее текст */
}













/* Модальное окно (фон) */
.modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: url('money.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: 98;
  pointer-events: none; /* клики проходят */
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 99;
  pointer-events: none;
}

.modal-content {
  position: relative;
  z-index: 100;
  /* твои стили */
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease forwards;
}


/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Контейнер */
.modal-content {
  background: rgba(255,255,255,0.05);
  padding: 40px 36px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  color: #222;
  display: flex;
  flex-direction: column;
  row-gap: 22px;
  user-select: none;
  transform: translateY(20px);
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}



.modal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
  position: relative;
  margin-bottom: 15px;
}

.modal-content h2::after {
  display: block;
  width: 50px;
  height: 3px;
  background: #d4af37;
  margin: 12px auto 0;
  border-radius: 2px;
}

.modal-content input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fdfdfd;
  color: #222;
  transition: 0.3s ease;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
}

.modal-content input:focus {
  border-color: #bfa33b;
  box-shadow: 0 0 10px rgba(191, 163, 59, 0.4);
  background: #fffef9;
}

.modal-content input::placeholder {
  color: #aaa;
  font-style: italic;
}

.modal-content input {
  margin-bottom: 12px;
}



/* Кнопка */
.modal-content button {
  width: 100%;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  background: gold;
  color: #1e1e1e;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background: orange;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.5);
}

.modal-content button:active {
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.error-message {
  color: #721c24;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1.5px solid #f5c6cb;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
  margin: 20px auto;
  max-width: 360px;
  box-shadow: 0 8px 15px rgba(197, 63, 70, 0.3);
  animation: fadeInError 0.5s ease forwards;
  letter-spacing: 0.03em;
  user-select: none;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Крестик */
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 26px;
  color: #888;
  cursor: pointer;
  transition: 0.2s ease;
}
.close:hover {
  color: #000;
}



/* Адаптив */
@media (max-width: 768px) {
  .modal-content {
    padding: 28px 20px;
    max-width: 340px;
    row-gap: 18px;
  }
  .modal-content h2 {
    font-size: 24px;
  }
  .modal-content button {
    padding: 12px 0;
    font-size: 16px;
  }
}















/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
  .logo {
    font-size: 32px;
    padding: 10px 15px;
  }

  .logo-wrapper {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px gold;
  }

  .headline {
    font-size: 18px;
    margin-bottom: 15px;
  }

  #counter {
    font-size: 24px;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .dollar-sign {
    font-size: 24px;
  }

  .buttons {
    flex-direction: row;  /* оставляем горизонтально */
    gap: 12px;           /* чуть меньше отступ между кнопками */
    flex-wrap: nowrap;   /* запретить перенос */
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .buttons button {
    flex: 1 1 auto;      /* кнопки займут равномерно доступное место */
    padding: 10px 8px;
    font-size: 14px;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    min-width: 100px;    /* минимальная ширина кнопок */
    max-width: 150px;    /* ограничим максимальную ширину */
  }

  .buttons button i {
    font-size: 16px;
  }

  .modal-content {
    padding: 20px 25px;
    width: 95%;
    max-width: 320px;
  }

  .modal-content input {
    padding: 10px;
    font-size: 14px;
  }

  .modal-content button {
    padding: 10px;
    font-size: 16px;
  }

  .close {
    top: 8px;
    right: 10px;
    font-size: 20px;
  }

  .content {
    padding: 15px 10px;
  }
}
.headline {
  animation: fadeInDown 0.8s ease both;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.buttons button:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  transform: scale(1.05);
}

.custom-lang-dropdown:hover {
  box-shadow: 0 0 10px gold;
  border-color: gold;
}


.stats-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
  flex-direction: row;
}

.stat-box {
  background: #f5f7fa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  min-width: 200px;
  text-align: center;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-box h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: #333;
}

.stat-box span {
  display: block;
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  color: #2a7de1;
}

/* 📱 Для мобільних пристроїв */
@media (max-width: 768px) {
  .stats-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .stat-box {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 12px 14px;
  }

  .stat-box h2 {
    font-size: 14px;
  }

  .stat-box span {
    font-size: 18px;
  }
}

