/* 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%);
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  /* Could be more or less, depending on screen size */
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  border-radius: 10px;
}

.modal-content img {
  width: 100%;
  height: auto;
}

/* The Close Button */
.modal .modal-content .close {
  display: inline;
  width: auto;
  color: #aaa;
  text-align: right;
  font-size: 40px;
  font-weight: bold;
  padding: 0 10px 10px 10px;
  align-self: flex-end;
}

.modal .modal-content .close:hover,
.modal .modal-content .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.myBtn {
  background: #fff;
  color: #007ED4;
  border: #fff;
  font-size: 20px;
  font-family: 'Poppins', sans-serif, 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans SC';
  line-height: 1.7em;
  font-weight: 300;
  cursor: pointer;
}

@media only screen and (max-width: 1366px) {
  .myBtn {
    font-size: 19px;
  }
}

@media only screen and (max-width: 1024px) {
  .modal-content {
    width: 70%;
  }

  .myBtn {
    font-size: 18px;
  }
}

@media only screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
  }

  .myBtn {
    font-size: 16px;
  }
}