/******************************************************************************
 * styles.css
 * ==========
 * - The .portal-image is centered with max-width: 70%.
 * - The .overlay-content sits above the image (absolute positioning + z-index).
 ******************************************************************************/

/* Reset some defaults for a consistent layout */
html, body {
    margin: 0; 
    padding: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    font-family: Arial, sans-serif;
  }
  
  /* Main container */
  .portal-container {
    /* Relative positioning so we can absolutely position the overlay */
    position: relative;
    /* Fill the viewport (optional) */
    width: 100%;
    min-height: 100vh; 
    /* Use flex to center the image horizontally, or just rely on 'margin: 0 auto;' */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Center the portal image, limit max-width to 70% */
  .portal-image {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto; /* centers the image within .portal-container */
    z-index: 1; /* behind the overlay */
  }
  
  /* Optional fog effect behind the overlay but in front of the image */
  .fog-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%);
    z-index: 2;
  }
  
  /* 
    The overlay content (countdown, button, etc.) 
    absolutely positioned on top of the .portal-container, 
    higher z-index than the image and fog.
  */
  .overlay-content {
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 3; 
    /* Use flex to arrange child elements top -> bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* start from the top */
    text-align: center; 
  }
  
  /* Title text styling */
  .center-text {
    margin-top: 5vh; /* or 15vh, adjust as desired */
    margin-bottom: 1rem;
  }
  
  /* Countdown glitch effect */
  .countdown {
    margin-top: 35rem; 
    font-size: 2em;
    color: #fff;
    animation: glitchAnimation 3s infinite;
    white-space: nowrap;
  }
  
  @keyframes glitchAnimation {
    0% { text-shadow: none; }
    10% { text-shadow: 2px 0 red; }
    20% { text-shadow: -2px 0 blue; }
    30% { text-shadow: 2px 0 green; }
    40% { text-shadow: -2px 0 yellow; }
    50% { text-shadow: 2px 0 cyan; }
    60% { text-shadow: -2px 0 magenta; }
    70% { text-shadow: 2px 0 orange; }
    80% { text-shadow: -2px 0 pink; }
    90% { text-shadow: 2px 0 purple; }
    100% { text-shadow: none; }
  }
  
  /* Bottom text area (wallet info) */
  .bottom-text {
    margin-top: 1rem;
  }
  
  /* Button styling */
  button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
  }
  
  button:hover {
    background-color: darkred;
  }
  
  /* Pulsing effects for the BNB balance */
  @keyframes pulseGreen {
    0% { text-shadow: 0 0 10px green, 0 0 20px green, 0 0 30px black; }
    50% { text-shadow: 0 0 30px green, 0 0 50px black; }
    100% { text-shadow: 0 0 10px green, 0 0 20px black; }
  }
  
  @keyframes pulseRed {
    0% { text-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px black; }
    50% { text-shadow: 0 0 30px red, 0 0 50px black; }
    100% { text-shadow: 0 0 10px red, 0 0 20px black; }
  }
  
  /* BNB balance styling */
  .bottom-text span {
    font-weight: bold;
    font-size: 1.2em;
  }
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 600px) {
    .countdown {
      font-size: 1.5em;
    }
    button {
      font-size: 14px;
    }
  }
  