/* Main styling */
body {
  max-width: 100vw;
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background-color: #0c031f;
  color: white;
  text-align: center;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../filer/background.png') no-repeat center center;
  background-size: cover;
  z-index: -1; /* Place behind other elements */
}

header {
  text-align: center;
  padding: 0px; /* Adjust padding to move the logo up */
  position: relative;
  z-index: 1;
}

.logo {
  height: 200px; /* Adjust the logo size */
  margin: auto; /* Center the logo */
  margin-top: -10px;
}

.hero {
  padding-top: 150px; /* Increased padding to move the main text down */
  position: relative; /* Add position: relative to position the background image */
  z-index: 1;
  text-align: center; /* Ensure hero text is centered */
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.input-container {
  position: relative;
  display: flex;
  justify-content: center; /* Center the input and button */
  align-items: center;
  width: 100%; /* Ensure the input container takes full width */
  max-width: 400px; /* Limit the maximum width */
  margin: 0 auto; /* Center the input container */
}

.input-container input {
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 25px; /* Match border-radius with the button */
  width: 100%; /* Ensure the input takes full width */
  background: rgba(255, 255, 255, 0.8); /* Set background to be slightly transparent */
  box-sizing: border-box; /* Include padding and border in the element's total width */
  padding-right: 50px; /* Add padding to the right to make space for the button */
}

.input-container button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px; /* Adjust padding to make the button oval horizontally */
  font-size: 18px;
  color: white;
  background-color: #0c031f; /* Adjust color */
  border: none;
  border-radius: 25px; /* Adjust border-radius to make the button oval */
  cursor: pointer;
}

.input-container button i {
  color: white; /* White arrow */
}

.input-container button:hover {
  background-color: #18063f; /* Lighter blue on hover */
}

/* Section Styling */
section {
  margin-top: 100px;
  background-color: transparent;
  position: relative;
  z-index: 1;
  max-width: 100%; /* Consider adjusting if content overflows on mobile */
  padding: 0;
  box-sizing: border-box;
}

/* Media query for mobile background */
@media (max-width: 767px) {
  body {
      max-width: 100vw;
  }

  .background-image {
      background: url('../filer/backgroundmobile.png') no-repeat center center;
      background-size: cover;
      margin-top: 20px;
  }  

  .hero {
      padding-top: 100px; /* Adjust padding for smaller screens */
  }

  .hero h1 {
      font-size: 36px; /* Adjust font size for smaller screens */
      margin-top: 30px;
  }

  .input-container {
      max-width: 80%; /* Adjust the maximum width for smaller screens */
      flex-direction: row; /* Ensure input and button are aligned horizontally */
  }

  .input-container input {
      margin-bottom: 0; /* Remove space between input and button */
      padding-right: 50px; /* Add padding to the right to make space for the button */
  }

  .input-container button {
      right: 5px; /* Ensure button is correctly positioned */
      top: 50%;
      transform: translateY(-50%);
  }
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

/* Modal Content with Border */
.modal-content {
  width: 90%; /* Maximum width of 90% */
  height: 90%; /* Maximum height of 90% */
  max-width: 1080px; /* Limit width to 1080px */
  max-height: 1920px; /* Limit height to 1920px */
  background-color: #fff; /* White background for the border */
  border-radius: 10px; /* Rounded corners for the border */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px; /* Padding for border space */
  box-sizing: border-box; /* Include padding in width/height */
}

/* Video Player */
#videoPlayer {
  width: 100%;
  height: 100%;
  border-radius: 8px; /* Rounded corners for the video player */
}

/* Close Button */
.close {
  color: #fff;
  position: absolute;
  right: -20px; /* Move outside the border */
  top: -20px; /* Move above the border */
  font-size: 36px; /* Larger font size for better visibility */
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  border-radius: 50%; /* Circular shape */
  padding: 8px 20px; /* Padding around the icon */
  z-index: 1100; /* Ensure it stays on top */
}

.close:hover,
.close:focus {
  color: #fff;
  background: rgba(255, 0, 0, 0.7); /* Red background on hover */
  text-decoration: none;
}

@media (max-width: 1080px) {
  .modal-content {
      width: 90%; /* Adjust to 90% for smaller screens */
      height: 90%; /* Maintain 90% height */
      aspect-ratio: 9 / 16; /* Maintain video aspect ratio for small screens */
  }
}