/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://as1.ftcdn.net/v2/jpg/05/89/81/62/1000_F_589816214_UrRIg10z94aLFnQPmR6DT7L8YydkKBwr.jpg');
    background-repeat: repeat;
    background-position: center;
    background-size: 80px 80px; 
    opacity: 0.50; 
    pointer-events: none; 
    z-index: -1; 
}

header {
    background-color: #004080;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header .logo {
    height: 50px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    box-shadow: 0 0 10px #ccc;
    border-radius: 8px;
}

.calc-form, .intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #e6f0ff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.calc-form label {
    font-weight: bold;
}

.calc-form input[type="text"],
.calc-form input[type="email"],
.calc-form input[type="number"],
.calc-form select {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.calc-form button, .btn {
    background-color: #004080;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: max-content;
    text-align: center;
    text-decoration: none;
}

.calc-form button:hover, .btn:hover {
    background-color: #003060;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #004080;
    color: white;
}

.result-table {
    width: 60%;
    margin: 0 auto 1rem auto;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #eee;
    font-size: 0.9rem;
    color: #555;
    margin-top: 3rem;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        margin-left: 0;
        margin-right: 1rem;
    }
    .result-table {
        width: 100%;
    }
}
