@charset "UTF-8";
/* CSS Document */

/* Popup background overlay */
  .popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 1000;
  }

  /* Popup content window */
  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 1000px; /* Set maximum width */
    background: black; /* Black background behind video */
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: hidden; /* Ensures the video stays contained */
  }

  /* Video container to maintain aspect ratio */
  .popup-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect ratio (height is 56.25% of width) */
    background: black;
  }

  /* Video background */
  .popup-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Centered gradient overlay */
  .gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%; /* Full width */
    height: 30%; /* Gradient height */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    z-index: 0; /* Behind the buttons */
  }

  /* Headline and text */
  .popup-header {
    margin-top: 20px;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
  }

  .popup-text {
    margin: 10px 50px 20px;
    font-size: 16px;
    color: #ccc;
  }

  /* Button container below the video */
  .popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    z-index: 1; /* Above the gradient and video */
  }

  .popup-button {
    padding: 10px 20px;
    width: 250px; /* Fixed width for buttons */
    border: 1px solid #f28c00;
    font-size: 16px;
    cursor: pointer;
    color: #f28c00;
    background-color: #fff;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0; /* No rounded corners */
  }

  .popup-button:hover {
    background-color: #f28c00;
    color: #fff;
  }

  /* Close button on top right */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    z-index: 1; /* Above the video */
  }

  .popup-close:hover {
    background: #f28c00;
    color: #fff;
  }

  /* Responsive styles for mobile */
  @media (max-width: 768px) {
    .popup-content {
      width: 90vw; /* Slightly narrower for smaller screens */
    }

    .popup-video-container {
      padding-top: 56.25%; /* Maintain 16:9 aspect ratio */
    }

    .popup-buttons {
      flex-direction: column; /* Stack buttons vertically */
      gap: 10px;
      align-items: center; /* Center the buttons horizontally */
    }

    .popup-button {
      width: 80%; /* Wider buttons on mobile */
      max-width: 300px; /* Optional: prevent buttons from being too wide */
    }
  }