#edex_overlay
{
position: absolute;
    z-index: 998;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    background-color: rgba(180, 184, 190, 0.97);
    transition: opacity 0.5s ease-out;
}

#edex_container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

#edex_element {
    position: relative;
    display: block;
    margin: 20px auto;
    background-color: white;
    z-index: 999;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 2px 2px rgba(200, 200, 200, 0.6);
    width: 480px;
    height: 600px;
    padding: 0px 80px 0px 80px;
    pointer-events: auto;
}

#edex_content_container::after, #edex_content_container::before {
    content: "";
    position: absolute;
    margin-bottom: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    border-radius: 0px 0px 8px 8px;
    background-image: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    pointer-events: none;
}

#edex_content_container::before {
    margin-bottom: 560px;
    border-radius: 8px 8px 0px 0px;
    background-image: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
}

#edex_content_container {
    padding: 0px;
    height: 100%;
    overflow-y: auto;
}

#edex_content_container::-webkit-scrollbar {
  display: none;
}
.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

#edex_headline {
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

#edex_content {
    padding: 10px 0px;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}

#edex_media {
    width: 100%;
    text-align: center;
}

#edex_media img {
    width: 99%;
}

#progressBar {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  width: 482px;
}

.chapter {
  height: 10px;
  background-color: #e0e0e0;
  border: 1px solid white;
}


.closeEdex {
  position: absolute;
  z-index: 999;
  right: -21px;
  top: -30px;
  width: 24px;
  height: 24px;
  background: #485878;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 2px 2px rgba(200, 200, 200, 0.6);
  padding: 8px;
  opacity: 1;
  border-radius: 50%;
  display: block;
  cursor: pointer;
}
.closeEdex:hover, .prevPage:hover, .nextPage:hover {
  background: #304060;
}


.closeEdex:before, .closeEdex:after {
  position: absolute;
  left: 19px;
  top: 7px;
  content: ' ';
  height: 26px;
  width: 2px;
  background-color: #eee;
}

.closeEdex:before {
  transform: rotate(45deg);
}
.closeEdex:after {
  transform: rotate(-45deg);
}


#prevPage, #nextPage {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  right: -21px;
  top: 265px;
  background: #485878;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 2px 2px rgba(200, 200, 200, 0.6);
  cursor: pointer;
}

#prevPage::before, #prevPage::after, #nextPage::before, #nextPage::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #eee;
}

#prevPage::before, #nextPage::before {
  top: 12px;
  left: 16px;
  width: 13px;
  height: 13px;
  border-top: none;
  border-right: none;
  transform: rotate(45deg);
}

#prevPage::after, #nextPage::after {
  border: 0;
}

#prevPage {
  right: 620px;
}

#nextPage::before {
  left: 8px;
  transform: rotate(-135deg);
}
