
* {
    box-sizing: border-box;
}
.no-double-tap-zoom {
    touch-action: manipulation;
}

::selection {
    background: #34355f;
    color: #fff;
}


html {
    background: #dfe1f3;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    background: #fff;
    font-family: "Baloo Paaji 2", Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    color: #34355f;
    position: relative;
}
.blue-background {
    background: #dfe1f3 !important;
}
#below-page-background {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
    height: 500px;
    top: calc(100vh - 200px);
    z-index: 1;
}
#below-page-background.light-blue {
    background: #eef0fb !important;
}


.relative {
    position: relative;
}


.page {
    width: 100%;
    min-height: calc(100vh - 129px);
    background: #ffffff;
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ----------------------------------------------------
    Header
---------------------------------------------------- */

.header {
    background: #dfe1f3;
    position: relative;
    padding: 13px 15px 0;
}
.header-curvature {
    border-bottom-left-radius: 50% 12%;
    border-bottom-right-radius: 50% 12%;
}
.header:not(.header-curvature) {
    padding: 13px 15px 23px;
    height: calc(100vh - 198px);
    overflow: auto;
}


.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 909px;
    margin: 0 auto;
}


#header-logo {
    height: 36px;
}


#header-logo-a {
    text-decoration: none;
    padding: 7px;
    height: 36px;
    box-sizing: content-box;
    -webkit-tap-highlight-color: transparent;
}



#header-left-outer {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}
#header-logo-outer, #hamburger-menu-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
#survey-title-header {
    margin-left: 11px;
    font-weight: 700;
    font-size: 13px;
    color: #2637b8;
    max-width: 185px;
    line-height: 1;
}
#survey-title-header.none {
    display: none;
}
#about-header-desktop-link {
    text-decoration: none;
}
#hamburger-menu-closed,
#hamburger-menu-open {
    height: 22px;
    width: auto;
    padding: 7px;
    box-sizing: content-box;
    cursor: pointer;
}    
#hamburger-menu-open {
    display: none;
    transform: translateX(-4.45px);
}
#about-header-desktop-link.none {
    display: none;
}

/* ---------------------------------------------------------
Mobile menu overlay
--------------------------------------------------------- */

#mobile-menu-outer {
    display:none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #975252;
    top: 75px;
    height: calc(100vh - 75px);
    }
    
    .mobile-menu-overlay.is-open {
    display: block;
    }
    
    .mobile-menu-inner {
    position: relative;
    
    width: 100%;
    min-height: 100vh;
    
    padding: 26px 32px 30px;
    
    background: #dfe1f3;
    
    color: #2637b8;
    
    border-bottom-left-radius: 55% 5%;
    border-bottom-right-radius: 15% 3%;
    
    }

    #mobile-menu-survey-name {
        font-weight: 700;
        font-size:19px;
        line-height: 1.2;
        padding-bottom: 14px;
        margin-bottom: 19px;
        position: relative;
        text-decoration: none;
        display: block;
        color: inherit;
    }
    #mobile-menu-survey-name::after {
        content: "";
        display: block;
        width: 20%;
        height: 2px;
        background: #2637b8;
        position: absolute;
        bottom: 0;
        left: 0;
    }
    #mobile-menu-survey-name:empty::after {
        display: none;
    }

    .mobile-menu-ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    .mobile-menu-li {
        padding: 6px 0;
        -webkit-tap-highlight-color: #c8cbe8;
    }
    .mobile-menu-a {
        color: #2637b8;
    font-weight: 800;
    text-decoration: none;
    font-size: 21px;
    -webkit-tap-highlight-color: #c8cbe8;
    display: block;
    }
    
    /* ---------------------------------------------------------
    Close button
    --------------------------------------------------------- */
    
    .mobile-menu-close {
    position: absolute;
    top: 27px;
    right: 31px;
    
    width: 34px;
    height: 34px;
    
    border: 0;
    background: transparent;
    cursor: pointer;
    
    }
    
    .mobile-menu-close span {
    position: absolute;
    top: 15px;
    left: 3px;
    
    width: 28px;
    height: 4px;
    
    background: #2637b8;
    border-radius: 3px;
    
    }
    
    .mobile-menu-close span {
    transform: rotate(45deg);
    }
    
    .mobile-menu-close span {
    transform: rotate(-45deg);
    }


.page-title {
    font-size: 23px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #34355f;
    margin: 33px 18px 51px;
    text-align: center;
}


/* ----------------------------------------------------
    Main
---------------------------------------------------- */

.main {
    flex: 1;
    padding: 0 18px 100px;
    position: relative;
    width: 98%;
    max-width: 504px;
    margin: 0 auto;
}


.start-button {
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    margin: -37px auto 34px;
    text-decoration: none;
    border: 0;
    border-radius: 12px;

    background: #20b77f;
    -webkit-tap-highlight-color: transparent;
    color: #123f36;

    padding: 12px 20px 13px;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    box-shadow: none;
}


.start-button:hover, .start-button:active {
    background: #27c48a;
}


.start-title {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}


.start-time {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
}


.consent {
    margin: 0 auto;
    width: calc(100% - 32px);
    color: #34355f;
    font-size: 15px;
    line-height: 1.4;
}


.consent a {
    color: #34355f;
    font-weight: 700;
    text-decoration: underline;
}


#long-text-meta-container {
    font-size: 17px;
    margin-top: 56px;
    line-height: 1.5;
}
/* ----------------------------------------------------
    Footer
---------------------------------------------------- */

.footer {
    margin: 0 auto 31px;
    width: 100%;
    max-width: 909px;
    padding: 0 48px 18px;
    color: #858585;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.footer a {
    color: #777777;
    font-weight: 700;
    text-decoration: none;
    margin-right: 19px;
}
.footer a:last-child {
    margin-right: 0;
}


.heart {
    font-size: 13px;
}




/* upper progress */

#progress-upper {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 4px;
    background: #272eb1;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

/* ---------------------------------------------------------
Main card
--------------------------------------------------------- */

.voting-card {
    width: 100%;
    max-width: 604px;
    margin: 0 auto;    
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    position: relative;
    }
    #voting-card.loading {
        opacity: 0.5;
        user-select: none;
        pointer-events: none;
    }
    
    /* ---------------------------------------------------------
    Blue upper area
    --------------------------------------------------------- */
    
    .voting-header {
    position: relative;
    
    min-height: 555px;
    
    
    padding: 28px 36px 48px;
    
    
    background: #dfe1f4;
    
    
    border-bottom-left-radius: 52px;
    border-bottom-right-radius: 50% 30px;
    
    }


    
    
    /* ---------------------------------------------------------
    Question
    --------------------------------------------------------- */
    
    .question-area {
        max-width: 604px;
        margin: 56px auto;
        position: relative;
    }
    
    .section-label {
    margin: 0 26px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #777db2;
    line-height: 1.2;
    }
    
    .question-title {
    margin: 0 26px 22px;
    
    font-size: 25px;
    line-height: 1.2;
    
    
    font-weight: 800;
    
    
    letter-spacing: -0.5px;
    
    
    color: #3a3d6e;
    
    }
    
    .question-text {
    margin: 0 26px;
    
    font-size: 17px;
    line-height: 1.55;
    
    
    font-weight: 400;
    
    
    color: #414572;
    
    }
    
    /* ---------------------------------------------------------
    Vote buttons
    --------------------------------------------------------- */
    
    .vote-buttons {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    }

    .vote-button {
        flex: 1;
        min-height: 54px;
        border: none;
        /*2px solid #fff;*/
        border-radius: 12px;
        font-family: inherit;
        font-size: 19px;
        font-weight: 700;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .vote-button-voted {
        height: 13px;
        width: auto;
        position: absolute;
        top: 50%;
        left: 100%;
        margin-left: 8px;
        transform: translateY(-50%);
        display: none;
    }
    .vote-button-span {
        position: relative;
        pointer-events: none;
        user-select: none;
    }
    
    .remove-button {
    background: #d1685d;
    color: #753d3b;
    }
    .remove-button > .vote-button-span > .vote-button-voted > .vote-button-voted-path {
        fill: #753d3b
    }
    .remove-button.not-chosen {
        color: #af6563;
        background: rgba(209, 104, 93, 0.4) !important;
        backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    }
    .remove-button.chosen > .vote-button-span > .vote-button-voted {
        display: inline-block;
    }
    .remove-button:hover, .remove-button.chosen {
    background: #d97267;
    }
    
    .keep-button {
    background: #20b77f;
    color: #124c40;
    }
    .keep-button > .vote-button-span > .vote-button-voted > .vote-button-voted-path {
        fill: #124c40
    }
    .keep-button.not-chosen {
        color: #388172;
        background: rgba(32, 183, 127, 0.4) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .keep-button.chosen > .vote-button-span > .vote-button-voted {
        display: inline-block;
    }
    .keep-button:hover, .keep-button.chosen {
    background: #27c48a;
    }


    
    /* ---------------------------------------------------------
    Feedback
    --------------------------------------------------------- */

    #response-outer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #eef0fb;
        padding:0;
        margin:0;
        z-index: 2;
    }
    #response-curvature {
            border-bottom-left-radius: 50% 30%;
            border-bottom-right-radius: 50% 30%;
            height: 41px;
            background: #dfe1f3;
        
    }
    #response-inner {
        margin: -30px auto 0;
        padding: 0 13px 5px;
        max-width: 500px;
    }
    
    .feedback-field {
        width: calc(100% - 0px);
        min-height: 77px;
        margin: 19px auto 6px;
        padding: 9px;
        outline: none;
        border: 2px solid #fff;
        border-radius: 13px;
        background: #fff;
        color: inherit;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        overflow: hidden;
        resize: none;
        font-family: inherit;
        line-height: 1.2;
        display: block;
    }
    textarea:focus::placeholder {
        color: #6e6f96;
    }
    
    /* ---------------------------------------------------------
    Side navigation
    --------------------------------------------------------- */
    
    .question-nav {
    position: fixed;
    top: 148px;
    width: 30px;
    height: 54px;
    padding: 0;
    border: 0;
    background-color: #E9EAF5;
    color: #adb0c7;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    -webkit-tap-highlight-color: transparent;
    }
    .question-nav:hover {
        background-color: #eeeff8;
    }
    .question-nav.loading {
        background-color: #d0d1df;
    }
    .question-nav-svg {
        height: 15px;
        width: auto;
        pointer-events: none;
        user-select: none;
    }
    .question-nav-svg.rotated {
        transform: rotate(180deg);
    }
    
    .question-nav-left {
    left: 0;
    
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    
    }
    
    .question-nav-right {
    right: 0;
    
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    
    }
    
    /* ---------------------------------------------------------
    Bottom progress
    --------------------------------------------------------- */
    
    .progress-footer {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        font-size: 12px;
        color: #777db2;
        margin-top: 9px;
    }
    
    .progress-footer strong {
    margin-right: 3px;
    
    font-weight: 700;
    
    }





/* ----------------------------------------------------
    Desktop
---------------------------------------------------- */

@media (min-width: 600px) {

    .page {
        min-height: 100vh;
    }

    .header {
        padding: 21px 15px 0;
    }

    #about-header-desktop-link {
        display: inline-block;
        font-weight: 700;
        color: #272eb1;
    }

    #hamburger-menu-closed, #hamburger-menu-open {
        display: none;
    }

    .page-title {
        font-size: 33px;
        margin: 52px 18px 50px;
    }

    .start-button {
        margin: -22px auto 34px;
    }

}

@media (min-width: 800px) {
    .blue-background {
        background: #eef0fb !important;
    }

    #response-outer {
        position: relative;
        top: auto;
        left: auto;
    }

    .header:not(.header-curvature) {
        padding: 13px 0 0;
        height: auto;
    }

    .voting-card {
        max-width: none;

    }

    .question-area {
        margin: 92px auto 56px;
    }

    .question-nav {
        position: absolute;
        border-radius: 7px;
        top: 96px !important;
    }
    .question-nav-left {
        left: -40px;
    }
    .question-nav-right {
        right: -40px;
    }

    .question-text {
        font-size: 18px;
    }
}


/* ----------------------------------------------------
    Small screens
---------------------------------------------------- */

@media (max-width: 600px) {

    #survey-title-header {
        display: none;
    }

    #about-header-desktop-link {
        display: none;
    }

    .header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hamburger-menu-button { display: flex; }


    .main {
        padding-left: 34px;
        padding-right: 34px;
    }


    .start-button {
        width: 100%;
    }

    .consent {
        width: 100%;
    }


    .footer {
        padding-left: 34px;
        padding-right: 34px;
    }

    #footer-desktop-contact-link {
        display: none;
    }

    .voting-page {
        padding: 0;
    }
    
    
    .voting-card {
        min-height: 0;
    }

}
