@font-face {
    font-family: "exo";
    src: url("../fonts/Exo2-Regular.ttf");
}

/****************

    ERIC MEYER'S RESET

****************/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
    outline: 0;
}

body {
    line-height: 1.2;
    background: #fff;
    font-family: exo, sans-serif;
    color: #fff;
}

    body, body * {
        box-sizing: border-box;
    }
/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption, th, td {
    text-align: left;
    font-weight: normal;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}


/****************

    TEXT

****************/

h1 {
}

h2 {
}

h3 {
}

h4 {
}

h5 {
}

h6 {
}

p {
    padding-bottom: 20px;
}

/****************

    LINKS

****************/

a {
}

    a:hover {
    }

/****************

    IMAGES

****************/

img {
}

/****************

    LISTS

****************/

ul, ol, dl {
}

dt {
}

dd, li {
}

/****************

    TABLES

****************/

table {
}

thead, tbody, tfoot {
}

th, td {
}

/****************

    FORMS

****************/

fieldset {
}

legend {
}

select {
}

option {
}

label {
}

input, textarea {
}

.submit {
}


/*
usefull classes
*/
.clear {
    width: 100%;
    clear: both;
    height: 1%;
    font-size: 1px;
}

.imgleft {
    float: left;
    margin: 0 20px 20px 0;
}

.imgright {
    float: right;
    margin: 0 0 20px 20px;
}

/* background */
.gradient-background {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(62deg, #323b09, #403c50, #507bfd, #223c4d);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    z-index: -1;
}

@-webkit-keyframes gradient {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* end of background */

/* quiz */
.quiz {
    padding: 20px;
}

.title {
    font-size: 32px;
    text-align: center;
    line-height: 1.2;
    padding: 20px 0;
}

button {
    align-items: center;
    background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: exo, sans-serif;
    font-size: 18px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 19px 24px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    cursor: pointer;
    margin: 0 auto 20px auto;
}

    button.small {
        font-size: 12px;
        min-width: 80px;
        padding: 10px 16px;
    }

    button:active,
    button:hover {
        outline: 0;
    }

@media (min-width: 768px) {
    button {
        font-size: 24px;
        min-width: 196px;
    }
}

.quiz-left {
    width: 40px;
    position: fixed;
    left: 0;
    top: 20px;
    height: calc(100vh - 20px);
}

.quiz-right {
    width: 40px;
    position:fixed;
    top:20px;
    right:0;
    height:calc(100vh - 20px);
}

.quiz-middle {
    width: calc(100% - 50px);
    float: left;
    margin-left:25px;
    padding-left: 0;
    padding-right: 0;
}

#sustainability-bar-container, #cash-bar-container {
    width: 26px;
    border-radius: 4px;
    margin: 0 auto;
    height: calc(100vh - 40px);
    border: 1px solid #eee;
    position: relative;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sustainability-bar-fill, #cash-bar-fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: #34acff;
    z-index: 1;
    border-radius: 4px;
}

#cash-bar-fill {
    background-color: #FFC000;
}

#bar-text {
    position: absolute;
    transform: rotate(-90deg); /* Rotate text to be vertical */
    transform-origin: center; /* Ensure text rotates around its center */
    white-space: nowrap; /* Prevent text from wrapping */
    z-index: 2; /* Ensure text is above the fill */
    font-size: 14px; /* Adjust as needed */
    color: #000;
    /*opacity: 0.5;*/
}

::backdrop {
    background-image: linear-gradient( 45deg, #b0d501, #58546b, #507bfd, #75bbeb );
    opacity: 0.75;
}

dialog {
    border: 1px solid #ccc;
}

table {
    width: 100%;
    margin-bottom: 20px;
}

    table td {
        padding: 3px;
        font-size: 11px;
        border: 1px solid #ccc;
    }

.choice-text {
    text-align: center;
}

.intro {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
}

.quiz {
    display: none;
}

.intro img {
    max-width: 70%;
    margin: 0 auto;
}

.final-screen-eu, .eu-legal, .intro .eu-legal {
    font-size: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.survey-link {
    text-align: center;
}

.project-url, .survey-link {
    position: relative;
}

    .project-url a, .survey-link a {
        color: #fff;
        text-decoration: none;
    }

    .project-url img, .survey-link img {
        position: relative;
        height: 16px;
        width: 16px;
        margin-left: 10px;
        display: inline-block;
    }

button.img-btn {
    position: relative;
    padding-right: 50px;
}

    button.img-btn img {
        position: absolute;
        height: 50%;
        width: auto;
        right: 10px;
    }

.details-text {
    text-align: center;
}

.survey-link {
    display: none;
    margin-top: 40px;
    margin-bottom: 40px;
}


.income-text td, .balance-text td {
    border: 1px solid #507bfd;
    padding: 5px;
    color: #507bfd;
}

.income-text th, .balance-text th {
    font-weight: bold;
    padding: 5px;
    border: 1px solid #507bfd;
    color: #507bfd;
}

.income-text tr td:last-child, .balance-text tr td:last-child {
    text-align: right;
}

.left-part {
    width: 55%;
    float: left;
    font-size: 12px;
    padding: 10px;
    background: #424466;
    border-radius: 5px;
    line-height: 1.3;
}

.right-part {
    width: 44%;
    float: right;
}

    .right-part button {
        font-size: 14px;
        padding-left: 15px;
    }

.no-bottom-pad {
    padding-bottom: 0;
}

.fetched-balance-sheet th, .details-text th {
    font-weight: bold;
    padding: 5px;
    text-align: center;
    border: 1px solid #fff;
}

.balance-text th {
    text-align: center;
}

.final-score h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.final-score {
    text-align: center;
}

.final-screen-eu {
    display: none;
    padding-top: 50px;
    text-align: center;
}

    .final-screen-eu img {
        max-width: 70%;
        margin: 0 auto;
    }

.fetched-balance-sheet {
    border-radius: 10px;
    background-color: #554cf2;
    padding: 15px;
    margin-bottom: 20px;
}

.option-desc {
    border-radius: 10px;
    padding: 15px;
    background-color: #7d41f8;
    margin-top: 20px;
    margin-bottom: 20px;
}
