/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}


/* The Close Button */
.close {
    position: relative;
    top: -3px;
    right: -5px;

    color: #aaa;
    font-size: 28px;
    font-weight: bold;

    transition: all .125s ease;
}

.close:hover,
.close:focus {
    color: rgba(255, 0, 0, 0.73);
    text-decoration: none;
    cursor: pointer;
}


.modal-content {
    position: relative;
    margin: 150px auto 0;
    padding: 0;
    width: 80%;
    max-width: 500px;
    background-color: #fefefe;
    color: #fff;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;

    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 2px 16px;
    background-color: var(--primary-color);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2px 16px;
    color: #000;
}

.modal-footer {
    padding: 5px 16px;
    background-color: var(--primary-color);
}


@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}