/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FDBA5B !important;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #491627;
    color: white;
    padding: 1rem 0;
    text-align: center;
    width: 100%;
    font-size: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute space evenly */
}

#logo {
    max-height: 50px; /* Adjust as needed */
}

/* Nav Styles */
.navbar {
    width: 100%;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: right; /* Align to the right */
}

.navbar ul li {
    margin: 0 1rem;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #f9f4f0;
}

/* Layout */
.container {
    background-color: white;
    padding-top: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    /* border-radius: 8px; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-left: auto;
    box-sizing: border-box;
}

.mainbar {
    display: flex; flex-direction: column;
    flex-grow: 1;
    width: 80%;
}

#sidebar {
    flex-shrink: 1;
    width: 20%;
    padding: 1.5rem;
    /* border-radius: 8px; */
    margin-left: 2rem;
}

/* Form Styles */
#bioForm {
    padding: 2rem;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

#img_top {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select,
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    /* border-radius: 4px; */
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
input[type="date"]:focus,
input[type="number"]:focus {
    border-color: #460B2F;
    box-shadow: 0 0 5px rgba(70, 11, 47, 0.3);
}

button[type="submit"],
#addField {
    background-color: #460B2F;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    /* border-radius: 4px; */
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

button[type="submit"]:hover,
#addField:hover {
    background-color: #330822;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    width: 100%;
}

/* Large Text Style */
#large_text {
    font-size: 1em;
    line-height: 1.6;
    color: black !important;
    text-align: justify;
    margin-top: 2rem;
    padding: 0;
}

/* Image Styles */
#img_top {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Error Style */
#bgImageError {
    color: red;
    display: none;
}

/* Image Selector Style */
.image-selector {
    display: inline-block;
    margin-right: 1rem;
}

/* Image and Text Container */
#image_text_container {
    display: flex;
    align-items: center; /* Vertically align items */
}

#img_top {
    max-width: 60%; /* Adjust as needed */
    height: auto;
    margin-bottom: 0; /* Remove bottom margin */
    margin-right: 1rem; /* Add right margin for spacing */
}

#large_text {
    font-size: 1em;
    line-height: 1.6;
    color: #777; /* Light gray color */
    text-align: justify;
    margin-top: 0; /* Remove top margin */
    padding: 0; /* Remove side padding */
    width: 50%; /* Adjust as needed */
}

@media (max-width: 768px) {
    #sidebar {
      display: none;
    }
    #image_text_container {
        display: flex;
        flex-direction: column;
    }
    .container {
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    #large_text {
        width: 100vw;
        padding: 47px;
        padding-top: 10px;
        padding-bottom: 0px;
    }
    #img_top {
        max-width: 100%;
        height: auto;
    }
    #navbar-desktop {
        display: none;
    }
  }

.tip {
    background-color: #e7f3fe;
    padding: 10px;
    border-left: 4px solid #2196F3;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .mobile-nav {
        position: relative;
    }

    .dropdown-menu {
        background-color: #491627;
        border: none;
    }

    .dropdown-item {
        color: #fff;
        max-width: fit-content;
    }

    a.dropdown-item {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dropdown-item:hover {
        background-color: #330822;
    }

    .btn-secondary {
        background-color: #491627;
        border: none;
        color: white; /* Make the text visible */
        width: auto; /* Adjust as needed */
        height: auto; /* Adjust as needed */
        padding: 0.375rem 0.75rem;
        background-image: none;
    }

    .btn-secondary:hover, .btn-secondary:focus {
        background-color: #330822 !important;
        border: none !important;
        box-shadow: none !important;
    }
    #hamburger_menu {
        height: 20px;
        width: auto;
    }
    .btn.btn-secondary.dropdown-toggle {
        background-color: #330822;
        border: 0px;
    }
    .dropdown-menu.show {
        min-width: fit-content;
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}