﻿@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400');

:root {
    --primary-color: #38A65F;
    --button-color: #38A65F;
    --button-hover-color: #008b8b;
    --secondary-color: #fe890a;
    --background-color: white;
    --text-color: black;
    --hover-color: #FEDDA5;
    --hover-link-color: #1d84df;
    --active-color: #FEC48C;
    --font-family: 'Quicksand', sans-serif;
    --font-size: 14px;
    --header-color: #38A65F;
    --selected-link-color: #1d84df;
    --smiley-content: "🙂";
    --variable-range-selector-offset: 300px;
}


* {
    box-sizing: border-box;
    font-family: 'Quicksand';
    font-size: var(--font-size);
}

.no-scroll {
    overflow: hidden;
    /*position: fixed;*/
    width: 100%;
    height: 100vh;
}

.disable-zoom {
    touch-action: manipulation;
}

body {
    margin: 0;
    background: linear-gradient(132deg, rgb(227, 244, 253) 0.00%, rgb(170, 209, 226) 100.00%);
    background-size: 100%;
    height: 100vh;
}

data-fetcher {
    display: none;
}


.card {
    height: 100%;
    margin: 0 auto;
}

.binary-question {
    width: 25px;
    height: 25px;
}

button, .button, .terms {
    cursor: pointer;
    background-color: var(--button-color);
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    caret-color: transparent;
    border-radius: 8px;
    box-shadow: 0px 9px 15px -11px rgba(88,54,114,1);
}

.terms {
    background-color: var(--button-hover-color);
}

.light-button {
    margin-top: 20px;
    background-color: var(--button-hover-color);
}

#previous,
#next {
    color: black;
    background-color: transparent;
    padding: 0px;
    /*width: 65px;*/
    display: flex;
}

    #previous > i,
    #next > i {
        font-size: 30px;
    }

#previous {
    bottom: 50px;
    text-align: right;
}

#next {
    bottom: 50px;
    text-align: left;
}

#bottom-action {
    position: absolute;
    width: 100%;
    bottom: 100px;
    display: flex;
    align-items: center;
}

#submit-answers {
    width: 200px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.visible-slide {
    display: initial;
}

.hidden {
    display: none !important;
}

.hidden-opaque {
    opacity: 0;
}

.slide {
    display: block;
    opacity: 0;
    position: absolute;
    transition: all 500ms linear;
    transition: 0.5s;
    padding: 40px;
    padding-top: 0px;
    padding-bottom: 0px;
    z-index: 0;
    width: 100%
}


.visible-slide-right {
    display: block;
    opacity: 1;
    animation: slide-in-right 0.5s ease-in;
    z-index: 1;
}

.visible-slide-left {
    display: block;
    opacity: 1;
    animation: slide-in-left 0.5s ease-in;
    z-index: 1;
}

.exit-left {
    position: absolute;
    animation: slide-out-left 0.5s ease-in;
}

.exit-right {
    position: absolute;
    animation: slide-out-right 0.5s ease-in;
}

@keyframes slide-in-right {
    0% {
        display: none;
        opacity: 0;
        transform: translateX(100%);
    }


    50% {
        opacity: 1;
    }


    100% {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slide-in-left {
    0% {
        display: none;
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
    }

    100% {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slide-out-left {
    0% {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    30% {
        opacity: 0;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
        display: none;
    }
}

@keyframes slide-out-right {
    0% {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    30% {
        opacity: 0;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
        display: none;
    }
}

.question-list {
    height: 100%;
}

    .question-list > h1 {
        font-size: 25px;
        text-align: center;
        padding: 20px;
        padding-bottom: 0px;
        margin-bottom: 0px;
        font-size: min(4vw, 30px);
    }
    .question-list > h2 {
        font-size: 20px;
        margin-top: 5px;
        text-align: center;
        font-weight: normal;
        font-size: min(3vw, 20px);
    }

        .question-list > li {
            list-style-type: none;
        }


#bullets {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 50px;
    width: 100%;
    align-items: center;
}

.bullet {
    background-color: white;
    border: 1px solid #38A65F;
    caret-color: transparent;
    margin: 4px;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    cursor: pointer;
}

.active-bullet {
    width: 25px;
    height: 25px;
}

header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    font-size: 15px;
    color: black;
    height: 75px;
    margin: 0 auto;
}

.logo-header > h1 {
    font-size: 30px;
    margin: 0px;
}

.logo-header > img {
    width: 48px;
    height: 48px;
}

header > img {
    margin-left: 10px;
}

.logo-header {
    display: flex;
    margin-left: 10px;
    align-items: center;
}

    .logo-header > h1 {
        margin-left: 10px;
    }


footer {
    position: fixed;
    bottom: 0;
    width: 100vw;
    padding: 9px;
    text-align: center;
    border-top: 1px solid grey;
    background-color: white;
    color: black;
}

.question {
    display: grid;
    width: 100%;
}

    .question > .one-to-five, .question > .one-to-seven, .question > .custom-question-types {
        justify-self: center;
        display: grid;
        grid-template-columns: 1fr;
    }

        .question > .one-to-five > *, .question > .one-to-seven > *, .question > .custom-question-types > * {
            cursor: pointer;
            padding: 5px;
            margin: 10px;
        }

    .question > input, .question > range-selector {
        cursor: pointer;
        width: 80px;
        justify-self: center;
    }

    .question > h2 {
        margin-top: 0px;
        font-weight: normal;
        cursor: pointer;
        text-align: center;
    }

        .question > h2 > label {
            font-size: 16px;
        }

#actions {
    padding-right: 20px;
}

#logout, #install-prompt, #install-prompt-ios, #notify-button {
    background-color: transparent;
    padding: 0px;
    margin: 10px;
    box-shadow: none;
}

#actions > button:hover,
#actions > button:hover > svg {
    color: var(--active-color);
}

#actions i {
    font-size: 2em;
}

.checkbox-wrapper > label {
    font-size: 22px;
    cursor: pointer;
}

.info-card {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin: 30px;
}

    .info-card .title {
        font-size: 30px;
        text-align: center;
        color: black;
        text-transform: uppercase;
    }

    .info-card .card-body {
        margin-top: 20px;
        margin-bottom: 20px;
    }


#remember-me-description {
    font-style: italic;
    font-size: 0.8em;
}

#login-image {
    padding-right: 10px;
    padding-top: 15px;
    width: 100%;
}

.image-detail {
    display: grid;
    grid-template-columns: 3fr 6fr;
}

#login-actions {
}

#button-right {
    display: flex;
    justify-content: end;
}

/*@media (min-width:1024px) {
    #wrapper {
        width: 750px;
        margin: 0 auto;
    }

    .info-card {
        padding: 40px;
        padding-bottom: 20px;
        margin: 50px;*/
/*background-color: var(--primary-color);*/
/*border: 1px solid var(--header-color);
        color: black;
    }
}*/

/* Checkbox */
.checkbox-wrapperx {
    margin: 10px;
}
.checkbox-wrapperx input {
    width: 30px;
    height: 30px;
}
/* Checkbox */

.slider {
    touch-action: none;
    caret-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: calc(100dvh - var(--variable-range-selector-offset));
    border: 1px solid #b2b2b2;
    /*background-image: linear-gradient(to right, red, yellow, green);*/
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
    text-align: center;
}

@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */
    .slider {
        height: calc(100vh - 425px);
    }
}

.slider:before {
    content: var(--smiley-content);
    color: transparent;
    font-size: 30px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 5px;
    height: 25px;
    background: black;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: white;
    border: 1px solid black;
    cursor: pointer;
}

.success-message {
    background-color: #0cbb8b;
    border: 1px solid #0b9e73;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

    .success-message h2 {
        font-size: 24px;
        color: #fff;
    }

    .success-message p {
        font-size: 18px;
        margin-bottom: 0;
        color: #fff;
    }

.error-message {
    background-color: #ff7f7f;
    border: 1px solid #ff5c5c;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

    .error-message h2 {
        font-size: 24px;
        color: #fff;
    }

    .error-message p {
        font-size: 18px;
        margin-bottom: 0;
        color: #fff;
    }
/* Confirm dialog*/

#confirm-dialog {
    text-align: center;
    background-color: white;
    border: 1px solid black;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

#confirm-message {
    font-size: 16px;
    margin-bottom: 20px;
}

#confirm-ok {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
}

#confirm-cancel {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
}


/* Confirm dialog*/

#loading-screen {
}

#loader-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /*border: 1px solid grey;*/
}

    #loader-inner > .content {
        padding: 20px;
        min-width: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #loader-inner .close-button {
        padding: 10px;
        align-self: end;
    }

.close-button {
    font-size: 20px;
    color: #3498db;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 10px;
    caret-color: transparent;
}


.loader-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #3498db;
    border-top-color: transparent;
    animation: loader-rotate 1s linear infinite;
}

.loader-text {
    margin-top: 10px;
    font-size: 20px;
    color: #3498db;
    font-weight: bold;
}

@keyframes loader-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Icons */

button > svg {
    color: black;
    fill: currentColor;
    width: 28px;
    height: 28px;
}

#bullets > button > svg {
    color: black;
}

#lock-ui {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1000;
}

.show {
    display: initial !important;
}

#questionnaire-selector {
    padding: 10px;
}

#wrapper {
    padding-bottom: 20px;
}

#add-to-homescreen-dialog #directions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}
#add-to-homescreen-dialog #directions h2{
    text-align: center;
    font-size: 30px;
}

#neuwell-login {
    padding: 30px;
    
}

#remember-me-button {
    margin-top: 20px;
}

#retry {
    background-color: var(--active-color);
    margin-right: 20px;
}

.margin-top {
    margin-top: 20px;
}