body {
    font-family: 'Varela Round', sans-serif;
}

.modal {
    border: solid 3px black;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 10;
    background-color: white;
    width: 500px;
    max-width: 80%;
    padding: 20px;
    border-radius: 10px;
    transition-duration: .5s;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 3px lightgray;
    padding: 20px;
}

.modal-header > h1.header {
    margin-top: 0;
    margin-bottom: 0;
}

.modal-header > button.close-button {
    cursor: pointer;
    background: none;
    background-image: url("close.svg");
    background-position: 50%;
    background-size: 2rem;
    outline: none;
    border: none;
    height: 40px;
    width: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    transition-duration: .5s;
}

.modal-header > button.close-button:hover {
    transform: rotate(90deg);
}

.modal-content {
    padding: 20px;
}

#overlay {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
    transition-duration: .5s;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}