@media screen and (min-width: 1800px) and (max-aspect-ratio: 19/8) and (orientation: landscape) {
  #page {
    max-width: 65vw;
  }
  .video {
    margin-left: 5vw;
  }
  .full-size {
    display: flex;
    width: 60vw;
    justify-content: space-between;
  }
  #class-list {
    width: 500px;
    overflow-y: auto;
    margin-left: 2vw;
  }
  .vid {
    height: fit-content;
    margin: 20px 30px;
    cursor: pointer;
  }
  .vid .title {
    width: 60%;
    margin-left: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: larger;
  }
  #videoplayer {
    position: relative;
    border: 2px #075a75 solid;
    right: auto;
    width: 520px;
    height: 300px;
  }
  .thumbnail {
    height: 9vh;
    width: 6.7vw;
    margin-left: 2%;
    border-radius: 20px;
    border: 2px black solid;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .vid:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  #currentvid {
    background-color: rgba(0, 0, 0, 0.02);
  }
  hr {
    width: 20vw;
    margin-left: auto;
    margin-right: auto;
    height: 1px;
    background-color: #096888;
    margin-bottom: 0;
  }
  .currentline {
    height: 2px;
  }
  .box {
    display: flex;
  }
  .beschreibung {
    font-size: 1.3vh;
    margin-left: 3%;
    text-align: left;
    color: rgb(99, 99, 99);
  }
  #overlayvid {
    display: none;
  }
}
@media screen and (max-width: 1799px) and (min-width: 500px) {
  #videoplayer {
    position: fixed;
    z-index: 12000;
    height: 36vw;
    width: 64vw;
    top: 20%;
    left: 18vw;
  }
  #class-list {
    width: 100%;
  }
  .box {
    display: flex;
    width: 80%;
    justify-content: space-between;
    cursor: pointer;
  }
  .vid {
    cursor: pointer;
  }
  .beschreibung {
    width: 40%;
    margin-right: 10%;
    display: none;
  }
  .vid:hover .beschreibung {
    display: block;
    animation: hideout 1s ease;
  }
  .vid:hover .thumbnail {
    margin-left: 10%;
    animation: leftfade 800ms ease;
  }
  @keyframes leftfade {
    0% {
      margin-left: 50%;
    }
    100% {
      margin-left: 10%;
    }
  }
  @keyframes hideout {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  .thumbnail {
    margin-left: 50%;
    height: 12vw;
    width: 18vw;
    border-radius: 20px;
    border: 2px black solid;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 20px;
  }
  .title {
    margin-left: 10%;
    text-align: center;
    font-size: 1.5vw;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  .vid:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  hr {
    width: 40vw;
    margin-left: auto;
    margin-right: auto;
    height: 1px;
    background-color: #096888;
    margin-bottom: 0;
  }

  .currentline {
    height: 2px;
  }
  #overlayvid {
    position: fixed;
    cursor: pointer;
    left: 85%;
    z-index: 12000;
    top: 20%;
    font-size: xx-large;
    padding: 10px;
    background-color: white;
    border: 2px solid black;
    border-radius: 10px;
  }
  #back {
    position: fixed;
    z-index: 11000;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    height: 100vh;
    width: 100vw;
    animation: fade 700ms ease;
  }
  @keyframes fade {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  #overlayvid,
  #videoplayer,
  #back {
    display: none;
  }
}
