@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500');

* {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    margin: 0;
}

/* SECTION STYLE*/
.section-form {
    background-color: #f8f8f8;
}

.section-light {
    background-color: #f8f8f8;
    padding: .5em 1em .5em 1em;
}

.section-dark {
    background-color: #ddd;
    padding: .5em 1em .5em 1em;
}

/* HEADER STYLE*/
.container-header {
    height: 3em;
    display: flex;
    /* border: 1px dotted #000; */
    align-items: center;
    justify-content: center;
    flex: auto;
    font-size: .8em;
    font-weight: 500;
    color: #999;
    background-color: rgb(248, 248, 248);
    flex-direction: column;
}

/* FORM STYLE */
.container-form {
    display: flex;
    flex-direction: column;

    /*padding: 0em 1em 1em 1em;*/
}

.form-row {
    display: flex;
    padding-bottom: .3em;

    /* justify-content: space-evenly; */
    /*flex-direction: row;*/
    /* background: lightblue; */
    /* border: 1px solid black; */
    /* margin-bottom: .5em; */
}

/* BMI, IBW kijelzése*/
.form-row-text {
    display: flex;
    justify-content: start;
    padding-bottom: 0;
    align-items: flex-end;
}

.form-item {
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 2em;
    flex-direction: column;
    align-self: center;

    padding: 0 .3em;
    /* border: 1px dotted red; */
}

.form-item-bmi-ibw {
    align-self: flex-end;
}

.form-item-proc, .form-item-opSpeciality, .form-item-neuraxial {
    flex-grow: 5;
}

.form-item-ptId, .form-item-ptTsz {
    flex-grow: 3;
}

.item-bmi-value, .item-ibw-value {
    font-size: 0.8em;
}

.form-item-datetime-local {
    width: 10px;
}

.form-item-checkboxSpa, .form-item-checkboxPvc, .form-item-shrink {
    flex-grow: 0;
    flex-shrink: 1;
}

.form-item-checkboxSquare {
    align-self: flex-start;
    width: 2em;
}


label {
    font-size: .7em;
    font-weight: 500;
    user-select: none;
}

/*input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[name="proc1Name"], input[name="proc2Name"],input[name="proc3Name"],input[name="proc4Name"]
input[name="opSpeciality"],
input[name="supervisor"],
input[name="opName"],*/
input,
textarea,
select,
button {
    width: 100%;
    font-size: .9em;
    height: 2em;
}

textarea {
    resize: none;
    height: 4.5em;
}

.divider {
    height: 0px;
    background-color: #000;
}

/* BUTTON CONTAINER STYLE*/
.container-buttons {
    padding: 0 1em 1em 1em;
    background-color: rgb(248, 248, 248);
}

/* BUTTON Styles*/
button {
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    height: 2.5em;
    margin: .2em 0;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.3)
}

button:active {
    transform: scale(0.96);
    transition: .1s;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3)
}

.btn-reset {
    color: #fff;
    background-color: #d9534f;
}

.btn-save {
    color: #000;
    background-color: #f0ad4e;
}

.btn-submit {
    color: #fff;
    background-color: #5cb85c
}

/* LINK STYLES*/
a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: #999;
}


/* THE MODAL */
/* 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 */
    -webkit-animation-name: fadeIn;
    /* Fade in the background */
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s
}

/* Modal Content */
.modal-content {
    position: fixed;
    bottom: 0;
    background-color: #fefefe;
    width: 100%;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.modal-body {
    padding: 2px 16px;
}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

@keyframes slideIn {
    from {
        bottom: -300px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}