.body {
    width: 100%;
}

.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto; 
    padding: 0px;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.select-wrapper {
    margin: 5px 0px
}

option {
    font-size: 14px;
}

#table {
    margin: auto;
    margin-top: 30px;
    width: 100%;
}

#table thead {
    background-color: tomato;
}

#table tbody {
    background-color: white;
}

#table th {
    color: black;
    padding: 10px 1px;
}

#table td {
    color: black;
    padding: 10px 1px;
}

#table tfoot td {
    color: white;
}

.information {
    background-color: black;
    color: white;
    width: 100%;
    padding: 10px 10px;
}

.img-wrapper {
    max-width: 70%;
}

#formula-img {
    max-width: 80%;
    max-height: 80%;
}

#overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#spinner, #error-message {
    font-size: 1.5em;
    color: white; /* Better visibility against dark background */
    padding: 20px;
    border-radius: 10px;
}

#error-message {
    max-width: 80%;
    border: 1px solid red; /* Adds visibility for error messages */
    background: rgba(255, 0, 0, 0.8); /* Red background for errors */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#spinner {
    font-size: 1.5em;
    color: white; /* Better visibility against dark background */
    padding: 20px;
    border-radius: 50%; /* Makes the spinner circular */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 4s linear infinite; /* Apply the rotating animation */
}
