﻿body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

#main{
    padding-top: 100px;
    padding-bottom: 100px;
}

.card-title-background{
    height: 100px;
}

.card-action{
    margin-top: 30px;
}

#preloader .progress{
    margin-top: 0;    
    position: fixed;
    top: 0;
    z-index: 99999;
}

.view>*{
    opacity: 0;
    transition: opacity linear 0.1s;
}

.view.view-loaded>*{
    opacity: 1;
}

thead th, td{
    text-align: center;
}

tfoot td{
    text-align: left;
}

.card .card-content p{
    margin-bottom: 10px;
}

/* dialog */
#dialog-container{
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

#dialog-background{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
}

#dialog-container .row{
    margin-top: 30vh;
}

.dialog-card-action{
    height: 75px;
}

/* fonts */
th{
    font-size: 13px;
}

td{
    font-size: 13px;
}

.survey-title, .card-title.survey-title, h1{
    font-size: 34px;
    font-weight: 400;
}

.content-title, h2{
    font-size: 20px;
    font-weight: 500;
}

.content-text, h4{
    font-size: 14px;
}

.question-text, h3{
    font-size: 15px;
}

.question-description-text, h5{
    font-size: 14px;
}

.option-text, h6{
    font-size: initial;
}


html{
    background-color: white;
    height: 101vh;
}

.card-title-background{
    background-color: #20264b;
}

.btn {
    background-color: #004478;
    border-radius: 0;
    box-shadow: none;
}

.btn.btn-flat{
    background-color: rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #9cceea;
    box-shadow: none;
}

.btn.btn-flat:hover{
    background-color: rgba(0, 0, 0, 0.05);
}

.btn:not(.btn-flat):focus {
    background-color: #004478;
}

/* overrides the default türkis color */
input:not([type]):focus:not([readonly])+label, 
input[type=text]:focus:not([readonly])+label, 
input[type=password]:focus:not([readonly])+label, 
input[type=email]:focus:not([readonly])+label, 
input[type=url]:focus:not([readonly])+label, 
input[type=time]:focus:not([readonly])+label, 
input[type=date]:focus:not([readonly])+label, 
input[type=datetime]:focus:not([readonly])+label, 
input[type=datetime-local]:focus:not([readonly])+label, 
input[type=tel]:focus:not([readonly])+label, 
input[type=number]:focus:not([readonly])+label, 
input[type=search]:focus:not([readonly])+label, 
textarea.materialize-textarea:focus:not([readonly])+label{
    color:#2e519f;
}

input:not([type]):focus:not([readonly]), 
input[type=text]:focus:not([readonly]), 
input[type=password]:focus:not([readonly]), 
input[type=email]:focus:not([readonly]), 
input[type=url]:focus:not([readonly]), 
input[type=time]:focus:not([readonly]), 
input[type=date]:focus:not([readonly]), 
input[type=datetime]:focus:not([readonly]), 
input[type=datetime-local]:focus:not([readonly]), 
input[type=tel]:focus:not([readonly]), 
input[type=number]:focus:not([readonly]), 
input[type=search]:focus:not([readonly]),
textarea.materialize-textarea:focus:not([readonly]){
    border-bottom: 1px solid #2e519f;
    box-shadow: 0 1px 0 0 #2e519f;
}

[type="checkbox"]:checked+label:before{
    border-right: 2px solid #2e519f;
    border-bottom: 2px solid #2e519f;
}

.chips.focus{
    border-bottom: 1px solid #2e519f;
    box-shadow: 0 1px 0 0 #2e519f;
}

.chips .chip.selected{
    background-color: #2e519f;
}

.dropdown-content li>a, 
.dropdown-content li>span{
    color: #2e519f;
}

[type="radio"]:checked+label:after, 
[type="radio"].with-gap:checked+label:after{
    background-color:#2e519f;
}

[type="radio"]:checked+label:after, 
[type="radio"].with-gap:checked+label:before, 
[type="radio"].with-gap:checked+label:after{
    border: 2px solid #2e519f;
}

/* material select list */
.select-wrapper input.select-dropdown.valid{
    border-bottom: 1px solid #4CAF50;
}

.select-wrapper input.select-dropdown.invalid{
    border-bottom: 1px solid #F44336;
}


/* irs */
span.irs-single{
    background-color: #4e72b7;
}

.irs-single:after{
    border-top-color: #4e72b7;
}

.irs-bar-edge{
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.irs-line{
    border-radius: 5px;
}

/* img-corners */
.img-corner {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
}

.img-corner-top-left {
    top: 0;
    left: 0;
    width: 30%;
}

.img-corner-top-right {
    top: 0;
    right: 0;
    width: 60%;
}

.img-corner-bottom-right {
    bottom: 0;
    right: 0;
    width: 30%;
}

/* likert-slider */
.question-likert-slider div.row {
    background-color: #eaf1f5;
    border: 5px solid #eaf1f5;
    padding: 10px;
}

.question-likert-slider .question-likert-slider-title {
    font-weight: 700;
    text-align: center;
    color: #203f5e;
    height: 30px;
    margin: 30px 0 10px 0;
}

.question-likert-slider  {
    transition: all ease 0.3s;
}

.question-likert-slider .question-likert-slider-title p {
    text-align: center;
}

.question-likert-slider:hover .question-likert-slider-title {
    color: #298bc9;
    font-size: medium;
    height: 30px;
}

.question-likert-slider:hover div.row {
    background-color: white;
    border: 5px solid #ff9a36;
}

.question-likert-slider div.row p{
    text-align: center;
    margin: 0;
}

.question-likert-slider:hover .question-likert-slider-sentence {
    display: block;
    line-height: 30px;
}

.question-likert-slider-sentence {
    display: none;
    position: relative;
    width: 100%;
    text-align: center;
}

.question-likert-slider-sentence p {
    position: absolute;
    left: 50%;
    top: -30px
}

.question-likert-slider-sentence span {
    position: relative;
    left: -50%;
    font-weight: 700;
    padding: 5px 20px;
    background-color: white;
}

.question-likert-slider-label {
    color: #b3b7bd;
    font-weight: 700;
}

.question-likert-slider.invalid:not(:hover) div.row{
    border-color: red;
}

/* default proress */
.default-progress span {
    height: 36px;
    display: inline-block;
}

.default-progress .progress-not-visited {
    background-color: #9cceea;
}

.default-progress .progress-active {
    background-color: #004478;
}

.default-progress .progress-visited {
    background-color: #3b6f97;
}

/* question likert slider radio */
.question-likert-slider [type="radio"]:not(:checked) + label,
.question-likert-slider [type="radio"]:checked + label {
    padding-left: 0;
    padding: 10px;
    line-height: normal;
    height: unset;
    width: 100%;
    border: 4px solid rgba(0, 0, 0, 0);
    color: #444;
    font-weight: 500;
}

.question-likert-slider [type="radio"]:not(:checked) + label:before, 
.question-likert-slider [type="radio"]:not(:checked) + label:after {
    border: none;
}

.question-likert-slider [type="radio"] + label:before,
.question-likert-slider [type="radio"] + label:after {
    content: none;
}

.question-likert-slider [type="radio"]:checked + label {
    color: #004478;
    font-weight: 700;
    background-color: white;
    border-color: #004478;
}

/* radio */
[type="radio"]:not(:checked) + label:hover,
[type="radio"]:checked + label:hover {
    color: #3b9ed5;
    font-weight: 700;
}

[type="radio"]:checked + label {
    color: #3b9ed5;
    font-weight: 700;
}

[type="radio"]:checked + label:after, [type="radio"].with-gap:checked + label:after {
    border-color: #3b6f97;
    background-color: #3b6f97;
}

.question-text {
    font-weight: 700;
    font-size: 1.01em
}

/* content */
/* link-button */
.link-button{
    margin-top: 30px;
}

/* custom css */
.margin-bottom-40{
    margin-bottom: 40px;
}

#gateway-logo {
    width: 257px;
    height: 48px;
    display: block;
    overflow: hidden;
}

/* tooltipped */
.tooltipped.tooltipped-info{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2196f3;
    color: white;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/* slider-with-info */
tr.slider-with-info-disabled .slider-with-info-slider{ 
    opacity: 0.5;
}

tr.slider-with-info-disabled:hover .slider-with-info-slider{
    opacity: 0.7;
}

.slider-with-info-ka, .slider-with-info-selected-value{
    background-color: gray;
    color: lightgray;
    padding: 5px;
    display: inline-block;
    width: 35px;
}

.lever{
    display: none;
}

tr.slider-with-info-disabled .slider-with-info-ka, tr:not(.slider-with-info-disabled) .slider-with-info-selected-value{
    font-weight: 700;
    background-color: #2196f3;
    color: white;
}

.material-tooltip{
    width: 500px;
}