body {
    font-family: Arial, sans-serif;
    margin: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* gør det muligt at placere nav relativt */
}

input {
    width: 80px;
    padding: 5px;
    margin: 5px;
    text-align: center;
}

button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}

canvas {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
}

/* Opdateret nav */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Ingen ekstra padding */
    border: none; /* Ingen kant rundt om hele området */
    background: none; /* Ingen baggrund rundt om hele området */
}

.nav a {
    text-decoration: none;
    font-size: 22px;
    color: #007bff;
    font-weight: bold;
    padding: 15px 25px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #e6f0ff;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #007bff;
    color: white;
}

/* Responsive justering */
@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        width: 100%;
        text-align: center;
    }
}

select {
    width: 220px; /* gør dropdown-menuen større */
    padding: 8px;
    margin: 10px 0;
    font-size: 16px;
}

/* Mere luft mellem input-felterne */
.input-group {
    margin-bottom: 20px; /* før var der næsten ingen afstand, nu 20px */
}
