/* ✅ CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ✅ Base font and background setup */
body, html {
  height: 100%;
  font-family: sans-serif;
  color: white;
}

/* ✅ Background Image */
.background {
  background: url('./assets/black-background-1.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 60px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

/* ✅ Text Styling */
.title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.subheading {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin: 50px 0 15px;
}

/* ✅ Layout */
.scroll {
  width: 100%;
  max-width: 600px;
  padding-bottom: 80px;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(to bottom, #ff6699, #cc3366); /* ✅ Darker pink, vertical gradient */
  color: white;
  border: 2px solid #ff6699; /* Border matches lighter pink */
  padding: 15px 20px; /* More padding for touch */
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.3s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent; /* Remove highlight flash on touchscreens */
}

/* ✅ Invert gradient on tap/click */
button:active {
  background: linear-gradient(to bottom, #cc3366, #ff6699); /* Inverted */
}

/* ✅ Input field */
.input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 20px;
  border: none;
  margin-top: 0px;
  background-color: #fff;
  color: #000;
}

/* ✅ Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.hidden {
  display: none;
}

.modal-box {
  background-color: #222;
  padding: 25px;
  border-radius: 15px;
  max-width: 90%;
  text-align: center;
}

.modal-text {
  color: white;
  font-size: 28px;
  margin-bottom: 20px;
}

.modal-button {
  background-color: #722C6A;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  margin: 5px;
}

#loading {
  position: absolute; /* ✅ Absolute to the page */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ Center perfectly */
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #ff66b2; /* Pink spinning top */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 999; /* ✅ Make sure it's above everything */
}

/* Hide initially */
.hidden {
  display: none;
}

/* Spin animation */
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

