.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: appear 0.2s ease-out;
    overflow: auto;
}
.modal-content {
    background-color: var(--modal-bg-color);
    display:inline-block;
    margin: 5% auto;
    padding: 20px;
    animation: stretch 0.2s ease-out;
}
@-webkit-keyframes stretch {
  from { transform:scaleY(0); } to { transform:scaleY(1);}
}
@keyframes stretch {
  from { transform:scaleY(0); } to { transform:scaleY(1);}
}
@-webkit-keyframes appear {
  from { opacity:0; } to { opacity:1;}
}
@keyframes appear {
  from { opacity:0;  } to { opacity:1; }
}
@-webkit-keyframes disappear {
  from { opacity:1; } to { opacity:0;}
}
@keyframes disappear {
  from { opacity:1;  } to { opacity:0; }
}
