﻿#SurveyPanelTitle { /* override the default style from survey.common.css */
    position: relative;
    white-space: nowrap;
    font-size: 2em;
}

#SurveyPageTemplateText {
    margin-left: 8px;
    margin-right: 8px;
}

.panel-custom-no-border {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.survey-body { /* particularly for smaller devices allow the survey body to take up more of the screen width */
    padding: 0;
    margin-left: -5px;
}

.QuestionContainer {
    font-weight: normal;
    color: #3e3e3e;
    background-color: #eee;
    border: 1px solid #ccc;
    /*-webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;*/
}

.QuestionNumber {
    text-align: right;
    margin: 0;
    padding: 0;
    padding-left: 10px;
    /*-webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;*/
}

    .QuestionNumber:before {
        content: 'Q';
    }

.Question {
    padding: 0;
    margin: 0;
    padding-left: 10px;
    vertical-align: top;
    /*-webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;*/
}

.QuestionPopUpContainer { /* hide the click here button until it because the active question */
    display: none;
}

.question-container-active > .QuestionPopUpContainer { /* the question is active so show the click here button to show the pop up */
    display: table-cell;
    padding-bottom: 5px;
    vertical-align: bottom;
}

.question-container-active {
    padding-bottom: 0;
    color: #fff;
    background-color: #337ab7;
    border: 1px solid #2e6da4;
}

.question-number-active {
    width: 40px;
    width: unset;
    font-size: 40px;
    font-weight: 200;
    position: relative;
    top: -8px;
    height: 45px;
    /*display: inline-block;*/
}

.question-active {
    font-size: 18px;
    font-weight: 300;
    padding-bottom: 5px;
    /*display: inline-block;*/
}

.question-container-answered {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.question-container-not-answered {
    color: #FFF;
    background-color: #c0392b;
    border-color: #c0392b;
}

.question-container-skipped {
    /* bootstrap warning colour set for alerts */
    /*background-color: #fcf8e3;
    border-color: #faebcc;*/
    color: #3e3e3e;
    background-color: #fdfdfd;
    /* need further customisation to be able to use this icon */
    /*background-image: url('/Images/question-skipped-small.png?v3');
    background-repeat: no-repeat;
    background-size: 30px 20px;
    background-position: right 10px center;*/
}

/* Matrix */
table .survey-matrix-table td {
    border-left: 0;
    border-right: 0;
}

.survey-matrix-table [type="radio"] {
    left: -9px;
}

.select2-results {
    height: 200px;
}

.alert-dismissible .close {
    right: 0;
}

[type="radio"],
[type="checkbox"] {
    outline: none !important;
}

/*
    [type="radio"]:checked,
    [type="radio"]:not(:checked) {
        position: relative;
        padding-left: 28px;
        cursor: pointer;
        line-height: 20px;
        display: inline-block;
        color: #666;
    }

        [type="radio"]:checked:before,
        [type="radio"]:not(:checked):before {
            content: '';
            position: absolute;
            left: -3px;
            top: 8px;
            width: 18px;
            height: 18px;
            border: 1px solid #4a4a4a;
            border-radius: 100%;
            background: #fff;
        }

        [type="radio"]:checked:after,
        [type="radio"]:not(:checked):after {
            content: '';
            width: 12px;
            height: 12px;
            background: #2980b9;
            position: absolute;
            top: 11px;
            left: 0px;
            border-radius: 100%;
            -webkit-transition: all 0.2s ease;
            transition: all 0.2s ease;
        }

        [type="radio"]:not(:checked):after {
            opacity: 0;
            -webkit-transform: scale(0);
            transform: scale(0);
        }

        [type="radio"]:checked:after {
            opacity: 1;
            -webkit-transform: scale(1);
            transform: scale(1);
        }
*/

/* by default assume small resolution, so show the matrix custom control with drop downs and hide row of radio buttons */
.survey-matrix-container-sm {
    display: block;
}

.survey-matrix-table-lg {
    display: none;
}

/* resolution is large enough, so show the matrix custom control with the row of radio buttons and hide the drop downs */
@media only screen and (min-width: 992px) {
    .survey-matrix-container-sm {
        display: none;
    }

    .survey-matrix-table-lg {
        display: block;
    }
}

.AnswerContainer label {
    line-height: 24px;
    color: #4a4a4a;
}

/* custom check box */
[type="checkbox"]:checked:before,
[type="checkbox"]:not(:checked):before {
    content: '';
    position: absolute;
    left: -3px;
    top: 8px;
    width: 18px;
    height: 18px;
    border: 1px solid #4a4a4a;
    background: #fff;
}

[type="checkbox"]:checked:before {
    border: 1px solid #fff;
    background: #fff;
}

[type="checkbox"]:checked:after,
[type="checkbox"]:not(:checked):after {
    content: '\f00c';
    width: 14px;
    height: 14px;
    color: #2980b9;
    font-family: 'FontAwesome';
    font-size: 20px;
    position: absolute;
    top: 6px;
    left: -2px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="checkbox"]:not(:checked):after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="checkbox"]:checked:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* fix question container right border on smaller resolutions */
@media only screen and (max-width: 991px) {
    .QuestionContainer {
        width: 99%;
    }
}

/* shrink the size of the active question on smaller devices */
@media only screen and (max-width: 480px) {
    .QuestionNumber {
        padding-left: 0;
    }

    .question-number-active {
        font-size: 28px;
        padding-top: 2px;
    }

    .question-active {
        font-size: 15px;
    }

    .question-container-active > .QuestionPopUpContainer {
        font-size: 12px;
        display: block;
        float: right;
    }
}

.survey-custom-matrix-table input[type="radio"] {
    margin-top: 2px;
    margin-left: 16px;
    margin-right: 17px;
}
