@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

h2 {
    text-align: center;
    padding: 20px;
    margin: 0;
    background-color: #5D4037; /* More neutral brown color */
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

input, select, button {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    max-width: 300px;
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: #5D4037; /* More neutral brown color */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #4E342E; /* Darker brown color */
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    max-width: 1000px;
    box-sizing: border-box;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
    font-size: 14px;
}

th {
    background-color: #5D4037; /* More neutral brown color */
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

input[type="text"] {
    width: auto; /* 10% wider than the minimum width */
    padding: 8px;
    min-width: 400px; /* Minimum width for flavor input */
    box-sizing: border-box;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    max-width: 80px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 10px;
    }

    td {
        border: none;
        padding: 10px;
        position: relative;
        padding-left: 50%;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
