#cover {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, .8);
  z-index: 600;
}

#cover.hide {
  display: none;
}

.grow-auto{
  flex-grow: 1;
}

#cover .box {
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  width: 70%;
  height: 90%;
  max-width: 90vw;
  background-color: rgba(0,0,0,0);
  margin: 0 auto;
}

#cover .close-btn-box {
  position: relative;
  background-color: rgba(0,0,0,0);
}

#cover .close-btn {
  width: 35px;
  position: absolute;
  right: 0;
  top: 10px;
  background-color: white;
  text-align: center;
  border-radius: 5px 5px 0 0;
  font-weight: 900;
  cursor: pointer;

  font-size: 2em;
  border-radius: 50px;
  width: 60px;
  height: 60px;
  z-index: 1;
}

#cover .close-btn:hover {
  color: #4aa1e5;
}

#cover .content-box {
  background-color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 20px;
}

#cover .box .header {
  margin: 0 auto;
  padding: 0 15px;
}

#cover-title {
  font-size: 2em;
  color: #004CC2;
  font-weight: 400;
  margin: 10px auto;
}

#cover .box .content {
  flex-grow: 1;
  margin: 5px;
  background-color: white
}

/*
*/
#cover .box .content iframe {
  width: 100%;
  height: 100%;
  border-width: 0;
}

#cover .box.pdf {
  width: 100%;
  height: 85%;
}

#cover .box.pdf .content-box {
  flex-grow: 0;
}

#cover .box.pdf .content iframe {
  height: 75vh;
  vertical-align: top;
}

#cover .box.ytbe {
  width: 80%;
  height: auto;
}

#cover .box.ytbe .content {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

#cover .box.ytbe .content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#cover .box.ytbe .content {
  margin: 0;
}

#cover .box.img {
  width: fit-content;
  height: fit-content;
}

#cover .box.img img {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;
}

@media (max-width:768px) {
  #cover .content-box {
    background-color: black;
    padding: 0;
  }

  #cover .close-btn {
    font-size: 1.4em;
    width: 40px;
    height: 40px;
    right: -15px;
  }

  #cover .box.ytbe {
    width: 90%;
  }

  #cover .box .content {
    margin: 0;
  }

  #cover-title {
    display: none;
  }
}

@media (min-width:812px) and (max-height:375px) {
  #cover .box.ytbe {
    width: 70%;
  }

  #cover .content-box {
    background-color: black;
    padding: 0;
  }

  #cover .close-btn {
    font-size: 1.4em;
    width: 40px;
    height: 40px;
    right: -15px;
  }

  #cover .box .content {
    margin: 0;
  }

  #cover-title {
    display: none;
  }
}