* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

.toolbar {
    display: flex; /* Use flexbox for the toolbar */
    justify-content: space-between; /* Space out the buttons */
    background-color: #000000; /* Purple background */
    padding: 10px;
}

.back-button {
	display:none;
    background-color: #6f212100; /* White background for back button */
    color: #ffffff; /* Purple text */
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.logout-button {
    background-color: #ffffff00; /* White background for the logout button */
    color: #ffffff; /* Purple text */
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.logout-button:hover {
    background-color: #e0e0e0; /* Light gray on hover */
    transform: translateY(-2px);
}

.logout-button:active {
    transform: translateY(0);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f500;
}

.button {
    background-color: rgba(105, 0, 252, 0); /* Slightly opaque purple */
    color: rgb(0, 0, 0);
    padding: 20px 40px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.7s, transform 0.6s;
}

.button:hover {
    background-color: #00f7ff; /* Cyan color on hover */
    transform: translateY(-2px);
}


.button:active {
    transform: translateY(0);
}

.title {
    background-color: #000000; /* A modern purple color */
    color: white;
    padding: 20px 40px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;    
    transition: background-color 0.3s, transform 0.2s;
}


/* Order table styling */
.order-table {
    width: 80%;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden; /* Ensures child elements do not overflow */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    background-color: #ffffff; /* White background for table */
	font-size:10px;
}

.order-header {
    display: flex;
    background-color: #000000; /* Purple header */
    color: white;
    font-weight: bold;
}

.header-item {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.order-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0; /* Light border for rows */
}

.row-item {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.row-item:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for alternate rows */
}

.row-item:last-child {
    border-bottom: none; /* No border for the last row */
}

/* ------------------------------------ delivery address -------------------------------------*/

.personal-form {
    display: flex;
    flex-direction: column;
	margin:20px;
}

.form-row {
	display: flex;
    flex-wrap: wrap; /* Allow wrapping when the screen is too narrow */
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #4e4a54; /* Purple border on focus */
    outline: none; /* Remove default outline */
}

/* Styling for wider input */
input#streetAddress {
    width: 100%;
}

.submit-button {
    background-color: #6200ea; /* Purple background for submit button */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #3700b3; /* Darker shade on hover */
    transform: translateY(-2px);
}


.rewards-container {
    display: flex;
    flex-direction: column; /* Stack the items vertically */
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    width:100%;
    max-width: 700px;
    margin: auto;
    justify-content: center;
    text-align: center;
}
.reward-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    text-align: center;
}
/* Highlighted (Enough Points) */
.highlighted {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}
.highlighted h3 {
    color: #388e3c;
}
/* Not Enough Points */
.not-enough {
    background-color: #ffebee;
    border-color: #ffcdd2;
}
.not-enough h3 {
    color: #d32f2f;
}
.reward-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.reward-card p {
    margin: 10px 0;
    font-size: 1em;
}
.reward-card a {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.highlighted a {
    background-color: #66bb6a;
}
.not-enough a {
    background-color: #e57373;
}
.reward-card a:hover {
    opacity: 0.9;
}

