.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 0.8em ;
    z-index: 10;
    background-color: #f2f2f2;

    max-width: 95%;
}
.close-button{
    border: solid black;
    border-radius: 0.5em;
    font-size: 2em;
    padding: 1rem;

}
.close-button:hover {
    border: solid orange;
    border-radius: 0.5em;
    font-size: larger;
    background-color: orange;
    color: red;

}

.modal.active{
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px #999999 dashed;
}

.modal-header .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
}

.modal-body {
    padding: 0.8em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#overlay {
    position: fixed;
    transition: 200ms ease-in-out;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    pointer-events: none;
}

#overlay.active {
    opacity: 0.7;
    pointer-events: all;
}
