@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Top Bar Styles */
.top-bar {
    background-color: #f8f9fa;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .logo {
    display: flex;
    align-items: center;
}

.indialogo {
    height: 45px;
    margin-right: 10px;
}

.pudhulogo {
    width: 450px;
}

.top-bar .user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-link:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-link i {
    font-size: 14px;
}

.home-link span {
    font-family: 'Open Sans', sans-serif;
}

/* Narration Panel Styles */
#narration {
    position: fixed;
    top: 110px;
    right: -40vw;
    width: 40vw;
    height: calc(100vh - 110px);
    background: white;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#narration.open {
    right: 0;
}

#narration h3 {
    color: #005975;
    text-align: justify;
    margin: 0;
    padding: 15px;
}

#narration #contents {
    background-color: #f3f3f3;
    flex: 1;
    overflow-y: auto;
}

#narration #contents .image-container {
    margin: 0;
    padding: 3vh 3vw;
    color: #444;
    height: 100%;
}

#narration #contents .image-container .chapter-header {
    text-align: left;
    padding: 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

#narration #contents .image-container div.description {
    margin: 0;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

#narration #contents .image-container div.description a {
    text-decoration: underline;
}

.sidebar-handle {
    position: absolute;
    top: 50%;
    left: -40px;
    padding: 14px;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateY(-50%);
    z-index: 1001;
    min-height: 80px;
}

.vertical-text {
    writing-mode: vertical-lr;
    text-orientation: upright;
    white-space: nowrap;
    font-size: 13px;
    color: white;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .home-link {
        padding: 6px 10px;
        font-size: 0;
        /* Hide text on mobile */
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .home-link i {
        font-size: 14px;
        /* Slightly larger icon for better touch target */
        color: #333;
    }

    .home-link:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .home-link:hover i {
        color: #007bff;
    }
}

/* Navigation Menu Styles */
.navbar {
    background-color: #78c5de !important;
    border-bottom: 0px solid #9e9e9e;
    padding: 8px 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 99999 !important;
}

.navbar-nav {
    text-align: center;
    justify-content: center;
}

.navbar>.container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
    display: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.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(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em !important;
    height: 1.2em !important;
}

.nav-link {
    color: #36383aed !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #000 !important;
}

.navbar-nav .nav-item {
    display: inline-block;
    white-space: nowrap;
    margin: 0 2px;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    background-color: #c5e2eb;
    min-width: 200px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    padding: 0;
    margin: 0;
    z-index: 1050;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    z-index: 1051;
}

.dropdown-item:not(.dropdown-submenu)>a::after {
    content: "" !important;
    display: none !important;
}

.dropdown-item {
    color: #36383aed;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 15px;
    text-transform: capitalize;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #0088a8;
    color: white;
}

.dropdown-item .submenu-arrow {
    margin-left: auto;
    margin-right: 5px;
}

.dropdown-toggle::after {
    display: none !important;
}

.nav-item .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #c5e2eb;
    min-width: 200px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    z-index: 1000;
    padding: 0;
}

.nav-item:hover>.dropdown-menu {
    display: block;
}

/* Desktop Styles */
@media (min-width: 1181px) {
    .navbar-toggler {
        display: none;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        border-radius: 0;
    }

    .dropdown-submenu>a {
        position: relative;
        display: flex;
        align-items: center;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 15px;
        white-space: nowrap;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Large Tablet Styles (900px to 1180px) */
@media (min-width: 1025px) and (max-width: 1180px) {
    .navbar {
        padding: 0;
        height: 45px;
        min-height: 45px;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: #78c5de;
        display: flex;
        align-items: center;
    }

    .navbar>.container {
        justify-content: center;
        padding: 0px;
        max-width: 100%;
        margin: 0;
        height: 100%;
    }

    .navbar-collapse {
        position: relative;
        display: flex !important;
        width: 100%;
        height: 100%;
        align-items: center;
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 0;
        height: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .navbar-nav .nav-item {
        white-space: nowrap;
        margin: 0;
    }

    .nav-link {
        padding: 8px 12px;
        margin: 0 1px;
        font-size: 13px;
        color: #36383aed !important;
    }

    /* Dropdown styles */
    .dropdown-menu {
        position: fixed !important;
        top: 110px !important;
        background-color: #c5e2eb !important;
        border: none !important;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2) !important;
        padding: 0;
        margin: 0;
        min-width: 180px;
        z-index: 1031 !important;
    }

    .dropdown-submenu {
        position: relative !important;
    }

    .dropdown-submenu>.dropdown-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-top: 0 !important;
        z-index: 1031 !important;
    }

    .dropdown-item {
        padding: 8px 15px;
        font-size: 13px;
        color: #36383aed !important;
        white-space: nowrap;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-item:hover {
        background-color: #0088a8;
        color: white !important;
    }

    /* Show dropdowns on hover */
    .nav-item:hover>.dropdown-menu {
        display: block;
    }

    /* Hide custom submenu arrow */
    .submenu-arrow {
        display: none !important;
    }

    /* Ensure dropdown toggles work */
    .dropdown-toggle::after {
        display: inline-block !important;
        margin-left: 5px;
        vertical-align: middle;
        content: "";
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
    }

    /* For submenu indicators, use a different arrow */
    .dropdown-submenu>a::after {
        display: inline-block !important;
        margin-left: 5px;
        vertical-align: middle;
        content: "";
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 4px solid;
    }

    /* Map container adjustments */
    .map-container {
        top: 105px !important;
        height: calc(100vh - 105px) !important;
    }

    /* Map widget adjustments */
    .map-widget {
        top: 110px;
    }

    /* Logo adjustments */
    .pudhulogo {
        width: 300px;
    }

    .indialogo {
        height: 35px;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block !important;
    }
}

/* Mobile and Small Tablet Styles */
@media (max-width: 1024px) {

    /* Navbar and Menu */
    .navbar {
        padding: 0;
        height: 55px;
        display: flex;
        align-items: center;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: #78c5de;
    }

    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background-color: #fff;
    }

    .navbar-toggler {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
        margin: 0;
    }

    .navbar>.container {
        justify-content: center;
        padding: 0 50px;
    }

    .navbar-collapse {
        position: fixed;
        top: 110px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 110px);
        background-color: #78c5de !important;
        transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1050;
        padding: 0;
        margin: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show {
        left: 0;
        transform: none;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 15px 25px;
        margin: 0;
        font-size: 16px;
        color: #fff !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff !important;
    }

    /* Dropdown styles */
    .dropdown-menu {
        position: static !important;
        background-color: rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-submenu .dropdown-menu {
        display: none;
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

    .dropdown-submenu .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

    .dropdown-menu .dropdown-menu .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.3) !important;
    }

    .dropdown-submenu>.dropdown-menu {
        margin-left: 20px;
    }

    .dropdown-item {
        color: #fff !important;
        padding: 12px 35px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }

    /* Map container adjustments */
    .map-container {
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 110px);
    }

    /* Map widget adjustments */
    .map-widget {
        position: fixed;
        top: 130px;
        right: 10px;
        z-index: 1025;
    }

    /* Menu Item Interactions */
    .nav-item.dropdown>.nav-link {
        position: relative;
        z-index: 1;
        width: 100%;
        cursor: pointer;
    }

    /* Arrow Transitions */
    .nav-item.dropdown>.nav-link .submenu-arrow,
    .dropdown-submenu>a .submenu-arrow {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        font-size: 12px;
        margin-left: 8px;
    }

    .nav-item.dropdown.show>.nav-link .submenu-arrow {
        transform: rotate(180deg);
    }

    .dropdown-submenu.show>a .submenu-arrow {
        transform: rotate(90deg);
    }

    /* Narration styles for mobile */
    #narration {
        width: 100vw;
        position: fixed;
        right: -100vw;
        top: 117px;
        bottom: 0;
        background-color: #f5f5f5;
        transition: right 0.3s ease-in-out;
    }

    #narration.closed {
        right: -100vw;
    }

    .sidebar-handle {
        position: fixed;
        top: 60%;
        right: 0;
        left: auto;
        background-color: #0d6efd;
        padding: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
        font-size: 13px;
        transform: translateY(-50%);
        width: 40px;
        min-height: 80px;
        border-radius: 5px 0 0 5px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .navbar-collapse {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 15px;
    }

    .pudhulogo {
        width: 250px;
    }

    .indialogo {
        height: 35px;
    }

    .top-bar {
        padding: 8px 12px;
    }

    .map-widget {
        right: 10px;
    }

    #villagesearchDiv .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .modal {
        margin: 0;
        padding: 10px;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-collapse {
        width: 320px;
    }

    .nav-link {
        font-size: 17px;
    }

    .pudhulogo {
        width: 350px;
    }

    .indialogo {
        height: 40px;
    }

    #villagesearchDiv {
        max-width: 350px;
    }
}

/* Map and Utility Styles */
.map-container {
    position: fixed;
    top: 115px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 110px);
    z-index: 1;
}


@media (max-width: 768px) {
    .map-container {
        top: 96px;
        height: calc(100vh - 90px);
    }
}

#map {
    height: 100%;
    width: 100%;
}

/* Map Widget Styles */
.map-widget {
    position: fixed;
    top: 130px;
    right: 10px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
    width: fit-content;
}

.map-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    transition: background 0.3s;
}

/* Hover effect for the icon container */
.map-tool:hover {
    background: #f5f5f5;
}

/* Icon styling */
.map-tool i {
    font-size: 15px;
    color: black;
}

/* Tiny title below icon */
.map-tool .tool-title {
    font-size: 10px;
    /* very small font */
    color: #666;
    margin-top: 3px;
}

/* Special styling for the bottom icon with a gray circle, if desired */
.map-tool.more {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #f0f0f0;
}

.map-tool.more i {
    font-size: 16px;
    color: #333;
}


/* More tools button specific style */
.map-tool.more {
    border-top: 1px solid #eee;
    margin-top: 3px;
    padding-top: 6px;
}

/* Layer Controls */
.layersListSideDiv,
.legendsidediv,
.basemapsidediv {
    position: absolute;
    top: 130px;
    right: 80px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1000;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .map-widget {
        top: 110px;
        right: 5px;
        padding: 5px;
    }

    /*.map-tool {
        width: 32px;
        min-width: unset;
        padding: 6px;
    }*/

    .map-tool i {
        font-size: 14px;
        margin: 0;
    }

    .map-tool .tool-title {
        font-size: 8px;
        display: block;
    }

    .layersListSideDiv,
    .legendsidediv,
    .basemapsidediv {
        right: 50px;
        width: 250px;
    }

}

/* Utility Classes */
.error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Additional Required Styles */
.closenarration {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    margin-left: auto;
    padding: 0 10px;
    line-height: 26px;
}

.closenarration:hover {
    color: #ff0000;
}

.clsinf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: #f5f5f5;
}



.popup-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-body {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.close-btn:hover {
    color: #333;
}



/* Modal Styles */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#modalOverlay .modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: block;
}

#modalOverlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

#modalOverlay .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    position: absolute;
    right: 20px;
    top: 10px;
}

#modalOverlay .btn-close:hover {
    color: #333;
}

/* Feedback Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 999999;
    position: relative;
    display: block;
    height: auto;
    margin: auto;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 85vh;
    }
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.btn-close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 0;
}

#feedbackForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#feedbackForm .mb-3 {
    margin-bottom: 0 !important;
}

#feedbackForm input,
#feedbackForm textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#feedbackForm textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

#btnsubmitfb {
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#btnsubmitfb:hover {
    background: #0056b3;
}

@media (max-width: 480px) {
    .modal {
        width: 90%;
        margin: 20px;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Radio Group */
.modal-overlay .radio-group {
    text-align: left;
    margin-top: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-overlay .radio-group label {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Dropdown */
.purpose_opt {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.submenu-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.navbar-collapse {
    z-index: 1050;
}

/* CAPTCHA */
.captcha-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.captcha-image {
    font-size: 20px;
    font-weight: bold;
    font-family: "Courier New", monospace;
    letter-spacing: 3px;
    text-decoration: line-through;
    color: #333;
}

.captcha-box button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #007bff;
}

.captcha-box button:hover {
    color: #0056b3;
}

.captcha-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Download Consent Notice */
.download-consent {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 11.5px;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Download Button */
.download-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 0.3px;
}

.download-btn:hover {
    background: #0056b3;
}


/* Header Section */
.basemap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.progressloading {
    z-index: 99999999999;
    position: absolute;
    top: 30%;
    left: 40%;
    display: none;
}

/* Close Button */
.closebasemap {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.closebasemap:hover {
    color: #000;
}

/* Basemap Items */
.basemap-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.basemap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.basemap-item:hover {
    background: #f0f0f0;
}

/* Images */
.bmicon {
    width: 100px;
    border-radius: 5px;
}

/* Labels */
.bmlbl {
    font-size: 14px;
    font-weight: 500;
}


#divLegend {
    z-index: 100;
    height: auto;
    /*max-height: 90vh;*/
    /*min-height: 90%;*/
    text-align: left;
    padding-left: 10px;
    overflow: auto;
    font-size: 13px;
    /*font-weight: bold;
    font-family: 'Open Sans', sans-serif;*/
}

.legendtitle {
    font-size: 18px;
    text-align: left;
}

#divLayers {
    max-height: 90vh;
    overflow: auto;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
}


#divLayers .toggle-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #258ccc;
    color: white;
    cursor: pointer;
    margin-bottom: 5px;
}

#divLayers .toggle-button:hover {
    background-color: #0056b3;
}

#divLayers .layer-item:hover {
    background-color: #bcc3c9;
}


#divLayers .toggle-button .fa-angle-down {
    transition: transform 0.3s;
    cursor: pointer;
}

#divLayers .toggle-button.open .fa-angle-down {
    transform: rotate(-180deg);
    cursor: pointer;
}

#divLayers .toggle-content {
    display: none;
    padding-left: 10px;
}

#divLayers .toggle-button.open+.toggle-content {
    display: block;
}

#divLayers .layer-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    background-color: #f0f1f1;
    padding: 5px;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    border-radius: 5px;
    padding: 8px;
    margin: 10px 0px;
    /*cursor:pointer;*/
}

#divLayers .layer-item input {
    margin-right: 10px;
    text-transform: capitalize;
    font-size: medium;
}

#divLayers input[type=checkbox] {
    cursor: pointer;
}

.layer-item i {
    color: #258ccc;
    opacity: 0.7;
    margin-right: 5px;
    cursor: pointer;
}

.layer-item label {
    font-size: 13px;
    transition: opacity 0.3s;
    color: #3f4346;
}

/* Requested Layer */
.requested-layer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f3f3;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 10px;
}

.spndownload {
    font-size: 16px;
    color: #007bff;
    font-weight: bold;
}

/* Input Fields */
.modal-overlay .input-field {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.modal-overlay .input-field:focus {
    border-color: #007bff;
    outline: none;
}

/* Radio Group */
.modal-overlay .radio-group {
    text-align: left;
    margin-top: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-overlay .radio-group label {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Dropdown */
.purpose_opt {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

/* CAPTCHA */
.captcha-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.captcha-image {
    font-size: 20px;
    font-weight: bold;
    font-family: "Courier New", monospace;
    letter-spacing: 3px;
    text-decoration: line-through;
    color: #333;
}

.captcha-box button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #007bff;
}

.captcha-box button:hover {
    color: #0056b3;
}

.captcha-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Download Consent Notice */
.download-consent {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 11.5px;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Download Button */
.download-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 0.3px;
}

.download-btn:hover {
    background: #0056b3;
}