@font-face {
    font-family: 'Kaushan Script';
    src: url('/fonts/KaushanScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.6)), url("/images/bg-image.jpg") no-repeat center center fixed;
    background-size: 100% 100%;
    animation: fadeIn 2s ease-in forwards;
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#survey-container {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.screen {
    display: none;
    padding: 3vw;
}

.screen.active {
    display: block;
}

button {
    font-family: Work Sans;
    color: rgb(255, 215, 100);
    background-color: rgba(255, 215, 100, 0.2);
    font-size: 4vw;
    padding: 2vw 9vw;
    border-radius: 2vw;
    border-width: .4vw;
    border-color: rgb(255, 215, 100);
    border-style: solid;
    box-shadow: rgba(0, 0, 0, 0) 0px 2px 4px 0px;
    line-height: 4vw;
    --outline-color: rgba(255, 215, 100, 1);
}

button:hover {
    font-family: Work Sans;
    color: rgb(255, 215, 100);
    background-color: rgba(255, 215, 100, 0.2);
    border-color: rgb(255, 215, 100);
    --outline-color: rgba(255, 215, 100, 1);
}

button:disabled {
    background-color: rgba(255, 215, 100, 0.2);
    cursor: not-allowed;
}

.choice {
    background-color: #ffffff28;
    color: #fff;
    /* font-size: 3vw; */
    min-height: 5vh;
    border-color: #fff;
    width: 80vw;
    text-align: left;
    padding: 1vw 3vw;
    margin-bottom: 2vh;
    border-width: .4vw;
    display: flex;
    align-items: center;
    border-style: solid;
    border-radius: 2vw;
    display: flex;
    justify-content: space-between;
}

.choice input {
    margin-right: 1vw;
    transform: scale(1.5);
    accent-color: rgb(255, 215, 100);
}

.choice.selected {
    color: rgb(255, 215, 100);
    background-color: rgba(255, 215, 100, 0.2);
    border-color: rgb(255, 215, 100);
    --outline-color: rgba(255, 215, 100, 1);
    font-weight: bold;
}

.choices {
    display: flex;
    align-items: center;
    flex-direction: column;
}

input[type="checkbox" i]{
    height:2vw;
    width:2vw;
}

input[type="radio" i]{
    display:none;
}

h1 {
    font-size: 11vw;
    font-family: Kaushan Script;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1;
}

h2 {
    font-size: 6vw;
    font-family: Kaushan Script;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 3vh;
    line-height: 1.1;
    padding-left: 3vw;
    padding-right: 3vw;
}

hr {
    width: 40vw;
    background-color: #fff;
    height: 0.1vw;
    margin-top: 1vw;
    margin-bottom: 2vw;
}

#logo {
    width: 70vw;
    border-radius: 2%;
}

#start-header {
    padding: 0 2vw 0 2vw;
}

#start-subheading {
    font-size: 4vw;
    padding: 0 10vw 0 10vw;
    color: #d6d6d7;
    font-family: Work Sans;
    font-weight: 600;
}

#survey-container {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#survey-container.fade-out {
    opacity: 0;
}

#survey-container.fade-in {
    opacity: 1;
}

p{
    font-size:4vw;
    padding: 0 2vw;
}

.animal-image {
    margin-top:5vh;
    margin-bottom:2vh;
    width: 50vw; 
    height: 50vw;
    border-radius: 50%; 
    object-fit: cover;
}

.outcome-subtext{
    font-size:3vw;
}

.cree-heading{
    margin-bottom:1vh;
}

body.outcome-active {
    align-items: flex-start;
    overflow-y: auto;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: .5vh;
    background-color: rgb(255, 215, 100);
    z-index: 1000;
    transition: width 0.3s ease;
}

#overall-report {
    margin-top: 6vh;
    text-align: center;
}

#overall-report h2 {
    font-size: 6em;
    margin-bottom: 10px;
}

#report-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
}

.report-bar {
    width: 80%;
    background: #fff;
    border-radius: 6vw;
    overflow: hidden;
    position: relative;
    height: 6vw;
}

.report-bar span {
    font-family: Kaushan Script;
    font-size: 3vw;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #000;
    z-index: 2;
    font-weight:600;
}

.report-bar .fill {
    height: 100%;
    background-color: rgb(255, 215, 100);
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 6vw;
}

#exit-button {
    background-color:#00000052;
    border-color:#000000;
    color:#fff;
    margin-top:5vh;
    padding: 1vw 5vw;
}
.footer-spacer {
    min-height:40vh;
}

/* Better default container behavior */
#survey-container {
    width: min(92vw, 1200px);
    /* max-height: 100vh; */
}

/* Desktop / laptop layout */
@media (min-width: 768px) {
    body {
        align-items: center;
        overflow-y: auto;
    }

    .screen {
        padding: clamp(24px, 3vw, 48px);
    }

    #logo {
        width: min(42vw, 420px);
    }

    h1 {
        font-size: clamp(48px, 3.5vw, 82px);
    }

    h2 {
        font-size: clamp(34px, 2.2vw, 56px);
        margin-bottom: 24px;
    }

    p,
    #start-subheading {
        font-size: clamp(18px, 1.6vw, 26px);
        line-height: 1.35;
    }

    button {
        font-size: clamp(20px, 1.8vw, 30px);
        line-height: 1.1;
        padding: 16px 56px;
        border-radius: 18px;
        border-width: 3px;
    }

    .choice {
        width: min(80vw, 760px);
        font-size: clamp(14px, 1vw, 18px);
        padding: 10px 12px;
        margin-bottom: 14px;
        border-radius: 18px;
        border-width: 3px;
        min-height: auto;
    }

    input[type="checkbox" i] {
        width: 12px;
        height: 12px;
    }

    hr {
        width: min(40vw, 360px);
        height: 1px;
        margin: 16px auto 24px;
    }

    .animal-image {
        width: min(28vw, 260px);
        height: min(28vw, 260px);
        margin-top: 24px;
    }

    .outcome-subtext {
        font-size: clamp(16px, 1.3vw, 21px);
        line-height: 1.45;
    }

    #overall-report h2 {
        font-size: clamp(32px, 3vw, 54px);
    }

    .report-bar {
        width: min(80%, 720px);
        height: 42px;
        border-radius: 999px;
    }

    .report-bar span {
        font-size: 22px;
    }

    #report-bars {
        gap: 14px;
    }

    .footer-spacer {
        min-height: 10vh;
    }
}

/* Smaller landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        overflow-y: auto;
    }

    .screen {
        padding: 18px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    button,
    .choice,
    p,
    #start-subheading {
        font-size: 18px;
    }

    #logo {
        width: 260px;
    }
}

body.outcome-active #survey-container {
    max-height: none;
    overflow: visible;
    padding-bottom: 60px;
}

body.outcome-active .screen {
    padding-top: 24px;
}

body.outcome-active .animal-image {
    width: min(22vw, 180px);
    height: min(22vw, 180px);
    margin-top: 12px;
    margin-bottom: 12px;
}

body.outcome-active h2 {
    margin-bottom: 12px;
}

body.outcome-active p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body.outcome-active #overall-report {
    margin-top: 28px;
}