body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1, h2 {
    color: #333;
    margin-top: 0;
}

/* Flex container for items */
.items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-item, .reward-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row with space between them */
    min-width: 150px; /* Ensure a minimum width for smaller screens */
    position: relative;
    min-height: 60px; /* Ensure consistent height */
}

.order-item img, .reward-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.order-item span, .reward-item span {
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* Ensure the text doesn't push other elements */
}

.order-item input, .reward-item input {
    width: 60px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    margin-left: auto; /* Ensure input box aligns to the right */
    margin-right: 1em;
}

.remove-item {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.remove-item:hover {
    background-color: #c0392b;
}

.remove-item:focus {
    outline: none;
}

/* Add Item Buttons */
.add-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
}

.add-button:hover {
    background-color: #2980b9;
}

.add-button:focus {
    outline: none;
}
/* Footer Content */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Text */
.footer-text {
    text-align: left;
    margin-right: 20px; /* Space between text and image */
}

.footer-text p {
    margin: 5px 0;
    font-size: 1.2em; /* Adjust this to change the text size */
}

/* Footer Icon */
.footer-large-icon {
    height: auto;
    width: auto;
    max-width: 10em;
}
/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
}

#popup-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-item {
    width: 80px;
    text-align: center;
    cursor: pointer;
}

.popup-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 2px solid transparent;
}

.popup-item:hover img {
    border-color: #007bff;
}

.summary-section {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: left;
}

