@font-face {
    font-family: 'Undertale_Battle_Font';
    src: url('undertale_battle_font.ttf') format('truetype');
  }

  :root {
    --green: #00ff88;
    --red: #ff3366;
  }

  body {
    margin: 0;
    background: url(back_casino.jpg)  no-repeat center center/cover ;
    color: #00ff88;
    font-family: 'Undertale_Battle_Font', monospace;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    user-select: none; /* Запретить выделение текста */
    -webkit-user-select: none; /* Для Safari */
    -moz-user-select: none; /* Для Firefox */
    -ms-user-select: none; /* Для Internet Explorer и Edge */
  }
  canvas {
    image-rendering: pixelated;
    border: 2px solid var(--green);
    background: #0d0d0d;
  }
  .controls {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  button, select, input {
    font-family: 'Undertale_Battle_Font', monospace;
    background: #000;
    color: #00ff88;
    border: 1px solid #00ff88;
    padding: 4px;
    font-size: 20px;
    font-weight: normal;
  }

  button:hover{
    box-shadow: 0px 0px 15px var(--green);
    cursor: pointer;
  }
  .status {
    margin-top: 20px;
  }

  #amount {
    height: 80% !important;
  }

  #crypto-button {
    width: 512px;
    color: var(--green);
    font-size: 16px; /* Размер шрифта */
    text-align: left; /* Центрирование текста */
    margin-top: 10px;
  }
  .amount-controls {
display: flex;
align-items: center;
}

.amount-controls button {
border: 1px solid var(--green) !important;
color:var(--green) ; /* Белый текст */
border: none; /* Без рамки */
cursor: pointer; /* Указатель при наведении */
font-size: 22px;
padding: 10px;
font-weight: 400;
}

.amount-input {
-moz-appearance: textfield; /* Для Firefox */
width: 172px;
text-align: center; /* Центрирование текста */
margin: 0 5px; /* Отступы */
}

.amount-input::-webkit-inner-spin-button,
.amount-input::-webkit-outer-spin-button {
-webkit-appearance: none; /* Для Chrome, Safari и Opera */
margin: 0; /* Убираем отступы */
}
.container {
width: 600px;
height: auto;
}

#game {
position: fixed;
z-index: 1;
}

  /* Силуэт хакера */
  .hacker {
   
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: url('https://media.discordapp.net/attachments/1181224295486210108/1360211946728722534/BackgroundEraser_20250411_191622599.png?ex=67fa4b97&is=67f8fa17&hm=ff704ea154feb9bfeb93c8ebdc8132f91dc8b6ac12e823faa8db877b7b625037&=&format=webp&quality=lossless&width=1090&height=1088') center/contain no-repeat;
   z-index: 5;
   opacity: 0.5;
   animation: fadeIn 10s ease forwards 5s;
 }

 .conteiner-radial{
   width: 100%;
   height: 100%;
   border-radius: 50%; /* чтобы сделать изображения круглыми */
 }

 /* Кнопка "Играть" */
 .play-btn {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   padding: 10px 10px;
   font-size: 36px;
   color: var(--green);
   background: rgb(0, 0, 0);
   border: none;
   cursor: pointer;
   z-index: 3;
   opacity: 0;
   animation: fadeIn 6s ease forwards 5s;
 }

 @keyframes fadeIn {
   to {
     opacity: 1;
   }
 }

 #matrix {
  position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 120vh;
    border: none;
 }

 #lobby{
  height: 100vh;
  width: 100vw;
 }

 .name {
  font-size: 60px;
  text-align: center;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 6s ease forwards 2s;
  position: absolute;
  top: 39%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
 }

 .menu{
  margin-top: 20px;
  margin-left: 20px;
  position: absolute;
  bottom: 0;
  height: auto;
  margin-bottom: 40px;
  left:50%;
  transform:translate(-50%, -50%);
  min-width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
 }

 .menu button {
  margin-bottom: 10px;
  min-width: 160px;
 }

 .menu button:hover {
  box-shadow: 0px 0px 15px var(--green);
  cursor: pointer;
 }

 #active{
  box-shadow: 0px 0px 15px var(--green);
 }

 .business-card {
  background: #1e1e1e;
  border: 2px solid #00ff90;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 144, 0.2);
  display: flex;
  flex-direction: column;
  height: 560px;
  position: relative;
  transition: 0.3s ease;
}

.business-card.locked {
  filter: brightness(20%);
  pointer-events: none;
}

.business-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 2px solid #00ff90;
}

.business-card-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.business-card h2 {
  margin: 0 0 6px;
  font-weight: 100;
}

.desc {
  font-size: 0.85em;
  margin-bottom: 8px;
  color: #aaa;
}

.price, .income {
  position: absolute;
  left: 12px;
  bottom: 60px;
  font-size: 0.9em;
  margin: 2px 0;
}

.price {
  bottom: 76px !important;
}

.money {
  color: #00ff90;
}

#csgo{
  margin: 0;
    color: #00ff88;
    font-family: 'Undertale_Battle_Font', monospace;
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

#scroll {
  width: 600px;
  height: 80px;
  overflow: hidden;
  border: 2px solid #00ff88;
  margin-top: 20px;
  position: relative;
}

#scroll::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #00ff88;
  transform: translateX(-50%);
}
#scroll-content {
  display: flex;
  transition: none;
}
.scroll-item {
  min-width: 60px;
  text-align: center;
  padding: 10px;
  font-size: 24px;
  color: #00ff88;
}
.scroll-item img {
  width: 60px;
  height: 60px;
  pointer-events: none;
}
.scroll-item.winner {
  background-color: #005533;
  transform: scale(1.3);
  box-shadow: 0 0 8px #00ff88;
}
#item {
  margin-top: 20px;
  font-size: 22px;
  text-align: center;
}

.crt {
  background: radial-gradient(circle at center, #002200 0%, #000000 100%);
  border: 12px solid #003300;
  border-radius: 50% / 8%;
  padding: 20px;
  width: 700px;
  height: auto;
  box-shadow: inset 0 0 20px rgba(0, 255, 100, 0.4), 0 0 40px #00ff88, 0 0 100px rgba(0, 255, 100, 0.3), inset 0 0 250px rgba(0,255,100,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: absolute;
  top: 40%;
  left:50%;
  transform:translate(-50%, -50%);
}

#business, #humster, #casino, #invest, #csgo {
  display: none; /* Hide all game sections by default */
}

#humster {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.click-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #00ff88;
  background: url('Humster.png') center/cover no-repeat;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.1s;
  z-index: 2;
}

.click-btn:active {
  transform: scale(0.95);
}

.click-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.timer {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ff4444;
}

.upgrade {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.upgrade button {
  margin-top: 5px;
  padding: 5px 10px;
  font-size: 12px;
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  cursor: pointer;
  border-radius: 6px;
}

.upgrade button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.container {
  width: 320px;
  background-color: #001a0d;
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px #00ff88;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
}

.stats div {
  text-align: center;
  flex: 1;
}

.money {
  margin: 10px 0;
  text-align: center;
}

.level-bar {
  width: 100%;
  height: 10px;
  background-color: #003322;
  border-radius: 5px;
  margin: 10px 0;
}

.level-fill {
  height: 100%;
  background-color: #00ff88;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s;
}

@media (max-width: 1240px) { 
 #leaderboard{
  display: none !important;
 }

 .balance {
  text-align: right !important;
}
.container {
  width: 60% !important;
  margin-top: 40px !important;
}

#re4lama{
  background: none;
  width: 0px !important;
}
.menu{
  bottom: -85px !important;
  flex-wrap: wrap !important;
  margin-left: 0px !important;
}

.crt{
  background: none !important;
  border: none !important;
  border-radius: none !important;
  box-shadow: none !important;
  width: 300px !important;
}

#gf {
  display: none !important;
}

.container-business{
  width: 330px !important;
  grid-template-columns: repeat(1, 1fr) !important;
  height: 50vh !important;
  gap: 16px !important;
}
}
/* Aдаптивный дизайн */

@media (max-width: 480px) {

  .menu{
    gap: 0px !important;
  }

  .container {
    width: 90%;
    padding: 15px;
  }

  .click-btn {
    width: 120px;
    height: 120px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    display: none !important;
  }

  .stats div {
    margin-bottom: 10px;
  }

  .timer {
    font-size: 12px;
  }

  .upgrade {
    font-size: 12px;
  }

  .upgrade button {
    font-size: 10px;
    padding: 5px;
  }

  .level-bar {
    height: 8px;
  }

  .level-fill {
    height: 100%;
    background-color: #00ff88;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s;
  }
}

@media (max-width: 1240px) {
  .crt{
    background: none !important;
    border: none !important;
    border-radius: none !important;
    box-shadow: none !important;
    width: 300px !important;
  }

 #leaderboard {
  display: none !important;
 } 
 .container-business {
  width: 90% !important;
  grid-template-columns: repeat(2, 1fr) !important;
 }
}

@media (max-width: 740px) {
  .container-business {
    width: 80% !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }
  #slideshow img{
    width: 80% !important;
  }
}

@media (max-height: 540px)  {
    .stats{
      display: none;
    }
    .container{
      top:30%;

    }
    .upgrade{
      display: none;
    }
    #re4lama img{
      display: none;
    }

    #re4lama {
      display: none;
  }

    #game{
      left: 40% !important;
      top: 35% !important;
      width: 225px !important;
    }
    #casic{
      height: 215px;
    }
    .slot{
      margin: 0px 0;
    }
    #maxic {
      display: none;
    }

    #chart {
      width: 277px;
      height: 82px;
  }
}


@media (max-width: 1240px) {
  .container {
    width: 80%;
    padding: 20px;
  }

  .click-btn {
    width: 140px;
    height: 140px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
  }

  .stats div {
    margin-bottom: 10px;
  }

  .timer {
    font-size: 13px;
  }

  .upgrade {
    font-size: 13px;
  }

  .upgrade button {
    font-size: 11px;
  }

  #game {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 45%;
    width: 310px;
  }

  #hgf{
    display: none;
  }

  .controls button {
    font-size: 12px;
  }

.controls{
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  margin-top: 10px;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-between;
}

.winning-combinations {
  display: none;
}

.play-btn{
  top: 70%;
}

.status {
  display: none;
}

  #chart{
    width: 312px;
    height: 150px;
  }
}



.container-business {
  width: 1100px ;
  display: grid ;
  grid-template-columns: repeat(3, 1fr) ;
  gap: 16px;
  height: 78vh ;
  overflow: auto ;
  position: absolute;
  top:45%;
  left:50%;
  transform:translate(-50%, -50%);
}

.container-business::-webkit-scrollbar {
  display: none;
}

.balance{
  margin-top: 10px;
  font-size: 32px;
  text-align: center;
}

.slot {
  display: flex;
  justify-content: space-around;
  background: #003322;
  border: 2px solid #00ff88;
  height: 70px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}
.reel {
  width: 70px;
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #002611;
  border-radius: 10px;
}
.reel-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 2s ease;
}
.symbol {
  width: 70px;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
background: #002611;
border: 2px solid #00ff88;
box-sizing: border-box;
border-radius: 10px;
}
.symbol img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

#invest{
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.container-invest {
  width: 600px;
  height: auto;
}

#buyPopap {
  width: 200px;
  height: 100px;
  display: none;
  position: absolute;
  top:45%;
  left:50%;
  transform:translate(-50%, -50%);
}

.avoid-click { pointer-events: none; }

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

/* Стили для ползунка */
input[type="range"] {
  -webkit-appearance: none; /* Убираем стандартный стиль для WebKit (Chrome, Safari) */
  width: 100%; /* Ширина ползунка */
  height: 10px; /* Высота ползунка */
  background: #000000; /* Цвет фона */
  border-radius: 5px; /* Закругление углов */
  outline: none; /* Убираем обводку */
}

/* Стили для "пальца" ползунка */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Убираем стандартный стиль для WebKit */
  appearance: none; /* Убираем стандартный стиль для других браузеров */
  width: 20px; /* Ширина "пальца" */
  height: 20px; /* Высота "пальца" */
  background: var(--green) ;/* Цвет "пальца" */
 /* Закругление углов */
  cursor: pointer; /* Курсор при наведении */
}

/* Стили для "пальца" ползунка для Firefox */
input[type="range"]::-moz-range-thumb {
  width: 20px; /* Ширина "пальца" */
  height: 20px; /* Высота "пальца" */
  background:var(--green) ;/* Цвет "пальца" */
 /* Закругление углов */
  cursor: pointer; /* Курсор при наведении */
}

.notification {
  background-color: #afad4c; /* Зеленый цвет */
  color: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}


.leaderboard {
  position: fixed; /* Фиксированное позиционирование */
  top: 20px; /* Отступ сверху */
  right: 20px; /* Отступ справа */
  background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон */
  border: 1px solid #ccc; /* Граница */
  border-radius: 8px; /* Скругленные углы */
  padding: 10px; /* Отступ внутри контейнера */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Тень */
  z-index: 1000; /* Убедитесь, что контейнер поверх других элементов */
}

h2 {
  font-size: 18px; /* Размер заголовка */
  margin: 0 0 10px; /* Отступы для заголовка */
}

#leaderboard-content {
  max-height: 300px; /* Максимальная высота содержимого */
  overflow-y: auto; /* Прокрутка по вертикали, если содержимого слишком много */
}

#leaderboard {
   display:none; position: fixed; z-index: 100;top: 10px; right: 10px; background: rgb(12, 12, 12); padding: 10px;  border: solid 1px var(--green);
}

#soundButton {
  position: absolute;
  top: 80px;
  left: 10px;
  padding: 5px 4px 0px 4px;
  background-color: #000000;
  border-radius: 5px;
  color: white;
  border: none;
  cursor: pointer;
}

#re4lama{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 4px 0px 4px;
  cursor: pointer;
  height: 60px;
}

#re4lama img {
  width: 60px; /* Установите нужный размер */
  height: 60px; /* Установите нужный размер */
}


#soundButton img {
  width: 30px; /* Установите нужный размер */
  height: 30px; /* Установите нужный размер */
}

.padik-button {
  display: flex; /* Используем flexbox для выравнивания элементов */
  align-items: center; /* Выравниваем элементы по центру по вертикали */
  padding: 10px 15px; /* Добавляем отступы */
  background-color: rgb(0, 0, 0); /* Цвет фона кнопки */
  border: none;
  color: var(--green);/* Цвет текста */
  cursor: pointer; /* Указываем, что это кнопка */
  font-size: 24px; /* Размер шрифта */
  border-radius: 5px;
}

.padik-button img {
  width: 24px; /* Ширина изображения */
  height: 24px; /* Высота изображения */
  margin-left: 10px; /* Отступ слева от изображения */
}

.particle {
  position: absolute;
  width: 60px;
  height: 60px;
  background: url('./2.png') center/contain no-repeat;
  pointer-events: none;
  animation: fly 0.8s ease-out forwards;
  z-index: 1;
  top: 40%;
  left:50%;
  transform:translate(-50%, -50%);
}

#particle{
  position: absolute;
  top: 40%;
  left:50%;
  transform:translate(-50%, -50%);
  height: 1px;
  width: 1px;
}

@keyframes fly {
  0% {
    opacity: 1;
    transform: translate(0px, 0px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.5) rotate(360deg);
    
  }
}



.mySlides {
  display: none;
  position: relative;
  z-index: 600; /* Поверх затемнения */
}

#slideshow img {
  margin-left: 10vw;
  width: 60%;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 700; /* Поверх всего */
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-container {
  position: fixed; /* Зафиксировать по всему экрану */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Поверх всего */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Темный фон */
  z-index: 500; /* Под слайдами */
}

