@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,500,900&display=swap');

html {
  font-size: 16px;
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: black;
  background-image: linear-gradient(pink, orange, maroon);
  background-size: cover;
  background-attachment: fixed;
  font-family: 'rubik', sans-serif;
}

* {
  box-sizing: border-box;
}

h1 {
  font-size: 100px;
  margin: 0 auto;
  text-align: center;
  color: yellow;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.8);
}

h2 {
  font-size: 24px;
  letter-spacing: 0.1em;
  color: black;
  background: yellow;
  display: inline-block;
  padding: 5px 10px;
}

.students {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
}

.student-list {
  width: 50%;
  padding: 50px;
}

.student-list.ba1 {
  text-align: right;
}

.student {
  display: block;
  text-decoration: none;
  color: white;
  position: relative;
  line-height: 1.5;
  margin: 10px auto 50px;
  transition: all .2s ease-in-out;
}

.student.missing .name,
.student.missing .link,
.student.missing .details {
  opacity: 0.3;
}

.student.missing:after {
  content: "ikke levert! ops";
  color: red;
  display: block;
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  text-align: center;
  transform: rotate(-20deg);
}

.name, .link, .details {
  display: block;
}

.name {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: black;
  transition: all .2s ease-in-out;
}

.student:hover {
  cursor: pointer;
  color: yellow;
}

.student:hover .name {
  color: yellow;
}

.student.missing .name {
  color: white;
}

.student.missing:hover {
  color: white;
  cursor: default;
}

.student.missing:hover .name {
  color: white;
}

@media (max-width: 900px) {
  .student-list {
    width: 100%;
  }
  .student-list.ba1,
  .student-list.ba2 {
    text-align: center
  }
}