body{
    background-color: var(--sc-main-clr);
    font-family: Arial, sans-serif; /** Removing Avenir font as strong tag is not recognized for this font in Mac + Chrome **/
}

.navbar{
    position: fixed;
    top: 0;
    height: 50px;
    width: calc(100% - 100px);
    background-color: var(--sc-main-clr);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
}

.navbar .privacy-warning,
.navbar .current-language{
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.navbar .refresh-survey .material-icons {
    color: whitesmoke;
    display: flex;
    font-size: 50px;
    margin-left: -72px;
}

.navbar .refresh-survey .material-icons + .tooltip {
    margin-left: 50px;
}

.navbar .other-languages{ margin-top: 10px; }

.language-select > span.tooltip {
    transform: translate(calc(-100% + 25px), 0);
}

button.toggle-guidance {
    top: 100px;
    right: 50px;
    font-weight: normal;
    font-size: 17px;
    transition: background-color 0.2s ease-in-out;
    padding: 4px 15px;
}

button.toggle-guidance:hover {
    background-color: var(--sc-bgr-clr);
}

.survey-header{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.survey-footer{
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

div[class*="message"] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110%;
    flex-wrap: wrap;
    padding: 5px 50px;
    width: calc(60% - 100px);
}

.interviewer-message{
    background-color: var(--sc-main-clr);
    color: whitesmoke;
    border-radius: 10px;
    width: calc(60% - 100px);
    margin-bottom: 10px;
    display: none !important;
}
.show-guidance .interviewer-message{
    display: flex !important;
}

.interviewed-message{
    background-color: white;
    border-radius: 10px;
    width: calc(60% - 100px);
}

.guidance-interviewer-icon{
    background-color: var(--main-bgclr);
    color: var(--main-black);
    height: 25px;
    width: 25px;
    border-radius: 100%;
    cursor: help;
    justify-content: center;
}

.guidance-interviewer-icon:hover{
    background-color: var(--main-itclr2);
    color: whitesmoke;
    font-weight: bold;
}

.guidance-interviewer{
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px;
    display: none;
}
.show-guidance .guidance-interviewer{
    display: block;
}

.before{
    display: none;
}
.show-guidance .before{
    display: inline;
}

.guidance-interviewer + span.before {
    font-weight: bold;
}

div[class*="message"] > p {
    margin: 5px auto;
    width: 100%;
}

.survey-header .interviewed-message{
    border-top: 5px solid var(--sc-main-clr);
}

.survey-footer .interviewed-message{
    border-bottom: 5px solid var(--sc-main-clr);
}

#survey_form{
    width: 60%;
    margin: auto;
}

#survey_form .question{
    background-color: whitesmoke;
    margin-top: 15px;
    border-left: 5px solid var(--sc-main-clr);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
    position: relative;
}

#survey_form .question.paragraph {
    background-color: var(--sc-main-clr);
    color: whitesmoke;
    border-left: none;
    margin-top: 40px;
    margin-bottom: 10px;
}

#survey_form .question:not(.paragraph):hover{
    color: white;
    background-color: var(--sc-main-clr);
}

#survey_form .question > div:not(.label) {
    margin: 5px 0;
}

.required > label::before,
.required > * > label::before,
label.required::before {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 150%;
    color: var(--sc-main-clr);
}

#survey_form .question:hover label::before {
    color: white;
}

#survey_form .question label > p {
    margin: 5px 0;
}

.question:hover .range-field-container input.current-value,
.question:hover .range-field-container button {
    color: white;
}

input[type="range"] {
    background: var(--sc-main-clr);
}

.question:hover input[type="range"] {
    background: var(--sc-bgr-clr);
}

.question:hover .custom-select-option:not(.selected):not(:hover) {
    color: whitesmoke;
    border-color: whitesmoke;
}

#survey_form .question .comments{
    font-family: inherit;
    outline: none;
    border: none;
    border-left: solid 3px lightgrey;
    background-color: whitesmoke;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

#survey_form .question .notes .comments {
    height: 40px;
}

#survey_form .question:hover .matrix-widget-table .comments {
    background-color: inherit;
}

#survey_form .question .comments:hover{
    opacity: 1;
}

.error-list {
    margin: 0;
}

.question:hover .error-list {
    color: inherit;
}

.survey-header .company-logo{
    max-width: 350px;
    max-height: 300px;
    margin: 20px;
}

.survey-header h2 {
    margin-bottom: 20px;
}

.base-content {
    margin-top: 50px;
    width: 100vw;
    height: calc(100vh - 120px);
    background-color: var(--sc-bgr-clr);
    overflow-y: auto;
}

#survey_form .submit-bt{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sc-main-clr);
}

#survey_form .submit-bt > button {
    padding: 10px 50px;
    outline: none;
    border: none;
    box-shadow: 2px 2px 2px grey;
    font-size: 150%;
    transition:
            background-color 0.2s ease-in-out,
            color 0.2s ease-in-out,
            font-weight 0.2s ease-in-out,
            padding 0.2s ease-in-out;
}

#survey_form .submit-bt > button:hover {
    background-color: lightgoldenrodyellow;
    background-color: var(--main-bgclr);
    color: turquoise;
    color: var(--main-itclr3);
    font-weight: bold;
}

.add-another-survey-buttons{
    display: flex;
    grid-gap: 25px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.add-another-survey-buttons .refresh-survey > button {
    font-size: 40px;
    line-height: 50px;
    color: inherit;
    opacity: 1;
    transition: font-size 0.2s ease-in-out;
}

.add-another-survey-buttons .refresh-survey > button:hover {
    font-size: 50px;
}

/* ---------- CUSTOM FIELDTYPES CSS ------------ */

/* Quali multi and matrix fields */
.question table { border-spacing: 0 5px; }
.question table td { border-top: 1px solid grey; padding-top: 5px;}
.question table tr:first-child td { border-top: none; }
.question table .boolean-custom-widget { justify-content: flex-end; }

.question .matrix-widget-table .col-name {
    background-color: var(--sc-main-clr);
}

.question:hover .matrix-widget-table .col-name {
    background-color: whitesmoke;
    color: var(--main-black);
}

.question .matrix-widget-table td {
    background-color: var(--sc-main-clr);
}

.question:hover .matrix-widget-table td:first-of-type {
    background-color: whitesmoke;
    color: var(--main-black);
}

.question .matrix-widget-table .input-td {
    background-color: var(--sc-bgr-clr);
    min-width: 30px;
}

.question:hover table tbody tr td:last-child button {
    color: white;
}

.question table tbody tr td:last-child button {
    opacity: 0.6;
}

.question table tbody tr td:last-child button:hover {
    opacity: 1;
}

/* --------- PARAGRAPHS ---------- */

#survey_form div[id^="p_"]{

}

/* ------- ALREADY SUBMITTED --------- */
.full-page-msg {
    height: calc(100% - 25px);
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: whitesmoke;
    position: relative;
    font-size: 125%;
    grid-gap: 25px;
    text-align: center;
}

.full-page-msg a {
    color: blue;
}

.full-page-msg + .survey-footer{
    background-color: whitesmoke;
}

.full-page-msg .refresh-survey {
    background-color: var(--main-bgclr);
    cursor: pointer;
    padding: 15px 25px;
    margin: 25px 0;
    height: 120px;
    width: 50%;
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 2px 2px 2px grey;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.full-page-msg .refresh-survey:hover {
    background-color: var(--main-itclr2);
    color: whitesmoke;
}

.full-page-msg .refresh-survey span[onclick] {
    background-color: var(--sc-bgr-clr);
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.full-page-msg .refresh-survey span[onclick]:hover {
    background-color: var(--sc-main-clr);
    color: whitesmoke;
}

/* ---------------- PRIVACY PANEL ------------------- */

.overlay-content#privacy {
    position: relative;
    top: -31px;
}

#privacy .modal-header {
    justify-content: center;
}

#privacy .modal-header button.close {
    position: absolute;
    right: 0;
}

#privacy .modal-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 25px 50px;
    font-size: 125%;
    max-height: calc(100% - 118px);
    grid-gap: 15px;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 25px 50px;
    font-size: 125%;
}

.modal-body a {
    color: blue;
}

#privacy .modal-body > div:not(:first-of-type)::before {
    content: "*";
    font-size: 250%;
    color: orange;
    color: var(--main-itclr2);
    position: relative;
    top: 5px;
    display: block;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

#privacy .modal-body > p {
    text-align: center;
}

#privacy .modal-body > p {
    text-align: center;
    position: relative;
}

#privacy .gprd{
    text-align: center;
}

#privacy .gprd .title {
    font-weight: bold;
    margin-bottom: 20px;
}

/* ---------------SURVEY PROGRESS--------------- */
#survey_progress{
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    left: calc(50% - 84px);
    top: 0;
    padding: 0;
    height: 50px;
    width: 150px;
    font-size: 20px;
    background-color: var(--sc-bgr-clr);
}

#survey_progress:not(.loaded) #answered_questions{
    display: none;
}

/*************          CSS For small screens / tablets         ***************/

@media screen and (max-width: 1400px) {
    .interviewed-message {
        width: calc(80% - 100px);
    }

    #survey_form {
        width: 80%;
    }

    #survey_progress{
        left: calc(50% - 5vw - 15px);
        width: auto;
        padding: 0 5vw;
    }
}


/*************          CSS For smartphones         ***************/

@media screen and (max-width: 800px) {
    body {
        font-size: 3vw;
    }

    .navbar {
        padding: 0 20px;
        grid-gap: calc(70% - 100px);
    }

    .navbar .toggle-guidance {
        font-size: 12px;
        width: 120px;
    }

    .survey-header h2 {
        margin: 0 20px 20px 20px;
        font-size: 4vw;
    }

    div[class*="message"].interviewed-message {
        width: calc(90% - 50px);
        padding: 5px 25px;
    }

    #survey_form {
        width: 90%;
    }

    .matrix-widget-table {
        font-size: 3vw;
    }

    .question .matrix-widget-table .input-td {
        background-color: var(--sc-bgr-clr);
        min-width: 5vw;
    }

    .matrix-widget-table td input {
        width: 3vw;
    }

    .range-field-container{
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 550px) {
    body {
        font-size: 4.5vw;
    }

    .navbar {
        padding: 0 10px;
        grid-gap: calc(70% - 65px);
    }

    .navbar .privacy-warning,
    .navbar .current-language,
    .navbar .toggle-guidance {
        font-size: 14px;
    }

    .navbar .language-select {
        margin-right: 10px;
    }

    .navbar .toggle-guidance {
        font-size: 10px;
        width: 90px;
    }
}