body {
    margin: 0;
    padding: 0;
    font-family: 'Balsamiq Sans', cursive;
    color: #810081;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-size: 1.1em;
}

.results {
    background: url('../img/background_bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
    color: #810081;
    display: none;
}

h2 {
    margin: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
    color: #810081;
}

h3 {
    text-align: start;
    color: #810081;
}

input, select {
    border: 2px solid #dd00ff;
    border-radius: 5px;
    padding: 5px;
    color: #810081;
    background-color: white;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #a800c2;
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23810081' d='M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

select option {
    background-color: white;
    color: #810081;
    padding: 5px;
    font-size: 16px;
}

.logoDiv {
    position: fixed;
    top: 0px;
    width: 100vw;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    align-items: center;
}

.logo {
    width: 30vh;
    height: auto;
    border-radius: 10px;
}

.header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-link {
    width: 100%;
    text-decoration: none;
    color: white;
    align-items: flex-start;
}

.headerContent {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: auto;
    height: 100%;
    justify-content: flex-start;
}

.headerContent h1 {
    font-size: 100px;
    margin-top: -25px;
}

.bodyContainer {
    max-width: 80vw;
    background-color: #ffffff;
    margin-top: 30vh;
    padding: 4vw;
    border-radius: 20px;
    border: 2px solid #810081;
    box-shadow: 0 0 10px 2px #0033ff88,
                0 0 20px 5px #ff078faa;
    z-index: 2;
}

.container {
    text-align: left;
    background-color: #ffffff;
    padding: 3vw;
    border-radius: 20px;
}

@keyframes clickAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.buttonDiv {
    width: 100%;
    text-align: center;
}

.button {
    height: 40px;
    width: 220px;
    padding: 8px;
    margin: 10px;
    border: none;
    border-radius: 30px;
    background-image: linear-gradient(to top, #0033ffaa 0%, #ff078faa 100%);
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block;
    outline: none;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button:active {
    animation: clickAnimation 0.4s ease forwards;
}

fieldset {
    border: 2px solid #810081;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

#questionsForm .inline-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80vw;
    margin: 0 auto;
    padding: 2vw 4vw;
}

@media (max-width: 480px) {
    #questionsForm .inline-options {
        flex-direction: column;
        gap: 1em;
        align-items: stretch;
    }
}

legend {
    color: #810081;
    font-weight: bold;
    padding: 0 5px;
}

label {
    color: #333;
    margin-bottom: 5px;
}

fieldset > div {
    margin-bottom: 5px;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #810081;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    outline: none;
}

input[type="radio"]:checked {
    background-color: #810081;
    border-color: #810081;
}

input[type="radio"]:focus {
    box-shadow: 0 0 0 2px #ff078f81;
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version */
}

#consent-banner {
    position: fixed;
    bottom: 0;
    right: 0;
    max-width: 380px;
    min-height: 200px;
    background-color: #810081bb;
    color: white;
    padding: 30px;
    margin: 4vw;
    text-align: center;
    z-index: 999;
    border: 3px solid #810081;
    border-radius: 30px;
}

#consent-banner button {
    margin: 20px 20px 0px;
    padding: 10px 20px;
    background-color: #a8d3a965;
    color: white;
    border: 1px solid;
    font-size: 1em;
    border-radius: 20px;
}

#consent-banner a {
    color: white;
    text-decoration: underline;
}

#accept:hover {
    background-color: #00d20765;
}

#decline:hover {
    background-color: #00d20765;
}

#privacy-policy {
    display: none;
    position: fixed;
    inset: 0;
    margin: auto;
    width: 80vw;
    height: 80vh;
    background: white;
    border: 3px solid #006400;
    border-radius: 30px;
    z-index: 1000;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    text-align: justify;
}

@media (max-width: 850px) {
    #privacy-policy {
        width: 95vw;
    }
}


#consent-banner-text {
    font-size: 0.95em;
    margin-bottom: 20px;
}

#privacy-policy-content {
    padding: 3%;
}

#privacy-policy button {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #a8d3a965;
    border: 1px solid;
    font-size: 1em;
    justify-self: center;
    border-radius: 20px;
}

#field_other_name,
#field_first_child_gender {
    display: none;
}

.footer {
    width: 100vw;
    margin: 20px;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
}

.facebook-content-bottom {
    display: flex;
    margin-bottom: 1vh;
    margin-right: min(5vw, 40px);
    margin-left: min(5vw, 40px);
    font-size: min(5vw, 24px);
    background-color: #3b5998;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    width: min(5vw, 40px);
    height: min(5vw, 40px);
    align-items: center;
    justify-content: center;
}

.facebook-content-bottom:hover {
    background-color: #333;
}

.rankingResults {
    display: flex;
    justify-self: center;
    text-align: center;
}

.rankingHeader {
    font-size: 0.8em;
}

.trendText {
    font-weight: bold;
    font-size: 0.8em;
}

.trendUp {
    color: green;
}

.trendDown {
    color: red;
}

.trendEqual {
    color: black;
}

.trendNew {
    color: #7900a9;
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover,
a:visited,
a:focus {
    color: inherit;
    text-decoration: underline;
}