html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #F5F5F5;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ======= Background principal ======= */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bg.jpg') no-repeat center center/cover;
    z-index: -3;
}

/* ======= Brilhos e Confetes ======= */
.confete, .brilho {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    pointer-events: none;
}

.confete {
    background-image: url('../img/confetes.png');
    z-index: -1;
    opacity: 0.8;
    animation: flutuar 10s linear infinite;
}

.brilho {
    background-image: url('../img/brilhos.png');
    z-index: -2;
    opacity: 0.6;
    animation: brilhar 8s ease-in-out infinite alternate;
}

/* ====== Animações para dar efeito de movimento ====== */
@keyframes flutuar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes brilhar {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

/* ====== Estrutura Central ====== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.box {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ======= Títulos ======= */
h1 {
    font-size: 2.8em;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8em;
    font-weight: 400;
    color: #F5F5F5;
    margin-bottom: 15px;
}

/* ======= Inputs e Formulário ======= */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
    background-color: #1C1C1C;
    color: #F5F5F5;
    transition: border 0.3s ease-in-out;
}

input:focus {
    border: 2px solid #D4AF37;
    outline: none;
}

/* ======= Botões ======= */
button {
    background-color: #D4AF37;
    color: #0A0A0A;
    font-size: 1.3em;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    transition: 0.3s ease-in-out;
}

button:hover {
    background-color: #B8860B;
    transform: scale(1.05);
}

/* ====== Estilizando os Radio Buttons ====== */
.opcao-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    cursor: pointer;
}

input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: inline-block;
}

input[type="radio"]:checked::before {
    content: "";
    width: 12px;
    height: 12px;
    background-color: #D4AF37;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ====== Caixa Flutuante do Contador ====== */
#contador-palpite {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #D4AF37;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* ====== Estilizando os palpites ====== */
#categoriasContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: auto;
}

.categoria-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 8px rgba(212, 175, 55, 0.3);
}

.opcao-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    margin: 10px 0;
    cursor: pointer;
}

input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

input[type="radio"]:checked::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #D4AF37;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Botão de confirmação no final */
button[type="submit"] {
    margin-top: 20px;
    font-size: 1.3em;
}