@font-face {
    font-family: 'Stag';
    src: url('https://assets.ivox.be/projects/20220552/fonts/Stag/STAG-SEMIBOLD.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stag';
    src: url('https://assets.ivox.be/projects/20220552/fonts/Stag/STAG-MEDIUM.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stag';
    src: url('https://assets.ivox.be/projects/20220552/fonts/Stag/STAG-BOOK.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StagSans';
    src: url('https://assets.ivox.be/projects/20220552/fonts/StagSans/STAGSANS-MEDIUM.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StagSans';
    src: url('https://assets.ivox.be/projects/20220552/fonts/StagSans/STAGSANS-BOOK.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
/** Animations **/

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes rotateBackgroundReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateThemeForward {
    0% {
        rotate: 90deg;
    }

    100% {
        rotate: 0deg;
    }
}

@keyframes rotateThemeForwardGone {
    0% {
        rotate: 0deg;
    }

    100% {
        rotate: -90deg;
    }
}

@keyframes rotateThemeBackward {
    0% {
        rotate: -90deg;
    }

    100% {
        rotate: 0deg;
    }
}

@keyframes rotateThemeBackwardGone {
    0% {
        rotate: 0deg;
    }

    100% {
        rotate: 90deg;
    }
}

@keyframes customFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes customFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/** General **/

* {
    color-scheme: light only !important;
}

html,
input,
textarea,
select {
    font-family: 'Stag', serif;
    font-weight: 300;
}

button {
    font-family: 'StagSans', sans-serif;
    font-weight: 500;
}

body .app-init-logo img {
    max-width: 300px;
    max-height: 300px;
}

#app {
    height: auto;
    overflow: hidden;
    padding-bottom: 0;
    position: relative;
    min-height: 100%;
}

/* In een iframe meet valley iframe.js de hoogte van #app en past het iframe daarop aan.
   min-height: 100% is dan 100% van het iframe zelf: het iframe kan groeien maar nooit
   meer krimpen. Daarom daar geen minimumhoogte (klasse gezet in init.js). */
html.in-iframe #app,
html.in-iframe #content {
    min-height: 0 !important;
}

body#top #header-components {
    display: none;
}

body#top #components-container {
    max-width: 500px;
    margin: 10px auto 0;
    padding-top: 0;
    background: transparent;
    box-shadow: none;
}

body#top #progress-container {
    display: none;
}

body#top #header-container {
    padding-top: 10px;
}

#header-container .header-logo img {
    max-height: 250px;
    max-width: 300px;
}

body#top .components-content {
    width: 100%;
}

body#top .actions {
    justify-content: center;
    padding: 20px 25px;
    margin-top: 10px;
    z-index: 1;
}

body#top[page="zipcode"] .actions {
    margin-top: 75px;
}

body#top .actions .action {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    min-width: 300px;
    border: 1px solid #ff0000;
    color: #ff0000;
    background: transparent;
    padding: 15px 25px;
}

body#top .slider.disabled,
body#top .action.disabled {
    pointer-events: none;
}

body#top .actions .action.active {
    background: #ff0000;
    color: #ffffff;
}

body#top .actions .action>span {
    font-family: "StagSans", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

body#top .actions .action.next::after {
    display: none;
}

body#top .actions .action.active.next::after {
    display: none;
}

body#top .actions .action>span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "StagSans", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

body#top .actions .action.prev {
    display: none;
}

body#top .action.prev {
    display: flex;
    align-items: center;
    position: absolute;
    background: transparent;
    z-index: 999;
    left: 0;
    top: 10px;
    min-width: 0;
    border: none;
    color: black;
    padding: 0 0 0 10px;
}

body#top .action.prev:before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border: solid black;
    border-width: 0 0 2px 2px;
    transform: rotateZ(45deg);
}

body#top .action-skip {
    background: transparent;
    margin-top: 0;
}

body#top .action-skip a {
    font-family: 'StagSans', serif;
    color: black;
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
}

body#top .errors-question .error,
body#top .errors-question,
body#top .errors .error,
body#top .errors .error,
body#top .errors {
    margin: 15px 0 0;
}

body#top .errors .error,
body#top .errors-question .error {
    padding: 0;
    background: transparent;
    color: #ff0000;
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
}

.errors-question[top] .error::before,
.errors[top] .error::before {
    border-top-color: #ff0000;
}

.errors-question[bottom] .error::before,
.errors[bottom] .error::before {
    border-bottom-color: #ff0000;
}

#header-container .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header-container .header-logo>img {
    width: 250px;
    height: 100px;
    margin: 0 auto;
}

#header-container .header-logo>img.hidden {
    display: none;
}

#header-components {
    z-index: -1;
}

body#top [role="status"] {
    margin: 0 auto !important;
    color: black !important;
    width: 100px !important;
    background: transparent !important;
}

body#top .errors-question .error,
body#top .errors-question,
body#top .errors .error,
body#top .errors {
    background: #ff0000;
}

.errors .error,
.errors-question .error {
    background: #ff0000;
}

body#top .errors .error,
body#top .errors-question .error {
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/** Background **/

body#top #app-background {
    opacity: 0;
    transition: opacity 1s;
}

body#top #app-background #custom-background>svg>g {
    opacity: 0;
    transition: opacity 1s;
}

body#top #app-background #custom-background>svg>g#AARDE {
    opacity: 1;
}

body#top #app-background {
    position: absolute;
    overflow: hidden;
    transform: none;
    box-sizing: border-box;
}

body#top #app-background #custom-background>svg {
    display: block;
    width: 100%;
    max-width: 1500px;
    height: auto;
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

body#top #app-background #custom-background>svg #SKYLINES {
    transform-origin: center;
    transition: transform 2s;
}

body#top #app-background #custom-background>svg #natuur,
body#top #app-background #custom-background>svg #vogels {
    transform-origin: center;
}

/*body#top #app-background #custom-background > svg #natuur { animation: rotateBackground 100s linear infinite; }
body#top #app-background #custom-background > svg #vogels { animation: rotateBackground 100s linear infinite; }

body#top #app-background #custom-background.saved > svg #SKYLINES,
body#top #app-background #custom-background.saving > svg #SKYLINES { animation: rotateBackground 100s linear infinite; }
body#top #app-background #custom-background.saved > svg #natuur,
body#top #app-background #custom-background.saving > svg #natuur { animation: rotateBackgroundReverse 100s linear infinite; }
body#top #app-background #custom-background.saved > svg #vogels,
body#top #app-background #custom-background.saving > svg #vogels { animation: rotateBackgroundReverse 100s linear infinite; }*/


/** Components **/

#components-container h2 {
    margin-top: 0;
}

[content-title] h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

[content-text] h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

[open-text-box] label.input-text textarea {
    width: 100%;
    max-width: 400px;
    border: solid 2px var(--design-modules-borderColor-primary);
    font-weight: 300;
    background: white;
    border-radius: 5px;
}

label.input-text input[type] {
    width: 100%;
    padding: 15px 0;
    max-width: 400px;
    border: solid 1px var(--design-modules-borderColor-primary);
    font-weight: 300;
    background: white;
    border-radius: 5px;
}

label.input-text input[email]:placeholder-shown,
label.input-text input[type]:placeholder-shown,
label.input-text textarea:placeholder-shown {
    font-weight: 300;
}

/** ZIPCODE **/

#custom-zip-code {
    box-sizing: border-box;
}

#search-box-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#search-box-search-container input {
    text-transform: capitalize;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 10px 0;
    margin: 0;
    background: white;
    border: solid 1px #ff0000;
    height: 40px;
    flex: 1;
}

#search-box-search-container span {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background-color: #ff0000;
    cursor: pointer;
    background-image: url('https://assets.ivox.be/projects/20260489/assets/zipsearch.png?v=0.0.1');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px;
}

#search-box-autocomplete {
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
    border-bottom: none;
    text-align: left;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#search-box-autocomplete li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style-type: none;
    padding: 10px;
    border-bottom: solid 1px rgba(145, 145, 145, .4);
    cursor: pointer;
    box-sizing: border-box;
}

#search-box-autocomplete li:hover {
    border-bottom: solid 1px var(--design-modules-borderColor-primary);
}

#search-box-autocomplete li span {
    font-size: 1rem;
    color: black;
    text-transform: capitalize;
}

#search-box-autocomplete li span:nth-child(1) {
    flex: 1 0 auto;
    word-break: break-word;
}

#search-box-autocomplete li span:nth-child(2) {
    flex: 0 0 30px;
    font-weight: bold;
}

body#top #zip-sign {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

body#top #zip-sign>img {
    display: block;
    margin: 0;
    width: 100px;
    height: auto;
}

body#top #zip-sign.type-0>img {
    position: absolute;
    top: -37px;
    right: 50px;
    transform: rotate(-2deg);
}

body#top #zip-sign.type-1 .zip-sign-board img {
    width: 75%;
    height: auto;
    margin: 0 auto;
    transform: rotate(-2deg);
}

body#top #zip-sign .zip-sign-board {
    padding: 20px 50px;
    transform: rotate(2deg);
    width: auto;
    min-width: 250px;
    background: white;
    border: solid 2px black;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
}

body#top #zip-sign.type-0 .zip-sign-board {
    transform: rotate(0deg);
}

body#top #zip-sign.type-1 .zip-sign-board {
    width: 50%;
    padding: 30px 0 0 0;
    min-width: 100px;
}

body#top #zip-sign .zip-sign-board span {
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: capitalize;
}

body#top #zip-sign .zip-sign-pole {
    display: block;
    transform: rotate(2deg);
    margin: -30px auto 0;
    background: #D3D3D3;
    width: 15px;
    height: 90px;
    z-index: -1;
    border-bottom: none;
    border-top: none;
}

body#top #zip-sign .zip-sign-pole>svg {
    color: white;
    position: absolute;
    transform: rotate(-2deg);
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

body#top #zip-sign .zip-sign-pole>svg:nth-child(1) {
    left: -40px;
    bottom: -2px;
}

body#top #zip-sign .zip-sign-pole>svg:nth-child(2) {
    left: 8px;
    bottom: -1px;
}

body#top #zip-sign .zip-sign-pole:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: linear-gradient(to bottom, #909090 0%, #EBEBEB 100%);
}

body#top .header-logo #zip-sign {
    margin: 35px auto 15px;
}

body#top .header-logo #zip-sign .zip-sign-board {
    padding: 10px 25px;
}

body#top .header-logo #zip-sign .zip-sign-board span {
    font-size: 1.25rem;
}

body#top .header-logo #zip-sign .zip-sign-pole {
    height: 75px;
}

body#top .header-logo #zip-sign .zip-sign-pole>svg {
    color: #EBEBEB;
}

/** Pages **/

body[page="zipcode"]#top #zip-sign .zip-sign-pole>svg {
    display: none;
}

[page="zipcode"] .components-content .component:nth-child(1) {
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1.75rem;
}

[page="zipcode"] .components-content .component:nth-child(1) {
    margin: 0;
}

[page="result"] #custom-status,
[page="zipcode"] #custom-status {
    display: none;
}

[page="result"] .action.prev {
    display: none !important;
}

[page="result"] #components-container #custom-result,
[page="result"] #components-container #zip-sign {
    animation: customFadeIn 1000ms;
}

body#top #app-background #custom-background>svg .toAnimate {
    opacity: 0;
    animation-fill-mode: forwards;
    transform-origin: center;
    transition: opacity 1s;
}

body.ready[page="zipcode"]#top #app-background #custom-background>svg .toAnimate {
    animation: rotateBackgroundReverse 50s linear infinite;
}

[page="algo"] .action,
[page="algo"] .component {
    display: none !important;
}

@keyframes customSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Spinner op de Algo-pagina (zie pages/Algo.js) */
#custom-algo-spinner {
    order: 10;
    width: 48px;
    height: 48px;
    margin: 80px auto;
    box-sizing: border-box;
    border: solid 5px rgba(0, 0, 0, 0.1);
    border-top-color: #ee0000;
    border-radius: 50%;
    animation: customSpin 0.8s linear infinite;
}

[component-code="QGEMEENTE"],
[component-code="QSCORE"] {
    display: none !important;
}

/** Result **/

[component-code="R8"] {
    display: none !important;
}

body#top[page="result"] .red {
    color: #F00;
    font-weight: bold;
}

body#top[page="result"] .zip {
    text-transform: capitalize;
}

body#top[page="result"] h3 {
    font-size: 1.5rem;
    margin: 10px auto;
}

body#top[page="result"] #components-container,
body#top[page="result"] #content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-top: 0;
}

body#top[page="result"] #header-container {
    display: none;
}

body#top[page="result"] #app-background {
    top: 50px;
    height: 300px;
    opacity: 0;
    transition: opacity 0.5s;
}

body#top[page="result"].finished #app-background {
    opacity: 0.5;
}

body#top[page="result"] #app-background #custom-background:not(.saving) svg {
    width: 850px;
    height: 850px;
    left: 0;
    top: 0;
}

body#top[page="result"] [result-quiz] {
    display: none;
}

body#top[page="result"] #custom-result #zip-sign {
    margin: 0px auto 0;
    padding: 0;
}

body#top[page="result"] #zip-sign .zip-sign-board {
    display: flex;
    padding: 10px 50px;
    flex-direction: column;
    width: 100%;
    transform: rotate(0deg);
}

body#top[page="result"] #zip-sign .zip-sign-board img {
    max-width: 150px;
}

body#top[page="result"] #zip-sign .zip-sign-pole {
    margin-top: -40px;
    height: 95px;
    transform: rotate(0deg);
}

#custom-result-header {
    margin: 0 auto;
}

#custom-result-header img {
    max-width: 75px;
    height: auto;
}

#custom-result-header p {
    margin: 0;
}

#custom-result-header p:nth-child(2) {
    font-weight: bold;
    font-size: 1.5rem;
}

#custom-result-header p:nth-child(3) {
    text-align: right;
    margin-right: 20px;
}

body#top[page="result"] #custom-result>div {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: #F5F5F5;
    box-sizing: border-box;
}

body#top[page="result"] #custom-result>div>div {
    max-width: 250px;
    margin: 0 auto;
    padding: 25px 10px;
    box-sizing: border-box;
}

body#top[page="result"] #custom-result>div:nth-child(1) {
    background: transparent;
}

body#top[page="result"] #custom-result>div:nth-child(2) {
    height: 215px;
    background: linear-gradient(0deg, #FFF 0%, rgba(239, 239, 239, 0.00) 20%);
}

#custom-result-score-comparison {
    display: flex;
    position: relative;
    width: 230px;
    height: 200px;
    margin: 25px auto 56px;
    border-bottom: solid 1px black;
    align-items: flex-end;
    justify-content: flex-start;
}

#custom-result-score-comparison .comparison {
    display: flex;
    position: relative;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 60px;
}

#custom-result-score-comparison.no-previous {
    justify-content: flex-end;
}

#custom-result-score-comparison .comparison.previous {
    margin-right: 10px;
}

#custom-result-score-comparison .comparison.self {
    margin-right: 40px;
}

#custom-result-score-comparison .comparison p {
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap;
    text-align: center;
}

#custom-result-score-comparison .comparison p span:first-child {
    font-size: 1.5rem;
}

body#top[page="result"] #custom-result #custom-result-score-comparison .comparison p span:last-child {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
}

body#top[page="result"] #custom-result #custom-result-score-comparison .comparison>.year-label {
    display: block !important;
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 60px;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center;
}

#custom-result-score-comparison .comparison.previous p,
#custom-result-score-comparison .comparison.previous .year-label {
    color: #000033;
}

#custom-result-score-comparison .comparison.self p,
#custom-result-score-comparison .comparison.self .year-label {
    color: #f00;
}

#custom-result-score-comparison .comparison.other p {
    color: black;
}

#custom-result-score-comparison .comparison-bar {
    display: flex;
    height: 100%;
    width: 60px;
    margin: 0 auto;
    flex-direction: column;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

#custom-result-score-comparison .previous .comparison-bar {
    background: #000033;
}

#custom-result-score-comparison .self .comparison-bar {
    background: #F00;
}

#custom-result-score-comparison .other .comparison-bar {
    background: #E9E9E9;
}

#custom-result-score-comparison svg {
    position: absolute;
    right: -30px;
}

#custom-result-score-comparison>p:last-of-type {
    width: 130px;
    font-size: 0.9rem !important;
    position: absolute;
    right: -40px;
    bottom: -50px;
}

body#top[page="result"] #custom-result #custom-result-score .fusie-disclaimer {
    max-width: 365px;
    margin: 8px auto 0;
    text-align: center;
    font-size: 14px !important;
    line-height: 1.4;
    font-family: Arial, sans-serif !important;
}

#custom-result-score-comparison>img {
    width: 60px;
    height: auto;
    position: absolute;
    right: 52px;
    bottom: 0;
}

/* Verschil 2023-2026: gecentreerd tussen beide staven (2023: 0-60px, 2026: 70-130px),
   verticaal op 50% van de hoogste staaf (bottom wordt inline gezet). */
body#top[page="result"] #custom-result #custom-result-score-comparison .score-difference {
    position: absolute;
    left: 65px;
    z-index: 1;
    transform: translate(-50%, 50%);
    padding: 3px 6px;
    background: white;
    border: solid 1px black;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: black;
    white-space: nowrap;
}

/* Twee staven (bv. fusiegemeenten zonder 2023): staven vullen de grafiek. */
#custom-result-score-comparison.two-bars .comparison {
    flex: 0 0 92px;
}

#custom-result-score-comparison.two-bars .comparison.self {
    margin-right: 46px;
}

#custom-result-score-comparison.two-bars .comparison-bar {
    width: 100%;
}

body#top[page="result"] #custom-result #custom-result-score-comparison.two-bars .comparison>.year-label {
    width: 100%;
}

/* "Gemiddelde Vlaamse gemeente" gecentreerd onder de grijze staaf, die altijd rechts
   tegen de rand van de grafiek staat: midden = 30px (60px breed) of 46px (92px breed)
   van de rechterrand. */
body#top[page="result"] #custom-result #custom-result-score-comparison>p:last-of-type {
    right: 30px;
    transform: translateX(50%);
    text-align: center;
}

body#top[page="result"] #custom-result #custom-result-score-comparison.two-bars>p:last-of-type {
    right: 46px;
}

#custom-result-score-comparison.two-bars>img {
    right: 85px;
}

/* Fusiegemeenten: grijze achtergrond loopt door tot onder de disclaimer
   (extra.css zet de hoogte op 300px; de witte ranking eronder dekt de rest af). */
body#top[page="result"].result-fusie #app-background {
    height: 480px !important;
}

/* Te weinig deelnames (en Brussel): geen staven en geen rankingblok, enkel het Vlaamse
   gemiddelde. Grijze achtergrond van onder het bordje tot aan de thema's (die de rest afdekken). */
body#top[page="result"].result-average-only #app-background {
    top: 170px !important;
    height: 900px !important;
}

body#top[page="result"].result-average-only #custom-result>div:nth-child(2) {
    background: none;
}

body#top[page="result"] #custom-result #custom-result-score.average-only {
    padding-bottom: 40px;
}

body#top[page="result"] #custom-result #custom-result-themes>div {
    max-width: 100%;
    width: 100%;
    padding: 25px 0;
}

#themes-navigation {
    position: relative;
}

#themes-navigation #themes-navigation-scrollbar {
    display: flex;
    padding: 0 10px;
    align-items: flex-end;
    justify-content: space-between;
    overflow-x: scroll;
    overflow-y: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
}

#themes-navigation #themes-navigation-scrollbar::-webkit-scrollbar {
    display: none;
}

#themes-navigation #themes-navigation-scrollbar p {
    font-family: "StagSans", sans-serif;
    font-size: 0.9rem;
    flex: 1 0 auto;
    margin: 0 10px 0 0;
    background: #F5F5F5;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

#themes-navigation #themes-navigation-scrollbar p.active {
    background: #f00;
    color: white;
}

.theme-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: #8B8B8B;
    ;
    border-radius: 50%;
}

.theme-nav.active {
    background: #f00;
    cursor: pointer;
}

.theme-nav.back {
    left: 10px;
    bottom: 0;
    top: 0;
    margin: auto;
}

.theme-nav.forward {
    right: 10px;
    bottom: 0;
    top: 0;
    margin: auto;
}

/* Pijltjes staan in #themes-content (zie Result.js), verticaal op het midden van het rode
   scorevak: 10px padding + helft van het 53px hoge vak (stijl uit extra.css). Overschrijft
   de vaste top: 140px uit extra.css. */
#themes-content {
    position: relative;
}

body#top[page="result"] #themes-content .theme-nav.back,
body#top[page="result"] #themes-content .theme-nav.forward {
    top: 36.5px !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translateY(-50%);
    z-index: 1;
}

.theme-nav.back svg {
    margin-left: -3px;
}

.theme-nav.forward svg {
    margin-left: 1px;
}

#themes-content {
    display: flex;
    margin: 0 0 10px 0;
    padding: 10px 10px 0 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #F5F5F5;
    box-sizing: border-box;
}

#themes-content .theme-content {
    flex: 1;
    max-width: 400px;
    margin: 0 25px;
}

#themes-content .theme-content .theme-score {
    color: #f00;
    margin: 5px auto;
    font-size: 3rem;
}

#themes-content .theme-content .theme-score span {
    font-size: 2rem;
}

#themes-content .theme-content .theme-description {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: bold;
}

#themes-content .theme-content .theme-average strong {
    font-size: 1.25rem;
}

#themes-content .theme-content .theme-average strong span {
    font-size: 1rem;
}

.theme-content-img .border {
    display: none;
    border-bottom: solid 10px #f00;
    margin-top: -10px;
}

.theme-content-img img {
    width: auto;
    height: 100px;
}

.theme-veiligheid img {
    height: 125px;
}

.theme-proper img {
    height: 90px;
}

.theme-buurt img {
    height: 125px;
}

.theme-woningen img {
    height: 125px;
}

.theme-natuur img {
    height: 125px;
}

.theme-ov img {}

.theme-wegen img {
    height: 110px;
}

.theme-bestuur img {
    height: 125px;
}

body#top[page="result"] #custom-result #custom-result-themes-top-3 {
    background: white;
}

body#top[page="result"] #custom-result #custom-result-themes-top-3>div {
    max-width: 400px;
    width: 100%;
    padding: 0 20px;
}

#custom-result-themes-top-3 .zip {
    font-size: 1.5rem;
}

#custom-result-themes-top-3 .top-3-theme {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#custom-result-themes-top-3 .top-3-theme p {
    font-weight: bold;
    margin: 5px 0 5px 0;
}

#custom-result-themes-top-3 .top-3-theme .top-3-score-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #D9D9D9;
    height: 5px;
    width: 100%;
    margin-bottom: 20px;
}

#custom-result-themes-top-3 .top-3-theme .top-3-score-container .top-3-score {
    display: block;
    height: 100%;
    background: #f00;
}

body#top[page="result"] #custom-result #custom-result-disclaimer {
    background: transparent;
}

body#top[page="result"] #custom-result #custom-result-disclaimer>div {
    max-width: 400px;
    width: 100%;
    padding: 10px 20px;
}

body#top[page="result"] #custom-result #custom-result-disclaimer>div p {
    font-family: "StagSans", sans-serif;
    text-align: left;
    font-size: 0.8rem;
}

body#top[page="result"] #custom-result #custom-result-share {
    background: white;
}

body#top[page="result"] #custom-result #custom-result-share>div {
    display: flex;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

#custom-result-shares-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#custom-result-shares-container span {
    margin: 0 5px;
    cursor: pointer;
}

#custom-result-shares-container img {
    flex: 0 0 50px;
    height: 30px;
}

#custom-result-share-sign {
    display: none;
    flex: 1 1 30%;
    margin-right: 10%;
}

body#top #custom-result-share-sign #zip-sign .zip-sign-pole {
    z-index: 0
}

body#top #custom-result-share-sign #zip-sign .zip-sign-board {
    z-index: 1;
    padding: 10px 10px;
}

body#top #custom-result-share-sign #zip-sign .zip-sign-pole>svg {
    color: #F5F5F5;
}

#custom-result-share-shares {
    flex: 1;
}

#custom-result-ranking a,
#custom-result-other button {
    display: inline-block;
    font-family: "StagSans", sans-serif;
    background: #F00;
    color: white;
    margin-top: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    text-decoration: none;
}

#custom-result-ranking p {
    margin-bottom: 0;
    margin-top: 1rem;
}

body#top[page="result"] #custom-result #custom-result-ranking>div {
    max-width: 400px;
}

body#top[page="result"] #custom-result-other {
    order: 1;
    text-align: center;
    padding: 0 20px 2rem;
}

#custom-result-other button {
    border: none;
    font-size: inherit;
    cursor: pointer;
}

body#top[page="result"] #custom-result #custom-result-ranking h3 {
    margin: 0;
}

body#top[page="result"] #custom-result #custom-result-themes {
    background: transparent;
}

body#top[page="result"] #custom-result #custom-result-themes>div>h3 {
    padding: 0 25px;
    margin: 0 0 25px 0;
}

body#top[page="result"] #custom-result #custom-result-score {
    margin-top: -100px;
    background: transparent;
}

body#top[page="result"] #custom-result #custom-result-score>div {
    padding-top: 0;
}

body#top[page="result"] #custom-result #custom-result-score p {
    font-size: 1.25rem;
}

body#top[page="result"] #custom-result #custom-result-score>div>p.year-scores {
    display: flex !important;
    position: relative;
    transform: none !important;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    max-width: none !important;
    width: fit-content !important;
    margin: 8px auto 0 !important;
    background: #f00;
    color: white;
    padding: 8px 16px 6px !important;
    border-radius: 6px;
}

body#top[page="result"] #custom-result #custom-result-score>div>p.year-scores>span:nth-child(1) {
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

body#top[page="result"] #custom-result #custom-result-score>div>p.year-scores>span:nth-child(2) {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    margin: 0 0 4px 2px !important;
}

body#top[page="result"] #custom-result-intro>span:first-child {
    font-size: 1.25rem;
    font-weight: 300;
}

body#top[page="result"] #custom-result-intro>span:last-child {
    font-size: 1.5rem;
    font-weight: 300;
}

body#top[page="result"] #custom-result-themes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

body#top[page="result"] #custom-result-themes .theme {
    display: flex;
    width: 30%;
    flex: 0 0 30%;
    position: relative;
    flex-direction: column;
    color: black;
    padding: 10px;
    box-sizing: border-box;
}

body#top[page="result"] #custom-result-themes .theme img {
    display: block;
    height: 75px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

body#top[page="result"] #custom-result-themes .theme .count {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: -10px;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    border-radius: 50%;
    color: white;
    background: #ff0000;
}

body#top[page="result"] #custom-result-themes .theme .label {
    margin-top: 10px;
}

body#top[page="result"] #custom-result #custom-result-sliders {
    display: flex;
    margin-top: 0;
    flex-direction: column;
    align-items: center;
}

body#top[page="result"] .custom-result-slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 20px;
    border: solid 1px black;
    border-radius: 3px;
}

body#top[page="result"] .custom-result-slider-value {
    height: 100%;
    position: relative;
    transition: width 100ms;
}

body#top[page="result"] .lowest .custom-result-slider-value {
    background-color: #fe0000;
}

body#top[page="result"] .low .custom-result-slider-value {
    background-color: orange;
}

body#top[page="result"] .medium .custom-result-slider-value {
    background-color: #5fa98e;
}

body#top[page="result"] .high .custom-result-slider-value {
    background-color: green;
}

body#top[page="result"] .custom-result-slider-handle {
    position: absolute;
    right: -20px;
    top: -10px;
    bottom: 0;
}

body#top[page="result"] .custom-result-slider-handle img {
    width: 40px;
    height: auto;
}

body#top[page="result"] #custom-result-sliders>span {
    margin: 25px 0 0;
}

body#top[page="result"] #custom-result-sliders>h4 {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

body#top[page="result"] #custom-result>h3 {
    margin-top: 25px;
    font-weight: 300;
    font-size: 1rem;
}

body#top[page="result"] .component:last-of-type p:last-of-type {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    font-family: "StagSans", sans-serif;
    font-size: 0.9rem;
    padding: 0 10px 0;
    box-sizing: border-box;
}

body#top[page="result"] #custom-result #custom-result-background {
    position: absolute;
    bottom: -75px;
    z-index: -1;
    background: transparent;
    overflow: hidden;
}

body#top[page="result"] #custom-result #custom-result-background>div {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    height: 400px;
}

#custom-result-background svg {
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    height: auto;
    margin: 0 auto;
}

/* body#top[page="result"] .component:last-of-type { padding-top: 50px; } */
/* body#top[page="result"] .component:last-of-type img { width: 200px !important; } */

/** Animations **/

.custom-fade-in {
    animation: customFadeIn 500ms;
}

.custom-fade-out {
    animation: customFadeOut 500ms;
}

.component {
    animation: customFadeIn 1000ms;
}

/** Mobile **/

@media (min-width: 40em) {
    body#top #app-background #custom-background>svg {
        top: 20%;
    }
}

@media (max-width: 1200px) {
    body#top #app-background #custom-background>svg {
        width: 125%;
        left: -12.5%;
        right: 0;
    }
}

@media (max-width: 60em) {

    #custom-result-background svg,
    body#top[page="result"] #app-background #custom-background:not(.saving) svg {
        width: 150%;
        left: -25%;
    }

    .shared-closed-multiple ul.orientation-horizontal li .checkbox {
        padding: 5px;
    }

    [closed-multiple] .grid-4 .text img {
        max-width: 50px;
    }
}

@media (max-width: 40em) {

    body#top .actions .action {
        min-width: 200px;
    }

    #custom-result-background svg,
    body#top[page="result"] #app-background #custom-background:not(.saving) svg {
        width: 200%;
        left: -50%;
    }

    body#top .theme-layout-components-padding {
        padding: 50px 15px 50px 15px;
    }

    [page="zipcode"] .components-content .component:nth-child(1) {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    #custom-result-score-comparison>p:last-of-type {
        right: -50px;
    }

}

@media (max-width: 360px) {

    #custom-result-background svg,
    body#top[page="result"] #app-background #custom-background:not(.saving) svg {
        width: 250%;
        left: -75%;
    }
}