/* styles.css */

/* General Styles */
body {
  background-color: black;
  color: white;
  text-align: center;
  font-family: monospace; /* Ensures proper alignment for ASCII art */
  overflow: hidden; /* Hide scrollbars */
  margin: 0;
  height: 100vh;
  position: relative; /* For absolute positioning of total amount */
}

/* Scroll Container with Snap */
.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Snap Sections */
.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Container for ASCII Art and Pay Button */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width */
  height: 100vh; /* Fill entire viewport */
  position: relative; /* For scroll indicator positioning */
}

/* Event Section Styles */
.event-section {
  background-color: #0a0a0a;
  padding: 20px;
  overflow: hidden; /* Prevent any overflow */
}

.event-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden; /* Prevent container overflow */
}

.event-container h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  margin-top: 20px;
  font-family: monospace;
}

.event-iframe {
  width: 90vw;
  height: calc(100vh - 120px); /* Account for heading and padding */
  max-width: 1200px;
  border: 1px solid #bfcbda88;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

/* Scroll Indicator Styles */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.arrow-down {
  width: 30px;
  height: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  margin: 10px auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Container for ASCII Art */
#ascii-art {
  white-space: pre;
  line-height: 0.5em; /* Adjust line height as needed */
  font-size: 0.2vw;   /* Adjust font size as needed */
  width: 50vw;
  max-width: 50vw;
  height: 50vh; /* **Fixed Height** to prevent expansion */
  overflow: hidden; /* Hide any overflowing content */
  
  /* Optional Styling */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space below ASCII art */
}

/* Total Amount Display */
#total-amount {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 18px;
}

/* Seed Styling (Optional: For Dynamic Coloring) */
.seed {
  color: red; /* Change to desired color */
  animation: sparkle 1s infinite alternate;
}

@keyframes sparkle {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 600px) {
  #ascii-art {
    font-size: 3px;
    line-height: 2px;
    width: 80vw;
    max-width: 80vw;
    height: 60vh;
  }
  #total-amount {
    font-size: 16px;
  }
  #pay-button {
    padding: 10px 20px;
    font-size: 16px;
  }
  .event-container h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  .event-iframe {
    width: 95vw;
    height: calc(100vh - 100px);
  }
  .scroll-indicator {
    bottom: 20px;
  }
  .scroll-indicator span {
    font-size: 12px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    padding: 20px;
  }
}

/* Benefits Section Styles */
.benefits-section {
  background-color: #050505;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.benefits-container h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-family: monospace;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s, background-color 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.benefit-card h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: monospace;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

/* Pay Button Styling */
#pay-button {
  padding: 15px 30px;
  font-size: 17px;
  background-color: white;
  color: black;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  z-index: 1; /* Ensure the button stays above the art */
}

/* Pay Button Hover Effect */
#pay-button:hover {
  background-color: #9eb9df;
  color: rgb(14, 14, 29);
}

/* Styles for Environment Variables Display */
#env-display {
    position: fixed;
    left: 10px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 250px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    text-align: left;  
}

/* Medium Devices (Tablets and Small Laptops) */
@media (min-width: 601px) and (max-width: 1024px) {
  #ascii-art {
    font-size: 3px;
    line-height: 0.5em;
    width: 70%;
    max-width: 700px;
    height: auto;
  }
  #total-amount {
    font-size: 18px;
    top: 30px;
    right: 30px;
  }
  #pay-button {
    padding: 12px 24px;
    font-size: 17px;
  }
}

.btn {
  display: inline-block;
  background-color: #5865F2;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.2s;
}
.btn:hover {
  background-color: #4752c4;
}
.claim-instructions {
  margin-top: 30px;
  text-align: left;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 8px;
  border-left: 4px solid #5865F2;
}
.claim-instructions h3 {
  margin-top: 0;
  color: #5865F2;
}
.claim-instructions code {
  background-color: #e0e0e0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.claim-instructions ol {
  margin-left: 20px;
  padding-left: 0;
  color: #000000;
}
.claim-instructions li {
  margin-bottom: 10px;
  color: #000000;
}
.claim-instructions p {
  color: #000000;
}
#claim-form-container {
  margin-top: 15px;
  padding: 15px;
  background-color: #e8e8e8;
  border-radius: 5px;
}
#discord-user-id {
  padding: 8px;
  width: 70%;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#claim-form-container button {
  padding: 8px 16px;
  background-color: #5865F2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
}
#claim-form-container button:hover {
  background-color: #4752c4;
}
#claim-form-container small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

/* YouTube Integration Styles */
.youtube-button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #FF0000; /* YouTube red */
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  transition: background-color 0.3s;
  /* Hide button by default, JavaScript will show it if enabled */
  display: none;
}

.youtube-button:hover {
  background-color: #CC0000; /* Darker YouTube red */
}

#membership-info {
  background-color: rgba(40, 40, 40, 0.8);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 80%;
  border-left: 4px solid #FF0000; /* YouTube red */
}

#membership-info p {
  margin: 8px 0;
  font-size: 16px;
}

.youtube-auth-success {
  background-color: rgba(40, 40, 40, 0.8);
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #FF0000; /* YouTube red */
}

.youtube-auth-success p {
  margin: 8px 0;
  font-size: 16px;
}