* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", 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;
}

.display {
  width: 100%;
  max-width: 370px;
  padding-left: 20px;
  padding-right: 20px;
  display: none;
  flex-direction: column;
  justify-content: 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: 100%;
  border-radius: 11px;
  border: 1px solid #34343b;
  background: rgb(0, 0, 0, 0.8);
  appearance: none;
  cursor: pointer;
  padding: 15px;
  color: #53e3fc;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}

.block.currency img {
  position: absolute;
  bottom: 51.67px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
}

.block.forecast {
  cursor: default;
  overflow: hidden;
}

.block.forecast.down {
  background-color: #ff646c;
  color: #fff;
}

.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 #53e3fc;
  font-size: 30px !important;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 11px;
  border: 1px solid #000;
  background: #ffffff;
  padding: 15px;
  cursor: pointer;
  color: #1e1f23;
  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: #53e3fc;
  text-shadow: 0px 0px 6px #53e3fc;
}

.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: #53e3fc;
  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 #53e3fc;
  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;
}

.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;
}

.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%);
  }
}
