/* Exemplo de reset de CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;

    font-family: 'Montserrat', sans-serif;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0px 20px 30px;
    text-align: center;
}

.header {
    background-color: #da0029;
    display: flex;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.header img {
    width: 150px;
    margin: 20px 0px;
}

.valor-desconto{
   display: flex;
   justify-content:end;
   color: red;
  
}

.valor-total{
    display: flex;
    justify-content:end;
    color: green;
}

.valor-total p{
    font-weight: bold;
    margin: 0px;
}

.valor-desconto p{
    font-weight: bold;
}
.titllee {
    font-size: 13px;
    display: flex;
    text-align: center;
    margin-top: 25px;
    justify-content: center;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

/* ============================================
   ANIMAÇÕES E TRANSIÇÕES
   ============================================ */

/* Animação de fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de fade out */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Animação de slide in */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animação de pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animação de shake */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Animação de bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animação de glow */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(218, 0, 41, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(218, 0, 41, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(218, 0, 41, 0.5);
    }
}

/* Animação de popup */
@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   POPUP DE ERRO - CORRIGIDO COM ANIMAÇÃO
   ============================================ */

.dica {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.popUp-dica {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: auto;
    margin: 20px;
    max-width: 90%;
    width: 350px;
    pointer-events: auto;
    animation: popupIn 0.3s ease-out;
}

.popUp-dica.hidden {
    display: none;
}

.dica-p  {
    font-weight: 400;
}
.dica-errado{
    font-weight: 800;
}

.selecione-resposta {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1000;
    max-width: 90%;
    width: 350px;
    animation: popupIn 0.3s ease-out;
}

.selecione-resposta.hidden {
    display: none;
}

.selecione-resposta-p {
    font-weight: 800;

}


.opacity {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Footer - SEM BORDA VERMELHA */
.footer {
    display: none;
}



.content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(114, 114, 114);
    transition: opacity 0.3s ease;
}

/* ============================================
   QUIZ SCREEN COM ANIMAÇÕES
   ============================================ */

.quiz-screen {
    animation: fadeIn 0.5s ease-out;
}

.quiz-screen.hidden {
    display: none;
}

.quiz-screen.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.btn {
    background-color: #da0029;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 30px;
}

p {
    font-size: 16px;
    font-weight: 500;
}

.btn:hover {
    background-color: #b8001f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 0, 41, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(218, 0, 41, 0.3);
}

.options {
    margin-top: 20px;
}

.btn {
    background-color:#da0029;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 400;
    margin-top: 20px;
    width: 100%;
}

/* ============================================
   BOTÕES DE OPÇÃO COM ANIMAÇÕES
   ============================================ */

.options button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #000000;
    background-color: #f1f1f1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-size: 17px;
    position: relative;
    overflow: hidden;
}

.options button:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    background-color: #e8e8e8;
}

.options button:active {
    transform: scale(0.98);
}

/* Efeito ripple nos botões */
.options button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.options button:active::after {
    width: 200px;
    height: 200px;
}

/* Estilo para o botão correto quando selecionado */
.options button.correct-selected {
    background-color: green;
    color: white;
    opacity: 0.6;
    animation: pulse 0.5s ease;
}

/* Estilo para o botão incorreto quando selecionado */
.options button.incorrect-selected {
    background-color: red;
    color: white;
    opacity: 0.4;
    animation: shake 0.5s ease;
}

/* Animação quando seleciona opção correta */
.options button.correct-animation {
    animation: pulse 0.5s ease, glow 1s ease infinite;
    background-color: rgba(0, 255, 0, 0.4);
}

/* Animação quando seleciona opção incorreta */
.options button.incorrect-animation {
    animation: shake 0.5s ease;
    background-color: rgba(255, 0, 0, 0.4);
}

/* Estilo padrão para botão, removendo a necessidade de :focus */
.options button {
    outline: none;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Estilos padrões para os botões */
.option {
    background-color: #f4f4f4;
    color: black;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resgate{
    text-decoration: none;
    animation: bounce 2s ease infinite;
}

.btn-resgate:hover {
    animation: none;
    transform: scale(1.05);
}

.p-resgate{
    margin-bottom: 30px;
}

/* ============================================
   ANIMAÇÃO DO BOTÃO COMEÇAR
   ============================================ */

#start-quiz {
    animation: pulse 2s ease infinite;
}

#start-quiz:hover {
    animation: none;
    transform: scale(1.02);
}

/* ============================================
   TRANSIÇÃO SUAVE PARA TELA FINAL
   ============================================ */

#end-screen {
    animation: fadeIn 0.8s ease-out;
}

#end-screen h2 {
    animation: bounce 1s ease;
}

#end-screen img {
    animation: fadeIn 1s ease-out 0.3s both;
}
