@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 1000;
  font-style: italic;
  font-variation-settings: "slnt" 0;

  background: url("img/0.png") no-repeat center center fixed; /* Center the image and fix it in place */
  background-size: cover; /* Ensure the image covers the entire background */

  color: white; /* Ensure text is visible on the background */
  overflow: hidden; /* Prevent scrollbars */
}

#background-video {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Ensure the video stays behind other content */
}

.modal {
  position: relative;
  z-index: 1; /* Ensure modal is above the video */
}

.modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal-container {
  display: flex;
  max-width: 1080px;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.3s;
  background: #fff;
  transform: translateY(100px) scale(0.4);
}
.modal-title {
  font-size: 36px;
  margin: 20px 0 100px;
  font-weight: 800;
  color: #3d3d3d;
  text-align: center; /* Center the text horizontally */
}

.modal-sub-title {
  font-size: 36px;
  margin: 50px 0 0;
  font-weight: 800;
  color: #3d3d3d;
  text-align: center; /* Center the text horizontally */
}

.paragraph {
  margin: 30px 0 30px;
}
.modal-desc {
  margin: 10px 0 10px 5px;
}
.modal-left {
  padding: 60px 30px 20px;
  background: #ffffff42;
  flex: 1.25;
  transition-duration: 0.5s;
  transform: translateY(80px);
  opacity: 0;
}

.modal-right {
  flex: 2;
  font-size: 0;
  transition: 0.3s;
  overflow: hidden;
}
.modal-right img {
  width: 100%;
  height: 100%;
  transform: scale(2);
  -o-object-fit: cover;
  object-fit: cover;
  transition-duration: 1.2s;
}
.modal.is-open {
  opacity: 1;
  height: 100%;
  transform: translateY(
    0
  ); /* Replace 'your-image-path.jpg' with the path to your image */
}
.modal.is-open .modal-container {
  opacity: 1;
  transition-duration: 0.6s;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.modal.is-open .modal-right img {
  transform: scale(1);
}
.modal.is-open .modal-left {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-buttons a {
  color: rgba(51, 51, 51, 0.6);
  font-size: 14px;
}

.sign-up {
  margin: 60px 0 0;
  font-size: 14px;
  text-align: center;
}
.sign-up a {
  color: rgb(169 111 2);
}

.input-button {
  margin: 5px;
  padding: 8px 12px;
  outline: none;
  border: 0;
  color: #fff;
  border-radius: 4px;
  background: rgb(169 111 2);
  font-family: "Nunito", sans-serif;
  transition: 0.3s;
  cursor: pointer;
}
.input-button:hover {
  background: rgba(134, 104, 3, 0.849);
}

.input-block {
  display: flex;
  height: 50px;
  flex-direction: column;
  padding: 10px 10px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  transition: 0.3s;
}
.input-block input {
  outline: 0;
  border: 0;
  height: 40px;
  padding: 4px 0 0;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
}
.input-block input::-moz-placeholder {
  color: #ccc;
  opacity: 1;
}
.input-block input:-ms-input-placeholder {
  color: #ccc;
  opacity: 1;
}
.input-block input::placeholder {
  color: #ccc;
  opacity: 1;
}
.input-block:focus-within {
  border-color: rgba(190, 147, 3, 0.849);
}
.input-block:focus-within .input-label {
  color: rgb(169 111 2);
}

.icon-button {
  outline: 0;
  position: absolute;
  right: 10px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: 0;
  padding: 0;
  cursor: pointer;
}
.social-icons {
  margin-top: 20px;
  text-align: center;
}

.social-icon {
  margin-right: 10px;
  color: #333;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icon:hover {
  color: rgb(169 111 2); /* Change to your desired hover color */
}

@media (max-width: 750px) {
  body {
    max-height: 100vh; /* Allow the body to use the full viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds viewport height */
  }

  .modal-container {
    display: flex;
    flex-direction: column; /* Stack right panel above left panel */
    width: 100%;
    max-width: 90%; /* Full width of the viewport */
    max-height: 95vh; /* Increase the height to 95% of the viewport height */
    height: auto; /* Adjust height based on content */
    border-radius: 0; /* Remove border-radius for simplicity */
    overflow: auto; /* Enable scrolling if content exceeds modal height */
    position: relative; /* Change to relative for better positioning */
    opacity: 1; /* Ensure visibility */
    pointer-events: auto; /* Enable interactions */
    background: #fff;
  }

  .modal-left {
    padding: 10px;
    background: #ffffff42;
    flex: 1; /* Adjust flex to fit content */
    opacity: 1; /* Ensure visibility */
    margin-top: 10px; /* Space between right and left panel */
  }

  .modal-right {
    padding: 0; /* Remove padding to make the image fill the container */
    background: #ffffff42;
    flex: 2; /* Increase flex to make the right panel larger relative to the left panel */
    opacity: 1; /* Ensure visibility */
    position: relative; /* For absolute positioning of the image */
    overflow: hidden; /* Hide overflow to ensure image fits */
    height: 60vh; /* Set a specific height for the right panel */
  }

  .modal-right img {
    width: 100%;
    height: 100%; /* Make the image fill the height of the container */
    object-fit: cover; /* Ensure the image covers the container */
    display: block; /* Remove bottom space/gap */
  }

  .modal-title,
  .modal-sub-title {
    font-size: 18px; /* Adjusted font size for smaller screens */
    margin: 10px 0;
    text-align: center; /* Center-align text */
  }

  .input-button {
    margin: 5px;
    padding: 8px 12px;
    outline: none;
    border: 0;
    color: #fff;
    border-radius: 4px;
    background: rgb(169 111 2);
    font-family: "Nunito", sans-serif;
    transition: 0.3s;
    cursor: pointer;
  }

  .social-icons {
    margin-top: 10px;
    text-align: center; /* Center social icons */
  }

  .social-icon {
    display: inline-block;
    margin: 0 10px; /* Adjust margin for spacing */
    font-size: 24px; /* Ensure icons are visible */
    color: #131313; /* Default icon color */
    transition: color 0.3s;
  }

  .social-icon i {
    color: inherit; /* Inherit color from parent */
  }

  .social-icon:hover {
    color: #575757; /* Color on hover */
  }
}
