body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  height: auto;
  background: linear-gradient(to top, #d0ecff, #b3e0ff);
  visibility: hidden;
}

body.ready {
  visibility: visible;
}


html{
  height: auto;
}

.active{
  display: flex !important;
  opacity: 1 !important;
  transform: scaleY(1) !important;
}

.container {
  text-align: center;
  padding: 5vh;
  border-radius: 20px;
  width: 90%;
  max-width: 360px;
  height: 90vh;  /* или сколько нужно */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* 👈 чтобы всё было равномерно */
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  opacity: 0;
  transform: scaleY(0.9);
  transform-origin: top;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.payment{
  opacity: 0;
  transform: scaleY(0.9);
  transform-origin: top;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  flex-direction: column;
  align-items: center;
  width: 90%; 
  min-height: 667px;
  overflow: auto;
}

.payment input{
  margin-top: 4vw;
  border-radius: 20px;
}

.emoji-title {
  margin-bottom: 3vh;
  font-size: 24px;
  font-weight: bold;
  align-items: center;
  gap: 5px;
  display: flex;
}

.animated-text {
  font-family: 'Poppins', sans-serif;
  font-size: 21px;
  color: #1a1a1a;
  height: 40px;                  /* 👈 фиксируем высоту */
  line-height: 40px;            /* 👈 выравнивание текста по центру */
  width: 100%;
  word-break: break-word;
  text-align: center;
  box-sizing: border-box;
  margin-top: -100px;
}


.animated-text {
  transition: height 0.3s ease;
}

.header-text{
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  width: 100%;
  word-break: break-word;
  text-align: center;
  box-sizing: border-box;
}


.animated-text::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: #1a1a1a;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


.button {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 12vh;
}

.button:hover {
  background-color: #005fd1;
}

.share{
  width: 100%;
}

.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../static/images/main.jpg') repeat-x;
  background-size: cover;
  z-index: -1; /* отправляем назад, под основной контент */
  animation: moveClouds 60s linear infinite;
}

@keyframes moveClouds {
  from { background-position-x: 0; }
  to { background-position-x: -1000px; }
}



.input {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  font-weight: 500;
  font-size: 12pt;
  color: #000000;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 0 .4vw rgb(0, 0, 0), 0 0 0 .15vw transparent;
  border-radius: 0.4vw;
  border: none;
  outline: none;
  padding: 0.4vw;
  transition: .4s;
  width: 99%;
  height: 10vw;
  max-height: 50px;
  padding-left: 1em;
  box-sizing: border-box;
  position: relative;
}

.input:focus {
  box-shadow: 0 0 0 .15vw rgb(0, 86, 121);
}


.footer {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #000000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
  transition: all 0.5s;
}

.footer-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  padding: 5px 5vw;
  text-decoration: none;
}

.footer-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}


.footer.active{
  bottom: 0;
}


.summary-box {
  background: #f5f7fa;
  box-shadow: 0 0 .4vw rgb(0, 0, 0), 0 0 0 .15vw transparent;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  width: 99%;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;  
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
  padding: 10px;
}

.summary-item.total {
  font-weight: bold;
  font-size: 18px;
  color: #000;
  margin-top: 12px;
}

.bank-logo {
  width: 25px;          /* одинаковый размер логотипов */
  height: 25px;
  object-fit: contain;  /* чтобы картинка не обрезалась */
  margin-right: 8px;    /* отступ справа от текста */
  vertical-align: middle;
}

.selectbox label {
  display: flex;         /* картинка и текст в ряд */
  align-items: center;   /* выравнивание по центру */
  cursor: pointer;
}

.selectbox input[type="radio"] {
  display: none;  /* скрываем стандартные кружочки radio */
}

.selectbox label:hover {
  background: #f0f0f0;  /* эффект наведения */
  border-radius: 5px;
}

.selectbox{
  margin-bottom: 10px;
}

.tooltip {
  display: none;
  position: absolute;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  max-width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}

.tooltip.show {
  display: block;
}

.info-icon {
  cursor: pointer;
  color: #0d6efd;
  margin-left: 6px;
}

.with-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}


.commiss{
  font-size: 8pt; 
  color: rgb(0, 0, 0);
  background: #ffffff56;
  padding: 1px;
}


.footer-item.checked{
  background-color: #007bff;
}

.input-wrapper {
  position: relative;
  display: inline-block;
  width: 99%;
}

.input-wrapper .input {
  padding-right: 50px; /* оставляем место для TJS */
  width: 99%; /* подбираешь под свой дизайн */
}

.input-wrapper .currency {
  position: absolute;
  right: 20px;
  top: 65%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
}

.rocket{
  width: 24px;
  height: 24px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  width: 70vw;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-icon {
  margin-bottom: 10px;
  color: #e74c3c;
}

.modal-title {
  color: #000000;
  font-size: 20px;
  margin: 0px;
}

.modal-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.modal-button {
  background: #007bff;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-button:hover {
  background: #2980b9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.hidden {
  display: none;
}


.input-error {
  animation: error-blink 2s ease;
}

@keyframes error-blink {
  0% {
    border-color: #ccc;
    box-shadow: none;
  }
  30% {
    border-color: red;
    box-shadow: 0 0 6px 1px red;
  }
  60% {
    border-color: red;
    box-shadow: 0 0 6px 1px red;
  }
  100% {
    border-color: #ccc;
    box-shadow: none;
  }
}


#typing-text {  
  font-size: 24px;
  font-weight: 500;
  color: rgb(0, 0, 0);
  position: relative;
}

#typing-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background: rgba(255,255,255,0.7);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
