/* Navbar styles */
.navbar.custom-navbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 1rem;
    transition: top 0.3s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.navbar.custom-navbar:hover {
    background-color: rgb(235, 230, 230)!important;
}

.navbar-brand img {
    height: 50px;
    max-width: 100%;
}

.navbar-nav {
    margin: 0;
    display: flex;
    justify-content: space-between; /* Distribute nav items evenly */
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    flex-shrink: 0; /* Prevent shrinking */
    margin: 0 0.5rem; /* Adjust spacing between items */
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.25rem;
    font-size: 20px;
    font-family: "metropolis", sans-serif;
    font-weight:bold;
    color: white!important;
    transition: color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    white-space: nowrap; /* Prevent text from wrapping */
}

.navbar.custom-navbar:hover .nav-link,
.navbar.custom-navbar.menu-open .nav-link {
    color: black !important;
}

.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: red;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Set the color of the hamburger menu lines to black */
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Ensure the hamburger menu stays black on hover */
}

.navbar-toggler:hover {
    border: 2px solid black; /* Optional: Add a border around the hamburger menu on hover */
}

@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.2rem;
    }

    .navbar-nav .nav-item {
        margin: 0 0.2rem; /* Adjust spacing for smaller screens */
    }
}

@media (max-width: 991.98px) {
    .navbar.custom-navbar {
        background-color: transparent !important;
    }

    .navbar.custom-navbar.menu-open {
        background-color: rgb(235, 230, 230)!important;
    }

    .navbar.custom-navbar.menu-open .nav-link {
        color: black !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
    }
}

.login-icon {
    width: 20px;
    margin-right: 5px;
}

.dropdown-menu-custom {
    display: none;
    flex-direction: column;
    padding: 15px;
    width: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute; /* Ensures correct positioning */
    z-index: 1000; /* Ensures it appears above other content */
}

.dropdown-item-custom {
    display: flex;
    flex-direction: row; /* Keep image and text stacked vertically */
    align-items: center;
    margin-top: 5px 0; /* Increase margin between items */
}

.dropdown-image {
    width: 200px; /* Increase the image size */
    height: 100px; /* Increase the image size */
    margin-right: 10px; /* Space between image and text */
}

.dropdown-item {
    text-align: left;
    color: black;
    font-size: 1rem; /* Increase the text size */
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: red;
    border-radius: 5px; /* Optional: add rounding on hover */
    transition: background-color 0.3s ease;
}
body {
    font-family: "metropolisbold", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff; /* Light background color */
}
.container {
    width: 80%;
    margin: auto;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.menu-icon {
    cursor: pointer;
}

.menu {
    display: none;
    position: absolute;
    right: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #000;
}

/* States grid styles */
.states-container {
    display: flex;
    overflow: hidden;
    margin-top: 20px;
}

.state-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 250px;
    transition: flex 0.5s ease;
    cursor: pointer;
    border: 1px solid #000;
    background-color: #add8e6;
    border-radius: 0px; /* Rounded corners */
}

.state-box:hover {
    flex: 3;
}

.state-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0px; /* Maintain rounded corners on hover */
}

.state-box p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px; /* Rounded corners for modal */
}

.modal-content h4 {
    display: flex;
    align-items: center;
}

.modal-content h4 img {
    margin-right: 10px;
    border-radius: 50%; /* Circular image */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Section styles */
section {
    margin: 50px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    -webkit-text-fill-color: #000;
}

section h2 {
    margin-bottom: 10px;
}

section img {
    width: 100%;
    max-width: 400px;
    float: right;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .state-box {
        flex: 1;
    }
    section img {
        float: none;
        margin: 0 auto 10px;
        display: block;
    }
}

/* Specific section background */
#geography-section {
    background-color: rgba(139, 69, 19, 0.4); /* Brown background with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
}

#people-and-culture-section{
    background-color: rgba(210, 210, 45, 0.4); /* Brown background with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
}

#language-section{
    background-color: rgba(54, 28, 201, 0.4); /* Brown background with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
}

#climate{
    background-color: rgba(236, 146, 43, 0.4); /* Brown background with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
}

