@font-face {
  font-family: Thunder;
  src: url('Thunder-VF.ttf') format('truetype-variations');
}

/* Desktops */
@media (min-width: 1920px) {
  :root {
    font-size: 20px;
  }
}

/* Laptops and small desktops */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    font-size: 18px;
  }
}

/* Portrait tablets and laptops */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    font-size: 16px;
  }
  :root .modal {
    align-items: start;
  }
  :root .modal-content {
    min-height: 100%;
  }
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
  :root {
    font-size: 14px;
  }
  :root .modal-mask {
    align-items: start;
  }
  :root .modal-content {
    min-height: 100%;
  }
  :root .flex-container {
    flex-wrap: wrap;
  }
  :root .flex-container > div {
    width: 100%;
  }
}

body {
  margin: 0;
  width: 100vw;
  height: 100lvh;
  font-family: 'Raleway', sans-serif;
  background: black;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100lvh;
}

.content {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  z-index: 1;
}

.heading {
  font-size: 2em;
  font-weight: 600;
  cursor: default;
  margin-bottom: 15px;
  font-family: Thunder, sans-serif;
}

.subheading {
  font-size: 1.2em;
  font-weight: 600;
  cursor: default;
  margin-bottom: 15px;
}

.caption {
  position: absolute;
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: 400;
  max-width: 300px;
  cursor: default;
}

.text-90 {
  font-size: 0.9em;
}

.home {
  #title {
    font-family: Thunder, sans-serif;
    font-size: 4em;
    font-weight: 700;
    text-align: center;
    cursor: default;
  }

  #nav {
    display: flex;
    color: #d9d9d9;
    justify-content: center;
    margin-top: 1em;
    visibility: hidden;
  }

  #nav > div {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0.5em;
  }

  #nav a {
    text-decoration: none;
    color: #d9d9d9;
  }

  #nav a:hover + .caption {
    display: block;
  }

  .hidden {
    display: none;
  }
}

.team {
  display: none;
  color: #d9d9d9;
  margin-top: -400px;
}

.about-container{
  color: #d9d9d9;
}

.flex-container {
  display: flex;
  gap: 3em;
}

#aboutModal {
  font-size: 0.9em;
}

.bios {
  margin-right: 4vw;
  width: 20vw;
  display: inline-table;
}

video {
  position: absolute;
  object-fit: cover;
  width: 100vw;
  height: 100lvh; /* Using lvh prevents scrollbars on mobile https://stackoverflow.com/a/72245072 */
}

#background {
  visibility: hidden;
}

.back {
  text-align: right;
  color: #d9d9d9;
  font-size: 2em;
  font-weight: bold;
  float: right;
  padding: 0px 0.2em;
  line-height: 1em;
}

.back:hover,
.back:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal */
.modal-mask {
  display: none;
  position: fixed;
  z-index: 1;  
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}

/* Modal Content/Box */
.modal-content {
  display: flex;
  background-color: rgb(25,25,25,0.85);
  margin: 0 auto;
  padding: 3.5em;
  box-sizing: border-box;
  border: 1px solid #191919;
  max-width: 1200px;
  justify-items: flex-end;
  flex-direction: column;
  box-sizing: border-box;
}

.modal-image{
  width: 100%;
}

.modal-image2{
  max-width: 100%;
}

.modal-center{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.project-container {
  align-items: center;
}
.project-bios-left {
  width: 50%;
  display: block;
  float: left;
}
.project-bios-right{
  width: 50%;
  display: block;
  float: right;
}

.footer-text {
  position: absolute;
  bottom: 10px;
  color: #d9d9d9;
  text-align: center;
  font-size: 0.8em;
}

.image-icons-row {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.image-icons {
  width: calc((100% - 1em) / 3);
  height: auto;
}

.primary-image, .primary-image2, .primary-image3 {
  width: 100%;
}

.bio-headshot {
  position: absolute;
  width: 25%;
  border-radius: 50%;
  bottom: 1px;
  left: 1px;
  border-style: solid;
  border-width: 2px;
  border-color: rgb(25,25,25,0.85);
}

.bio-banner {
  display: block;
  width: 100%;
}

.bio-header-container{
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}
