body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

header,
footer {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

h1 {
    color: #333;
}

/* Navigation styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #0056b3;
}

#gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.image-listing {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.image-listing:hover {
    transform: translateY(-5px);
}

.image-listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.image-title {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.image-description {
    color: #666;
    flex-grow: 1;
    margin-bottom: 15px;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.purchase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.purchase-row label {
    font-weight: 700;
    font-size: 0.9em;
    color: #475569;
}

.purchase-row select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-row .price-label {
    color: #64748b;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.price-row .price-val {
    font-weight: 800;
    color: #ff6600;
    font-size: 1.25em;
}

.buy-button {
    width: 100%;
    padding: 12px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.1s;
    box-sizing: border-box;
}

.buy-button:hover {
    background-color: #e65c00;
}

.buy-button:active {
    transform: scale(0.98);
}

footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* Pagination styles */
#pagination-container {
    text-align: center;
    margin-top: 30px;
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #007bff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination-button:hover,
.pagination-button.active {
    background-color: #007bff;
    color: white;
}

/* Form Styles */
.form-container {
    width: 300px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-button {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.form-button.login {
    background-color: #007bff;
}

.form-button.login:hover {
    background-color: #0056b3;
}

.form-button.register {
    background-color: #28a745;
}

.form-button.register:hover {
    background-color: #218838;
}
