@import url('/assets/fonts/fonts.css');
@import url('/question_types/text/text.css');
@import url('/question_types/textarea/textarea.css');
@import url('/question_types/switch/switch.css');
@import url('/question_types/radio/radio.css');
@import url('/question_types/scale/scale.css');
@import url('/question_types/range/range.css');

@import url('./end.css');

:root{
    --vegetation: #62C78D;
    --mallard: #194A50;
    --lime: #E0DD68;
    --lilac: #B0A6DF;
    --sand: #EFEEB3;


    --body-medium: 18px;
    --body-large: 20px;
}

.topbar{
    position: fixed;
    top: 0;
    background-color: #fff;
    width: 100%;
    padding-inline: 4rem;
}
.sidebar{
    position: fixed;
    top: 20%; left: 0;
    rotate: -90deg;
    transform-origin: top left;
    transform: translate(-50%);
}
.topbar img{
    height: 3.5rem;
}
.sidebar img{
    height: 3.5rem;
}

body::before{
    content: '';
    /* width: 100%; */
    height: 100dvh;
    position: fixed;
    z-index: -1;
    pointer-events: none;
    background-image: url('/assets/bg_noise-min.png');
    opacity: .2;
}
body{
    /* background-image: linear-gradient(90deg, hsla(187, 45%, 26%, 0.5), hsla(129,28%,62%,0.25)),
                      url('/assets/bg_noise-min.png'); */
    background-image: linear-gradient(90deg, hsla(187, 45%, 26%, 0.5), hsla(129,28%,62%,0.25));
    background-color: #255B62;
    color: #fff;
    line-height: 1.5;
    font-family: 'IBM Plex Sans';
    margin: 0;

    height: 100vh;
    display: grid;
    align-items: center;
}
.main{
    /* display: flex; */
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.body_medium{
    font-size: var(--body-medium);
    line-height: 1.5;
}
.body_large{
    font-size: var(--body-large);
    line-height: 1.2;
}

section{
    max-width: 1200px;
    /* width: 100%; */
    margin-inline: auto;
    /* margin-block: auto; */
    padding-inline: 80px;

    display: flex; flex-direction: column;
    gap: 2rem;
}

section.intro{
    margin-bottom: 2rem;
}

section:last-child{
    margin-bottom: auto;
}

section.max_width--xlarge{
    margin-left: max(0px, calc((100vw - 1360px) / 2));
}

section.max_width--centered{
    margin-left: unset;
    margin-inline: auto;
}

h1{
    font-weight: 500;
    font-size: clamp(42px, 6.73vw,74px);
    line-height: 1.1;
    margin-bottom: 0;
    margin-top: 0;
}
h1 span{
    display: block;
    color: var(--lime);
}

h2{
    font-weight: 400;
    font-size: clamp(36px, 4.33vw, 52px);
    margin-block: 1.25rem 2rem;
}

.max_width{
    /* width: 100%; */
    max-width: 500px;
}
.max_width--large{
    /* width: 100%; */
    max-width: 750px;
}
.max_width--xlarge{
    /* width: 100%; */
    max-width: 900px;
}

.centered{
    text-align: center;
}
.button_wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
}
.button_wrapper--space-between{
    justify-content: space-between;
}

.button{
    display: block;
    width: fit-content;
    font-size: 1rem;
    text-decoration: none;
    padding: .5rem .5rem .5rem 1rem;
    border-radius: 3rem;
    color: var(--mallard);
    font-weight: 500;
    background-color: var(--lime);

    transition: background-color 300ms ease-in-out, color 300ms ease-in-out, border-color 300ms ease-in-out;
}
.button:hover{
    background-color: var(--mallard);
    color: #fff;
}
.button--white{
    background-color: #fff;
}
.button--white:hover{
    background-color: var(--lime);
    color: var(--mallard);

}

.button--outline{
    border: 1px solid var(--mallard);
    background-color: transparent;
}
.button--outline:hover{
    background-color: var(--lime);
    border-color: var(--lime);
    color: var(--mallard);
}

.button--flipped {
    padding: .5rem 1rem .5rem .5rem;
}

.button__text{
    display: grid;
    grid-template-areas: "text icon";
    gap: .75rem;
    align-items: center;
}

.button--flipped .button__text{
    grid-template-areas: "icon text";
}

.button__text::before{
    grid-area: icon;
    content: '';
    width: 2rem; height: 2rem;
    border-radius: 4rem;
    background-color: #fff;
}

.button--white .button__text::before{
    background-color: var(--mallard);
}

.button--outline .button__text::before{
    background-color: var(--mallard);
}

.button__text::after{
    grid-area: icon;
    place-self: center;
    content: '';
    width: .75rem; height: .75rem;
    background-color: var(--mallard);
    mask: url('/assets/arrow.svg') no-repeat center / contain;
    -webkit-mask: url('/assets/arrow.svg') no-repeat center / contain;
}

.button--flipped .button__text::after{
    transform: scaleX(-1);
}

.button--white .button__text::after{
    background-color: #fff;
}
.button--outline .button__text::after{
    background-color: var(--lime);
}


.progress_container{
    padding-inline: 100px;
	max-width: 1164px;
    /* width: 100%; */
    margin-inline: auto;
    margin-bottom: auto;
}
.progress_bar{
    height: .25rem;
    width: 100%;
    background-color: white;
    margin-block: 3rem;
    position: relative;
}
.progress_bar__inner{
    height: 100%;
    background-color: var(--lime);
    position: relative;
}
.progress_bar .current_percentage{
    position: absolute;
    top: 100%; left: 100%;
    transform: translate(-50%, 75%);
    font-weight: 600;
}

.progress_bar__inner::before{
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background-color: var(--mallard);
    border: 2px solid var(--lime);
    transform: translate(50%, -50%);
}

.progress_bar__inner::after{
    content: '';
    position: absolute;
    top: 50%; right: 0;
    transform: translate(50%, -50%);
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background-color: var(--lime);
}


.content_card{
    position: relative;
    isolation: isolate;
}

.content_card__wrapper{
    background-color: #fff;
    color: var(--mallard);
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.content_card__wrapper .card__header{
    padding-block: .5rem 1.5rem;
    border-bottom: 1px solid hsla(187, 52%, 21%, 0.25);
}

.content_card__wrapper .tip{
    display: flex;
    align-items: center; gap: .5rem;
    margin-bottom: 3rem;
}

.content_card__wrapper .tip::before{
    content: '';
    width: 1rem; height: 1rem;
    background-color: currentColor;
    mask: url('/assets/questionmark.svg') no-repeat center / contain;
    -webkit-mask: url('/assets/questionmark.svg') no-repeat center / contain;
}

.content_card--shadow::before{
    content: ''; z-index: -1;
    position: absolute;
    inset: 0;
    background-color: var(--vegetation);
    border-radius: 2.5rem;
    rotate: -2deg; transform-origin: center;
}



.question_form{
    margin-bottom: 1.5rem;
}

.question_form__wrapper{
    border-radius: 1rem;
    padding: 2rem;
    background-color: var(--mallard);
    display: grid;
    color: #fff;
}

.question_form__wrapper h3{
    font-weight: 500;
    font-size: 1.25rem;
    margin-block: 0 1.5rem;
}

.input_wrapper{
    position: relative;
    display: grid;
}

.input_wrapper--flex{
    display: flex; gap: 1rem;
    flex-wrap: wrap;
}

.question_form input,
.question_form textarea{
    font-size: 1rem;
}


@media only screen and (max-width: 992px){
    .content_card--shadow::before{
        rotate: -.5deg;
    }
}