/* Global Styles */
body {
    margin: 0;
    font-family: 'League Spartan', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #ff5722;
    color: #fff;
    padding: 20px;
    text-align: left;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

header #tutorial-btn {
  font-family: 'League Spartan', sans-serif;
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 10px 20px;
    background-color: #e64a19;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
}

header #tutorial-btn:hover {
    background-color: #d84315;
}

main {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 80px; /* To avoid overlapping with footer */
}

/* Chatbot Styles */
.chat-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-window {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    margin-bottom: 10px;
    animation: fadeIn 0.5s;
}

.chat-message.bot {
    text-align: left;
    background-color: #e1f5fe;
    color: #01579b;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    position: relative;
    margin-right: auto;
}

.chat-message.bot:before {
    content: "🤖";
    position: absolute;
    left: -30px;
    top: 0;
}

.chat-message.user {
    text-align: right;
    background-color: #ffccbc;
    color: #bf360c;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto;
    max-width: 80%;
    position: relative;
}

.chat-message.user:before {
    content: "🧑";
    position: absolute;
    right: -30px;
    top: 0;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #fff3e0;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 1em;
}

.chat-input button {
  font-family: 'League Spartan', sans-serif;
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #ff5722;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
}

.chat-input button:hover {
    background-color: #e64a19;
}

/* Cart Styles */
.cart-container {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-container h2 {
    margin: 0 0 10px 0;
    color: #ff5722;
    font-size: 1.8em;
}

#cart-items {
    margin-bottom: 10px;
}

#cart-items div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

#cart-items button {
    padding: 5px 10px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#cart-items button:hover {
    background-color: #d32f2f;
}

#cart-total {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
}

#paypal-button-container {
    margin-top: 10px;
    text-align: center;
}

/* WhatsApp Button */
.whatsapp-button {
    text-align: center;
    margin-bottom: 20px;
}

.whatsapp-button a {
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: #fff;
    padding: 15px 15px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
}

.whatsapp-button a:hover {
    background-color: #128c7e;
}

.whatsapp-button img {
    height: 32px;
    width: 32px;
    margin-right: 15px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 5px;
    background-color: #ff5722;
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 0.5em;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    font-size: 1.1em;
}

.modal-content h2 {
    margin-top: 0;
    color: #ff5722;
    font-size: 1em;
}

.modal-content .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (min-width: 768px) {
    main {
        flex-direction: row;
        justify-content: space-between;
    }

    .cart-container, .chat-container {
        flex: 0 0 48%;
        margin: 0;
    }

    .whatsapp-button {
        position: fixed;
        bottom: 90px;
        right: 20px;
    }
}
