
.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal[aria-hidden="false"].fade .modal-overlay {
    animation: fadeIn .75s cubic-bezier(.25,.1,.25,1);
}

.modal[aria-hidden="false"].slide .modal-container {
    animation: slideIn .75s cubic-bezier(.25,.1,.25,1);
}

.modal[aria-hidden="true"].fade .modal-overlay {
    animation: fadeOut .75s cubic-bezier(.25,.1,.25,1);
}

.modal[aria-hidden="true"].slide .modal-container {
    animation: slideOut .75s cubic-bezier(.25,.1,.25,1);
}

@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes slideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes slideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 0px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal header h2 {
    padding-bottom: 1em;
}

.modal header button.close {
    float: right;
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal header button.close:before { content: "\2715"; }

a.modal-link.button {
    padding: 1em;
    margin: 1em 0;
    display: inline-block;
    background-color: #1bafb4;
    border-radius: 0px;
    color: #fff;
    font-size: 18px;
    padding: 10px;
}