/* Resetando margens e padding para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* Evita que qualquer elemento ultrapasse a largura da tela */
}

/* Evita rolagem lateral */
html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}
.descricao-p {
    font-size: small;
}

/* Estilo do cabeçalho */
.cabecario {
    background-color: #222;
    color: #fff;
    padding: 2vh 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Configurações do cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw; /* Garante que o cabeçalho ocupe 100% da largura da tela */
    padding: 0 20px; /* Usa um padding fixo em vez de percentual para evitar scroll lateral */
    position: relative; /* Para evitar margens negativas e comportamento inesperado */
}

header h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5vw;
    font-weight: 700;
    color: #f397cb;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Botão Mostrar Opções */
.show-input-button {
    background-color: #ffa3cb;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* Estilo da input (escondida inicialmente) */
.input {
    display: none;
    flex-direction: column;
    max-width: max-content; /* Garante que só ocupe o espaço necessário */
    background-color: #ffcffb;
    font-weight: bold;
    justify-content: center;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 5px;
    position: absolute;
    right: 10px; /* Ajusta a posição corretamente */
}
.input.active {
    display: flex;
}

/* Estilo dos botões dentro da input */
.value {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    display: flex;
    position: relative;
    gap: 5px;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap; /* Impede quebra de linha */
}
.value:not(:active):hover,
.value:focus {
    background-color: #ffa5ea;
}

.value:focus,
.value:active {
    background-color: #ffa5ea;
    outline: none;
}

.value svg {
    width: 15px;
}

/* Garantir que os elementos não ultrapassem a tela */
.container {
    display: flex;
    flex-wrap: wrap; /* Faz com que os elementos se ajustem */
    justify-content: center;
}

/* Responsividade - para dispositivos com telas pequenas */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5vh 5vw;
    }

    header h1 {
        font-size: 5vw;
    }

    .input {
        right: 5px; /* Ajusta posição em telas menores */
    }

}

/* Ajuste para telas muito pequenas (480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 6vw;
    }
    .input {
        right: 2px; /* Mantém alinhado corretamente */
    }
}
/* Modal - Fundo transparente */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Conteúdo do modal */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

/* Botão fechar modal */
.close {
    color: red;
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Lista de opções dentro do modal */
.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.modal-content li:hover {
    background-color: #ffcffb;
}
