/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

@font-face {
    font-family: "Gothic 821 Condensed";
    src: url("fonts/Gothic821StdCondensed.woff2") format("woff2");
}

/* space-grotesk-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/space-grotesk-v22-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/space-grotesk-v22-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/space-grotesk-v22-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/space-grotesk-v22-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}





body    {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background: #aFaFaF; */
    background: #F5F5F5;
    font-family: Space Grotesk;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

main    {
    width: 100%;
    max-width: calc(650/16 * 1rem);
    min-height: 100vh;
    background: #fff;
}

.img-100 {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 2em auto !important;
}

.img-90 {
    max-width: 90%;
    display: block;
    margin: 2em auto !important;
}

.img-80 {
    max-width: 80%;
    display: block;
    margin: 3em auto !important;
}

.climate-types-figure   {
    max-width: 80%;
    margin: 3em auto !important;
    display: block;
    position: relative;

    img {
        display: block;
    }
}

.climate-type-link  {
    position: absolute;
    cursor: pointer;

    &[data-type="1"]  {
        bottom: 1%;
        left: 15%;
        height: 38%;
        width: 31%;
    }

    &[data-type="2"]  {
        bottom: 1%;
        left: 52%;
        height: 38%;
        width: 42%;
    }

    &[data-type="3"]  {
        bottom: 39%;
        left: 4%;
        height: 33%;
        width: 31%;
    }

    &[data-type="4"]  {
        bottom: 39%;
        left: 66%;
        height: 38%;
        width: 32%;
    }

    &[data-type="5"]  {
        top: 1%;
        left: 35%;
        height: 38%;
        width: 31%;
    }
}

#climate-info   {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(#fffa, #000a);;
    padding: calc(10/16 * 1.5rem);
    margin-top: 0 !important;
    justify-content: center;
    align-items: center;
    z-index: 20;

    display: flex;
    &:not(.open)    {
        display: none;
    }

    .climate-info-close  {
        text-decoration: none;
    }

    .climate-type-info   {

        background: #F1F1F1;
        padding: calc(10/16 * 1.5rem);

        width: 100%;
        max-width:  calc(650/16 * 1rem - 2*(10/16 * 1.5rem));
        max-height: calc(100% - 2*(10/16 * 1.5rem));
        overflow-y: auto;

        margin-top: 0 !important;

        display: none;
        flex-direction: column;

        align-items: flex-start;

        > * + * {
            margin-top: calc(10/16 * 1.5rem);
        }
    }

    .climate-type-icon  {
        display: block;
        width: 100%;
        max-width: 220px;
    }

    &[data-type="1"] .climate-type-info[data-type="1"] { display: flex; }
    &[data-type="2"] .climate-type-info[data-type="2"] { display: flex; }
    &[data-type="3"] .climate-type-info[data-type="3"] { display: flex; }
    &[data-type="4"] .climate-type-info[data-type="4"] { display: flex; }
    &[data-type="5"] .climate-type-info[data-type="5"] { display: flex; }
}

@media (max-width: 37.5rem) {
    .img-80 {
        max-width: 90%;
        margin: 2em auto !important;
    }
}

.img-60 {
    max-width: 60%;
    display: block;
    margin: 2em auto !important;
}

section:not(.landing) {

    padding: calc(20/16 * 1rem);
    display: flex;
    flex-direction: column;

    > * + * {
        margin-top: calc(10/16 * 1.5rem);
    }
}

.accordeon {

    margin-top: 2em !important;

    .accordeon-content {

        padding-top: calc(10/16 * 1.5rem);

        display: flex;
        flex-direction: column;

        > * + * {
            margin-top: calc(10/16 * 1.5rem);
        }
    }

    .accordeon-title:not(.open) + .accordeon-content    {
        display: none;
    }

    .accordeon-title:not(.open) .expander-close {
        display: none;
    }

    .accordeon-title.open .expander-open {
        display: none;
    }

    .accordeon-title    {
        cursor: pointer;
    }
}

section.alternate   {
    background: #fff;
}
section.alternate:nth-child(odd)   {
    background: #f2f2f2;
}


a.landing {

    display: block;
    position: relative;
    overflow: hidden;

    .landing-gradient   {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75%;
        background: linear-gradient(175deg, rgba(0, 85, 164, 0.00) 18.77%, rgba(0, 85, 164, 0.34) 38.41%, rgba(0, 85, 164, 0.50) 51.87%, rgba(233, 71, 147, 0.50) 90%);
        pointer-events: none;
    }

    .landing-label  {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: calc(20/16 * 1rem);
        pointer-events: none;

        span    {
            display: block;
        }

        span:nth-child(1)   {
            color: white;
        }

        span:nth-child(2)  {
            color: #FEDD13;
        }
    }
}

a.landing  {
    background: linear-gradient(177.56deg, #F5F5F5 -0.35%, #EFEFEF 55.29%);
}

section.gradient    {
    background: linear-gradient(333.14deg, #E0E0E0 4.24%, #FFFFFF 94.84%);

}

section.intro   {
    background: #F1F1F1;
}

section.white   {  
    background: #fff;
}

section.gray    {
    background: #F1F1F1;
}

.intro  {
    a[href] {
        color: inherit;
        text-decoration: underline;
        &:hover {
          /*   color: #009FE3; */
        }
    }
}

h1  {
    font-family: "Gothic 821 Condensed", sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
}

h2  {
    font-family: "Gothic 821 Condensed", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;

    background: linear-gradient(90.74deg, #E94793 0%, #0055A4 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;

    align-self: flex-start;
    display: inline-block;
}

h3, strong  {
    font-family: "Gothic 821 Condensed", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
}
p + h3  {
    margin-top: 1.5em !important;
}

.progress-bar   {
    border: 2px white solid;
    border-radius: 25px;
    min-height: calc(41/16 * 1rem);
    margin: 2em 0 2em 0 !important;
    position: relative;
    overflow: hidden;
    background: white;
    --progress: 0;

    .progress-label {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .progress-fill  {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        border-radius: 25px;
        background: linear-gradient(90deg, rgba(0, 85, 164, 0.75) 0%, rgba(0, 159, 227, 0.75) 100%);
        width: calc(var(--progress)/14 * 100%);
        transition: width 200ms linear;
    }
    
}

.progress-hint  {
    margin-bottom: 2em;
    margin-top: -1.0em !important;

    &.state-2   {
        display: none;
    }
}

.section-icon   {
    display: block;
    width: calc(43/16 * 1rem);
}

#submit-votes   {

    &.state-1   {
        color: #666;
        cursor: not-allowed;

        opacity: 0.5;

        &:hover {
            background: #ddd !important;
        }
    }

    &.state-2   {
        cursor: pointer;
    }
}

.vote   {

    margin-left: 1em;

    .vote-label-pre {
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .vote-label-post    {
        font-weight: 600;
        margin-top: 1rem;
    }

    .vote-options   {
        display: flex;
        flex-direction: column;

        label   {
            display: block;
            width: 100%;
        }

        > *:not(:first-child)   {
            margin-top: 1rem;
        }

        .vote-option    {
            display: flex;
            align-items: center;
            position: relative;
            padding-left: calc(30/16 * 1rem);

            .vote-circle    {
                width: calc(20/16 * 1rem);
                height: calc(20/16 * 1rem);
                border-radius: 50%;
                border: 2px gray solid;
                position: absolute;
                left: 0;
                display: flex;
                align-items: center;
                justify-content: center;

                &::before   {
                    content: '';
                    background-color: transparent;
                    width: calc(100% - 4px);
                    height: calc(100% - 4px);
                    border-radius: 50%;
                }
            }

            input:checked + label {

                color: #009FE3;

                .vote-circle    {
                    border-color: #009FE3;

                    &::before   {
                        background-color: #009FE3;
                    }
                }
            }

            label:hover {
                .vote-circle    {
                    border-color: #009FE3;
                }
            }

            label {
                cursor: pointer;
            }

            input    {
                display: none;
            }
        }
    }
}

.nav    {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
    margin-bottom: 6em;
}

.nav-button {
    font-weight: 700;
    background: white;
    color: black;
    text-align: center;
    text-decoration: none;
    
    white-space: nowrap;
    min-width: 120px;
    cursor: pointer;
    padding-top: 17px;
    padding-right: 20px;
    padding-bottom: 17px;
    padding-left: 20px;
    border-radius: 50px;
    border: none;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

    &:hover {
        background: #009FE3;
        color: #fff;
    }
}


footer  {

    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3em;


    display: grid;
    align-items: start;

    padding: calc(20/16 * 3rem);
    grid-gap: calc(20/16 * 2rem) calc(20/16 * 3rem);
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "fgz data" "links links";

    .fgz-risc   {
        grid-area: fgz;
    }

    .fgz-risc-data  {
        grid-area: data;
    }

    .link-list {
        grid-area: links;
    }


    .link-list  {

        display: flex;
        flex-direction: column;
        align-items: center;

        a   {
            color: black;
            text-decoration: none;
        }
    }

    img, svg {
        display: block;
        width: 100%;
        max-width: 440px;
    }

}

@media (max-width: 37.5rem) {
    footer  {
        padding: calc(20/16 * 4rem);
        grid-gap: calc(20/16 * 2rem);
        grid-template-columns: 2fr;
        grid-template-areas: "fgz" "data" "links";
    }

    .link-list {
        margin-top: 1em;
    }
}


.is-question    {

    position: relative;
    &::before   {
        content: '';
        position: absolute;
        right: 0;
        top: 5px;
        height: calc(100% - 10px);
        width: 0.4rem;
        background: linear-gradient(0deg, #E94793 0%, #0055A4 100%);
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        opacity: 0; /* opacity: 0; */
        transition: width 200ms ease-out, opacity 200ms ease-out, height 200ms ease-out;
    }

    &:not(.answered)::before    {
        opacity: 0;
        width: 0;
        height: 0;
    }

    &:nth-child(odd)::before    {
        background: linear-gradient(180deg, #E94793 0%, #0055A4 100%);
    }
}


/* dark mode */
@media (prefers-color-scheme: daddrk) {

    body    {
        background: #1F1F1F;
        color: #ddd;
    }


    .section-icon   {
        filter: invert(1);
    }

    .progress-bar   {
        border: 2px #ddd solid;
        background: black;

        .progress-fill  {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            border-radius: 25px;
            background: linear-gradient(90deg, rgba(0, 85, 164, 0.45) 0%, rgba(0, 159, 227, 0.45) 100%);
        }
        
    }

    a.landing  {
        background: linear-gradient(177.56deg, #0a0a0a -0.35%, #101010 55.29%);
    }

    section.gradient    {
        background: linear-gradient(333.14deg, #101010 4.24%, #000 94.84%);

    }

    section.intro   {
        background: #0e0e0e;
    }

    section.white   {  
        background: #000;
    }

    section.gray    {
        background: #101010;
    }

    section.alternate   {
        background: #000;
    }
    section.alternate:nth-child(odd)   {
        background: #101010;
    }


    .nav-button {
        background-color: #ddd;
    }

    h3  {
        color: #eEcD03;
    }

    
    footer  {

        background: #000;

        .link-list  {
            a   {
                color: #ddd;
            }
        }
    }

    .intro  {
        a[href] {
            &:hover {
             /*   color: #eEcD03; */
            }
        }
    }
    
    #climate-info   {
        background: radial-gradient(#666a, #000a);

        .nav-button {
            color: black;
            &:hover {
                 color: white;
            }
        }

        .climate-type-info  {
            background: linear-gradient(333.14deg, #101010 4.24%, #000 94.84%);
            color: #ddd;
        }
    }

    footer .fgz-risc-data    {
        background: #fff;
        border-radius: 3px;
        padding: 2em;
    }
    
}