body {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* Header Styling */
h1 {
    color: #f0a500;
    text-align: center;
}

/* Calculate Section */
#calculate-container {
    text-align: center;
    margin-bottom: 12px;
}

#calculate {
    background-color: #e68908;
    color: white;
    font-size: 1.5em;
    padding: 12px 24px;
    text-shadow: 2px 2px 3px black;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

#calculate:hover {
    background-color: #c67507;
}

#calculate:disabled {
    background-color: #814a06;
    cursor: not-allowed;
}

#calculate-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    #calculate-options {
        flex-direction: column;
        align-items: center;
    }

    #calculate-options label {
        text-align: center;
    }

    #calculate-options input,
    #calculate-options select {
        width: auto;
        max-width: 50px;
        text-align: center;
    }
}

/*Wrapper for Results & Food Lists */
#results-food-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 97%;
    max-width: 1200px;
    margin: auto;
}

/* Results Section */
#results-container {
    background-color: #454545;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1160px;
}

/* Results Columns */
#results-columns {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 1px 1px;
}

.results-box {
    flex: 1;
    background-color: #333333;
    border-radius: 5px;
    min-height: 65px;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0px 2px 2px 2px;
}

.results-box p {
    margin: 2px 0;
    line-height: 1.4;
    text-align: center;
}

#closest-results, #balanced-results {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.results-header {
    font-size: 1.5em;
    color: #f0a500;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
}

.results-column-header {
    font-size: 1.2em;
    color: #f0a500;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
}

/* Results Display */
.results-list {
    flex-grow: 1;
    padding: 5px;
    background-color: #262626;
    text-align: center;
    font-size: 1em;
    color: #ffffff;
    gap: 5px;
}

.result-item {
    padding: 8px;
    border-radius: 4px;
    background-color: #2c2c2c;
}

.result-food-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    justify-content: center;
}

.result-food-box {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.result-subtotal {
    font-size: 1em;
    color: #ffffff;
}

/* Results Specialty Colors */
.result-food-box[data-specialty="campfire cooking"] { background-color: #9c5d1f; }
.result-food-box[data-specialty="cooking"] { background-color: #c75c5c; }
.result-food-box[data-specialty="baking"] { background-color: #c7952f; }
.result-food-box[data-specialty="mixology"] { background-color: #5c94c7; }
.result-food-box[data-specialty="advanced baking"] { background-color: #7a6ecf; }
.result-food-box[data-specialty="advanced cooking"] { background-color: #44a844; }
.result-food-box[data-specialty="charred"] { background-color: #7e4C32; }
.result-food-box[data-specialty="other"] { background-color: #4b443d; }

/* Food Selection Section */
#food-container {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1160px;
}

/* Food List Columns */
.food-column {
    flex: 1;
    background-color: #2c2c2c;
    padding: 0 4px 4px;
    border-radius: 3px;
    min-height: 400px;
}

.food-header {
    font-size: 1.4em;
    color: #f0a500;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
}

/* Button Styling */
#add-buttons {
    text-align: center;
    background-color: #393939;
    border-radius: 5px;
}

#reset-chosen {
    background-color: #3A3A3A;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

#reset-chosen:hover {
    border-color: #E85D5D;
    background-color: #4A4A4A;
    color: white;
}

button {
    background-color: #555;
    color: white;
    padding: 5px 10px;
    font-size: 1em;
    margin: 2px;
    cursor: pointer;
    border-radius: 6px;
}

button:hover {
    background-color: #777;
}


/* Food Items in Boxes */
.food-list-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}

.food-item {
    background-color: #3a3a3a;
    padding: 0px 6px;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Specialty Button and Food Item Colors */
button[data-specialty="campfire cooking"], .food-item[data-specialty="campfire cooking"] {
    background-color: #BF6224;
}
button[data-specialty="campfire cooking"]:hover {
    background-color: #D8732B;
}

button[data-specialty="cooking"], .food-item[data-specialty="cooking"] {
    background-color: #c75c5c;
}
button[data-specialty="cooking"]:hover {
    background-color: #e07878;
}

button[data-specialty="baking"], .food-item[data-specialty="baking"] {
    background-color: #c7952f;
}
button[data-specialty="baking"]:hover {
    background-color: #e5ac3d;
}

button[data-specialty="mixology"], .food-item[data-specialty="mixology"] {
    background-color: #5c94c7;
}
button[data-specialty="mixology"]:hover {
    background-color: #73aadf;
}

button[data-specialty="advanced baking"], .food-item[data-specialty="advanced baking"] {
    background-color: #7a6ecf;
}
button[data-specialty="advanced baking"]:hover {
    background-color: #9184e3;
}

button[data-specialty="advanced cooking"], .food-item[data-specialty="advanced cooking"] {
    background-color: #44a844;
}
button[data-specialty="advanced cooking"]:hover {
    background-color: #5fc75f;
}

button[data-specialty="charred"], .food-item[data-specialty="charred"] {
    background-color: #7E4C32;
}
button[data-specialty="charred"]:hover {
    background-color: #976147;
}

button[data-specialty="other"], .food-item[data-specialty="other"] {
    background-color: #4B443D;
}
button[data-specialty="other"]:hover {
    background-color: #625A53;
}

/* Nutrient Colors for Results and Tooltips */

.carbs-text {
    color: #B33714;
    font-weight: normal;
}

.protein-text {
    color: #D69625;
    font-weight: normal;
}

.fat-text {
    color: #D7AF36;
    font-weight: normal;
}

.vitamins-text {
    color: #85A031;
    font-weight: normal;
}

/* Tooltip */

#tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -120%);
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 1000;
}

/* Mobile Optimization */

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
}