@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    font-family: "Ubuntu", serif;
    padding: 0px;
    margin: 0px;
}

:root {
    --cor-primaria: rgb(0, 34, 255);
    --red: rgb(255, 0, 38);
    --roxo: rgb(115, 0, 255);
    --black:rgb(28, 28, 28);
}

body {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    margin: 0;
}

.container{
    max-width: 400px;
    min-width: 350px;
    margin: 40px 25px;
    border-radius: 6px;
}

.container-x{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 50px);
    width: 100%;
    margin: 25px;
    border-radius: 6px;
}

.pergunta{
    margin: 10px 0px;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--cor-primaria); /* Laranja */
    color: #fff;
    border-color: var(--cor-primaria);
}

.radio-group label:hover {
    border-color: #888; /* Um leve destaque ao passar o mouse */
}


.progress-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 50px;
    margin-bottom: 20px;
}

.progress-bar{
    height: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cor-primaria);
    border-radius: 50px;
    text-align: center;
    color: white;
    font-weight: 600;
    line-height: 20px;

}

.btn{
    padding: 15px 10px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    color: white;
    font-weight: 800;
    margin-top: 10px;
    background-color: var(--cor-primaria);
}

.head-geral{
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.head-resultado{
    text-align: center;
}

.head-resultado h1{
    text-align: center;
    margin-bottom: 20px;
    font-size: 50px;
    color: #2c2c2c;
}

.grafico-container {
    width: 90%;
    max-width: 600px;
    height: 300px;
    margin-bottom: 40px;
}

.grafico-container p{
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.resultado{
    margin-bottom: 40px;
}

.dom-img{
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.resultado p {
    font-size: 15px;
    line-height: 1.3;
    color: #5a5a5a;
}

.footer{
    font-weight: 600;
    color: #888;
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
}

/* Fundo do loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    text-align: center;
}

#loader p{
    font-size: 12px;
    color: #888;
}

#loader h1{
    font-size: 18px;
    color: #888;
}


/* Spinner de carregamento */
.spinner {
    width: 30px;
    height: 30px;
    border: 10px solid #d9e5e5;
    border-top-color: var(--cor-primaria);
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

/* Animação do Spinner */
@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ocultar conteúdo até a página carregar */
.hidden {
    display: none;
}

.logo{
    width: 100%;
    margin: 10px 0px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.logo img{
    width: 250px;
}

.progress-bar-container-result{
    width: 100%;
    background-color: #ddd;
    border-radius: 50px;
    margin-bottom: 5px;
}

.progress-bar-result{
    transition: width 1s ease-in-out; /* Suaviza a mudança de largura */
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    text-align: center;
    color: white;
    font-weight: 500;
    padding: 4px 0px;
    line-height: 20px;
}

.progress-bar-result-aovivo{
    transition: width 1s ease-in-out; /* Suaviza a mudança de largura */
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    text-align: center;
    color: white;
    font-weight: 500;
    padding: 4px 0px;
    line-height: 20px;
    font-size: 30px;
}

.label{
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: 600;
    color: #666;
}

.grafico{
    width: 70%;
    padding: 10px;
    margin: 15px;
}