/* Algemene stijlen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header Sectie */
header {
    text-align: center;
    margin-bottom: 10px;
    padding: 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #fff;
    font-size: 2rem;

}

header p {
    margin: 0;
    font-size: 1.2rem;
    color: #ddd;
}



form {
    max-width: 400px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

form input,
form select,
form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form input:focus,
form select:focus {
    border-color: #333;
    outline: none;
}

form button {
    background: #333;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #555;
}


#calculation-description {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

#calculation-description strong {
    color: #333;
    font-weight: bold;
}

/* Container voor de tabel */
.table-container {
    max-height: 400px; /* Pas deze hoogte aan naar wens */
    overflow-y: auto; /* Maakt de body scrollbaar */
    border: 1px solid #ddd; /* Rand voor de container */
    border-radius: 8px; /* Afgeronde hoeken */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtiele schaduw */
    margin-top: 20px;
}

/* Tabelheaders vastzetten */
table thead {
    position: sticky;
    top: 0; /* Plakt de headers bovenaan */
    background: #333; /* Donkere achtergrond voor headers */
    color: #fff; /* Witte tekst voor headers */
    z-index: 1; /* Zorgt ervoor dat de headers boven de body blijven */
}

/* Tabelstijlen */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #f1f1f1;
}


#amortization-chart {
    max-width: 100%;
    margin: 0 auto;
}

/* Footer Sectie */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 1rem;
    color: #ddd;
}


/* Info Secties */
.info-section {
    margin-bottom: 20px; /* Verkleinde ruimte onder de sectie */
    padding: 15px; /* Verkleinde padding binnen de sectie */
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px; /* Verkleinde ruimte onder de kop */
}

.info-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px; /* Verkleinde ruimte tussen alinea's */
}

.info-section ul {
    margin: 10px 0; /* Verkleinde ruimte rond de lijst */
    padding-left: 20px;
}

.info-section ul li {
    margin-bottom: 8px; /* Verkleinde ruimte tussen lijstitems */
    color: #555;
}

/* Formulier Sectie */
.form-section {
    margin-bottom: 20px; /* Verkleinde ruimte onder de sectie */
    padding: 15px; /* Verkleinde padding binnen de sectie */
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px; /* Verkleinde ruimte onder de kop */
    font-size: 1.8rem;
}

.form-section {
    display: flex;
    flex-wrap: wrap; /* Zorgt ervoor dat items naar de volgende regel gaan op smalle schermen */
    gap: 20px; /* Ruimte tussen het formulier en de advertentie */
    align-items: flex-start; /* Uitlijning aan de bovenkant */
}

.form-container {
    flex: 1; /* Het formulier neemt de beschikbare ruimte in */
    min-width: 300px; /* Minimale breedte voor het formulier */
}

.ad-container {
    flex: 0 0 336px; /* Vaste breedte voor de advertentie */
    text-align: center; /* Centreer de advertentie horizontaal */
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ad-container {
        flex: 1 1 100%; /* Op smalle schermen neemt de advertentie de volledige breedte in */
    }
}
/* Resultaat Sectie */
.results-section {
    margin-bottom: 20px; /* Verkleinde ruimte onder de sectie */
    padding: 15px; /* Verkleinde padding binnen de sectie */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.results-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px; /* Verkleinde ruimte onder de kop */
    font-size: 1.8rem;
}

/* Grafiek Sectie */
.chart-section {
    margin-bottom: 20px; /* Verkleinde ruimte onder de sectie */
    padding: 15px; /* Verkleinde padding binnen de sectie */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chart-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px; /* Verkleinde ruimte onder de kop */
    font-size: 1.8rem;
}