/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    overflow-x: hidden;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    width: 150px;
    height: auto;
    animation: fadeIn 1s ease-in-out;
}

main {
    padding: 20px;
    animation: slideIn 0.5s ease-in-out;
}

h1, h2 {
    color: #d32f2f;
    animation: colorChange 3s infinite;
}

h2 {
    margin-top: 40px;
    border-bottom: 2px solid #d32f2f;
    display: inline-block;
    padding-bottom: 5px;
}

.menu-item {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: left;
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-item h3 {
    color: #d32f2f;
    margin: 0 0 10px;
}

.menu-item p {
    margin: 0 0 10px;
}

.menu-item label,
.menu-item select {
    display: block;
    margin-bottom: 10px;
}

button {
    background-color: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: 10px;
}

button:hover {
    background-color: #b71c1c;
    transform: scale(1.1);
}

.suggestion-box {
    background-color: #fff7e6;
    border: 1px solid #ffd700;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    color: #d32f2f;
    font-weight: bold;
}

.promotion-banner {
    background-color: #ffd700;
    color: #d32f2f;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    animation: fadeIn 1.5s ease-in-out;
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d32f2f;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d32f2f;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    z-index: 1000;
    animation: bounce 2s infinite;
}

#search-box, #category-select {
    padding: 10px;
    margin: 10px 5px;
    font-size: 1em;
}

#category-select {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #d32f2f;
    border-radius: 5px;
    color: #d32f2f;
    cursor: pointer;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-item button {
    background-color: #d32f2f;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px;
}

.cart-item button:hover {
    background-color: #b71c1c;
    transform: scale(1.1);
}

#cart-total {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
}

#checkout-button {
    background-color: #d32f2f;
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

#checkout-button:hover {
    background-color: #b71c1c;
    transform: scale(1.1);
}

footer {
    background-color: #000;
    color: #fff;
    padding: 10px;
    position: relative;
    width: 100%;
    bottom: 0;
    animation: slideUp 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .menu-item {
        padding: 10px;
    }

    .menu-item h3 {
        font-size: 1.2em;
    }

    .menu-item p {
        font-size: 0.9em;
    }

    button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .cart-button {
        padding: 10px;
        font-size: 0.9em;
    }

    #checkout-button {
        padding: 10px;
        font-size: 0.9em;
    }
}

#customer-details {
    margin-top: 40px;
    text-align: left;
}

#customer-details label,
#customer-details input,
#customer-details select {
    display: block;
    margin: 10px 0;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#delivery-details {
    display: none;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes colorChange {
    0% {
        color: #d32f2f;
    }
    50% {
        color: #b71c1c;
    }
    100% {
        color: #d32f2f;
    }
}
