body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f2f4f7;
    margin: 0;
    padding: 0;
    color: #333333;
    position: relative;
}

/* Background image for home page */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('images/logo-background.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1200px;

    opacity: 0.12; /* Adjust opacity as needed */
    z-index: -1; /* Ensure it stays behind the content */
}

#header {
    background-color: #2c5d9f;
    color: white;
    text-align: center;
    padding: 20px;
}

#header h1 {
    margin: 0;
}

#header p {
    margin: 8px 0 0 0;
}

#nav {
    text-align: center;
    margin-top: 15px;
}

#nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
}

#nav a:hover {
    text-decoration: underline;
}

#main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.section {
    background-color: transparent;
    border: none;
    margin-bottom: 30px;
    padding: 10px 20px;
}

h2,
h3 {
    text-align: center;
    color: #2f4a6d;
}

p {
    line-height: 1.6;
    color: #2c2c2c;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Login / register / protected pages */
.login-box {
    max-width: 550px;
    margin: 40px auto;
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #cccccc;
    text-align: center;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}

.success-message {
    color: green;
    font-weight: bold;
    text-align: center;
}

/* Forms */
form {
    max-width: 700px;
    margin: 20px auto;
}

fieldset {
    border: 1px solid #cccccc;
    padding: 20px;
    background-color: white;
}

legend {
    font-weight: bold;
    color: #2f4a6d;
}

.form-row {
    margin: 15px 0;
    text-align: center;
}

label {
    display: inline-block;
    width: 120px;
    text-align: right;
    margin-right: 10px;
    vertical-align: top;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 240px;
    padding: 8px;
    border: 1px solid #999999;
    font-family: Helvetica, Arial, sans-serif;
}

textarea {
    height: 100px;
}

input[type="submit"],
input[type="reset"],
button {
    padding: 10px 18px;
    margin: 10px 5px 0 5px;
    background-color: #2c5d9f;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
    background-color: #1f4475;
}

/* Store products */
.product-grid {
    text-align: center;
}

.product-box {
    display: inline-block;
    width: 260px;
    vertical-align: top;
    background-color: white;
    border: 1px solid #cccccc;
    margin: 10px;
    padding: 15px;
    text-align: center;
}

.product-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

.product-box h3 {
    margin-top: 10px;
}

.price {
    font-weight: bold;
    color: #2c5d9f;
}

.quantity-box {
    margin-top: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-top: 20px;
}

th,
td {
    border: 1px solid #cccccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #d9e2ef;
    color: #5a3418;
}

/* Dashboard / role pages */
.dashboard-box {
    background-color: white;
    border: 1px solid #cccccc;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
#footer {
    background-color: #2c5d9f;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

#footer a {
    color: white;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Store description text styling */
.store-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px auto;
}