/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Be Vietnam Pro", serif !important;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    width: 100%;
    background-color: #E8ECD7 !important;
    line-height: 1.6;
    overflow: auto;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
}


/* Headings styling */
h1 {
    font-family: "Bebas Neue", serif !important;
    font-size: 100px !important;  /* Ensure font size applies */
    /* color: #FF8666 !important;    Use !important for overriding */
    font-style: normal;
}

h2 {
    font-family: "Bebas Neue", serif !important;
    font-size: 50px !important;  /* Apply font size */
    font-style: normal;
    color: black;
    /* color: #FF8666 !important;    Override any conflicts */
}

h3 {
    font-family: "Bebas Neue", serif !important;
    font-size: 30px !important;  /* Apply font size */
    font-style: normal;
    /* color: #FF8666 !important;    Override any conflicts */
}

.usernamedisplay{
    display: flex;
    justify-content: center;
    text-align: center;
    color: black;  
    font-size: 20px;
    font-family: "Bebas Neue", serif;    
    margin: 0;
    white-space: nowrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust spacing between the image and text */
}

.logo-image {
    height: 40px; /* Adjust size as needed */
    width: auto; /* Keep aspect ratio */
}

.logo-image2 {
    height: 150px;
    width: 300px;
}

/* Header Styling */
header {
    background-color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure the header uses the full width */
    flex-wrap: wrap;
}

/* Logo Styling */
.logo img {
    height: 40px; /* Adjust logo size */
}

/* Navigation Bar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 60px; /* Ensure consistent height even without search bar */
    padding: 10px 0; /* Add vertical padding to match home page height */
}

/* Icons in Navigation */
.icons {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Font Awesome Icon Styles - Match home.css exactly */
.icon-profile, .home, .cart {
    font-size: 1.6rem;
    color: black;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
}

.icon-profile:hover, .home:hover, .cart:hover {
    transform: scale(1.1);
    color: orange;
}

/* Override fa-2x class to ensure consistent sizing */
.icons .fa-2x {
    font-size: 1.6rem;
}

.active{
    text-decoration: underline;
    color: orange;
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    margin-left: 10px;
}

/* Ensure the body doesn't have padding that messes with the layout */
body {
    margin: 0;
    padding: 0;
}

.transparent-button{
    display: flex;
    align-items: center;
    background-color: transparent;
    text-decoration: none;
    border: none;
    margin-left: 10px;
    color: black;
}

.transparent-button:hover, .active:hover{
    transform: scale(1.1);
    color: #a5b461;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    max-width: 900px;
    margin: 50px auto;
    gap: 0px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width:1800px) {
    .main {
        width: 80vw; /* Expands when screen width is <= 768px */
    }
}

.top-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1F4529;
    color: white;
    padding: 30px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bottom-panel {
    background: whitesmoke;
    padding: 30px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
}

.profile-details {
    display: flex;
    align-items: center;
}

.profile-details h2 {
    margin-right: 10px;
}

.profile-details button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.save-button, .image{
    background-color: #C0D171 !important; 
    color: white;
    padding: 5px;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    width: 100px;
    margin-right: 5px;
    text-align: center;
}

.save-button:hover, .image:hover{
    background-color: #a5b461 !important; 
}

.cancel-button{
    background-color: #C0C0C0 !important; 
    color: white;
    padding: 5px;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    width: 100px;
    text-align: center;
}

.cancel-button:hover{
    background-color: #A9A9A9 !important; 
}

.right-panel .form-control {
    width: 100%; /* Adjust the width as needed */
  ;
}

.row{
    margin: 5px;
}

.right-align{
    display: block;
    align-items:end;
}

.Edit {
    background-color: gray;
    color: white;
    padding: 5px;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    width: 100px;
    text-align: center;
}

.Edit:hover{
    background-color: #a5b461 !important; 
}


/*footer*/
footer {
    background-color: white;
    color: black;
    padding: 40px 40px;
    display: flex;
    flex-direction: column; /* Stack footer elements vertically */
    align-items: center;
    width: 100%;
    margin-top: auto;

}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 200px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.footer-logo {
    height: 150px; /* Adjust according to your logo size */
}

.footer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-right {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    font-family: "Bebas Neue", serif !important;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons {
    display: flex;
    text-align: left;
    flex-direction: column; /* Keeps the SOCIALS text on top and icons underneath */
    align-items: flex-start; /* Aligns items to the left */
    font-size: 20px;
    font-family: "Bebas Neue", serif;
    color: black;
    text-decoration: none;
    padding: 0;
}

.social-icons p {
    margin-bottom: 8px;
}

.social-icons a {
    margin-bottom: 8px;
    color: black;
}

.social-icons a:hover, .footer-nav a:hover {
    transform: scale(1.1);
    color: orange;
}

.footer-center {
    text-align: center;
    width: 100%;
    font-size: 14px;
    opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px; /* Thin scrollbar */
    height: 6px; /* Thin scrollbar for horizontal scrolling */
}

::-webkit-scrollbar-track {
    background: #E8ECD7; /* Light background */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FF8666; /* Soft green thumb */
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #1F4529; /* Darker green when hovered */
}


/*email link style*/
.a[href^="mailto:"] {
    color: green !important;
    text-decoration: none !important;
}

.a[href^="mailto:"]:hover {
    color: darkgreen !important;
    text-decoration: underline !important;
}
.modal-body {
    text-align: justify;
    align-items: center;
    border-radius: 30px;
}
.modal-header {
    color:  whitesmoke;
}

.modal-dialog {
     max-width: 40%; /* Adjust as needed */
}

.modal-content {
    max-height: 50vh; /* Adjust height */
    overflow-y: auto; /* Enables scrolling if content is too long */
}

#close, .close {
    background-color: red !important;
}

#ModalTitle {
    color: white !important;
    font-weight: bold;
    background-color: #1F4529;
}

.button[data-bs-toggle="modal"]:hover {
    color: white !important;
    background-color: green !important;
    transform: scale(1.05); /* Optional: Add a slight zoom effect */
}

.custom-modal-dialog {
    max-width: 60%; 
    margin: auto; 
}

.custom-modal-content {
    max-height: 75vh; /* Set the modal height to 90% of the viewport */
    overflow-y: auto; /* Enable scrolling if the content overflows */
}

.center-image {
    display: block; /* Ensures the image is treated as a block element */
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 70%; /* Ensures the image does not overflow the modal */
    height: auto; /* Maintains the aspect ratio */
    text-align: center;
}

.modal-body {
    display: flex;
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers the image vertically */
    height: 100%; /* Ensures the modal body takes up the full height */
}