/* theme.css */

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #d0f0ff, #a0c4ff, #90a4ff, #a0c4ff, #d0f0ff);
  background-size: 800% 800%;
  animation: skyGradient 30s ease-in-out infinite;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto; /* ✅ allow vertical scroll */
}

@keyframes skyGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.floating-icon {
  position: absolute;
  width: 40px;
  opacity: 0.4;
  animation: floatUpDown 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes floatUpDown {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
  100% { transform: translateY(0px) rotate(-15deg); }
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  z-index: 10;
  position: relative;
}

.container {
  max-height: 90vh;          /* ✅ prevent it from overflowing vertically */
  overflow-y: auto;          /* ✅ enable internal scroll if needed */
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #333;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 6px solid;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 9999;
  text-align: center;
}

#toast.show {
  opacity: 1;
  visibility: visible;
}

.toast-success { color: #28a745; border-color: #28a745; }
.toast-error   { color: #dc3545; border-color: #dc3545; }
.toast-info    { color: #007bff; border-color: #007bff; }
.toast-warn    { color: #ffc107; border-color: #ffc107; }

#upgradeBtn:disabled {
  background-color: #ccc;    /* gray background */
  color: white !important;   /* white text */
  cursor: not-allowed;
}
