/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Header Styling */
header {
    background-color: #2d3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
}

header nav {
    margin-top: 10px;
}

header nav a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #4db8ff;
}

/* Main Content */
.content {
    max-width: 1800px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Auction Item Cards */
div {
    background-color: #ffffff;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

div:hover {
    transform: translateY(-5px);
}

/* Item Title */
h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2d3e50;
}

/* Item Description */
p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

/* Price and Time */
p:nth-child(3),
p:nth-child(4) {
    font-weight: bold;
    color: #4db8ff;
}

a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4db8ff;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

a:hover {
    background-color: #3694d5;
}

/* Form Styling */
form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form input,
form button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

form button {
    background-color: #4db8ff;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #3694d5;
}

form input:focus,
form button:focus {
    outline: none;
    border-color: #4db8ff;
}

/* Footer */
footer {
    background-color: #2d3e50;
    color: white;
    text-align: center;
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
}

footer p {
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .content {
        padding: 15px;
    }

    .content div {
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }
}

/* Styling for the Register Page */
.register-container {
  width: 100%;
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f4f4f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.register-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
}

.form-group input:focus {
  border-color: #007bff;
  outline: none;
}

.btn-register {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-register:hover {
  background-color: #0056b3;
}

/* Styling for the Login Page */
.login-container {
  width: 100%;
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f4f4f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
}

.form-group input:focus {
  border-color: #007bff;
  outline: none;
}

.btn-login {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #0056b3;
}



/* Ensure the nav bar is properly positioned */
nav {
    position: relative;  /* Needed for absolute positioning inside it */
    width: 100%;         /* Make sure the nav spans the entire width */
    padding: 10px;       /* Add padding to nav for better spacing */
}

/* Make the logout form appear in the top-right corner */
.logout-form {
    position: absolute;
    top: -80px;         /* Distance from the top */
    right: 20px;       /* Distance from the right side */
}

/* Style the logout button */
.logout-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: #f44336; /* Red background color for the button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Change button color when hovering */
.logout-btn:hover {
    background-color: #d32f2f; /* Darker red shade when hovered */
}


/* Auction Table */
.auction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.auction-table th,
.auction-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.auction-table th {
    background-color: #2d3e50;
    color: white;
    font-weight: bold;
}

.auction-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.auction-table tr:hover {
    background-color: #ddd;
}

/* Make the table responsive */
@media (max-width: 768px) {
    .auction-table th, .auction-table td {
        display: block;
        width: 100%;
    }

    .auction-table thead {
        display: none;
    }
}

.welcome-message {
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
}
/* Style for the image */
.thumbnail {
    width: 300px; /* Thumbnail size */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    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.7); /* Black background with opacity */
}
/* Style for the image */
.thumbnail {
    width: 300px; /* Thumbnail size */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    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.7); /* Black background with opacity */
}

/* Modal Content (the image) */
.modal-content {
    margin: 15% auto;
    display: block;
    max-width: 80%; /* Maximum width of the image */
    max-height: 80%; /* Maximum height of the image */
    animation: zoom 0.3s ease-in-out;
}

/* Zoom In Animation */
@keyframes zoom {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* Close Button (top-right corner) */
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

