@media only screen and (min-width: 0rem) {
  .video-background-container {
    position: relative; /* Allows absolute positioning of video and content inside */
    width: 100%;
    height: 100vh; /* Takes full viewport height */
    display: flex; /* For centering content easily */
    justify-content: center;
    align-items: center;
    color: white; /* Default text color for content */
    text-align: center;
  }

  .video-background-container::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;

    /* Set your desired color and opacity here */
    background-color: rgba(0, 0, 0, 0.5); /* 50% opaque black overlay */
    /* background-color: rgba(255, 165, 0, 0.3); /* Example: 30% opaque orange tint */

    z-index: 3; /* Placed between video (z-index: 0) and content (z-index: 2) */
  }

  /* The video element styling */
  .background-video {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
  }

  /* Content on top of the video */
  .video-content {
    position: relative; /* Brings content above the video */
    z-index: 2; /* Higher z-index than video */
    padding: 20px;
    background-color: rgba(
      0,
      0,
      0,
      0.4
    ); /* Semi-transparent overlay for readability */
    border-radius: 8px;
  }

  .video-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
  }

  .video-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .video-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
  }

  .video-content button:hover {
    background-color: #0056b3;
  }
}

@media only screen and (min-width: 48rem) {
  .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
  }
}
