/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #120033;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
}

.donate-page-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* was center */
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.donate-container {
  margin-top: 4vh;
  /* new */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

/* Floating Mortex Image */
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  animation: floatImage 6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 106, 193, 0.25);
}

.image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 106, 193, 0.15) 0%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* Floating Animation */
@keyframes floatImage {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Heading */
.donate-container h2 {
  font-size: 1.9rem;
  font-family: 'Audiowide', cursive;
  color: #ff6ac1;
  text-shadow: 0 0 6px #ff6ac180;
  margin-bottom: 1rem;
}

/* Description */
.donate-container p {
  font-size: 1rem;
  color: #c9c9ff;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 1.5rem;
}

/* Input Field */
#donation-amount-input {
  width: 100%;
  max-width: 280px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #2a1d4d;
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

#donation-amount-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ff6ac1;
}

/* Donate Button */
#donate-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-family: inherit;
  background: linear-gradient(135deg, #ff6ac1, #a65fff);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#donate-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e055a7, #8e4de5);
  box-shadow: 0 0 12px rgba(255, 106, 193, 0.25);
}

.donate-container .warning p {
  font-size: 0.7rem;
  color: #ffcc66 !important;
  text-align: center;
  margin-top: 1rem;
  max-width: 440px !important;
  line-height: 1.5;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .donate-page-container {
    padding: 1.5rem 1rem;
  }

  .donate-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .donate-container h2 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .donate-container p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .image-wrapper {
    max-width: 240px;
    margin-bottom: 1rem;
  }

  #donation-amount-input {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
  }

  #donate-button {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
  }
}

@media (max-width: 360px) {
  .donate-container h2 {
    font-size: 1.2rem;
  }

  .donate-container p {
    font-size: 0.9rem;
  }

  #donation-amount-input,
  #donate-button {
    font-size: 0.9rem;
  }

}

/* Scrollbars */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #120033;
  }

  ::-webkit-scrollbar-thumb {
    background: #6e00ff;
    border-radius: 8px;
    border: 2px solid #120033;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #a65fff;
  }

  html {
    scrollbar-color: #6e00ff #120033;
    scrollbar-width: thin;
  }

  body.keyboard-open .donate-container {
    transition: margin-bottom 0.2s ease;
  }

}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }

  html {
    scrollbar-width: none;
  }
}