/* HOME PAGE STYLES */

#home .fs-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: -100;
}

#home .fs-overlay {
  background: linear-gradient(
    0deg,
    rgba(130, 24, 89, 0.4),
    rgba(102, 12, 78, 0.8)
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  display: flex;
}

#home .fs-video {
  position: absolute;
  width: 100%;
  height: 100%;
}

#home .fs-overlay .content {
  color: white;
  font-family: "Josefin Sans";
  text-align: center;
  margin: auto;
  font-size: 1.5em;
}

#home .fs-overlay .title {
  font-weight: 700;
  font-size: 3em;
  text-transform: uppercase;
}

#home .fs-overlay .subtitle {
  font-size: 1em;
}

/* MEMBERS PAGE STYLES */

#members header {
  background: linear-gradient(
      0deg,
      rgba(130, 24, 89, 0.4),
      rgba(102, 12, 78, 0.8)
    ),
    url("../img/members.jpg");
  background-size: cover;
  background-position: 50% 30%;
}

#members .member-gallery {
  width: 80%;
  margin: auto;
  padding: 4em;
}

#members .member-gallery h1 {
  margin-top: 2em;
}

#members .member {
  width: 25%;
  display: inline-block;
  padding: 1em;
  margin: auto;
  vertical-align: top;
  text-align: center;
}

#members .member .photo {
  border-radius: 50% 50%;
}

#members .member .intro {
  margin-top: 1.5em;
}

#members .member .intro > * {
  margin: 0.25em 0;
}

#members .member .intro .member-name {
  font-size: 1.25em;
}

#members .member .intro .member-position {
  font-size: 1em;
  color: #707070;
}

#members .member .intro .member-major {
  font-size: 0.8em;
  margin: 0.5em 0;
}

#members .member .intro .member-activities {
  font-size: 0.8em;
  margin: 0.5em 0;
}

#members ul {
  -webkit-column-count: 4;
  -moz-column-count: 4;
  column-count: 4;
  list-style-type: none;
  padding-left: 0;
  width: 90%;
  margin: auto;
  margin-top: 2em;
}

/* MEDIA PAGE STYLES */

#media header {
  background: linear-gradient(
      0deg,
      rgba(130, 24, 89, 0.4),
      rgba(102, 12, 78, 0.8)
    ),
    url("../img/media.jpg");
  background-size: cover;
  background-position: 50% 25%;
}

#media .content {
  padding: 2em;
}

#media ul.social {
  list-style-type: none;
  padding-left: 0;
}
#media ul.social li {
  display: inline-block;
  margin: 1em;
}

/* AUDITIONS PAGE STYLES */

#auditions header {
  background: linear-gradient(
      0deg,
      rgba(130, 24, 89, 0.4),
      rgba(102, 12, 78, 0.8)
    ),
    url("../img/auditions.jpg");
  background-size: cover;
  background-position: 50% 25%;
}

#auditions .content {
  width: 60%;
  padding: 2em;
  margin: auto;
}

/* CONTACT PAGE STYLES */

#contact header {
  background: linear-gradient(
      0deg,
      rgba(130, 24, 89, 0.4),
      rgba(102, 12, 78, 0.8)
    ),
    url("../img/contact.jpg");
  background-size: cover;
  background-position: 50% 25%;
}

#contact .content {
  width: 60%;
  text-align: center;
  margin: auto;
  padding: 2em;
}

#contact .block {
  display: inline-block;
  vertical-align: top;
  margin-right: 2em;
  text-align: left;
}

#contact h4 {
  font-weight: bold;
  margin-top: 2em;
}

/* ALUMNI MAP PAGE STYLES */

#alumniMap header {
  background: linear-gradient(
      0deg,
      rgba(130, 24, 89, 0.4),
      rgba(102, 12, 78, 0.8)
    ),
    url("../img/alumniMap.jpg");
  background-size: cover;
  background-position: 50% 48%;
}

#alumniMap #loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid rgb(102, 12, 78); /* Purple */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 75%;
  left: 50%;
  margin-left: -70px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#alumniMap .content {
  margin-top: 40px;
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  color: #404040;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

#alumniMap #map-container {
  margin-top: 10px;
}

#alumniMap .hoverboi {
  font-family: "Josefin Sans";
  font-size: 0.9em;
  display: block;
  width: 320px;
  max-height: 200px;
  background-color: black;
  color: #fff;
  position: absolute;
  left: 50%;
  margin-left: -160px;
  text-align: left;
  padding: 10px;
  border-radius: 6px;

  /* Control distance from top; the higher the number, the farther from the top the popup is */
  margin-top: 180px;
}

#alumniMap .popup {
  display: grid;
  grid-template-rows: repeat(5, min-content);
  grid-template-columns: repeat(auto-fill, 150px);
  grid-auto-flow: column;
  padding-left: 15px;
}

#alumniMap .popup li {
  padding-right: 20px;
}

#alumniMap .hoverboi::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

#alumniMap .all-alumni {
  margin-top: 40px;
}

#alumniMap .all-alumni h2 {
  margin-bottom: 30px;
}

#alumniMap .alumni {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  list-style-type: none;
  padding-left: 0;
  width: 60%;
  margin: auto;
  margin-top: 2em;
}

#alumniMap .alumni p {
  display: inline-block;
  margin-bottom: 10px;
}

@media (min-aspect-ratio: 16/9) {
  #home .fs-video {
    height: 200%;
    top: -50%;
  }
}

@media (max-aspect-ratio: 16/9) {
  #home .fs-video {
    width: 200%;
    left: -50%;
  }
}

@media (max-width: 800px) {
  #alumniMap .hoverboi {
    margin-top: 130px;
  }

  #alumniMap #loader {
    top: 55%;
  }

  #alumniMap #alumni {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
}

@media (max-width: 770) {
  #alumniMap #alumni {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }
}

@media (max-width: 767px) {
  #home .fs-bg {
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
  }

  #home .fs-video {
    /*width: 100%;
		height: auto;
		top: 0;
		left: 0;
		*/
    display: none;
  }

  #home .fs-overlay {
    width: 100%;
    height: auto;
    background: linear-gradient(
        0deg,
        rgba(130, 24, 89, 0.4),
        rgba(102, 12, 78, 0.8)
      ),
      url("../assets/loop-cover.png");
    background-size: cover;
    background-position: 50% 50%;
  }

  #home .fs-overlay .content {
    font-size: 0.8em;
    padding: 4em;
    margin-top: 2em;
  }

  #home .fs-overlay .content .subtitle {
    font-size: 1.5em;
    margin: auto;
  }

  #members .member-gallery {
    width: 100%;
  }

  #members .member {
    width: 100%;
    display: block;
  }

  #members ul {
    width: 100%;
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }

  #auditions .content {
    width: 100%;
    padding: 2em;
  }

  #contact .content {
    width: 100%;
    padding: 2em;
  }

  #contact .block {
    display: block;
  }

  #alumniMap #alumni {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }

  #alumniMap #loader {
    width: 100px;
    height: 100px;
    top: 50%;
    margin-left: -55px;
  }
}
