/* 
    Created on : Jan 9, 2020, 8:06:43 PM
    Author     : pantelis
*/

/*
https://webdesign.tutsplus.com/tutorials/how-to-build-flexible-modal-dialogs-with-html-css-and-javascript--cms-33500
*/
 
.modal { 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0,0,0,.7);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease-in;
}

.modal-dialog {
  position: relative;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  max-width: 900px;
  max-height: 90vh;
  border-radius: 5px;
  background-color: white;
  overflow: auto;
  cursor: default;
  z-index: 1000;
  /*top: -20px;*/
}

.modal-dialog > * {
  padding: 0.5rem;
}
 
.modal-header,
.modal-footer {
  background-color: lightgray;
  color: black;
  font-size: larger;
}
 
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.modal-header button {
    width: 1.5rem;
    height: 1.3rem;
    font-weight: 800;
    box-shadow: 2px 2px gray;
    background-color: white;
}

.modal-header button:hover {
    box-shadow: none;
}
.modal-header 
.modal-close {
  font-size: 1.5rem;
}
 
.modal p + p {
  margin-top: 1rem;
}

.modal {
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease-in;
  z-index: -100
}
 
.modal.is-visible {
  visibility: visible;
  opacity: 1;
  z-index: 1000;
}

.modal-dialog {
    width: 800px;
    height: 600px;
}

.modal-content {
    flex: 1;
}
.modal-content embed {
    width: 100%;
    height: 100%;
}