body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 50px; /* Espaço para o rodapé */
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

/* Aplica o estilo a inputs de texto e select */
input[type="text"], select { 
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

/* Estilo específico para o botão Calcular */
button[type="submit"] {
    background-color: #3498db;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Estilo para o botão Limpar */
#limparForm {
    background-color: #e74c3c;
    margin-top: 5px;
}

#limparForm:hover {
    background-color: #c0392b;
}


.resultado {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    background-color: #ecf0f1;
}

.resultado h2 {
    color: #2ecc71;
    margin-top: 0;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.resultado h3 {
    color: #e67e22;
    margin-top: 15px;
}

.resultado ul {
    list-style-type: none;
    padding-left: 0;
}

.resultado ul li {
    background: #ffffff;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
    border-left: 5px solid #e67e22;
}

.aviso {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
    margin-top: 15px;
}

/* ESTILO DOS CRÉDITOS (RODAPÉ) */
.creditos {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    font-size: 0.85em;
    color: #7f8c8d;
    max-width: 500px;
    width: 100%;
}

.creditos p {
    margin: 2px 0;
}

.creditos a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.creditos a:hover {
    text-decoration: underline;
}

/* RESPONSIVIDADE PARA CELULAR */
@media (max-width: 600px) {
    body {
        padding-bottom: 20px; 
    }

    .container {
        margin: 10px;
        padding: 15px;
        box-shadow: none; 
        border-radius: 0;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .creditos {
        margin-top: 15px;
        padding: 10px;
    }
}