.header {
    position: center;
    top: 0;
    margin: none;
    z-index: 2000;
    background-color: #381820; /* Top/navbar/header background color */
    
 }
 
 .header .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
 }
 
 .header .flex .logo {

    align-items: center;
 }
 
 /*.header .flex .logo:hover {
    color: pink;
 }*/
 
 .header .flex .navbar a {
    font-size: 30px;
    color: white;
    margin:  1rem;
    text-decoration: none;

 }
 
 .header .flex .navbar a:hover {
    color: white;
    background-color:#5a1e2d;
    padding: 1rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
   
 }
 
 .header .flex .icons > * {
    margin-left: 1.5rem;
    margin-right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
 }
 
 .header .flex .icons > *:hover {
    color: #5a1e2d;
 }
 
 .header .flex .icons span {
    font-size: 2rem;
 }
 
 #menu-btn {
    display: none;
 }
 
 .header .flex .profile {
    background-color: #632c2c; /* Background color of the dropdown */
    border: .2rem solid #381820; /* Border color */
    padding: 1.5rem;
    text-align: center;
    position: absolute;
    top: 125%;
    right: 2rem;
    width: 30rem;
    display: none;
    animation: fadeIn 0.2s linear;
 }
 
 .header .flex .profile.active {
    display: inline-block;
 }
 
 @keyframes fadeIn {
    0% {
       transform: translateY(1rem);
    }
 }
 
 .header .flex .profile .name {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
 }
 
 .header .flex .profile .account {
    font-size: 2rem;
    color: #777; /* Text color for "login or register" */
 }
 
 .header .flex .profile .account a {
    color: #ffffff; /* Link color */
 }
 
 .header .flex .profile .account a:hover {
    color: #ffffff; /* Link hover color */
    text-decoration: underline;
 }
 .loader{
   position: fixed;
   top:0; left:0; right:0; bottom: 0;
   z-index: 1000000;
   background-color: white;
   display: flex;
   align-items: center;
   justify-content: center;
}

.loader img{
  height: 25rem;
}

/* Enhanced profile dropdown in header */
.profile {
    position: absolute;
    top: 100%;
    right: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px #0002;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 270px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    border: 2px solid #7d2626;
    animation: fadeIn 0.2s;
}

.profile.active {
    display: flex;
}

.profile .name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #7d2626;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: 1px;
}

.profile .flex {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    justify-content: center;
}

.profile .btn,
.profile .delete-btn {
    background: #7d2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #0001;
    text-decoration: none;
    text-align: center;
}

.profile .btn:hover,
.profile .delete-btn:hover {
    background: #a13c3c;
    color: #fff;
}

/* Login/Register Prompt Redesign */
.profile .account {
    background: rgba(125, 38, 38, 0.18);
    border: 2.5px solid #7d2626;
    border-radius: 18px;
    box-shadow: 0 4px 24px #7d262620;
    padding: 2.2rem 2.5rem 1.5rem 2.5rem;
    margin: 2rem auto 0 auto;
    max-width: 420px;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

.profile .account a {
    display: inline-block;
    background: linear-gradient(90deg, #b23232 0%, #7d2626 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin: 0 0.3rem;
    text-decoration: none;
    box-shadow: 0 2px 8px #7d262655;
    transition: background 0.2s, color 0.2s, transform 0.13s;
    border: none;
}

.profile .account a:hover {
    background: linear-gradient(90deg, #ff7eb3 0%, #b23232 100%);
    color: #fffbe7;
    transform: translateY(-2px) scale(1.04);
}

.profile .account span,
.profile .account strong,
.profile .account b {
    color: #bdbdbd;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

@media (max-width: 600px) {
    .profile {
        right: 0.5rem;
        left: 0.5rem;
        min-width: unset;
        width: calc(100vw - 1rem);
        padding: 1.2rem 0.5rem;
    }
}

/* Search Bar Container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* White background */
    border-radius: 50px; /* Rounded edges */
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    width: 300px; /* Adjust width as needed */
    margin: 0 auto; /* Center the search bar */
    position: relative;
}

/* Search Input */
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 50px;
    color: #333; /* Text color */
    background-color: transparent; /* Transparent background */
}

/* Placeholder Text */
.search-input::placeholder {
    color: #aaa; /* Placeholder text color */
    font-style: italic;
}

/* Search Button */
.search-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #333; /* Icon color */
    font-size: 1.2rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

/* Search Button Hover Effect */
.search-btn:hover {
    color: #381820; /* Darker color on hover */
}

/* ...existing CSS... */

.profile .user-img-container {
   width: 80px; /* Adjust the size as needed */
   height: 80px;
   border-radius: 50%; /* Make it a circle */
   overflow: hidden; /* Hide any part of the image that overflows the container */
   margin: 0 auto 10px; /* Center the container horizontally */
}

.profile .user-img-container img {
   width: 100%; /* Make the image fill the container */
   height: 100%;
   object-fit: cover; /* Ensure the image covers the entire container */
}