
body {
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    /* background-image: url('background-pattern.png');  */
    background-size: cover;
    direction: rtl; /* Right-to-left layout for Persian */
    font-weight: 400 !important;
    justify-content: center;
    align-items: center;
}
body *, input{
    font-family: "Baloo Bhaijaan 2"; 
}
body {
    background-image: url('background-pattern.png');
    background-size: cover;
}
.close{
    font-size: 2em;
    top: 0;
    width: 2em;
    position: absolute;
}
.app {
    max-width: 600px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f5a623;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d89420;
}

button img {
    margin-right: 10px;
}
#modal-text{
    font-weight:bold;
    font-size: 1.5em;
    padding:0;
    position: relative;
    margin: 0;
    margin-top: -1em;
    display: flex;
    text-align: center;
}
#modal-form{
    display: flex;
    width: 100%;
    flex-direction: column;
    padding-top: 0em;
}
#mealsContainer{
    /* gap: 10px; */
    width: 100%;
    display: flex;
    flex-direction: column;
}
#mealsContainer button{
}
#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    font-size: 24px;
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    align-items: center;
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    display: flex;
    /* margin: 10% auto; */
    padding: 20px;
    padding-top: 4em;
    width: 79%;
    max-width: 500px;
    min-height: calc(27vh + 2em);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    overflow-y: scroll;
    align-content: flex-start;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    font-size: 14px;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}



/* Loader animation */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile-friendly layout adjustments */
#app {
    padding: 10px;
    max-width: 100vw;
    text-align: center;
    min-width: 70vw;
    box-sizing: border-box;
}

button {
    display: flex;
    width: 100%;
    text-align: center;
    gap: 10px;
    padding: 10px;
    font-size: 1em;
    margin: 5px 0;
    align-items: center;
    justify-content: flex-start;
}
#mealTypeButtons{
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-end;
    width: 100%;
}
#mealTypeButtons button, .styled-form button{
     display: flex;
     gap: 43px;
     align-content: space-between;
     justify-content: space-between;
     flex-direction: column;
     flex-wrap: nowrap;
     background: #420202;
}


button img {
    width: 20px;
    height: 20px;
}

/* Styled forms */
.styled-form {
    display:flex;
    flex-direction: column;
}

.styled-form input, .styled-form button {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    font-size: 1em;
}

.styled-form fieldset {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
}

/* Existing styles remain the same */

button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 10px 0;
}

.meal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.meal-option > p{
    font-weight:bold;
    margin: 0;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


