
html {
    height: 100%;
}

body {
    /*background-color: #DAEBBD;*/
    color: #86BC26;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

h2 {
    margin: 10px 0;
}

input[type="submit"], button {
    background-color: #86BC26;
    color: white;
    border: none;
    margin-top: 15px;
    margin-right: 15px;
    padding: 5px 10px;
}

    input[type="submit"]:hover, button:hover {
        background-color: #79af19;
    }

    input[type="submit"]:disabled, button:disabled {
        background-color: #DDDDDD;
    }

#id_login_fields input {
    margin-top: 15px;
    margin-right: 5px;
    flex: 1 0 128px;
    padding: 5px 10px;
    max-width: 250px;
}

.g_id_signin {
    margin-top: 15px;
}

.info_box {
    text-align: left;
    padding: 10px;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

table {
    font-weight: bold;
    width: 100%;
}

td:first-of-type {
    width: 50%;
}

td {
    text-align: left;
    vertical-align: top;
}

small {
    color: black;
    font-weight: normal;
}

ul {
    margin: 0;
}

.login_info {
    flex: 1 1 50%;
    color: black;
    margin-top: 15px;
}

.column {
    display: flex;
    flex-direction: column;
    /*width: 50%;
    flex-shrink: 0;
    min-width: 350px;*/
    max-width: 400px;
}

.column_scroll {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    background-color: white;
}

.row_header {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    flex-wrap: wrap;
    flex-direction: column;
    flex: 1;
    margin-right: 16px;
}

    .row_header form {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .row_header form font {
        margin-top: 5px;
    }

.row {
    display: flex;
    /*flex-wrap: wrap;*/
    flex-direction: column;
    align-items: center;
}

.item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    flex-wrap: wrap;
}

    .item span:not(.passwd_span) {
        flex: 0 1 150px;
    }

    .item input:not([type=checkbox]):not([type=submit]) {
        flex: 1 1 0;
    }

    .item.nowrap {
        flex-wrap: nowrap;
    }

.adm_warning {
    border: 2px solid red;
    background-color: yellow;
    color: black;
    font-weight: normal;
    padding: 3px;
}

.center_div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    text-align: center;
    font-size: 200%;
    color: black;
    overflow: auto;
    padding: 2vw;
}

    .center_div input[type="submit"], button {
        font-size: 100%;
        border: none;
        padding: 6px 26px;
        background: #f5f4f4;
        text-align: center;
        color: black;
    }

        .center_div input[type="submit"]:hover, button:hover {
            background: #ebf2da;
        }

#id_filler {
    flex-grow: 1;
}

#id_login_header, .info_box {
    padding-left: 16px;
    padding-right: 16px;
}

#id_login_header {
    padding-top: 26px;
    padding-bottom: 20px;
    background-color: #DAEBBD;
}

#id_login_wrap {
    display: flex;
    flex: 0 0 auto;
}

#id_login {
    flex: 1;
}

#id_login_fields {
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 554px;
}

#id_wrap {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.select_button_div {
    display: flex;
    justify-content: space-around;
    background-color: white;
    width: 100%;
    position: relative;
}

.select_button {
    background-color: #e6e6e6;
    color: black;
    cursor: pointer;
    width: 25vw;
    height: 17vw;
    text-align: center;
    /*line-height: 17vw;*/
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
}

    .select_button > div:nth-child(2) {
        width: 100%;
        flex: 1 1 0;
        background-size: contain;
        background-position: 50%;
        background-repeat: no-repeat;
    }

    .select_button > div:nth-child(1) {
        margin-top: -5%;
    }

.select_button_wrap:not(:last-child) {
    margin-right: 5px;
}

.select_button_wrap {
    display: flex;
    flex-direction: column;
    padding: 5px;
    box-sizing: border-box;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}

.info_box.none_selected .user_info_wrap:not(:last-child) {
    border-bottom: 1px solid #79af19;
}

.select_button:hover, .select_button_wrap.hover .select_button {
    background-color: #ebf2da;
}

.select_button_wrap.selected .select_button {
    background-color: #79af19;
    color: white;
}

    .select_button_wrap.selected .select_button > div:nth-child(1) {
        filter: invert(1) contrast(2);
    }

.select_button_wrap.disabled .select_button {
    background-color: #f5f4f4;
    color: #DDD;
}

    .select_button_wrap.disabled .select_button > div:nth-child(1) {
        filter: invert(1);
    }

.select_button img {
    width: 60%;
}

#id_logo {
    width: 96px;
}

.user_info_wrap {
    padding: 5px;
    cursor: pointer;
    /*box-sizing: border-box;*/
}

/*.user_info.hover {
    background-color: #ebf2da;
}*/

.user_info_column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.user_info_header {
    font-weight: bold;
    margin-bottom: 5px;
}

.flex-line-break {
    flex: 0 0 100%;
}

.passwd_span {
    flex: 1 1 0;
    position: relative;
}

    .passwd_span input {
        width: 100%;
        box-sizing: border-box;
    }

.passwd_warning {
    position: relative;
    left: 0;
    color: red;
    /*top: 100%;*/
    width: 100%;
    background-color: pink;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid red;
    border-top: none;
}

#id_already_reg {
    cursor: pointer;
    color: black;
}

@media screen and (min-width: 875px) {
    .item span:not(.passwd_span) {
        flex: 0 1 40%;
    }

    @media (orientation: portrait) {
        #id_wrap {
            font-size: 2.3vw;
        }

        .column {
            max-width: 70%;
            margin-left: auto;
            margin-right: auto;
        }
    }


    @media (orientation: landscape) {

        #id_login_header, .info_box {
            padding-left: 32px;
            padding-right: 32px;
        }

        .row {
            flex-direction: row;
            align-items: flex-start;
            justify-content: flex-start;
            overflow: hidden;
            flex: 1 1 0;
        }

        .column {
            max-width: auto;
            margin-left: auto;
            margin-right: auto;
        }

        .column_scroll {
            overflow-y: auto;
            border-right: 1px solid #79af19;
            height: 100%;
        }

        .select_button {
            width: 20vh;
            font-size: 2.4vh;
            height: auto;
            /*line-height: inherit;*/
        }

        .select_button_div {
            width: auto;
            height: 100%;
        }

        .select_button_wrap {
            flex-direction: row;
            height: 33%;
            /*line-height: 33%;*/
        }

            .select_button_wrap:not(:last-child), .user_info_wrap:not(:last-child) {
                margin-bottom: 5px;
                margin-right: 0px;
            }

        .info_box {
            flex: 1 1 0;
        }

            .info_box.none_selected .user_info_wrap {
                height: 33%;
                max-height: 33%;
                justify-content: center;
                overflow: hidden;
            }

            .info_box.none_selected .select_button_wrap:not(:last-child) {
                border-bottom: 1px solid #79af19;
            }

        .user_info {
            overflow: auto;
        }

        .user_info_column, .select_button_div {
            font-size: 2.3vh;
        }

        .user_info_wrap {
            display: flex;
            flex-direction: column;
        }

        .user_info_column {
            order: 9;
            flex: 1;
            height: 100%;
            width: auto;
        }

        .user_info_header {
            display: none;
        }

        .select_button_div {
            flex-direction: column;
        }
    }
}

/**
 * Styly pro center_message()
 */

.support_contact a {
    align-self: flex-start;
    margin-top: auto;
    font-size: 100%;
    color: gray;
}

.green {
    color: green;
    font-weight: bold;
}

.margin-bottom-12 {
    margin-bottom: 12px;
}

@media screen and (max-width: 600px), screen and (max-height: 400px) {
    
    .center_div {
        font-size: 5vh;
    }
    .support_contact {
        font-size: 2.5vh;
    }
    @media (orientation: portrait) {
        .center_div {
            font-size: 5vw;
        }
        .support_contact {
            font-size: 2.5vw;
        }
    }

}
