body {
  background: linear-gradient(45deg, #140901, #1c1c0c);
  color: #e4e6e0;
  font-family: Syne, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.red-cross {
  color: #caff94;
  font-size: 150px;
  text-align: center;
  line-height: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100px;
  margin: 50px auto;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.container {
  text-align: center;
  background-image: url("/assets/background.svg");
  background-color: #140901;
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: top 2% center;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  width: 23vw;
  min-width: 400px;
  height: 43vh;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .container {
    width: 90vw;
    margin: 0 16px;
    min-width: 300px;
    height: 90vh;
    min-height: 300px;
  }
}

.content {
  padding: 0.1rem 2rem;
  border-radius: 10px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.tokens {
  color: #caff94;
}

h1 {
  color: #caff94;
  margin-bottom: 1rem;
  font-size: 2.5em;
}

form {
  margin-bottom: 1rem;
}

input[type="text"] {
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: none;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

input[type="submit"] {
  background-color: #caff94;
  border: none;
  color: black;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  opacity: 0.5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.token-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.token-circle svg {
  transform: rotate(-90deg);
  max-width: 200px;
}

#progressCircle {
  transition: stroke-dashoffset 0.5s ease-out;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 9, 1, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.spinner {
  border: 8px solid #140901;
  border-top: 8px solid #caff94;
  border-radius: 50%;
  opacity: 0.8;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner-text {
  margin-top: 20px;
  font-size: 18px;
  text-align: center;
}

.error-message {
  background-color: #ef5350;
  color: #140901;
  border: 1px solid #ef5350;
  border-radius: 4px;
  padding: 10px;
  margin: 10px 0;
}

.tx-result {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 10px 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tx-result p {
  margin: 0 0 10px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tx-hash {
  color: #caff94;
  font-family: Syne, sans-serif;
}

.tx-result input[type="submit"] {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}
