/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
  max-height: 60%;
  overflow: scroll;
  overflow-x: hidden;
}

.modal_out_wrap {
  line-height: 1.7;
}

.modal_out_wrap p {
  padding: 10px 0;
}

iframe {
  width: 100%;
}

.top_bar {
  width: 100%;
  padding: 20px 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

/* The open in new tab btn */
.top_bar a {
  display: inline-block;
  margin-right: 24px;
}

.top_bar a:hover .new_tab_btn {
  background-color: #007ED4;
}

.new_tab_btn {
  display: flex;
  padding: 10px 20px;
  border-radius: 5px;
  height: 20px;
  background-color: #666;
  color: #fff;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.new_tab_btn .text {
  margin-right: 10px;
}

.new_tab_btn img {
  width: 16px;
  height: 16px;
}

/* The Close Button */
.close {
  color: #666;
  font-size: 40px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #007ED4;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 1366px) {}

@media only screen and (max-width: 1024px) {
  .modal-content {
    width: 80%;
    max-height: 70%;
  }
}

@media only screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
  }

  .top_bar {
    position: relative;
    justify-content: space-between;
  }

  .new_tab_btn {
    padding: 10px;
    height: 20px;
  }

}