@import "./vars.css";

#instructors {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
}

#instructors_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.individual_instructor_container {
  width: 33%;
  margin-bottom: 40px;
}

.instructor_img_container {
  background-color: #3b4958;
  height: 400px;
  width: 100%;
}

.instructor_img_container > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.instructor_name_container {
  display: flex;
  justify-content: center;
}

.instructor_name_container > h3 {
  margin-bottom: 5px;
  text-align: center;
}

@media screen and (max-width: 950px) {
  .instructor_img_container {
    height: 300px;
  }
}

@media screen and (max-width: 700px) {
  .instructor_img_container {
    height: 250px;
  }
}

@media screen and (max-width: 550px) {
  #instructors {
    width: 100%;
  }

  .individual_instructor_container {
    width: 49.5%;
  }

  .modal_content {
    padding: 10px;
  }
}

@media screen and (max-width: 400px) {
  #instructors h1 {
    font-size: 35px;
  }

  .individual_instructor_container {
    width: 100%;
  }
}

@media screen and (max-width: 280px) {
  #instructors h1 {
    font-size: 30px;
  }
}

/******************************* MODAL *******************************/
/* https: //www.w3schools.com/howto/howto_css_modals.asp */
.open_modal_button {
  cursor: pointer;
}

/* The Modal (background) */
.instructor_modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal_content {
  background-color: rgba(0, 0, 0, 0.8);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 1000px;
  border-radius: 5px;
}

.modal_header {
  display: flex;
  justify-content: space-between;
}

.modal_instructor_name {
  margin-top: 20px;
  margin-bottom: 0px;
}

/* The Close Button */
.close_modal_button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close_modal_button:hover,
.close_modal_button:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 550px) {
  .modal_content {
    padding: 10px;
    margin: 25% auto;
  }

  .modal_instructor_name {
    margin-top: 12px;
  }
}
