.assistant {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

.assistant .welcome, .assistant .finished {
    margin-top: 28px;
}

.assistant .welcome img, .assistant .welcome img {
    width: 100%;
}

.assistant h1 {
    font-weight: bold;
    font-size: 28px;
    padding: 28px 0 14px 0;
    margin: 0;
}

.assistant p {
    font-size: 18px;
    opacity: .8;
    -webkit-font-smoothing: antialiased;
    padding: 11px 0 11px 0;
}

.assistant .action {
    margin-top: 21px;
}

.assistant .btn {
    width: auto;
    padding: 7px 4vw;
    font-size: 5vw;
    font-weight: bold;
    color: #ffffff;
    background: #314a6c;
    text-decoration: none;
    -webkit-border-radius: 4;
    -moz-border-radius: 4;
    border-radius: 4px;
}

.assistant .btn:hover {
    background: #5487b0;
    background-image: -webkit-linear-gradient(top, #6ea2c5, #5487b0);
    background-image: -moz-linear-gradient(top, #6ea2c5, #5487b0);
    background-image: -ms-linear-gradient(top, #6ea2c5, #5487b0);
    background-image: -o-linear-gradient(top, #6ea2c5, #5487b0);
    background-image: linear-gradient(to bottom, #6ea2c5, #5487b0);
    text-decoration: none;
}

.assistant .btnComment {
    font-size: 4vw;
    color: #40658d;
    padding-left: 5px;
    display: none;
}

.assistant .survey {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-evenly;
}

.assistant .survey .question {
    text-align: left;
    filter: alpha(opacity = 25);
    opacity: 0.25;
    margin: 0 0 210px 0;
    padding-top: 70px;
    -webkit-transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
}

.assistant .survey .question h1 {
    font-size: 5vw;
    font-weight: normal;
    text-transform: none;
    margin: 0;
    padding: 0;
}

.assistant .survey .question .comment {
    font-size: 3.5vw;
    margin: 0;
    padding: 0;
    opacity: 0.8;
}

.assistant .survey .question .options {
    display: flex;
    flex-flow: column nowrap;
}

.assistant .survey .question .options.in-columns {
    flex-flow: row wrap;
}

.assistant .survey .question .options .options-column {
    flex-grow: 1;
    padding: 1vw;
}

.assistant .survey .question .option {
    flex-grow: 1;
    font-size: 4vw;
    color: white;
    background: rgb(49, 74, 108);
    border: 1px solid #314a6c;
    border-radius: 4px;
    margin: 4px 0 4px 0;
    cursor: pointer;
    -webkit-transition: background .1s ease-in-out;
    -moz-transition: background .1s ease-in-out;
    -o-transition: background .1s ease-in-out;
    transition: background .1s ease-in-out;
}

.assistant .survey .question .option:HOVER {
    background: rgba(49, 74, 108, 0.7);
}

.assistant .survey .question .option .content {
    display: inline-block;
    padding: 1.5vw;
}

.assistant .survey .question .option .hint {
    padding: 2px 4px 2px 4px;
    background: #48769f;
    border: 1px solid #263b53;
    border-radius: 2px;
    margin-right: 10px;
    font-size: 3vw;
    font-weight: bold;
    color: rgba(49, 74, 108, 0.9);
}

.assistant .survey .question .option .tag {
    float: right;
    width: 8vw;
    height: 8vw;
    text-align: right;
    background-image: url(img/corner-check.svg);
    background-size: contain;
    background-repeat: no-repeat;
    color: white;
    visibility: hidden;
}

.assistant .survey .question .option.isimage {
    display: inline-block;
    margin-right: 15px;
}

.assistant .survey .question .option.isimage .content {
    display: block;
    float: left;
}

.assistant .survey .question .option.isimage .hintwrap {
    margin-top: 5px;
}

.assistant .survey .question .selected {
    background: #48769f;
}

.assistant .survey .question .selected .tag {
    visibility: visible;
}

.assistant .survey .question .editing .tag {
    visibility: hidden;
}

.assistant .survey .question .selected .hint {
    background: rgba(49, 74, 108, 0.61);
    color: rgba(255, 255, 255, 0.85);
}

.assistant .survey .question .optionFlicker {
   -webkit-animation: optionFlickerAnimation .25s infinite;
    animation: optionFlickerAnimation .25s infinite;
}

.assistant .survey .question .missing {
    position: relative;
    background: #990000;
    border: 2px solid #600000;
    border-radius: 4px;
    margin-top: 14px;
    color: white;
    font-weight: bold;
    padding: 1vw;
}
.assistant .survey .question .missing:after, .assistant .survey .question .missing:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.assistant .survey .question .missing:after {
    border-color: rgba(153, 0, 0, 0);
    border-bottom-color: #990000;
    border-width: 10px;
    margin-left: -10px;
}
.assistant .survey .question .missing:before {
    border-color: rgba(96, 0, 0, 0);
    border-bottom-color: #600000;
    border-width: 13px;
    margin-left: -13px;
}

/* hidden on the other questions, but keeping its space, so the questions do
   not move when another one becomes active */
.assistant .survey .question .skip {
    display: inline-flex;
    visibility: hidden;
    align-items: center;
    float: right;
    width: auto;
    height: auto;
    margin: 4px 0 0 0;
    padding: 4px 12px 4px 8px;
    font-size: 16px;
    background-color: rgba(49, 74, 108, 0.8);
}

.assistant .survey .question.active .skip {
    visibility: visible;
    cursor: pointer;
}

.assistant .survey .question.active .skip:hover {
    background-color: #314a6c;
}

.assistant .survey .question.active .skip .fa {
    margin-right: 6px;
}

/* line up with the options, which have the padding of their column */
.assistant .survey .question .options.in-columns ~ .skip-wrapper .skip {
    margin-right: 1vw;
}

/* the Next button of an answered question takes over */
.assistant .survey .question.active:has(.is-done) .skip {
    display: none;
}

.assistant .survey .question .is-done {
    color: #48769f;
    float: right;
}

.assistant .survey .question .question-is-done {
    width: 30vw;
    height: 11vw;
    color: #FFF;
    background: rgba(244, 67, 54, 0.7);
    border: 1px solid rgba(244, 67, 54, 1);
    margin-right: 1vw;
}

.assistant .survey .question .question-is-done:HOVER {
    background: rgba(244, 67, 54, 0.9);
}



.assistant .survey .active {
    filter: alpha(opacity = 100);
    opacity: 1.0;
}


.assistant .survey .submit {
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    margin-top: 140px;
    padding-bottom: 700px;

    -webkit-transition: margin 0.2s ease-in-out;
    -moz-transition: margin 0.2s ease-in-out;
    -ms-transition: margin 0.2s ease-in-out;
    -o-transition: margin 0.2s ease-in-out;
    transition: margin 0.2s ease-in-out;
}

.assistant .survey .submit.active {
    margin-top: 70px;
}


.assistant .disabled {
    display: none;
}

.assistant .button {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: rgba(49, 74, 108, 0.45);
    border-radius: 5px;
    margin-left: 5px;
    text-align: center;
    color: white;
}

.assistant .button.active:HOVER {
    background-color: rgba(49, 74, 108, 0.65);
    cursor: pointer;
}

@keyframes optionFlickerAnimation {
  0%   { opacity:1.0; }
  50%  { opacity:0.6; }
  100% { opacity:1.0; }
}
@-webkit-keyframes optionFlickerAnimation{
  0%   { opacity:1.0; }
  50%  { opacity:0.6; }
  100% { opacity:1.0; }
}

.assistant .survey .input-wrapper {
    position:relative;
    display: inline-block;
}

.assistant .survey .input-wrapper input {
    font-size: 4.5vw;
    padding: 2px;
    margin: 0;
    border: none;
    background: transparent;
    -webkit-appearance: none;
}

.assistant .survey .input-wrapper input:focus {
    border: none;
    outline: none;
}

.assistant .survey .input-wrapper.direct {
    display: block;
    margin: 5px 0 25px 0;
    width: 100%;
}

.assistant .survey .input-wrapper.direct input {
    border-bottom: 1px solid rgba(49, 74, 108, 0.45);
    width: 100%;
}

.assistant .survey .input-wrapper input::-webkit-input-placeholder {
  color: rgba(79, 176, 174, 0.6);
}
.assistant .survey .input-wrapper input::-moz-placeholder {
  color: rgba(79, 176, 174, 0.6);
}
.assistant .survey .input-wrapper input:-ms-input-placeholder {
  color: rgba(79, 176, 174, 0.6);
}
.assistant .survey .input-wrapper input:-moz-placeholder {
  color: rgba(79, 176, 174, 0.6);
}

.assistant .survey .input-wrapper .btn {
    padding: 0.8vw;
    margin: 0;
    font-size: 2vw;
}

.assistant .footer {
    z-index: 11;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.assistant .footer .content {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 2px 15px 2px 15px;
    color: #314a6c;
}

.assistant .footer .info {
    display: inline-block;
    min-width: 250px;
}

.assistant .footer .ctrl {
    display: inline-block;
    float: right;
    color: rgba(255, 255, 255, 0.8);
}

.assistant .footer .pctbar {
    height: 6px;
    position: relative;
    background: rgba(79, 176, 174, 0.2);
    border-radius: 5px;
}

.assistant .footer .pctbar > span {
    display: block;
    height: 100%;
    background-color: rgba(79, 176, 174, 0.4);
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.assistant .footer .ctrl .skip {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

.assistant .footer .ctrl .active {
    background-color: rgba(79, 176, 174, 0.8);
    cursor: pointer;
}

.assistant .footer .ctrl .active:HOVER {
    background-color: rgba(79, 176, 174, 1.0);
    cursor: pointer;
}

.assistant .sk-folding-cube {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.assistant .sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.assistant .sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.assistant .sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
    transform: scale(1.1) rotateZ(90deg);
}

.assistant .sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
    transform: scale(1.1) rotateZ(180deg);
}

.assistant .sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
    transform: scale(1.1) rotateZ(270deg);
}

.assistant .sk-folding-cube .sk-cube2:before {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.assistant .sk-folding-cube .sk-cube3:before {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.assistant .sk-folding-cube .sk-cube4:before {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

@keyframes sk-foldCubeAngle {
  0%, 10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
            transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  } 25%, 75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
            transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  } 90%, 100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
            transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-widget.ui-widget-content {
    border: none;
}

.ui-menu .ui-menu-item {
    margin-top: 5px;
    border: 1px solid #4FB0AE;
    border-radius: 4px;
    background-color: rgba(79, 176, 174, 0.1);
    font-size: 16px;
    transition: background 0.1s ease-in-out;
}

.ui-menu .ui-state-hover {
    background-color: rgba(79, 176, 174, 0.3);
    border: 1px solid #4FB0AE;
    border-radius: 4px;
    color: black;
}

.ui-menu .ui-state-focus {
    background-color: rgba(79, 176, 174, 0.3);
    border: 1px solid #4FB0AE;
    border-radius: 4px;
    color: black;
}

.ui-menu .ui-state-active {
    background-color: rgba(79, 176, 174, 0.3);
    border: 1px solid #4FB0AE;
    border-radius: 4px;
    color: black;
}

@media screen and (min-width: 700px) {
    .assistant {
        width: 75%;
    }

    .assistant .welcome, .assistant .finished {
        margin-top: 56px;
    }

    .assistant .welcome img, .assistant .welcome img {
        width: 70%;
    }

    .assistant p {
        font-size: 1.5vw;
        padding: 7px 0 7px 0;
    }

    .assistant .btn {
        padding: 4px 2vw;
        font-size: 4vw;
    }

    .assistant .btnComment {
        font-size: 2vw;
    }

    .assistant .survey .question {
        padding-top: 70px;
        margin-bottom: 210px;
    }

    .assistant .survey .question h1 {
        font-size: 3vw;
    }

    .assistant .survey .question .comment {
        font-size: 2vw;
    }

    .assistant .survey .question .options .options-column {
        padding: 0.5vw;
    }

    .assistant .survey .question .options.in-columns ~ .skip-wrapper .skip {
        margin-right: 0.5vw;
    }

    .assistant .survey .question .option {
        font-size: 2.5vw;
    }

    .assistant .survey .question .option .content {
        padding: 0.8vw;
    }

    .assistant .survey .question .option .hint {
        font-size: 2.5vw;
    }

    .assistant .survey .question .option .tag {
        width: 5vw;
        height: 5vw;
    }

    .assistant .survey .question .question-is-done {
        width: 20vw;
        height: 6vw;
        margin-right: 1vw;
        font-size: 3vw;
    }

    .assistant .survey .input-wrapper input {
        font-size: 2.5vw;
    }
}


@media screen and (min-width: 1024px) {
    .assistant {
        width: 60%;
    }

    .assistant .action {
        margin-top: 7px;
        margin-bottom: 70px;
    }

    .assistant .welcome, .assistant .finished {
        margin-top: 56px;
    }

    .assistant p {
        font-size: 1.3vw;
        padding: 7px 0 7px 0;
    }

    .assistant .btn {
        padding: 1px 2vw;
        font-size: 1.8vw;
    }

    .assistant .btnComment {
        display: inline-block;
        font-size: 1vw;
    }

    .assistant .survey .question {
        padding-top: 56px;
        margin-bottom: 140px;
    }

    .assistant .survey .question h1 {
        font-size: 2vw;
    }

    .assistant .survey .question .comment {
        font-size: 1vw;
    }

    .assistant .survey .question .options .options-column {
        padding: 0.2vw;
    }

    .assistant .survey .question .options.in-columns ~ .skip-wrapper .skip {
        margin-right: 0.2vw;
    }

    .assistant .survey .question .option {
        font-size: 1.5vw;
    }

    .assistant .survey .question .option .content {
        padding: 0.8vw;
    }

    .assistant .survey .question .option .hint {
        font-size: 1.5vw;
    }

    .assistant .survey .question .option .tag {
        width: 3vw;
        height: 3vw;
    }

    .assistant .survey .question .question-is-done {
        width: 11vw;
        height: 3.5vw;
        margin-right: 1vw;
        font-size: 1.5vw;
    }

    .assistant .survey .input-wrapper input {
        font-size: 2.5vw;
    }
}

/* typing on a phone: the browser may scroll the field to the top or the bottom
   of the little space above the keyboard, where the corner logo and the footer
   would cover it */
@media screen and (max-width: 1023px) {
    .assistant.typing #backLink,
    .assistant.typing .footer {
        display: none !important;
    }
}
