* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "cursive", sans-serif;
    text-transform: uppercase;
  }
  
  body {
    position: relative;
  }
  
  .app {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 60px;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;


    /* position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    margin-top: 50vh;
    transform: translateY(-50%); */
  }
   
  /* .display {
    width: 100%;
    max-width: 370px;
    padding-left: 20px;
    padding-right: 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
  } */

  .display {
    /* width: 100%; */
    max-width: 370px;
    padding-left: auto;
    margin-left: auto;
    margin-right: auto;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 230px;
    height: 200px;
    background-color: #2a2b30;
    border: 1px solid #555555;
    border-radius: 15px;
    margin: 0 auto;
    margin-bottom: 20px;
  }
  
  .logo img {
    width: 100%;
    height: auto;
    padding: 20px;
  }
  
  .block {
    position: relative;
    width: 280px;
    border-radius: 11px;
    border: 1px solid #34343b;
    background:rgb(75 40 132 / 18%);
    appearance: none;
    cursor: pointer;
    padding: 15px;
    color: #78a4d2;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 20px;
}
  

.block.currency img {
    position: absolute;
    bottom: 70px;
    left: 52%;
    top: -256px;
    transform: translateX(-50%);
    width: 240px;
    cursor: default !important;
}
  
  .block.forecast {
    cursor: default;
    overflow: hidden;
  }
  
  .block.forecast.down {
    background-color: #ff646c;
    color: #fff;
  }

 .block.forecast.down:after{
   content: '';
   width: 30px;
   height: 30px;
   background-image: url('../images/arrow.png');
   /*background-color: #14c679;*/
   position: absolute;
   top: 50%;
   right: 30px;
   z-index: 2;
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;

   transform: translateY(-50%);
 }

.block.forecast.up:after{
  content: '';
  width: 30px;
  height: 30px;
  background-image: url('../images/arrow.png');
  /*background-color: #14c679;*/
  position: absolute;
  top: 50%;
  right: 30px;
  z-index: 3;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transform: translateY(-50%) rotateZ(180deg);
}
  
  .block.forecast.up {
    background-color: #14c679;
    color: #fff;
  }
  
  .block .tit {
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-shadow: 0px 0px 6px #fff;
  }
  
  .block .value,
  .block .time_val {
    text-shadow: 0px 0px 6px #78a4d2;
    font-size: 30px !important;
  }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 11px;
  border: 1px solid #9260cf; /* Оранжевая граница */
  background: #9260cf96;       /* Оранжевый фон */
  padding: 15px 20px;
  cursor: pointer;
  color: #ffffff;             /* Белый текст */
  text-align: center;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

  
  .btn:active {
    animation: click 0.3s ease;
  }
  
  .currency-container,
  .set-time-items {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
    padding: 8px;
    background-color: rgb(0 0 0 / 80%);
    color: #f6f7f7;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0px 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: all 0.2s ease;
  }
  
  .set-time-items {
    top: auto;
    bottom: 105%;
  }
  
  /* Стилизация для браузеров на основе WebKit (Google Chrome, Safari) */
  /* Полоса прокрутки */
  .currency-container::-webkit-scrollbar,
  .set-time-items::-webkit-scrollbar {
    width: 10px; /* Ширина полосы прокрутки */
    height: 10px;
    border-radius: 5px;
  }
  
  /* Бегунок (перемещаемая часть полосы) */
  .currency-container::-webkit-scrollbar-thumb,
  .set-time-items::-webkit-scrollbar-thumb {
    background-color: #868893; /* Цвет бегунка */
    border-radius: 5px; /* Скругленные углы бегунка */
  }
  
  /* Фон полосы прокрутки */
  .currency-container::-webkit-scrollbar-track,
  .set-time-items::-webkit-scrollbar-track {
    background-color: #3e3f45; /* Цвет фона полосы прокрутки */
    border-radius: 5px;
  }
  
  .currency-container .item,
  .set-time-items .item {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 12px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #78a4d2;
    text-shadow: 0px 0px 6px #78a4d2;
  }
  
  .currency-container .item:not(:last-child),
  .set-time-items .item:not(:last-child) {
    margin-bottom: 9px;
  }
  
  .currency-container .item:not(:last-child):before,
  .set-time-items .item:not(:last-child):before {
    content: "";
    position: absolute;
    width: 106%;
    height: 1px;
    bottom: -5px;
    left: -8px;
    background-color: #868893;
  }
  
  .currency-container .item:hover,
  .set-time-items .item:hover {
    background-color: #78a4d2;
    color: #fff;
    text-shadow: 0px 0px 6px #fff;
  }
  
  .windowShow {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
  }
  
  .set-time .time_input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: #ffd602;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  
  .spinner {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin: 0 auto;
    margin-top: 5px;
    border: 4px solid #78a4d2;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  .block.forecast.down .spinner,
  .block.forecast.up .spinner {
    border: 4px solid #fff;
    border-top: 4px solid transparent;
  }
  
  .btn .spinner {
    width: 20px;
    height: 20px;
    display: none;
    border: 4px solid #1e1f23;
    border-top: 4px solid transparent;
    margin: 0;
    margin-left: 15px;
  }
  
  .btn.loading .spinner {
    display: inline-block;
  }
  
  .load-dot {
    opacity: 0;
    display: none;
  }
  
  .load-dot:nth-child(1) {
    animation: dot-animation 1s 0.3s infinite;
  }
  
  .load-dot:nth-child(2) {
    animation: dot-animation 1s 0.6s infinite;
  }
  
  .load-dot:nth-child(3) {
    animation: dot-animation 1s 0.9s infinite;
  }
  
  .dotShow {
    display: inline-block;
  }
  
  .popup {
    animation: click 0.1s ease;
  }
  
  .modal {
    width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    bottom: unset;
    right: unset;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    min-height: auto;
    /*overflow: hidden;*/
    background-color: rgb(0, 0, 0, 0.8);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0px 12px 32px rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
  }
  
  .modal-close {
    display: flex;
    justify-content: flex-end;
  }
  
  .modal-close img {
    width: 20px;
    height: auto;
    cursor: pointer;
  }
  
  .modal .modal-tit {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    margin-top: 30px;
    text-shadow: 0px 0px 6px #fff;

    font-family: monospace;
  }
  
  .modal-input {
    margin-bottom: 15px;
  }
  
  .modal-input .errtxt {
    font-weight: 500;
    font-size: 12px;
    color: red;
    opacity: 0;
  }
  
  .modal-input .errtxt.active {
    opacity: 1;
  }
  
  .modal-input input {
    border: none;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 8px 16px rgb(255 255 255 / 30%),
      0px 0px 32px rgb(255 255 255 / 40%);
    background-color: #000;
    height: 56px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    outline: none;
    padding: 0 10px;
    margin-bottom: 7px;
  }
  
  .modal .unlock {
    border: none;
    width: 100%;
    border-radius: 12px;
    background-color: #fff;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 22px;
    cursor: pointer;

    font-family: monospace;
  }
  
  .marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgb(0, 0, 0, 0.8);
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
    text-shadow: 0px 0px 6px #fff;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
  }
  
  .marquee {
    white-space: nowrap;
    display: flex;
  }
  
  @media (min-width: 700px) {
    .app {
      background-position: top;
    }
  }
  
  @media (max-height: 780px) {
    .app {
      background-position: top;
    }
  
    .display {
      justify-content: flex-end;
    }
  }
  
  @keyframes dot-animation {
    0% {
      opacity: 0;
    }
    25% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    75% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    } /* Вращение на 360 градусов */
  }
  
  @keyframes click {
    0% {
      transform: scale(0.95);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes marquee {
    from {
      transform: translateX(100%);
    }
  
    to {
      transform: translateX(-100%);
    }
  }

  #background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Чтобы видео не деформировалось и заполнило весь экран */
    z-index: -1; /* Отправляем видео на задний план */
    pointer-events: none; /* Видео не будет реагировать на клики */

    filter: blur(7px);
    margin: -20px;
    width: calc(100vw + 40px);
    height: calc(100vh + 40px);
  }
  
  /* Стили для контента поверх видео */
  .content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    /*margin-top: 50vh;*/
    /*transform: translateY(-50%);*/
  }



  .ava-img{
    border-radius: 50%;
  }

  .message-box{
    position:absolute;
    top: -60%;
    left: -110%;

    display: flex;
    gap: 20px;
    align-items: center
  }

.text-box .message{
  width: 320px;
  padding: 10px  20px;
  border-radius: 15px;
  background-color: rgb(0, 0, 0, 0.8);
  text-align: left;
  font-size: 13px;

  color: #e1dbdb;
}

.text-box .name{
  text-indent: 11px;
  font-size: 11px;

  text-transform: capitalize;
}

.text-box{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 1030px) {
  .message-box{
    left: -40%;
  }
}
@media (max-width: 594px) {
  .message-box{
    left: 0;
  }

  .ava-img{
    width: 60px;
    height: 60px;
  }

  .text-box .message{
    width: 236px;
  }
}

.app.content .display{
  font-family: "cursive", sans-serif;
}

/*.analysis-message {*/
/*  background-color: rgba(0, 0, 0, 0.8);*/
/*  color: #fff;*/
/*  padding: 20px;*/
/*  margin: 20px auto;*/
/*  text-align: center;*/
/*  font-size: 18px;*/
/*  border-radius: 8px;*/
/*  max-width: 400px;*/
/*  display: none;*/
/*}*/

.analyze-message{
  position: relative;
}

.analyze-message img{
  position: absolute;
  right: 15px;
  bottom: -10px;
}

.hide{
  display: none;
}

.block.time-stat{
  display: none;
}