* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Comic Relief", system-ui;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  font-style: normal;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #00d9ff 0%, #00ffb3 50%, #7fff00 100%);
}

/* Background layers */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Characters */
.characters-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.character {
  position: absolute;
  /*animation: float 4s infinite ease-in-out;*/
}

.character-left {
  bottom: 0%;
  left: 10%;
  width: 22%;
}

.character-top {
  bottom: 60dvh;
  right: 30vw;
  width: 8%;
}

.character-right {
  bottom: 0%;
  right: 1%;
  width: 20%;
}

.clouds-container {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.clouds {
  position: absolute;
}

.cloud-1 {
  bottom: 0%;
  left: 0%;
  width: 37%;
}

.cloud-2 {
  position: fixed;
  z-index: 2;
  bottom: 0%;
  right: 0%;
  width: 40%;
}

.cloud-3 {
  top: 0%;
  left: 0%;
  width: 20%;
}

.cloud-4 {
  top: 0%;
  right: 0%;
  width: 20%;
}
/* Main content */
.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form styles */

.form-container {
  display: flex;
  justify-content: center;
}

.input-wrapper {
  position: relative;
  margin-bottom: -2%;
  width: 55vw;
  height: 10vh;
  align-items: center;
  display: flex;
  justify-content: center;
  bottom: 25%;
}

.wallet-input {
  background: url("./assets/pole_2.0.png");
  font-size: 2em;
  font-family: "Comic Relief", system-ui;
  border: none;
  text-align: left;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 12 / 1;
  padding-left: 5%;
  font-style: normal;
  outline: none !important;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: none !important;
  color: white;
}

.wallet-input:focus,
.wallet-input:active,
.wallet-input:focus-visible {
  outline: none !important;
  border: none !important;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  box-shadow: none !important;
}

.wallet-input::placeholder {
  color: white;
  font-family: "Comic Relief", system-ui;
  font-style: normal;
}

/* Submit button */
.submit-btn {
  width: 40vh;
  height: 5vw;
  font-size: 3em;
  font-weight: 600;
  font-family: "Comic Relief", system-ui;
  color: white;
  background: url(./assets/button.png);
  background-size: 100% 100%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin: 0 auto;
  font-style: normal;
}

.submit-btn:hover {
  transform: translateY(-3px);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: url("./assets/popup.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 60px 50px;
  border-radius: 0;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: bounceIn 0.5s ease;
  border: none;
}

.modal-content.error-modal {
  border: none;
}

.modal-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.modal-content h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 2em;
  font-family: "Comic Relief", system-ui;
}

.modal-content p {
  color: white;
  margin-bottom: 30px;
  line-height: 1.5;
  font-family: "Comic Relief", system-ui;
  font-size: 1.2em;
}

.modal-close {
  padding: 15px 40px;
  background: url("./assets/popupbutton.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: white;
  border: none;
  font-size: 1.3em;
  font-weight: 600;
  font-family: "Comic Relief", system-ui;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  height: 60px;
  text-transform: uppercase;
}

.modal-close.error-btn {
  background: url("./assets/popupbutton.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.modal-close:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.modal-close.error-btn:hover {
  box-shadow: none;
}

/* Social links */
.social-links {
  position: fixed;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 3%;
  width: 100%;
  z-index: 20;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link img {
  width: 64px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading state */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2em;
  }

  .form-card {
    padding: 30px 20px;
  }

  .character {
    width: 120px !important;
  }

  .stats-container {
    top: auto;
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.6em;
  }

  .subtitle {
    font-size: 0.9em;
  }

  .wallet-input,
  .submit-btn {
    font-size: 1em;
  }
}
