*, *::after, *::before {
    box-sizing: border-box;
  }
  
  .modal {
    overflow-y: scroll !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 100004;
    background-color: white;
    max-width: 80%;
    max-height: 80%;
  }

  .modal-p {
    max-width: 1000px;
  }

  @media screen and (max-width:768px) {
    .modal{
        max-width: 95%;
        max-height: 90%;
    }
  }
  
  .modal.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
  }
  
  .modal-header .title {
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .modal-header .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .modal-body {
    padding: 10px 15px;
  }
  
  #overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    cursor: pointer;
    z-index: 100003;
  }



  .modal iframe{
    width: 100%;
    height: 100%;
    padding: 50px 0px;	
    position: absolute;

  }
/***
  #overlay-nested-modal {
    position: fixed;
    box-sizing: border-box;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8);
    pointer-events: none;
    z-index: 3;
  }

  #overlay-nested-modal.active {
    opacity: 1;
    pointer-events: all;
  }
***/
  #overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /*********************************/
  