/* Structural */
.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    position: relative;
    background-color: #fefefe;
    margin: 60px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    box-sizing: border-box;
    border-radius: 5px;
}
.modal-header {
    margin-bottom: 16px;
}
.modal-title {
    text-align: center;
    font-size: 16px;
    margin: 0;
    padding: 0 0 .8rem 0;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}
.modal-close-span {
    color: #aaa;
    display: inline-block;
    position: absolute;
    font-size: 28px;
    top: 10px;
    right: 14px;
    font-weight: bold;
    vertical-align: top;
    cursor: pointer;
}
.modal-close-span:hover, .modal-close-span:focus {
    color: black;
    text-decoration: none;
}
.modal-body {
    padding: 0;
}
.modal-footer {
    border-top: 1px solid #e5e5e5;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
}
.modal-footer button {
    margin: 0 4px;
}

/* Layout */
.modal-section-header {
    margin: 36px 0 -6px 0;
    text-align: center;
    font-size: inherit;
    font-weight: normal;
}
.modal-section-header span {
    text-align: center;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    display: inline-block;
    padding: 0 16px;
}

.modal-separator {
    border-top: 1px solid #e5e5e5;
    margin-bottom: 15px;
    margin-top: 15px;
}

/* Dynamic Forms */
.modal-form-dynamic label {
    display: block;
    margin-top: 1rem;
    width: 100%;
}
.modal-form-dynamic label:first-of-type {
    margin-top: 0;
}
.modal-form-dynamic input {
    height: 2.3rem;
    padding: 4px 8px;
    width: 100%;
}

@media only screen and (max-width: 480px) {
    .modal-content {
        margin: 1% auto;
        width: 96%;
        padding: 20px 10px;
        max-height: calc(100vh - 60px);
    }
}
