/* CSS Document */

* {
    font-family: sans-serif;
    outline: none;
    box-sizing: border-box;
}

img {
    border: none;
}

html, body {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 100%;
    color: #333333;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    html, body {
        min-height: 100%;
        height: 100px;
    }
}

#page_container {
    display: flex;
    flex: 4;
    flex-direction: column;
    min-height: 100%;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #page_container {
        flex: 1 0 auto;
        min-height: 100%;
        height: 100px;
    }
}

/* General elements */

#page_content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100%;
    width: 75%;
    margin: 0 auto;
}

@media screen and (max-width: 1600px) {
    #page_content {
        width: 100%;
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #page_content {
        flex: 1 0 auto;
        height: 100px;
    }
}

#index_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #index_header {
        flex: 1 0 auto;
        min-height: 100px;
    }
}

#index_header_language_selection {
    width: 75%;
    text-align: right;
}

@media screen and (max-width: 360px) {
    #index_header_language_selection {
        width: 95%;
    }
}

.language_selector {
    margin-left: 5px;
    color: #333333;
    text-decoration: none;
}

#index_header_language_selection .active {
    font-weight: 700;
    color: #005bff;
}

.language_selector:hover {
    color: #005bff;
    text-decoration: underline;
}

#index_header_content {
    display: flex;
    width: 75%;
    align-items: center;
    margin: 1em 0;
}

#index_logo {
    flex: 1;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #index_logo {
        flex: 1 0 auto;
    }
}

#index_logo img {
    width: 100%;
}

#app_claim {
    flex: 3;
    font-size: 1.75em;
    font-style: italic;
    margin: 0;
    padding-top: 0.6em;
    text-align: right;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #app_claim {
        flex: 3 0 auto;
        padding-left: 20px;
        padding-top: 0.8em;
    }
}

@media screen and (max-width: 360px) {
    #index_header_content {
        flex-direction: column;
        width: 95%;
        margin: 0.5em 0;
    }
    #app_claim {
        flex: 1;
        width: 100%;
        flex: 1 0 auto;
        font-size: 1.25em;
        text-align: center;
    }
}

#ajax_content {
    display: flex;
    flex-direction: column;
    width: 75%;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    #ajax_content {
        flex: 1 0 auto;
        min-height: 100px;
    }
}

@media screen and (max-width: 360px) {
    #ajax_content {
        width: 95%;
    }
}

.boxes_container {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

@media screen and (max-width: 360px) {
    .boxes_container {
        flex-direction: column;
        align-items: center;
    }
}

.box {
    flex: 1;
    margin: 0.5em;
    padding: 1em;
    border: 1px solid #e7e7e8;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ fix */
    .box {
        flex: 1 0 auto;
    }
}

@media screen and (max-width: 360px) {
    .box {
        width: 100%;
    }
}

.box_title {
    margin: 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e7e7e8;
    font-size: 2em;
    font-weight: 700;
}

.box_title > .fa {
    margin-right: 10px;
}

.align_right {
    text-align: right;
}

.align_center {
    text-align: center;
}

.small_text {
    font-size: 0.8em;
}

.thin_text {
    font-weight: normal;
}

.italic {
    font-style: italic;
}

/* modules/generic/generic_footer.php */

#footer_container {
    display: flex;
    width: 75%;
    margin: 1em 0;
    justify-content: center;
    font-size: 0.8em;
    text-align: center;
}

.footer_item {
    padding: 1em 0.5em;
    color: #666666;
}

.footer_item a {
    color: #666666;
    text-decoration: none;
}

.footer_item a:hover {
    color: #005bff;
    text-decoration: underline;
}

@media screen and (max-width: 360px) {
    #footer_container {
        flex-direction: column;
        width: 95%;
        margin: 0.25em 0;
        justify-content: flex-start;
        text-align: left;
    }
    .footer_item {
        padding: 0.25em 0.5em;
    }
}