* {
    box-sizing: border-box;
}

.quiz_conteudo {
    background-image: url(../../game_assets/quiz/ilha/fundoperguntas.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#quiz_conteudo_moedas,
#quiz_conteudo_vidas {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

#quiz_conteudo_moedas img,
#quiz_conteudo_vidas img {
    width: 200%;
    display: flex;
    justify-self: center;
}

.quiz_conteudo_escondido {
    display: none;
    opacity: 0;
}

.quiz_conteudo_escondido_texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz_conteudo_escondido_texto img {
    width: 25vw;
}

.quiz_conteudo_organizacao {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    height: 90%;
    padding: 2rem;
    gap: 6rem;
}

.quiz_conteudo_organizacao_imagem {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 55%;
}

.quiz_conteudo_organizacao_imagem img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.4));
    transform: scale(1.1);
    transform-origin: center right;
}

.quiz_conteudo_organizacao_quiz {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%;
    height: auto;
}

.quiz_conteudo_organizacao_quiz_pergunta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.quiz_conteudo_organizacao_quiz_pergunta_imagem {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz_conteudo_organizacao_quiz_pergunta_imagem img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.quiz_conteudo_organizacao_quiz_pergunta_texto {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20% 15%;
    min-height: 80px;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-family: var(--font-primaria, sans-serif);
    color: var(--cor-texto-secundario);
    text-align: center;
    font-weight: normal;
}

.quiz_conteudo_organizacao_quiz_opcoes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4.5rem;
    width: 100%;
    margin-top: 1rem;
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta.desativado {
    pointer-events: none;
    transform: none !important;
    cursor: default;
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta:hover {
    transform: scale(1.1);
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta_imagem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    width: auto;
    height: auto;
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta_imagem img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.quiz_conteudo_organizacao_quiz_opcoes_resposta_texto {
    position: relative;
    z-index: 1;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-family: var(--font-primaria, sans-serif);
    color: var(--cor-texto-secundario);
    font-weight: normal;
    white-space: nowrap;
    text-align: center;
}

.quiz_tema_branco,
.quiz_tema_branco p,
.quiz_tema_branco button,
.quiz_tema_branco .quiz_botao_opcao {
    color: var(--cor-texto) !important; 
}

.loja {
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
    padding-bottom: 2vh;
    padding-bottom: env(safe-area-inset-bottom);
}

.loja_texto {
    font-size: clamp(1.5rem, 8vh, 3rem);
    font-family: var(--font-primaria);
    color: var(--cor-hover);
    text-align: center;
    margin-bottom: 2vh; 
    margin-top: 1vh;
    line-height: 1.1;
}

.loja_imagem {
    position: relative;
    width: 55vw;       
    max-height: 65dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loja_imagem > img:first-child {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.loja_opcoes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.loja_opcoes_valores {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 50% !important; 
    height: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 4vw + 4vh, 5rem);
    font-family: var(--font-primaria);
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.loja_opcoes_valores img {
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    margin: 0 0.2em;
}

.loja_opcoes_botoes {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52%;
    right: 25%; 
    transform: translateY(-50%);
    pointer-events: auto; 
    z-index: 20;
    gap: 1.5vh;
}

.loja_opcoes_botoes_botao {
    width: 8vw;
    max-width: 120px;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
}

.loja_opcoes_botoes_botao img {
    width: 100%;
    display: block;
}

.loja_opcoes_botoes_botao:hover {
    transform: scale(1.05);
}

.loja_desistir_jogo {
    width: clamp(120px, 20vw, 300px);
    max-width: 90%;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loja_desistir_jogo:hover {
    transform: scale(1.1);
}

.loja_desistir_imagem {
    position: relative;
    width: 70%;
    aspect-ratio: 3 / 1;
}

.loja_desistir_imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.loja_desistir_imagem_texto {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.2rem, 3.4vw, 2.0rem);
    font-family: var(--font-primaria);
    color: var(--cor-texto);
    pointer-events: none;
}

.loja_desistir_jogo:hover .loja_desistir_imagem_texto,
.loja_desistir_jogo:hover {
    color: var(--cor-hover);
}

@media (max-width: 900px) and (orientation: landscape){
    .quiz_conteudo_organizacao {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        height: 100%;
    }

    .quiz_conteudo_organizacao_imagem {
        max-width: 60%;
        max-height: 35vh;
        justify-content: center;
        order: 1;
        transform: none;
    }

    .quiz_conteudo_organizacao_quiz {
        width: 95%;
        max-width: 100%;
        order: 2;
        height: auto;
        justify-content: center;
        gap: 1rem;
    }

    .quiz_conteudo_organizacao_quiz_pergunta_imagem {
        aspect-ratio: auto;
        height: auto;
        min-height: 150px;
    }

    .quiz_conteudo_organizacao_quiz_pergunta_texto {
        padding: 15% 12%;
        font-size: clamp(1.2rem, 3vw, 2rem);
    }

    .quiz_conteudo_organizacao_quiz_opcoes {
        width: 100%;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .quiz_conteudo_organizacao_quiz_opcoes_resposta_imagem {
        padding: 0.5rem 1rem;
    }

    .quiz_conteudo_organizacao_quiz_opcoes_resposta_texto {
        font-size: clamp(1rem, 2vw, 1.6rem);
    }

    .loja_imagem {
        width: 85vw;
        max-height: 50dvh;
    }

    .loja_texto {
        font-size: clamp(1.5rem, 6vh, 2.5rem);
        margin-bottom: 5vh;
    }

    .loja_opcoes_botoes {
        right: 15%;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .quiz_conteudo_organizacao {
        flex-direction: row !important;
        align-items: center;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .quiz_conteudo_organizacao_imagem {
        width: 55%;  
        height: 95vh;
        
        display: flex;
        justify-content: center; 
        align-items: center;
        order: 2;
    }
    

    .quiz_conteudo_organizacao_imagem img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        

        max-height: 50vh;
        transform: scale(1.6);
        transform-origin: center center;
        pointer-events: none !important;
    }

    .quiz_conteudo_organizacao_quiz {
        max-width: 60%;
        height: 95vh;
        order: 1;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .quiz_conteudo_organizacao_quiz_pergunta {
        margin-bottom: 0;
        width: 70%;
        max-width: 500px;
    }

    .quiz_conteudo_organizacao_quiz_pergunta_imagem {
        max-width: 90%;
    }

    .quiz_conteudo_organizacao_quiz_pergunta_texto {
        padding: 2rem 2.5rem;
        font-size: clamp(1.2rem, 4vh, 1.4rem);
        min-height: auto;
    }

    .quiz_conteudo_organizacao_quiz_opcoes {
        margin-top: 5px;
        gap: 50px;
        width: 90%;
    }

    .quiz_conteudo_organizacao_quiz_opcoes_resposta_imagem {
        padding: 0.4rem 1rem;
    }

    .quiz_conteudo_organizacao_quiz_opcoes_resposta_texto {
        font-size: 1rem;
    }

    .loja {
        justify-content: center; 
        overflow-y: auto;
        gap: 1rem;
    }

    .loja_texto {
        font-size: clamp(1.2rem, 6vh, 1.8rem);
        margin-bottom: 6.5vh;
    }

    .loja_imagem {
        width: 50vw; 
    }

    .loja_opcoes_botoes {
        right: 22%;
        gap: 1vh;
    }
    
    .loja_opcoes_botoes_botao {
        width: 7vw; 
    }

    .loja_desistir_imagem_texto {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(1.2rem, 2.4vw, 2.0rem);
        font-family: var(--font-primaria);
        color: var(--cor-texto);
        pointer-events: none;
    }
}