
:root {
    --col-primary: hsl(0, 100%, 30%);
    --col-border: #d9d9d9;
    --col-green: hsl(120, 40%, 44%);
    --col-green-hover: hsl(120, 40%, 34%);
    --col-danger: hsl(2, 64%, 58%);
    --col-danger-hover: hsl(2, 64%, 48%);
    --col-text-info: hsl(200, 49%, 38%);
    --col-light-gray: hsl(0, 0%, 91%);
    --col-lightest-gray: hsl(240, 20%, 98%);
}

body{
    font-size: 1.1em;
    background-color: rgba(249, 249, 249, 0.18);
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif !important;
}

p {
    margin-bottom: 0.3rem;
}

@media only screen and (max-device-width: 760px) {
    h1, .h3 {
        font-size: 2em;
    }

    .h4 {
        font-size: 1.7em;
    }
}


/*  bootstrap -------------------------*/
.danger{
    background-color:  var(--col-primary);
}

.text-danger{
    color:  var(--col-primary) !important;
}

.text-info{
    color: var(--col-text-info) !important;
}

.alert-danger{
    color:var(--col-primary);
    background-color: #f8d9db;
    border-color: #f2b8bc;
}

.navbar-toggler {
    padding-top: 0;
    margin-top: -1.25rem;

}
.navbar {
    color: white;
    height:50px !important;
    background-color: var(--col-primary) !important;
    border-color: var(--col-primary);
}

.navbar-brand {
    margin-top: -0.25rem;
    font-size: 1.6em;
}
#survey-nav .navbar-toggler .ri-more-fill {
    color: #FFFFFF;
}

.btn-primary,.btn-check:active+.btn-primary,.btn-check:checked+.btn-primary,.btn-primary.active,.btn-primary:active,.show>.btn-primary.dropdown-toggle  {
    background-color: var(--col-green);
    border-color: var(--col-green);
}

.btn-check:focus+.btn-primary,.btn-primary:focus,.btn-primary:hover {
    background-color: var(--col-green-hover);
    border-color: var(--col-green-hover);
}


#ls-button-previous {
    background-color: var(--col-danger);
    border-color: var(--col-danger);
    color: white;
}

#ls-button-previous:hover {
    background-color: var(--col-danger-hover);
    border-color: var(--col-danger-hover);
}

/*  survey items -------------------------*/

/* too much spacing done with that */
.space-col{
    margin: 0;
}

.top-container .top-content {
    padding: 1.5em 0 0em;
    margin-top:1em;
    margin-bottom: 0.5em;
}


/* array block header section*/
.table>:not(:first-child) {
    border: none;
}
/* array block question row */
.table-bordered>:not(caption)>* {
    border: 1px solid var(--col-light-gray);
}
.table-bordered>:not(caption)>*>* {
    border: none;
}

/* question labels in array */
.ls-answers label, .ls-answers th {
    font-weight: 600;
}

/* override core css regarding array block splitting to pieces */
@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {
    /* remove border when array is split to pieces */
    .table-bordered>:not(caption)>* {
        border: none;
    }
    th.answertext {
        padding-bottom: 1em !important;
    }
}


.ls-questions-have-errors{
    font-size: 1.3em;
    margin-top: 1em;
}

.group-outer-container {
    display: block;
}

.question-container{
    background-color: white;
    border: 1px solid var(--col-light-gray);
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;

    margin-bottom: 0;
    margin-top: 1.5em;
    padding: 1em;
    position: relative;
}
/*......... the question code always visible while survey not activated .............*/
.admin-question-code {
    display: block;
    position: absolute;
    width: auto;
    top: 1px;
    right:1px;
    background-color: white;
    text-align: center;
    font-weight: normal;
    padding: 0.3em;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    color: #cccccc;
}

.question-valid-container {
    font-size: 0.9em;
}
.question-help-container {
    font-size: 0.9em;
}

.asterisk {
    overflow: visible;
    margin-left:-1.2em !important;;
    margin-top:0.64em !important;
    font-weight: 400;
}


.question-title-container {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.question-hilight{
    border-color: var(--col-primary);
}

.ls-answers {
    padding-top:0;
    padding-bottom: 0;
}

.ls-answers label, .answer-item label, .control-label {
    font-weight: 600;
}

.question-container .ls-label-question {
    font-size: 1.1rem;
    font-weight: 600;
}

dl, ol, ul {
    margin-bottom: 0;
    margin-top: 0;
}


.question-container .question-valid-container {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

li.radio-item {
    margin-bottom: 0.3em;
}

.form-control, .form-control:focus {
    border-color: var(--col-light-gray);
}

.ls-even {
    background-color: var(--col-lightest-gray);
}

.navigator {
    padding-top: 1.5rem;
}

.modal-header {
    background-color: var(--col-primary);
}
.modal-header span{
    color: white;
    font-weight: bold;
    font-size: 1.3em;
}
.modal-body{
    font-size: 1.3em;
}


/*......... custom things .............*/
.eoo{
    font-size: 0.9em;
    font-weight:normal;
    font-style:italic;
    color: #8c8c8c;
}

/*......... Video always 100% width .............*/
video {
    width: 100%;
    height: auto;
}

.fill {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}
.fill img {
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%
}


/*......... progress-bar .............*/
.progress-bar {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #8D8B7C;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}





/** maxDiff remove responsive splitting **/
.max-diff-array th.answertext {
    text-align: center !important;
    border-right: 3px solid #FFFFFF;
    border-left: 3px solid #FFFFFF;
}
.dir-ltr .max-diff-array table.ls-answers th,
.dir-ltr .max-diff-array table.ls-answers td {
    text-align: center;
}

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {

    .max-diff-array table.ls-answers {
        display: table;
    }

    .max-diff-array table.ls-answers thead {
        display: table-header-group;
    }

    .max-diff-array table.ls-answers tbody {
        display: table-row-group;
    }

    .max-diff-array table.ls-answers tr {
        display: table-row;
    }

    .max-diff-array table.ls-answers tr.ls-hidden {
        display: none;
    }

    .max-diff-array table.ls-answers th,
    .max-diff-array table.ls-answers td {
        display: table-cell;
    }


    .dir-ltr .max-diff-array table.ls-answers tbody th.answertext {
        text-align: right;
    }

    .max-diff-array-array table.ls-answers tbody td {
        text-align:left;
    }


    .dir-ltr .max-diff-array .ls-answers td.radio-item,
    .dir-ltr .max-diff-array .ls-answers td.checkbox-item {
        padding: 8px 0;
    }

    .max-diff-array table.ls-answers tbody .control-label {
        text-align:left
    }

    .max-diff-array table.ls-answers .ls-label-xs-visibility {
        display: inline-block;
        position: relative;
        overflow: hidden;
        width: 17px;
        height: 17px;
        line-height: 21px;
        text-indent: 21px;
        left: auto;
        margin-left: -20px;
    }

    .dir-ltr .max-diff-array table.ls-answers .radio-item label.ls-label-xs-visibility::before,
    .dir-ltr .max-diff-array table.ls-answers .checkbox-item label.ls-label-xs-visibility::before {
        margin-left: 0px;
    }

    .dir-ltr .max-diff-array table.ls-answers .radio-item label.ls-label-xs-visibility::after,
    .dir-ltr .max-diff-array table.ls-answers .checkbox-item label.ls-label-xs-visibility::after {
        margin-left: 0px;
    }

    .max-diff-array table.ls-answers > tbody > tr:hover {
        background-color: inherit;
    }
}
