/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
html {
    background: rgb(0,76.5,153);
}

body,
h1, h2, h3, h4, h5, h6,
.btn,
.navbar,
input,
textarea,
select {
    font-family: 'Titillium Web', sans-serif !important;
}

body {
    padding: 0 0 0 0;
    padding-top: 0 !important;
}

html, body,
#content,
#dynamicReloadContainer {
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
}

/* White background on the survey area itself */
#outerframeContainer {
    background-color: #fff;
    padding-bottom: 2rem;
}

.navbar {
    position: static !important;
    border-radius: 0;
}

.navbar,
.navbar-header {
    min-height: 60px;
}

.navbar-brand .logo,
.logo-container img,
.logo.img-responsive {
    max-height: 45px !important;
    width: auto !important;
}

.navbar,
.it-header-slim-wrapper,
.it-nav-wrapper {
    background-color: #0059b3 !important;
}

.question-title-container,
.question-title-container .asterisk .text-danger {
    color: #ffffff !important;
}

#bootstrap-alert-box-modal {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1060 !important;
}

#bootstrap-alert-box-modal .modal-dialog {
    z-index: 1061 !important;
}

#bootstrap-alert-box-modal .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #fff !important;
    color: #000 !important;
}

/* Header */

.navbar,
.it-header-slim-wrapper,
.it-nav-wrapper {
    background-color: #0059b3 !important;
}

.it-header-slim-wrapper {
    background-color: #003993 !important;
}
/*
#survey-nav .navbar-toggler {
    display: none;
}
*/


/* Footer */

.it-footer-main {
    --bs-border-opacity: 0.5;
    background-color: rgb(0, 76.5, 153);
    color: #fff;
    font-size: 1rem;
}

.it-footer-main a {
    color: #fff;
    text-decoration: underline;
}


/* Survey */

/*
#survey-nav .navbar-collapse {
    display: none !important;
}
*/
 
.question-text {
    font-size: 1.5rem;
}

.question-help-container,
.question-help-container.text-info {
    border: 0;
    border-left: 3px solid #06c;
    margin: 0;
    padding: 0 8px 0 8px;
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

.question-help-container .ls-questionhelp,
.question-help-container.text-info .ls-questionhelp {
    margin-bottom: 4px;
    padding: 16px 16px 16px 16px;
    text-align: left;
    font-weight: normal;
}

.question-valid-container,
.question-valid-container.bg-primary {
    border: 0;
    border-left: 3px solid rgb(204,51,76.5);
    margin: 0;
    padding: 0 8px 0 8px;
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

.question-valid-container .ls-questionhelp,
.question-valid-container.bg-primary .ls-questionhelp {
    margin-bottom: 4px;
    padding: 16px 16px 16px 16px;
    text-align: left;
    font-weight: normal;
}

.question-valid-container .text-danger {
    font-weight: normal;
}

.ls-question-mandatory {
    border: 0;
    border-left: 3px solid rgb(204,51,76.5);
    margin: 0;
    padding: 0 8px 0 8px;
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

.ls-question-mandatory .ls-questionhelp {
    margin-bottom: 4px;
    padding: 16px 16px 16px 16px;
    text-align: left;
    font-weight: normal;
}

.form-select.form-control {
    border-bottom: 1px solid black;
    font-size: 1.2rem;
}

.fa-asterisk {
    display: none;
}

thead {
    background-color: hsl(210,17%,44%);
    color: #ffffff;
}

thead th,
thead td,
.ls-answers .ls-heading th {
    font-weight: normal;
}

.question-title-container a {
    color: #ffffff;
    text-decoration: underline;
}

.question-title-container a:hover {
    color: #ffffff;
    text-decoration: none;
}



/* upload fix from bs 3 to bs 5 */

.upload-files .upload-button .btn.upload {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #2a65c7 !important;
    border: 1px solid #2a65c7 !important;
    color: #fff !important;
    padding: .5rem 1rem !important;
    margin: 1rem 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.upload-files .upload-button .btn.upload .fa {
    display: inline-block !important;
    font-size: 1rem !important;
    color: #fff !important;
}

/* Bootstrap 5 uses .show, the old Bootstrap 3 (flatly) CSS expects .in */
.fade.show {
    opacity: 1 !important;
}
.modal-backdrop.show {
    opacity: .5 !important;
}

/* Optional: make the upload window wider */
.file-upload-modal .modal-dialog {
    max-width: 800px;
}

.upload-files .upload:not(input) {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: auto !important;
}



/* Salva e riprendi */

.save-form {
    display: flex;
    margin-bottom: 16px;
}

.save-survey-form.col-lg-8.offset-lg-2 {
    float: none;
}


/* Completato */

.completed-text {
    font-size: 3rem;
}
