@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro&family=Source+Sans+Pro&display=swap');

* {
  box-sizing: border-box;
  /*   border: 1px solid black; */
}

body {
  background-color: #20588F;
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: 'Source Sans Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  margin: 0;
}

h1,h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2rem;
}

@media (max-width: 800px) {
  ul {
    flex-direction: column;
  }

  li {
    flex: 0 0 250px !important;  
    background-color: #000;
    flex-grow: 1; /* NEW */
    background-position: center top !important;
  }
  li.avlarere {
    flex: 0 0 800px !important;  
  }
  .content {
    width: 75% !important;
    margin:  5% auto 5% auto !important;
  }
}

ul#personer {
  display: flex;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

li.person {
  flex: 1;
  display: flex;
  align-items: stretch;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.5s ease;
}
li>a {
  flex: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: transparent;
  border: none !important;
}
li.tore {
  background-image: url("../img/lærer.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
li.joel {
  background-image: url("../img/elev.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
li.lena {
  background-image: url("../img/bidragsyter.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
li.julie {
  background-image: url("../img/ndla.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
li.henning {
  background-image: url("../img/henning.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; 
}
li.helene {
  background-image: url("../img/helene.jpg");
  background-position: center; 
  background-repeat: no-repeat; 
  background-size: cover; 
}
li.avlarere {
  background: #184673 !important;
  color: #fff !important;
}

li:hover:not(.avlarere) {
  opacity: 1
}
li.active {
  flex: 5;
  cursor: default;
}
li.active h2 {
  color: #fff;
}
li.active .section-content {
  flex: 4;
  opacity: 1;
  transform: scaleX(1);
  color: #fff;
}
li .section-title {
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: right;
  color: white;
}
li .section-title h2 {
  margin: 0;
  white-space: nowrap;
  padding: 10px;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
}
li .section-content {
  align-items: center;
  margin: 60px 40px 40px 40px;
  padding: 0;
  opacity: 0;
  transition: all 0.25s 0.1s ease-out;
}

.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: #20588F;
  overflow-x: hidden;
  overflow-y: scroll;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 10%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.content {
  color: #ffffff;
  text-align: left;
  margin: auto auto 100px;
  width: 50%;
}

.overlay .closebtn {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  left: 45px;
  font-size: 60px;
}

a {
  color:#fff;
}

@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

.video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; }

.video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }