/* Definições globais */
:root {
    --primary-color: #1E3A5F;
    --secondary-color: #F9F5E3;
    --accent-color: #E88580;
    --text-color: #1E3A5F;
    --welcome-bg: #F5EAC8;
    --font-body: 'Arial', sans-serif;
}

@font-face {
    font-family: 'Souvenir Bold';
    src: url('fonts/souvenir-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita rolagem lateral */
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Bar */
.top-bar {
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.top-bar img {
    height: 40px;
    object-fit: contain;
}

/* Estilização da logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
}

.logo-container img {
    height: 35px; /* Ajuste o tamanho conforme necessário */
}

/* Seção de boas-vindas */
.welcome {
    background-color: var(--welcome-bg);
    padding: 50px 0; /* Remove padding lateral */
    border-radius: 0 0 100px 100px; /* Arredondamento inferior extremo */
    text-align: center;
    width: 100vw; /* Garante que ocupe 100% da tela */
    max-width: 100vw;
    margin: 0; /* Remove qualquer margem */
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* CONTAINER INTERNO PARA O TEXTO */
.welcome-content {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
}

/* Texto dentro da seção de boas-vindas */
.welcome h2 {
    font-family: 'Souvenir Bold', sans-serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.welcome p {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 auto;
}

/* Formulário */
.container {
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Container do PIX */
.pix-container {
    display: flex;
    justify-content: center;
    align-items: top;
    width: 100%;
    min-height: calc(100vh - 400px); /* Ajusta a altura considerando header e footer */
    padding: 20px;
}

.pix-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
    width: 100%;
}

/* Título e textos */
.pix-box h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    color: #1E3A5F;
    font-weight: bold;
    margin-bottom: 20px;
}

.pix-box p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 20px;
}

/* Botões de seleção PIX */
.pix-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.pix-btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column; /* Empilha a imagem e o texto */
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espaço entre a imagem e o texto */
    transition: background-color 0.3s ease-in-out;
    margin: 0 10px;
    background-color: #ccc;
    color: #555;
    height: 90px; /* Ajuste da altura do botão */
}

.pix-btn img {
    width: 50px;
    height: 50px;
}

.pix-btn i {
    margin-right: 5px;
}

/* Quando o botão do tipo PIX estiver ativo */
.pix-btn.active {
    background-color: #1E3A5F !important; /* Azul escuro */
    color: white !important;
    animation: none !important; /* Remove o efeito de pulso */
}


.pix-btn:not(.active) {
    background-color: #ccc;
    color: #555;
}

.pix-btn:hover {
    transform: none;
}

/* Campo de entrada */
#pix-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #1E3A5F;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Botão de saque */
.saque-btn {
    background-color: #ccc !important;
    color: white;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

/* Botão pulsando quando ativo */
.saque-btn.active {
    background-color: #1E3A5F;
    animation: pulse 1.5s infinite;
}

/* Efeito de pulsação */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estilização do formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 400px;
    padding-bottom: 20px; /* Espaço extra para a animação */
}

label {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
}

input {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    color: #1e3a5f;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(232, 133, 128, 0.6);
}

/* Botão */
button {
    background-color: var(--accent-color);
    font-family: 'Rubik', sans-serif;
    color: white;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: visible; /* Garante que nada seja cortado */
    position: relative; /* Permite que a animação cresça sem restrições */
}

button:hover {
    background-color: #D8706D;
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 500px) {
    .container {
        width: 100%;
    }

    .welcome {
        padding: 40px 0;
        border-radius: 0 0 80px 80px;
    }
}

/* Estilização do botão desativado */
button.disabled {
    background-color: #D8706D;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quando o botão estiver ativo */
button.active {
    background-color: #ff0000 !important;
    animation: pulse 1.5s infinite;
    cursor: pointer;
    opacity: 1;
}

/* Animação de pulso */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

/* Tela de boas-vindas */
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw; /* Garante que ocupa toda a largura da tela */
    background-color: var(--primary-color);
    margin: 0;
    padding: 0;
}

/* Animação Zoom-In */
@keyframes zoom-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplica a animação na caixa de boas-vindas */
.welcome-box {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 90%;
    opacity: 0; /* Inicia invisível */
    animation: zoom-in 0.6s ease-out forwards; /* Ativa a animação */
}

.welcome-box h2 {
    font-family: 'Souvenir Bold', sans-serif;
    font-size: 1.7rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.welcome-box h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.welcome-box p {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}

.balance {
    font-family: 'Rubik', sans-serif;
    color: red;
    font-weight: 500;
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.video-container {
    width: 100%;
    max-width: 420px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
}

.video-thumb, .video-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Animação Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Efeito pulse no botão "Começar!" */
#start-button {
    background-color: var(--primary-color);
    font-family: 'Rubik', sans-serif;
    color: white;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 250px;
    margin-top: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite; /* Aplica o efeito de pulsar */
}

#start-button:hover {
    background-color: #122d4f;
    transform: scale(1.05);
}

/* Cabeçalho do Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 15px 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.user-info {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    color: #17476a;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.balance {
    text-align: right;
    flex-shrink: 0;
}

.brl {
    color: #db282c;
    font-size: 1.3rem;
    font-weight: bold;
}

.usd {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    color: #17476a;
    font-size: 0.9rem;
}

/* Barra de progresso */
.progress-container {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    width: 90%; /* Faz a barra ocupar mais espaço na tela */
    max-width: 600px; /* Garante que ela não fique grande demais em telas grandes */
    margin: 0 auto; /* Centraliza */
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #eaeaea;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #db282c;
    width: 50%;
    border-radius: 5px;
}

.progress-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}

/* Produto */
.product-container {
    text-align: center;
    padding: 20px;
}

.product-box {
    position: relative;
    display: inline-block;
}

.product-box img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
}

/* Pergunta */
.question {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0;
}

/* Botões de resposta */
.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.btn {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.yes {
    background-color: var(--primary-color);
    color: white;
}

.maybe {
    background-color: #db282c;
    color: white;
}

.no {
    background-color: black;
    color: white;
}

/* Rodapé */
/* Rodapé simplificado */
.dashboard-footer {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    background-color: var(--secondary-color);
    border-top: 2px solid #ddd;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Removendo botão ativo e fundo branco */
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 5px 0;
}

/* Ajustando os ícones */
.footer-item img {
    width: 25px;
    height: 25px;
    margin-bottom: 5px; /* Dá um pequeno espaço entre o ícone e o texto */
}

/* Removendo destaque ativo */
.footer-item span {
    font-family: 'Rubik', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #174779;
}

/* Removendo qualquer fundo ou borda */
.footer-btn, .footer-btn.active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
}

/* Fundo escuro ao abrir o popup */
.popup-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Caixa do popup */
.popup-box {
    background-color: #fbfbea;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    animation: zoom-in 0.5s ease-out;
}

/* Texto do saldo atualizado */
.popup-box h2 {
    font-family: 'Souvenir Bold', sans-serif;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.popup-box p {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Estilização correta do valor recebido */
.received-amount {
    font-size: 3rem !important; /* Aumenta o tamanho do texto */
    font-weight: bold;
    color: #db282c !important; /* Mantém o vermelho forte */
    text-align: center;
    margin-top: 10px;
}

/* Estilização do GIF */
.check-gif {
    width: 150px; /* Ajuste o tamanho do GIF conforme necessário */
    height: 150px;
    display: block;
    margin: 0 auto 15px;
}

/* Animação Zoom-In do popup */
@keyframes zoom-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-container svg {
    width: 250px; /* Aumenta a área */
    height: 150px;
}

#progress-bar {
    stroke-width: 16px !important; /* Engrossa a barra */
    stroke-dasharray: 314 !important; /* Ajustado para 70% do círculo */
    stroke-linecap: round;
}

