body {
    background-color: #F3F3F3;
    font-family: 'Roboto', sans-serif;
    color: #8A8A8A;
    margin: 0;
    text-align: justify;
}

a {
    font-weight: bolder;
    color: #4E4E4E;
    text-decoration: none;
}

a:hover {
    color: #8EB4E3;
}

header {
    width: 100%;
    height: auto;
    background: url('../assets/header_background.png');
    background-repeat: no-repeat;
    background-size: cover;
}

#logo-header {
    max-width: 200px;
    height: auto;
    margin: 15px;
    margin-bottom: 0px;
}

#site-title {
    text-align: center;
    font-size: 40px;
    margin-top: 0px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    color: #FFFFFF;
}

#login-box {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #50A6CD;
    padding: 15px;
    border-radius: 10px;
}

h1 {
    font-size: 30px;
    margin-top: 15px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    color: #4E4E4E;
}

h1,
h2,
h3,
h4,
p {
    text-align: left;
    margin-left: 10px;
}


/*Navigation bar*/
nav {
    font-family: 'Roboto', sans-serif;
    margin: -5px 0 5px 0;
}

nav ul {
    display: flex;
    list-style: none;
    /*removes the default list dashes*/
    font-size: 130%;
    background-color: #8EB4E3;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: inline-block;
    /*the block is clickable, not just the text*/
    padding: 8px;
    font-weight: lighter;
    color: #FFFFFF;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #BCD3EE;
    color: #FFFFFF;
}

.submenu a:hover{
    background-color: #8EB4E3;
    color: #DDE9F7;
}

.submenu {
    padding: 0;
    display: none;
    font-size: smaller;
    position: absolute;
    background-color: #8EB4E3;
    z-index: 1;
    text-align: left;
}

#sub1 {
    width: 150px;
}

nav>ul>li:hover>.submenu {
    display: block;
    z-index: 1;
}

#form_browse_BC, #form_browse_household{
    background-color: #DDE9F7;
}

/*Table*/
.scroll_wrap {
    overflow: auto;
}


.tableFixHead {
    overflow-x: auto;
    overflow-y: auto;
    /* make the table scrollable if height is more than 200 px  */
    height: 400px;
    /* gives an initial height of 200px to the table */
}

.tableFixHead thead {
    position: sticky;
    /* make the table heads sticky */
    top: 0px;
    /* table head will be placed from the top of the table and sticks to it */
}

table,
th,
td {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    border: 1px solid #4E4E4E;
    border-collapse: collapse;
    text-align: center;
}

th {
    color: #4E4E4E;
}

.table_title_row {
    color: #4E4E4E;
    background-color: #BCD3EE;
}

.table_head {
    background-color: #8EB4E3;
    color: #4E4E4E;
    font-size: larger;
}

/*Buttons*/
.button {
    display: inline-block;
}

button,
.link-button {
    background-color: #8EB4E3;
    border: solid black 1px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: lighter;
    color: #FFFFFF;
    text-decoration: none;
    border-style: none;
}

.tab-button {
    background-color: #8EB4E3;
    border: solid black 1px;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: lighter;
    color: #FFFFFF;
    text-decoration: none;
    border-style: none;
}

.menu-button {
    background-color: #8EB4E3;
    border: solid black 1px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: lighter;
    color: #FFFFFF;
    text-decoration: none;
    border-style: none;
    line-height: 70px;
}

button:hover,
.link-button:hover,
.tab-button:hover,
.menu-button:hover {
    background-color: #BCD3EE;
    color: #FFFFFF;
}

/*Menu-box: invisible box where are the vertical and centered buttons (menu-button) for menu display on mobiles*/
.menu-box {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#msgLogout {
    text-align: center;
}

#msgLogout .bouton {
    margin-left: 7px;
    margin-right: 7px;
}

.log-button,
.home-button {
    background-color: transparent;
    margin-left: 15px;
    border-radius: 20px;
    border: solid #FFFFFF 2px;
    color: #FFFFFF;
    font-size: 20px;
    padding: 5px 20px;
    margin: 15px;
    margin-bottom: 0px;
    width: fit-content;
    font-weight: lighter;
    display: inline-block;
}

.back-button {
    background-color: transparent;
    margin-left: 15px;
    border-radius: 20px;
    border: solid #8EB4E3 2px;
    color: #8EB4E3;
    font-size: 20px;
    padding: 5px 20px;
    margin: 15px;
    margin-top: 0px;
    margin-bottom: 0px;
    width: fit-content;
    font-weight: lighter;
    display: inline-block;
}

.back-button:hover {
    border: solid #BCD3EE 2px;
    color: #BCD3EE;
}

.log-button:hover,
.home-button:hover {
    border: solid #8EB4E3 2px;
    color: #8EB4E3;
}

.search-input,
.search-button {
    display: inline;
    margin-right: 10px;
}

/*Success & error msg*/
.error {
    background-color: #FF5050;
    color: #4E4E4E;
}

.success {
    background-color: #6AC887;
    color: #4E4E4E;
}

.warning {
    background-color: #FFE699;
    color: #4E4E4E;
}

/*Mobile display management*/
@media (max-width: 640px) {
    * {
        box-sizing: border-box;
    }

    /* set body (and all fixed width elements) to auto width */
    body {
        width: auto;
        margin: 0;
        padding: 0;
    }

    /* set a maximum width of 100% for potentially problematic elements */
    img,
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }

    /* keep the ratio of the images */
    img {
        height: auto;
    }

    /* long word management */
    textarea,
    table,
    td,
    th,
    code,
    pre,
    samp {
        -webkit-hyphens: auto;
        /* clean break */
        -moz-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word;
        /* forced line feed */
    }

    code,
    pre,
    samp {
        white-space: pre-wrap;
        /* change to the specific line for elements with a fixed casket */
    }

    /* Switch to a single column (to be applied to multi-column elements)
	.element1,
	.element2 {
		float: none;
		width: auto;
	}*/

    /* hide/show items */
    .mobile-show {
        display: block;
        display: revert !important;
        /* display elements */
    }

    .mobile-hide,
    nav {
        display: none !important;
        /* hiding elements */
    }

    /* A personalized message */
    body:before {
        display: block;
        text-align: center;
        font-style: italic;
        color: #777;
    }
}

@media (min-width: 641px) {
    .PC-hide {
        display: none !important;
        /* hiding elements */
    }
}