@import "less/color.less";
@import "less/ratio.less";
@import "less/responsiveness.less";

body {
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------------------
Alert */
#alert {
    background-color: lightcyan;
}

#green_alert {
    color: green;
}

#red_alert {
    color: red;
}

header {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-height: @header-height;
    max-height: @header-height;
    background-color: white;
    box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;

    #logotype {

        padding: @logotype-padding;

        img {
            height: 100%;
            margin-left: 5px;
        }

    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 0px 15px 0px 0px;
        margin: 0;

        ul {
            height: 100%;
            padding: 0;
            margin: 0;

            li {
                display: inline-flex;
                flex-direction: row;
                align-items: stretch;
                height: 100%;
                margin: 0px 10px 0px 0px;
                cursor: pointer;

                a {
                    display: flex;
                    align-items: center;
                    flex-grow: 1;
                    text-decoration: none;
                    color: black;
                    font-size: 16px;
                }

                &:hover {
                    box-shadow: 0px -3px @color1hover inset;
                }
            }

            .selected {
                box-shadow: 0px -3px @color1 inset;
            }
        }

        #burger-menu {
            border: 0;
            background-color: transparent;
            outline: 0;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            position: relative;
            z-index: 9;

            &:hover {
                color: @color1;
            }
        }
    }

    .mob-nav {
        ul {
            display: block;
            position: fixed;
            top: 0;
            right: 0;
            z-index: 8;
            width: 85%;
            height: 100%;
            padding-top: @header-height;
            padding-left: 15px;
            padding-right: 5px;
            background-color: @color1;
            text-align: right;

            li {
                display: block;
                height: auto;
                padding: 20px 10px 20px 10px;
                border-top: 1px rgba(255, 255, 255, 0.3) solid;

                a {
                    color: white;
                }

                &:last-of-type {
                    border-bottom: 1px rgba(255, 255, 255, 0.3) solid;
                }
            }
        }

        #burger-menu {
            color: white;
        }

        #close-menu {
            display: block;
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 6;
            background-color: rgba(0, 0, 0, 0.8);
        }
    }
}

main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
    text-align: center;
}

#js-questionnaire,
#js-questionnaire-area {
    display: inline-block;
    width: 100%;
    max-width: 1000px;

    h3 {
        display: block;
        color: @color1;
        padding: 0;
        margin: 0px 0px 20px;
        font-size: 16px;
        font-weight: bold;
    }

    .msg-block {
        display: block;
        padding: 15px;
        margin: 0;
        border-radius: 5px;
        background-color: white;
        text-align: left;
    }

    .page-footer {
        height: 60px;
    }

    #buttons-bar,
    .page-footer {
        display: flex;
        flex-direction: row;
        margin: 0;

        button, a {
            display: flex;
            align-items: center;
            justify-content: center;
            outline: 0;
            border: 0;
            border-radius: 5px;
            font-size: 16px;
            text-decoration: none;
            color: black;
            cursor: pointer;
        }

        .main-action {
            background-color: @color1;
            color: white;

            &:hover {
                background-color: @color1hover;
            }
        }

        .secondary-action {
            background-color: rgba(210, 210, 210, 1);

            &:hover {
                background-color: rgba(220, 220, 220, 1);
            }
        }
    }
}

form {
    fieldset {
        padding: 10px 0px;
        margin: 0;
        border: 0;
        border-bottom: 1px rgba(0, 0, 0, 0.1) solid;

        .fieldset-label {
            display: block;
            margin: 10px 0px;
        }

        &:last-of-type {
            border: 0;
        }
    }

    .short-text-input {
        display: block;
        position: relative;
        margin-bottom: 10px;

        label {
            position: absolute;
            top: 0;
            font-size: 14px;
            color: rgba(100, 100, 100, 1);
            margin: 16px 10px;
            padding: 0 10px;
            background-color: white;
            -webkit-transition: top .2s ease-in-out,
            font-size .2s ease-in-out;
            transition: top .2s ease-in-out,
            font-size .2s ease-in-out;
        }

        .active {
            top: -25px;
            font-size: 12px;
            z-index: 2;
        }

        input {
            display: block;
            width: 100%;
            height: 50px;
            padding: 10px;
            border: 0;
            border-radius: 5px;
            border: 1px rgba(100, 100, 100, 1) solid;
            background-color: transparent;
            outline: 0;
            position: relative;
            z-index: 1;

            &:hover, &:active, &:focus {
                border: 1px @color1hover solid;
            }
        }
    }

}

.checkbox-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 5px;
    margin-bottom: 10px;

    .checkbox-custom {
        flex-grow: 1;
        margin: 0;
        padding: 0;
        border: 1px rgba(100, 100, 100, 1) solid;
        overflow: hidden;
        border-radius: 3px;
        cursor: pointer;
        min-width: 20px;
        max-width: 20px;
        width: 20px;
        min-height: 20px;
        max-height: 20px;
        height: 20px;

        input, i {
            display: block;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            position: relative;
            z-index: 2;
            cursor: pointer;
        }

        i {
            z-index: 1;
            border-radius: 3px;
            bottom: 18px;
        }

        input {
            opacity: 0;
        }

        input:checked ~ i {
            background-color: @color1;
            box-shadow: 0px 0px 0px 3px white inset;
        }

        &:hover {
            border: 1px @color1hover solid;
        }
    }

    label {
        flex-grow: 1;
        padding-left: 10px;
    }

}

.radio-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 5px;
    margin-bottom: 10px;

    .radio-custom-30 {
        min-width: 30px;
        max-width: 30px;
        width: 30px;
        min-height: 30px;
        max-height: 30px;
        height: 30px;

        i {
            bottom: 28px;
        }
    }

    .radio-custom-20 {
        min-width: 20px;
        max-width: 20px;
        width: 20px;
        min-height: 20px;
        max-height: 20px;
        height: 20px;

        i {
            bottom: 18px;
        }
    }

    .radio-custom {
        flex-grow: 1;
        margin: 0;
        padding: 0;
        border: 1px rgba(100, 100, 100, 1) solid;
        overflow: hidden;
        border-radius: 100px;
        cursor: pointer;

        input, i {
            display: block;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            position: relative;
            z-index: 2;
            cursor: pointer;
        }

        i {
            z-index: 1;
            border-radius: 100px;
        }

        input {
            opacity: 0;
        }

        input:checked ~ i {
            background-color: @color1;
            box-shadow: 0px 0px 0px 3px white inset;
        }

        &:hover {
            border: 1px @color1hover solid;
        }
    }

    label {
        flex-grow: 1;
        padding-left: 10px;
    }
}

.scale-input {
    display: block;

    label {
        flex-grow: 1;
        padding-left: 10px;
    }

    .scale-option {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-left: 2px;
        min-height: 40px;
        height: 40px;
        max-height: 40px;
        overflow: hidden;
        margin: 0;

        &:first-of-type {
            .scale-custom {
                border-radius: 100px 100px 0px 0px;
                border-top: 1px rgba(100, 100, 100, 1) solid;
            }
        }

        &:last-of-type {
            .scale-custom {
                border-radius: 0px 0px 100px 100px;
                border-bottom: 1px rgba(100, 100, 100, 1) solid;
            }
        }

        .scale-custom {
            flex-grow: 1;
            margin: 0;
            padding: 0;
            border: 1px rgba(100, 100, 100, 1) solid;
            border-top: 0;
            border-bottom: 1px rgba(200, 200, 200, 1) solid;
            overflow: hidden;
            cursor: pointer;
            min-width: 25px;
            max-width: 25px;
            width: 25px;
            height: 100%;

            input, i {
                display: block;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                position: relative;
                z-index: 2;
                cursor: pointer;
            }

            i {
                height: 110%;
                z-index: 1;
                bottom: 40px;
                opacity: 0;
            }

            input {
                opacity: 0;
            }

            input:checked ~ i,
            input:hover ~ i {
                opacity: 1;
            }
        }
    }
}

#workshops-list {
    table {
        border-collapse: collapse;

        thead {
            border-bottom: 1px rgba(40, 40, 40, 1) solid;

            th {
                padding: 10px;
            }
        }

        tbody {
            tr {
                border-bottom: 1px rgba(200, 200, 200, 1) solid;

                td {
                    padding: 10px;
                }
            }
        }
    }
}
