body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #e5dbce;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 0.5em 1em;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 80px;
}

hr {
    margin: 30px 0;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container {
    position: absolute;
    left: 20px;
    /* Adjust as needed to position the logo */
    top: 50%;
    /* Vertically center it in relation to the header */
    transform: translateY(-50%);
    /* Adjust for perfect centering */
    flex-shrink: 0;
}

.logo {
    width: 70px;
    /* Adjusted size */
    height: auto;
    background-color: transparent;
    border-radius: 5px;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    margin: 0;
    letter-spacing: 1px;
    font-weight: bold;
}

.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #4B5945;
    padding: 10px 20px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-nav>li {
    position: relative;
}

/* Links in Navbar */
.navbar-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    display: block;
    cursor: pointer;
    text-align: left;
}

/* Dropdown Toggles */
.nav-item.dropdown .nav-link {
    justify-content: space-between;
    align-items: center;
}

.nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4B5945;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-item .dropdown-item {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

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

.nav-link.dropdown-toggle:hover {
    color: #D1D1D1;
}

.nav-item {
    margin-right: 15px;
}

.navbar-nav .dropdown-menu {
    display: none;
}

.nav-item.dropdown.show .dropdown-menu {
    display: block;
}

.navbar-nav>li {
    margin-right: 15px;
}

.dropdown-item {
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    display: block;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.dropdown-menu li a {
    padding: 10px;
}

#searchInput {
    padding: 8px;
    margin-left: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
    position: relative;
}

#searchResults {
    position: absolute !important;
    top: 100% !important;
    margin-right: 20px !important;
    background-color: #fff;
    border: 3px solid #ddd;
    border-radius: 4px;
    width: 100%;
    /* Same width as the input */
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Hide by default */
    z-index: 5;
}

#searchResults a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

#searchResults a:hover {
    background-color: #ddd;
}

main {
    flex: 1;
    /* Allow the content to grow */
    padding: 2em;
    background-color: #f9f9f9;
    padding-bottom: 5rem;
    flex-grow: 1;
    overflow: auto;
}

footer {
    text-align: center;
    padding: 1em;
    background-color: #4B5945;
    color: white;
    width: 100%;
    margin: 0 auto;
}

/* Topo test */
.topo-container, .bird-svg {
    position: relative;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
}

.topo-img {
    width: 700px;
    max-width: 700px;
    height: 562px;
    display: block;
}

.highlight {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: black;
    border-radius: 50%;
    cursor: pointer;
}

.answer {
    position: absolute;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 1);
    padding: 2px 5px;
    border-radius: 3px;
    display: none;
    white-space: normal;
    width: auto;
    max-width: 300px;
    left: 0;
    border: 1px solid black;
    z-index: 10;
}

/* Topo test SVG */
svg {
    width: 600px;
    height: auto;
    pointer-events: all;
}

.feather-group {
    fill: #ccc;
    transition: fill 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: all;
}

.feather-group:hover {
    cursor: pointer;
    opacity: 0.3;
}

.group-name {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.bird-svg {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    table-layout: auto;
}

/* horizontal scrolling for mobile purpose */
.table-wrapper,
.topo-container, .bird-svg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table thead th {
    background-color: #f4f4f4;
    color: #333;
    padding: 10px;
    border: 2px solid #ddd;
    font-weight: bold;
}

table tbody tr td {
    border: 1px solid #ddd;
}

table td,
table th {
    padding: 10px;
}

table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Section styling */
#content-container {
    padding: 2rem;
    background-color: #f9f9f9;
}

img {
    max-width: 100%;
}

.no-gallery {
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.no-gallery:hover {
    transform: scale(1.01);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Modal (Popup) styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    flex-direction: row;
    width: auto;
}

.modal-content img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f44336;
}

/* Div Collapse */
.content {
    display: none;
}

/* Style the collapsible button */
.collapsible {
    background-color: #534559;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
}

.collapsible:after {
    content: '\002B';
    /* Unicode character for "+" */
    color: white;
    font-weight: bold;
    float: right;
}

.active:after {
    content: "\2212";
    /* Unicode character for "-" */
}

/* copyright */
.copyright {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Sidebar Styles */
.sidebar-left,
.sidebar-right {
    padding: 2em;
    background-color: #f4f4f4;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}

/* Sidebar Layout */
.sidebar-right {
    float: left;
    padding-top: 0px;
}

.sidebar-left {
    float: right;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Sidebar Collapsing */
.sidebar-left.collapsed,
.sidebar-right.collapsed {
    width: 0;
    padding: 0;
    display: none;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s;
}

.sidebar-left h3,
.sidebar-right h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 20px;
}

.sidebar-left h4 {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

/* Sidebar Item List */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-right h6 {
    text-align: center;
    font-weight: 600;
}

.sidebar-right hr {
    margin: 1rem 0;
}

.sidebar-item {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sidebar-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.sidebar-item h3 {
    font-size: 1.1em;
    font-weight: bold;
    color: #444;
    margin: 0;
}

.sidebar-item p {
    font-size: 0.95em;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;
}

.sidebar-item a {
    color: #B1C29E;
    text-decoration: none;
}

.sidebar-item a:hover {
    color: #7d8b6d;
}

/* Badge Styles */
.sidebar-item .rare,
.sidebar-item .very-rare {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.sidebar-item .rare {
    background-color: #ffcc00;
}

.sidebar-item .very-rare {
    background-color: #e74c3c;
}

/* Toggle Button */
.toggle-btn {
    font-size: 16px;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.toggle-btn:hover {
    background-color: #9299a0;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    border-color: #CA7373;
    box-shadow: 0 0 10px#CA7373;
    outline: none;
}

.askButton {
    width: 100%;
    padding: 12px;
    background-color: #CA7373;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.askButton:hover {
    background-color: #df8080;
    transform: translateY(-3px);
}

.responseArea {
    margin-top: 20px;
}

.responseText {
    color: #666;
    font-size: 18px;
    font-style: italic;
    text-align: center;
}

.questionArea {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.container {
    padding: 0 0 0 0;
}

@media (min-width: 769px) {
    main {
        width: 60%;
        padding: 10px;
    }

    .container {
        display: flex;
        justify-content: space-between;
        flex: 1;
        flex-direction: row;
        /* Align content horizontally */
        width: 100%;
        max-width: 100%;
    }

    /* Show the dropdown on hover */
    .nav-menu>li:hover .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
        border-color: transparent;
        order: 1;
    }

    #searchInput {
        order: 2;
        /* Places the search box after the hamburger */
        flex-grow: 1;
        width: auto;
        max-width: 200px;
        margin-left: 10px;
    }

    .navbar-collapse {
        flex-grow: 1;
        /* Take up the remaining space */
        display: flex;
        flex-direction: column;
        /* Stack menu items vertically on mobile */
        order: 3;
        width: 100%;
    }

    .nav-item .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        width: 100%;
        min-width: 250px;
        background-color: #687768;
        padding: 0;
    }

    .nav-item .dropdown-menu .dropdown-item {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 5px;
    }

    .nav-item .dropdown-menu .dropdown-item:hover {
        background-color: #4B5945;
        color: white;
    }

    .nav-link.dropdown-toggle {
        font-size: 18px;
        padding: 10px 15px;
    }

    .navbar-nav {
        text-align: center;
        display: block;
        width: 100%;
    }

    .nav-item .dropdown-menu .dropdown-item:focus {
        outline: none;
        background-color: #4B5945;
        color: white;
    }
}


/* Media Query for responsiveness on smaller screens */
@media (max-width: 768px) {
    body {
        background-color: white;
    }

    .sidebar-left,
    .sidebar-right,
    .toggle-btn {
        display: none;
    }

    main {
        width: 100%;
        /* Full width for mobile */
        padding: 1rem;
        /* Reduce padding for smaller screens */
    }

    table {
        font-size: 12px;
    }

    table td,
    table th {
        padding: 8px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-container {
        left: 10px;
        /* Reduce left positioning on small screens */
        top: 50%;
        /* Keep the vertical centering */
        transform: translateY(-50%);
        /* Ensure vertical centering */
    }

    .logo {
        width: 50px;
        /* Smaller logo for mobile screens */
    }

    .header-title {
        margin: 0 40px;
        font-size: 1.5em;
        /* Adjust the title size for smaller screens */
        text-align: center;
        letter-spacing: 0.5px;
        /* Slightly reduce letter-spacing */
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu>li {
        width: 100%;
    }

    .nav-menu .dropdown-menu {
        position: relative;
        min-width: 100%;
    }

    /* Show the dropdown when clicked on mobile */
    .nav-item.dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.navbar,
footer,
.container {
    width: 100%;
    max-width: 100%;
    transition: max-width 0.3s ease;

    @media (min-width: 576px) {
        max-width: 700px;
    }

    @media (min-width: 768px) {
        max-width: 900px;
    }

    @media (min-width: 992px) {
        max-width: 1200px;
    }

    @media (min-width: 1200px) {
        max-width: 1400px;
    }
}

/* Global font settings */
body {
    font-family: "Lato", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
}

/* Body text */
p,
a,
span,
li,
.content {
    font-family: "Lato", sans-serif;
}

/* Footer */
footer {
    font-family: "Roboto Slab", serif;
}

/* Navigation */
.navbar {
    font-family: "Lato", sans-serif;
}

.navbar a {
    font-family: "Lato", sans-serif;
}