:root {
    --orange: #e3cca3;
    --orange-active: #884A4A;
    --dark-gray: 220, 203, 181;
    --light-beige: 243, 235, 226;
    --blue: rgba(150, 173, 189);
    --light-green: rgba(208, 220, 206);
}

.hidden {
    display: none !important;
}

body {
    position: relative;
    font-size: 16px;
    margin: 0;
    font-family: "Nunito", serif;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    backdrop-filter: blur(10px) brightness(0.9);
    pointer-events: none;
}

.background-image {
    position: fixed;
    top: -5%;
    left: -5%;
    z-index: 0;
    display: block;
    background-image: url(background.jpg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    height: 110vh;
    width: 110vw;
    /* filter: blur(10px) brightness(0.9); */
}

.glass {
    box-shadow: 5px 5px 10px #00000078;
    backdrop-filter: blur(10px);
}

.light-shadow {
    box-shadow: 3px 3px 5px #6f6f6f;;
}

#language-wrapper {
    z-index: 4;
    position: absolute;
    top: 5px;
    right: 6px;
    width: auto;
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#language {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px #000000b0;
    color: white;
}

#arrow-wrapper {
    z-index: 4;
    position: absolute;
    top: 5px;
    left: 6px;
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#back-arrow {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px #000000b0;
    color: white;
}

.popup-wrapper {
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 100%;
    transition: background-color 1s;
    overflow: auto;
}

.bg-in {
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: all;
    opacity: 1;
}

.bg-out {
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    opacity: 0;
}

.popup {
    z-index: 3;
    position: relative;
    display: flex;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 380px;
    max-width: calc(100vw - 16px * 2);
    margin-top: 20vh;
    padding: 5px;
    height: auto;
    min-height: 200px;
    background-color: wheat;
    box-shadow: 5px 5px 10px #00000078;
    border-radius: 6px;
    transition: margin-top 0.5s;
}

.popup-in {
    margin-top: 25vh;
    margin-bottom: 10rem;
}

.popup-icon-wrapper {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-icon-wrapper i {
    font-size: 5rem;
}

.popup-info {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.popup-close {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.popup-text-wrapper {
    min-height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-text {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.popup-button-wrapper {
    display: flex;
    justify-content: center;
}

.popup-button {
    width: 200px;
    max-width: 100%;
    height: 40px;
    border: 0;
    color: white;
    border-radius: 6px;
    background-color: black;
    font-family: "Nunito", serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.popup-button:active {
    background-color: var(--orange-active);
}

.popup-button:hover {
    cursor: pointer;
}

.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    cursor: pointer;
}

.popup-red {
    background-color: lightcoral;
}

.popup-blue {
    background-color: var(--blue);
}

.popup-green {
    background-color: var(--light-green);
}

.intro {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 130px;
    height: auto;
    width: 360px;
    max-width: calc(100vw - 8px * 2);
    left: 0;
    right: 0;
    top: 30vh;
    margin-inline: auto;
    border: 1px solid rgb(239 219 192);
    background: linear-gradient(25deg, rgba(var(--light-beige), 0.8), rgba(var(--dark-gray), 0.8));
}

.intro-text {
    font-size: 1.7rem;
    font-weight: 600;
    padding-bottom: 5px;
}

.separator {
    border: 1px solid rgba(var(--light-beige));
    width: 85%;
    margin-top: -1rem;
}

#code-input-container {
    padding: 5px;
    border-radius: 6px;
    height: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

#code-input-wrapper {
    width: 60%;
    margin-right: 15px;
}

.email-optout {
    padding: 1rem 20px;
    display: flex;
    align-items: center;
}

.email-notification {
    padding: 0px 20px;
    color: red;
}

#email-optout-checkbox {
    height: 1rem;
    width: 1rem;
    margin: 0;
}

.menu {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 420px;
    max-width: calc(100vw - 8px * 2);
    top: 8rem;
    padding: 5px;
    height: auto;
    min-height: 300px;
}

.category-card {
    /* background: linear-gradient(25deg, rgba(var(--light-beige), 0.8), var(--orange)); */
    background: linear-gradient(208deg, rgba(227, 204, 163, 0.9) 0%, rgba(243, 236, 227, 0.9) 90%, rgba(255, 255, 255, 0.9) 100%);
    width: 320px;
    max-width: 100%;
    min-height: 120px;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    border-radius: 6px;
    border: 1px solid rgba(var(--light-beige))
}

.card-disabled {
    background: lightgray;
    border: 1px solid darkgray;
}

.card-part1 {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-right: 0;
    text-align: center;
}

.card-part2 {
    width: 40%;
    padding: 10px;
    max-height: 100%;
    display: flex;
    box-sizing: border-box;
}

.card-img {
    width: 100%;
    object-fit: contain;
    border-radius: 6px;
    pointer-events: none;
}

.category-card:hover {
    background-color: wheat;
    cursor: pointer;
}

.card-disabled:hover {
    background-color: lightgray;
    cursor: default;
}

#card-title {
    margin-top: 5px;
    font-weight: 600;
    font-size: 1.2rem;
}

#card-progress {
    font-size: 1rem;
    color: #434343;
    margin-top: 6px;
}

#card-icon {
    font-size: 4rem;
}

#card-completed {
    font-size: 1.1rem;
    color: seagreen;
    font-weight: 600;
    margin-top: 5px;
}

.category-card-completed {
    background: linear-gradient(208deg, rgba(227, 204, 163, 0.5) 0%, rgba(243, 236, 227, 0.5) 90%, rgba(255, 255, 255, 0.5) 100%);
    pointer-events: none;
    border: 1px solid rgb(243 235 226 / 50%);
}

.main {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    height: auto;
    width: 420px;
    left: 0;
    right: 0;
    top: 3rem;
    margin-inline: auto;
    margin-bottom: 5rem;
    max-width: calc(100vw - 8px * 2);
    border-radius: 6px;
    border: 1px solid rgb(239 219 192);
    justify-content: space-between;
    background: linear-gradient(25deg, rgba(var(--light-beige), 0.8), rgba(var(--dark-gray), 0.8));
}

.top-container {
    min-height: 1.5rem;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.counter {
    /* background-color: aqua; */
    display: flex;
    align-items: center;
    color: rgb(48 48 48 / 80%);
    padding: 15px;
    border-radius: 10px 0px 20px 0px;
    padding-right: 10px;
}

.joker {
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    padding-left: 10px;
    border-radius: 0px 6px 0px 20px;
    color: white;
    box-shadow: -1px 1px 5px #8d8d8d;
    height: 22px;
    cursor: pointer;
    min-width: 50px;
}

.joker-part1 {
    height: auto;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 1.5rem;
}

.joker-part2 {
    height: auto;
    min-height: 5rem;
    display: flex;
    justify-content: center;
    padding-right: 1.5rem;
}

.joker-text {
    font-size: 1.2rem;
    padding-bottom: 6px;
    text-align: center;
}

#joker-text-answer {
    margin-top: 6px;
}


.question-container {
    padding: 15px;
    padding-top: 0px;
    font-weight: 500;
}

.question-container span {
    font-size: 1.2rem;
    white-space: pre-line;
    position: relative;
    z-index: 5;
}

.part2 {
    margin-top: 20px;
}

.image-container {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    padding: 0px 15px;
    display: grid;
    align-items: end;
    max-height: 100%;
}

.image-container img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.answer-container {
    padding: 15px;
    border-radius: 6px;
    height: auto;
    display: flex;
    justify-content: space-between;
}

.input-wrapper {
    width: 70%;
}

.text-input {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 2px solid var(--orange);
    padding-left: 1rem;
    font-family: "Nunito", serif;
    font-size: 1.2rem;
    outline: none;
}

.text-input:focus {
    border: 2px solid var(--orange-active)
}

.select-wrapper {
    padding: 1rem;
    padding-bottom: 0px;
    height: auto;
    min-height: 80px;
    width: 100%;
    display: flex;
    column-gap: 8px;
    row-gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.option {
    background-color: white;
    border-radius: 6px;
    display: flex;
    min-height: 40px;
    height: auto;
    width: calc(50% - 4px);
    transition: box-shadow 0.15s;
}

.option [type="radio"] {
    display: none;
}

.option label {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange);
    box-sizing: border-box;
    border-radius: 6px;
    text-align: center;
}

.option [type="radio"]:checked ~ label {
    border: 3px solid var(--orange-active);
}

.option:has([type="radio"]:checked){
    box-shadow: 0px 0px 0px #6f6f6f;
}

.option label:hover {
    cursor: pointer;
}

.button-wrapper {
    width: 27%;
    border-radius: 5px;
    display: flex;
}

.black-btn {
    height: 40px;
    width: 100%;
    border-radius: 6px;
    border: 0;
    align-self: end;
    background-color: black;
    color: white;
}

.black-btn:active {
    background-color: var(--orange-active);
}

.black-btn:hover {
    cursor: pointer;
}

.black-btn:disabled {
    background-color: gray;
    cursor: default;
    pointer-events: none;
}

.popup-button:disabled {
    background-color: gray;
    cursor: default;
    pointer-events: none;
}

.logo {
    z-index: 1;
    position: fixed;
    bottom: 10px;
    right: 6px;
    width: auto;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#image-main {
    z-index: 1;
    position: absolute;
    width: auto;
    height: 80px;
    top: 2.5rem;
    right: 0;
    opacity: 0.25;
}

#image-instructions {
    z-index: 1;
    position: absolute;
    width: auto;
    height: 80px;
    top: 5px;
    right: 0;
    opacity: 0.25;
}
