/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Sit on top */
    padding-top: 2.5%; /* Location of the box */
    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 */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    border-radius: 0.25em;
    width: 95%;
    min-height: 50%;
    max-height: 95%;
    overflow-y: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.slide-in {
    animation-name: slidein;
    animation-duration: 0.3s;
}

.slide-out {
    animation-name: slideout;
    animation-duration: 0.3s;
}

/* Add Animation */
@-webkit-keyframes slidein {
    from { opacity:0}
    to { opacity:1}
}

@keyframes slidein {
    from {opacity:0}
    to {opacity:1}
}

/* Add Animation */
@-webkit-keyframes slideout {
    from {opacity:1}
    to { opacity:0}
}

@keyframes slideout {
    from { opacity:1}
    to { opacity:0}
}
/* The Close Button */
.close {
    display: block;
    color: #333;
    font-size: 200%;
    font-weight: bold;
    position: absolute;
    top: 0.15em; right: 0.55em;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 1em 1em;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    color: #333;
    position:relative;
}

.modal-header h2 {
    margin:0; padding: 0;
}

.modal-body {padding: 1em;}

.modal-footer {
    padding: 0.5em 1em;
    background-color: #eee;
    color: #333;
}
</style>