/* ================================
   Daily Draw Modal Styles
   ================================ */

/* Overlay that dims the background and adds a subtle blur */
#dailyDrawModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A translucent black with slight blur for a “frosted” look */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: none; /* hidden by default, shown by JS */
    z-index: 10000; /* ensures it's above the hero if hero has z-index: 9999 */
    align-items: center;
    justify-content: center;
    opacity: 0; /* Controlled by fade-in/fade-out animations */
  }
  
  /* The modal container */
  #dailyDrawModal {
    background: #fff;
    padding: 2rem;
    border-radius: 10px; /* slightly larger corner radius for a modern look */
    width: 400px;
    max-width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* deeper shadow for modern card style */
    text-align: center;
    opacity: 0; /* Controlled by animations */
    transform: translateY(10px); /* starts slightly moved for upward fade-in */
  }
  
  /* The modal heading */
  #dailyDrawModal h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0d47a1;
    font-size: 1.5rem; /* slightly larger for modern style */
    font-weight: 600;
  }
  
  /* Description text for daily draw */
  #dailyDrawModal p.draw-description {
    margin: 0.5rem 0 1rem 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  /* Countdown display text */
  #dailyCountdown {
    font-size: 2.75rem; /* Increase size for extra emphasis */
    margin: 1rem 0;
    color: #333;
    font-weight: 700; /* Make the countdown text bold */
  }
  
  /* Close button styling */
  #closeDailyDrawBtn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background-color: #0d47a1;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  #closeDailyDrawBtn:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
  }
  
  /* Fade-in and fade-out classes */
  .show {
    animation: fadeInOverlay 0.3s forwards;
  }
  .hide {
    animation: fadeOutOverlay 0.3s forwards;
  }
  .show-modal {
    animation: fadeInModal 0.3s forwards;
  }
  .hide-modal {
    animation: fadeOutModal 0.3s forwards;
  }
  
  @keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  
  /* Modal fade in from slightly below */
  @keyframes fadeInModal {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeOutModal {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(10px);
    }
  }
  