/*************************************************************************** */
/**   Author: Josip Vinković (https://www.linkedin.com/in/josipvinkovic)  ** */
/**   Company: Altoden (https://www.altoden.hr)                           ** */
/*************************************************************************** */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 987566; /* Sit on top */
  padding-top: 14vh; /* Location of the box */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* 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 */
.modal-content {
  position: relative;
  background-color: white;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 10px;
  width: 60vw;
  height: 70vh;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -500px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -500px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 20px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  position: relative;
  padding: 20px;
  height: calc(100% - 2 * 20px);
}

#modalIframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 880px) {
  /* The Modal (background) */
  .modal {
    padding-top: 15vh; /* Location of the box */
  }

  /* Modal Content */
  .modal-content {
    width: 100vw;
    height: 100vh;
  }

  /* The Close Button */
  .close {
    font-size: 17px;
  }

  .modal-body {
    padding: 15px;
    height: calc(100% - 2 * 15px);
  }
}
