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

* {
  box-sizing: border-box;
  --first-color: #0d7699;
  --first-color-alt: #3b5998;
  --second-color: #f15449;
  --second-color-alt: #e53935;
  --border-radius: 0.24rem;
}

body {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 1000;
  font-style: italic;
  font-variation-settings: "slnt" 0;
  /*background: url("Untitled\ design\ \(1\).jpg") no-repeat center center fixed; /* Center the image and fix it in place */
  background-size: cover; /* Ensure the image covers the entire background */
 background-color: #f7f9fa;/* 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 {
  z-index: 1; /* Ensure modal is above the video */
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  align-content: center;
}

.modal-container {
  display: flex;
  max-width: 1080px;
  width: 100%;
  border-radius: var(--border-radius);

  overflow: hidden;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.3s;
  background: #fff;
  transform: translateY(100px) scale(0.4);
    /* Add shadow */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 38px;
  margin: 10px 0px 40px;
  font-weight: 800;
  color: var(--first-color);
  text-align: center; /* Center the text horizontally */
}

/*.modal-title::after {
  content: "";
  display: block;
  width: 50%; 
  height: 2px; 
  background-color: #535353; 
  margin: 30px auto 0; 
} */

.name {
  color: var(--first-color);
  font-size: 28px;
}

.subject {
  color: var(--second-color);
  font-size: 28px;
}

.sub-sub {
  margin-top: 10px;
  font-size: 20px;
  text-align: center;
}

.paragraph {
  text-align: center; /* Aligns text to the right */
  color: var(--first-color);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

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

.modal-right {
  flex: 2;
  font-size: 0;
  transition: 0.3s;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.modal-right img {
  width: 100%;
  height: 100%;
  transform: scale(2);
  border-radius: var(--border-radius);
  -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: var(--first-color);
  font-size: 14px;
}

.sign-up {
  margin: 60px 0 0;
  font-size: 14px;
  text-align: center;
}
.sign-up a {
  color: var(--first-color);
}

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

.input-block {
  display: flex;
  height: 50px;
  flex-direction: column;
  padding: 10px 10px 10px;
  border: 1px solid rgba(95, 95, 95, 0.5);
  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: rgba(95, 95, 95, 0.329);
  opacity: 1;
}
.input-block input:-ms-input-placeholder {
  color: rgba(95, 95, 95, 0.288);
  opacity: 1;
}
.input-block input::placeholder {
  color: rgba(95, 95, 95, 0.288);
  opacity: 1;
}
.input-block:focus-within {
  border-color: rgb(95, 95, 95);
}
.input-block:focus-within .input-label {
  color: rgba(95, 95, 95, 0.205);
}

.icon-button {
  outline: 0;
  position: absolute;
  right: 10px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: 0;
  padding: 0;
  cursor: pointer;
}
.social-login a {
  text-decoration: none;
  position: relative;
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-block; }
  .social-login a span {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); }
  .social-login a:hover {
    color: #fff; }
  .social-login a.facebook {
    background: #3b5998; }
    .social-login a.facebook:hover {
      background: #344e86; }
  .social-login a.twitter {
    background: #1da1f2; }
    .social-login a.twitter:hover {
      background: #0d95e8; }
  .social-login a.youtube {
    background: #ea4335; }
    .social-login a.youtube:hover {
      background: #e82e1e; }


@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 {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
  }

  .modal-container {
    padding: 10px;
    margin-top: 100px;
    margin-bottom: 50px;
    display: flex;
    width: 100%;
    max-width: 90%;
    /* max-height: 95vh; */
    height: auto;
    border-radius: 0;
    overflow: auto;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    flex-direction: column;
    /* align-content: flex-start; */
    justify-content: space-evenly;
    align-items: center;
  }

  .modal-left {
    padding: 10px;
    margin-top: 50px;
    background: #ffffff;
    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: #ffffff;
    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 {
    font-size: 32px;
    margin: 10px 0px 40px;
    font-weight: 800;
    text-align: center; /* Center the text horizontally */
  }

  .name {
    font-size: 18px;
  }

  .subject {
    font-size: 18px;
  }

  .sub-sub {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
  }

  .input-button {
    margin: 5px;
    padding: 8px 12px;
    outline: none;
    border: 0;
    color: #fff;
    font-family: "Nunito", sans-serif;
    transition: 0.3s;
    cursor: pointer;
  }


}

@media (max-width: 375px) and (max-height: 667px) {
  .modal-container {
    margin-top: 200px;
    display: flex;
    width: 90%;
  }
}

@media (min-height: 720px) and (max-height: 720px) {
  .modal-container {
    margin-top: 300px;
    margin-bottom: 30px;
    display: flex;
    width: 90%;
  }
}

@media (min-height: 914px) and (max-height: 914px) {
  .modal-container {
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    width: 90%;
  }
}
