body {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.header {
    background-color: rgb(147, 40, 34);
    color: white;
    display: flex;
    padding: .5rem 1rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.container {
    display: flex;
    flex-direction: column;
    margin: 0 10%;
    gap: 1rem;
    /* Add spacing between rows */
}

/* Flexbox for input fields and buttons */
.input-div {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between elements */
    flex-wrap: wrap;
    /* Allow wrapping for smaller screens */
}

.container>div label {
    flex: 0 0 150px;
    /* Fixed width for labels */
    font-weight: bold;
    text-align: right;
    /* Align text to the right for better alignment with inputs */
    margin-right: 10px;
    /* Add spacing between label and input */
}

.container>div input[type="number"] {

    min-width: 60px;
    /* Minimum width for smaller screens */
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.container>div button {
    flex: 0 0 50px;
    /* Fixed width for buttons */
    background-color: rgb(147, 40, 34);
    color: white;
    border: none;
    padding: 5px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.container>div button:hover {
    background-color: rgb(120, 30, 25);
}

.container>div button:active {
    background-color: rgb(100, 20, 15);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

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

table tr:hover {
    background-color: #e9e9e9;
}

table td {
    font-size: 0.9rem;
}

.ingredients-table {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Adjust the h2 styling */
.title {
    margin: 0;
    /* Remove default margins */
    font-size: 1.25rem;
    /* Slightly smaller font size */
    font-weight: bold;
    /* Keep the heading bold */
    width: 100%;
}

/* Recipe section styling */

.recipe ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .container>div {
        flex-direction: column;
        /* Stack elements vertically */
        align-items: flex-start;
        /* Align items to the left */
    }

    .container>div label {
        flex: 0 0 auto;
        /* Allow labels to adjust their width */
        text-align: left;
        /* Align text to the left */
        margin-bottom: 5px;
        /* Add spacing below the label */
    }

    .container>div input[type="number"],
    .container>div button {
        width: 100%;
        /* Make inputs and buttons take full width */
    }

    .container>div button {
        flex: 0 0 auto;
        /* Allow buttons to adjust their width */
    }

    .amount {
        display: none;
    }
}
