
/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
 
}



/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 33rem;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px 10px 10px 10px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #f44336;
        text-decoration: none;
        cursor: pointer;
    }

.modal-header {
    /*padding: 5px;
    background-color: #1a237e;
    height: 60px;*/
    /*color: white;*/
    /*border-radius: 10px 10px 0px 0px;*/
}

.modal-body {
    padding: 15px 0px;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #143b65;
    height: 4rem;
    border-radius: 0px 0px 10px 10px;
}

    .modal-footer .modal_btn_grp {
        display: flex;
        justify-content: center;
        align-items: center;
         height: 50px;
        bottom: 0;
    }

        .modal-footer .modal_btn_grp .btn {
            width: 65px;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
            cursor: pointer;
        }

            .modal-footer .modal_btn_grp .btn.btn_confirm {
                margin-left: 10px;
                background: #198754;
                color: #fff;
                margin: 2px;
            }

                .modal-footer .modal_btn_grp .btn.btn_confirm:hover {
                    background: #5cb85c;
                    color: #fff;
                }

            .modal-footer .modal_btn_grp .btn.btn_cancel {
                color: #fff;
                background-color: #dc3545;
            }

                .modal-footer .modal_btn_grp .btn.btn_cancel:hover {
                    background: #f44336;
                    color: #fff;
                }

            .modal-footer .modal_btn_grp .btn:hover {
                background: #7b8d8f;
            }

modal-form {
    height: auto;
    display: grid;
    background: #fff;
    border: 0px solid #c1c1c1;
    margin: 0rem auto 0 auto;
    max-width: 95%;
}

    modal-form label {
        display: block;
        margin-left: 12%;
        margin-top: 10px;
        font-family: sans-serif;
        font-size: 1rem;
    }

    modal-form input {
        display: block;
        width: 95%;
        margin-left: 10px;
        margin-top: 10px;
        border-radius: 5px;
        font-family: sans-serif;
        border: 1px solid #9c9c9c;
        height: 35px;
        padding:10px;
    }

    modal-form select {
        display: block;
        width: 95%;
        margin-left: 10px;
        margin-top: 10px;
        border-radius: 5px;
        font-family: sans-serif;
        border: 1px solid #9c9c9c;
        height: 35px;
    }


.name-textbox {
    flex-grow: 4;
    flex-shrink: 4;
    flex-basis: 0;
    border: 1px solid #9c9c9c;
    border-radius: 10px;
    height: 35px;
    padding: 5px;
    background-color: #f4f7f7;
    color: #2e294e;
    font-family: 'Open Sans';
    font-size: 1em;
    width: 75%;
}


/********************** input ***************************/
modal-input {
    padding: 0.7em;
    margin-bottom: 0.5rem;
}
modal-input:focus {
    outline: 3px solid gold;
}

@media (min-width: 400px) {
    modal-form {
        grid-template-columns: 12rem 1fr;
        grid-gap: 3px;
    }

    modal-label {
        text-align: right;
        grid-column: 1 / 2;
    }

    modal-input,
    modal-button {
        grid-column: 2 / 3;
    }
}


