body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f9f9f9;
    margin: 0;
    font-family: Arial, sans-serif;
    padding: auto;
}

form {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    background-color: white;
    padding: 40px;
    width: 350px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


input[type="text"], input[type="password"], input[type="email"] {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    color : black;
}

input[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    border: none;
    background-color: #3897f0;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.signup {
    text-align: center;
    margin-top: 10px;
}


#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
};



h1 {
    color: black;
    position: absolute;
    height: 800px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: #007bff;
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    justify-content: space-around;
    margin-top: 600px;
}

.product-card {
    width: calc(20% - 40px);
    padding: 20px;
    padding-bottom: 100px;
    margin: 20px;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 230px; 
    object-fit: scale-down;
}

.product-card p {
    margin: 10px 0;
    font-size: 1em;
}


.product-card:hover {
    transform: scale(1.1);
}




table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
    padding-top: 450px;
}

img {
    width: 50px; 
    height: 90px;
}

a {
    margin-right: 10px;
}

#results {
    margin-bottom: 700px;
    padding-top: 80px;
    margin-right: 200px;
    padding-right: 200px;
    width: 50%;
    position: absolute;
}

#results h2 {
    color: red;
}

.add-product-btn {
    padding: 10px 20px;
    margin-bottom: 200px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    float: right; 
}

.clear {
    clear: both;
}


/*Nav Bar*/
#header {
    width: 100%;
    height: 150px;
    background-color: #f8f9fa;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

ul h1 {
    margin-bottom: 60px;
}


.navbar {
    display: flex;
    align-items: center;
}

.navbar img {
    height: 50px;
    width: 50px;
    margin-right: 20px;
}


.nav {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}




.nav-item a:hover {
    color: #007bff;
    font-size: larger;
}


#log-out a:hover {
    color : red;
    text-decoration: underline;
    font-size: larger;
}

.search-input {
    margin-left: 20px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #dbdbdb;
    height: 30px;
}

.search-button {
    padding: 5px 10px;
    border-radius: 5px;
    height: 30px;
    border: 1px solid #dbdbdb;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

h1 {
    text-align: center;
    margin: 20px 0;
}

.hero {
    text-align: left;
    width: 80%;
    padding-right: 200px;
    margin-right: 200px;
}


@media (max-width: 768px) {
    .hero {
        text-align: center;
        margin-right: 0;
        padding: 20px;
    }
}

.logout-popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 30%;
    height: 50%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transform: translate(-50%, -50%);
}

.logout-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    text-align: center;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 100px;
    height: 100px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*About  page CSs*/


.content {
    display: flex;
    margin-bottom: 200px;
}
.owner-profile {
    flex: 1;
    margin-right: 20px;
    border: 1px solid #000; 
    padding: 20px;
    margin-top: 90px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.about-section {
    flex: 2;
    padding-top: 100px;
}

/*edit form css*/
#edit_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 500px;
    position: relative;
    z-index: 1; 
}

@media (min-width: 600px) {
    #edit_form label, 
    #edit_form input[type="text"], 
    #edit_form textarea {
        flex: 1 0 calc(50% - 20px);
    }
}

#edit_form input[type="submit"] {
    width: 50%;
    margin-top: 20px;
    background-color: green;
}

#edit_container {
    margin-bottom: 200px;

}

#product_image {
    max-width: 50%;
    height: auto;
    margin-right: 20px;
}

#edit_form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    height: auto;
    position: relative;
    z-index: 1;
    margin-bottom: 450px;
    margin-left: 30%;
}

#description {
    width: 100%;
    height: 120px; 
}

#edit_form input {
    width: 30%; 
    margin: 10px;
}

.owner-profile img {
    width: 50%;
    height: 50%;
}

.content {
    padding: 20px;
}