body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    padding: 20px;
}

.header-image {
    width: 40%;
    height: auto;
}

h1 {
    margin: 10px 0 5px;
    font-size: 24px;
}

p {
    margin: 5px 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en varias filas */
    justify-content: space-around;
    padding: 0;
    list-style: none;
    background-color: #eee;
    margin: 0;
}

nav ul li {
    margin: 5px; /* Añade un pequeño margen entre los elementos */
    flex: 1 1 calc(33.33% - 10px); /* Ajusta el ancho de los elementos */
}

nav ul li a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s;
    text-align: center; /* Centra el texto en cada enlace */
}

nav ul li a:hover {
    background-color: #ddd;
}
.menu-category {
    padding: 20px;
}

.menu-category h2 {
    margin-top: 0;
    font-size: 22px;
}

.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}

.menu-item-details {
    flex-grow: 1;
}

.menu-item-details h3 {
    margin: 0;
    font-size: 18px;
  color: #8E5817;
}

.menu-item-details .price {
    float: right;
    font-weight: normal;
    color: #888;
}

.allergens {
    color: #888;
    font-size: 12px;
}

.add-to-cart {
    background-color: #8E5817;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 15px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #218838;
}

.cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFFFF;
    color: white;
    border-radius: 50%;
    border-color: #8E5817;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.cart-total-bubble {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.cart-modal {
    display: none; /* Initially hide the modal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cart-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cart-content h2 {
    margin-top: 0;
    font-size: 22px;
}

.cart-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-content ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-content p {
    font-weight: bold;
    font-size: 18px;
}

.cart-content button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px 0;
    transition: background-color 0.3s;
}

.cart-content button:hover {
    background-color: #0056b3;
}

.cart-content .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

footer {
    background-color: #eee;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}
