/* static/css/home.css */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Hide scrollbars to prevent scrolling */
    background-color: white; /* Add this line */
}

/* No highlighting of anything except info-content */
body > *:not(.info-content):not(.tooltip) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.info-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#cesiumContainer,
#tableauContainer,
#shipMapContainer,
#historyMapContainer {
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    height: calc(100% - 58px) !important;
}

#mapOptions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    z-index: 900;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

#mapOptions.collapsed {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mapOptions.collapsed table {
    display: none;
}

#mapOptions::before {
    content: "▼";
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 12px;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#mapOptions.collapsed::before {
    content: "▲";
    position: static;
    font-size: 16px;
}

#mapOptions table {
    border-collapse: separate;
    border-spacing: 0 2px;
}

#mapOptions th {
    padding: 0px 5px 5px 5px;
    text-align: center;
    color: #1a1a1a;
    font-size: 1.1em;
    font-weight: 600;
}

#mapOptions td {
    padding: 0;
}

#mapOptions button {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: button;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    font-size: 10px; /* Reduced from 12px */
    line-height: 1.2; /* Reduced from 1.5 */
    margin: 0;
    padding: 0.45rem 1.125rem; /* Increased from 0.3rem 0.75rem */
    width: 100%;
    position: relative;
    font-weight: 900;
    outline: 1px solid #fff; /* Reduced from 2px */
    outline-offset: -1px; /* Reduced from -2px */
    overflow: hidden;
    text-transform: uppercase;
    transition: 0.2s linear 0.1s;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button:hover {
    background: var(--neon, #21a2d6);
    box-shadow: 0 0 2px var(--neon, #21a2d6), 
                0 0 12px var(--neon, #21a2d6), 
                0 0 25px var(--neon, #21a2d6),
                0 0 50px var(--neon, #21a2d6); /* Reduced shadow values */
    color: #fff;
    outline-color: transparent;
    transition: 0.2s linear 0.6s;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button.coffee-btn {
    background-color: white;
    color: black;
    --neon: #ffdd00;
    outline: 1px solid #000; /* Reduced from 2px */
    outline-offset: -1px; /* Reduced from -2px */
}

#mapOptions button.coffee-btn:hover {
    background: var(--neon, #ffdd00);
    box-shadow: 0 0 2px var(--neon, #ffdd00), 
                0 0 12px var(--neon, #ffdd00), 
                0 0 25px var(--neon, #ffdd00),
                0 0 50px var(--neon, #ffdd00);
    color: #fff;
    outline-color: #000;
    transition: 0.2s linear 0.6s;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button.subscription-btn {
    background-color: white;
    color: black;
    --neon: #4caf50;
    outline: 1px solid #000; /* Reduced from 2px */
    outline-offset: -1px; /* Reduced from -2px */
}

#mapOptions button.subscription-btn:hover {
    background: var(--neon, #4caf50);
    box-shadow: 0 0 2px var(--neon, #4caf50), 
                0 0 12px var(--neon, #4caf50), 
                0 0 25px var(--neon, #4caf50),
                0 0 50px var(--neon, #4caf50);
    color: #fff;
    outline-color: #000;
    transition: 0.2s linear 0.6s;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions tr:has(.coffee-btn, .subscription-btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

#mapOptions tr:has(.coffee-btn, .subscription-btn) td {
    padding: 0;
}

#mapOptions tr:has(.coffee-btn, .subscription-btn) button {
    width: auto;
    padding: 0.3rem 0.4rem;
}

#mapOptions button span {
    display: block;
    position: absolute;
}

#mapOptions button span.text {
    position: relative;
    z-index: 1;
}

#mapOptions button .top {
    border-top: 1px solid var(--neon, #21a2d6); /* Reduced from 2px */
    inset: 0;
    opacity: 0;
    transform: translateX(calc(-100% + var(--progress, 0%)));
    transition: none;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button:hover .top {
    --progress: 100%;
    opacity: 1;
    transition: transform 0.2s linear;
}

#mapOptions button .right {
    border-right: 1px solid var(--neon, #21a2d6); /* Reduced from 2px */
    inset: 0;
    opacity: 0;
    transform: translateY(calc(-100% + var(--progress, 0%)));
    transition: none;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button:hover .right {
    --progress: 100%;
    opacity: 1;
    transition: transform 0.2s linear 0.2s;
}

#mapOptions button .bottom {
    border-bottom: 1px solid var(--neon, #21a2d6); /* Reduced from 2px */
    inset: 0;
    opacity: 0;
    transform: translateX(calc(100% - var(--progress, 0%)));
    transition: none;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button:hover .bottom {
    --progress: 100%;
    opacity: 1;
    transition: transform 0.2s linear 0.4s;
}

#mapOptions button .left {
    border-left: 1px solid var(--neon, #21a2d6); /* Reduced from 2px */
    inset: 0;
    opacity: 0;
    transform: translateY(calc(100% - var(--progress, 0%)));
    transition: none;
    border-radius: 6px; /* Increased from 3px */
}

#mapOptions button:hover .left {
    --progress: 100%;
    opacity: 1;
    transition: transform 0.2s linear 0.6s;
}

.tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 10px 10px 5px 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 250px;  /* Ensure tooltip does not exceed 250px in width */
    word-wrap: break-word;  /* Ensure long words wrap to the next line */
    transform: translate(0, 58px);
}

.tooltip.expanded {
    max-height: none;
    overflow: visible;
}

.tooltip .ellipsis {
    font-size: 12px;
    cursor: pointer;
    color: blue;
    text-decoration: underline;
    white-space: nowrap;
}

/* Specific styles for <b> and <br> within the tooltip */
.tooltip b {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    /* color: #333; */
}

.tooltip br {
    height: 0; /* Set height to 0 */
    margin: 0; /* Set margin to 0 */
}

/* Specific styles for ul and li within the tooltip */
.tooltip ul {
    padding-left: 20px; /* Adjust padding to your needs */
    margin: 0; /* Minimize margin */
}

.tooltip li {
    margin: 0; /* Minimize margin */
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* Specific styles for ethnicities tooltip */
.tooltip.ethnicities li {
    margin: 0; /* Minimize margin */
    font-size: 14px;
}

.tooltip.ethnicities .ethnicity-groups li {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
}

.tooltip.ethnicities .ethnicity-groups li:hover {
    color: darkblue;
}

.tooltip.international-organizations {
    max-width: 350px;
    width: auto;
    word-wrap:normal;
}

.tooltip.international-organizations .org-categories {
    display: flex;
    justify-content: space-between;
}

.tooltip.international-organizations .org-category {
    width: 24%;
    padding-right: 10px;
}

.tooltip.international-organizations .org-category-title {
    font-weight: bold;
    font-size: 13px;
}

.tooltip.international-organizations .org-list {
    font-size: 12px;
}

.tooltip.international-organizations .org-link {
    cursor: pointer;
    text-decoration: underline;
    color: blue;
    white-space: pre-wrap;
}

.tooltip.international-organizations .org-link:hover {
    color: darkblue;
}

.tooltip .help-link {
    display: block;
    text-align: center;
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid #ccc;
    color: blue;
    cursor: pointer;
    font-size: 12px;
}

.tooltip .help-link:hover {
    text-decoration: underline;
}

.rotation-control {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ccc;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.control-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.95);
}

#rotateIcon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.pin-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pin-icon.drag-mode {
    position: absolute;
    z-index: 1000;
    transform: translate(-35%, -85%);  /* Center the pin on cursor */
    cursor: move;  /* Show drag cursor */
    pointer-events: auto;  /* Allow interaction */
}

#tableauContainer {
    display: none;
}

.tableauViz {
    display: none;
}

/* Add these new styles for the active button state */
#mapOptions button.active {
    background: var(--neon, #21a2d6);
    box-shadow: 0 0 2px var(--neon, #21a2d6), 
                0 0 12px var(--neon, #21a2d6), 
                0 0 25px var(--neon, #21a2d6),
                0 0 50px var(--neon, #21a2d6);
    color: #fff;
    outline-color: transparent;
}

#mapOptions button.active .top,
#mapOptions button.active .right,
#mapOptions button.active .bottom,
#mapOptions button.active .left {
    --progress: 100%;
    opacity: 1;
}

#mapOptions button.active .top {
    transition: transform 0.2s linear;
}

#mapOptions button.active .right {
    transition: transform 0.2s linear 0.2s;
}

#mapOptions button.active .bottom {
    transition: transform 0.2s linear 0.4s;
}

#mapOptions button.active .left {
    transition: transform 0.2s linear 0.6s;
}

/* Add styles for iframe containers */
#shipMapContainer,
#historyMapContainer {
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    height: calc(100% - 58px) !important;
}

#shipMapContainer iframe,
#historyMapContainer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Add at the top of your CSS file */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background-color: black;
    z-index: 1002;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.navbar img {
    height: 40px;
    width: auto;
}

/* Add these styles */
.info-button {
    position: fixed;
    top: 10px;
    right: 12px;
    width: 35px;
    height: 35px;
    background-color: #21a2d6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px; /* Increased for better visibility */
    z-index: 1001;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-button:hover {
    background-color: #1b89b4;
}

/* Updated active state styles */
.info-button.active {
    background-color: white;
    color: black !important; /* Force black color */
    border: 2px solid black !important; /* Force black border */
    font-weight: bold; /* Make the X more visible */
}

.info-button.active:hover {
    background-color: #f0f0f0;
    color: black !important; /* Maintain black color on hover */
    border: 2px solid black !important; /* Maintain black border on hover */
}

/* @keyframes info-glow {
    from {
        box-shadow: 0 0 10px #21a2d6,
                0 0 40px #21a2d6,
                0 0 70px #21a2d6,
                0 0 100px #21a2d6;
    }
    to {
        box-shadow: 0 0 10px #000000,
                0 0 40px #000000,
                0 0 70px #000000,
                0 0 100px #000000;
    }
} */

.info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform-origin: top right; /* Add this line */
    transform: scale(0); /* Change from scale(0.95) */
    transition: all 0.3s ease;
}

.info-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.info-close-button {
    position: fixed;
    top: 15px;
    right: 25px;
    font-size: 24px;
    color: black;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
    display: none;
}
.sign-in-container .close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    color: black;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
}
.info-content {
    max-width: 800px;
    margin: 60px auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Sign In Button Styles */
.signin-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
/* Sign In Panel Styles */
.sign-in-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom left;
    transform: scale(0);
    transition: all 0.3s ease;
}
.sign-in-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.sign-in-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.sign-in-container h2 {
    text-align: center;
    color: #333;
}
.sign-in-container h4 {
    text-align: center;
    margin-top: 0em;
    margin-bottom: 1.8em;
    color: #333;
    font-size: small;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 0.5em;
}
.input-group input {
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
.button-group {
    display: flex;
    gap: 1em;
    justify-content: center;
}
.auth-button {
    padding: 1.0em 1.5em;
    border: none;
    border-radius: 4px;
    background-color: #0DBFE3;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 600;
}
.auth-button:hover {
    background-color: #21a2d6;
}
.delete-button {
    padding: 1.0em 1.5em;
    border: none;
    border-radius: 4px;
    background-color: #E01924;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 600;
}
.delete-button:hover {
    background-color: #CE332F;
}
.auth-error {
    color: #f00;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    max-width: 100%;
    word-wrap: break-word;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.auth-success {
    color: #21a2d6;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    max-width: 100%;
    word-wrap: break-word;
}
.auth-success span {
    display: inline-block;
}
.auth-success span.wavy {
    animation: wavy 0.9s ease infinite;
    position: relative;
    top: 0;
    left: 0;
}
@keyframes wavy {
    0% { top: 0px; }
    50% { top: -7px; }
    100% { top: 0px; }
}
.captcha-container {
    margin-bottom: 1em;
}

.cesium-credit {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
}

.cesium-credit img {
    height: 15px;
    width: auto;
    opacity: 0.8;
}
.toggle-container {
    display: inline-block;
    width: 30px;
    height: 15px;
    border: 2px solid #bfbebe;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    background-color: #f5f2f2;
    transition: border-color 300ms;
    margin: 0;
}

.toggle-container .real-checkbox {
    position: absolute;
    clip: rect(0,0,0,0);
}

.toggle-container .real-checkbox + .toggle-button {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    transition: all 300ms;
}

.toggle-container .real-checkbox + .toggle-button::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: all 300ms ease-in-out;
}

.toggle-container .real-checkbox:checked + .toggle-button {
    background-color: #21a2d6;
}

.toggle-container .real-checkbox:checked + .toggle-button::before {
    margin-left: 15px;
}

/* Disabled state */
.toggle-container.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.toggle-container.disabled .real-checkbox:checked + .toggle-button {
    background-color: #bfbebe;
    transition: none;
}

.toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.toggle-label {
    font-size: 12px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.fbic-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    color: black;
    cursor: pointer;
    font-weight: bold;
    z-index: 1006;
}

.fbic-close-button:hover {
    color: #666;
}

.fbic-popup {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    z-index: 1005;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: none;
    position: relative;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px #21a2d6,
                0 0 20px #21a2d6,
                0 0 30px #21a2d6,
                0 0 40px #21a2d6;
    }
    to {
        box-shadow: 0 0 10px #ffffff,
                0 0 20px #ffffff,
                0 0 30px #ffffff,
                0 0 40px #ffffff;
    }
}

.fbic-popup.visible {
    opacity: 1;
    visibility: visible;
    transition: none;
}

.fbic-popup.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 3s ease, visibility 0s linear 3s;
    animation: fadeOutGlow 3s ease-in-out forwards;
}

@keyframes fadeOutGlow {
    0% {
        box-shadow: 0 0 10px #21a2d6,
                0 0 20px #21a2d6,
                0 0 30px #21a2d6,
                0 0 40px #21a2d6;
    }
    100% {
        box-shadow: 0 0 10px #ffffff,
                0 0 20px #ffffff,
                0 0 30px #ffffff,
                0 0 40px #ffffff;
    }
}

.fbic-popup ul {
    margin: 5px 0;
}

.fbic-popup li {
    margin: 5px 0;
}

.fbic-popup p {
    margin: 5px 0;
}

.fbic-popup-content {
    padding-left: 20px;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2000;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

#loadingVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2001;
}

.hide {
    display: none !important;
}

.title-container {
    position: absolute;
    top: 42%;
    left: 51%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2002;
    width: 100%;
}

#globe_title {
    padding: 0;
    margin: 0;
    font-size: 85px;
    font-family: Georgia;
    color: #ffffff;
    text-shadow: 0 0 10px #000000;
    white-space: nowrap;
    /* animation: textGlow 3s ease-in-out infinite alternate; */
}

#djinn_credits {
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-family: Times;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px #21a2d6,
                 0 0 20px #21a2d6,
                 0 0 30px #21a2d6,
                 0 0 40px #21a2d6;
    animation: textGlow 3s ease-in-out infinite alternate;
    position: relative;
    text-align: center;
    text-indent: 330px;
    top: -15px; /* Move the element upwards by 10px */
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px #000000,
                     0 0 10px #000000,
                     0 0 15px #000000;
    }
    to {
        text-shadow: 0 0 10px #21a2d6,
                     0 0 20px #21a2d6,
                     0 0 30px #21a2d6,
                     0 0 40px #21a2d6;
    }
}

.fade-out {
    opacity: 0 !important;
}

.neon-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* top: -5px; */
    /* margin-top: 10px; */
}

.bar {
    -webkit-appearance: none;
    height: 12px; /* Converted from 1.0em */
    width: 300px;
    margin-right: 10px;
}

.bar::-webkit-progress-bar {
    padding: 5px; /* Converted from 0.3em */
    border-radius: 8px; /* Converted from 0.7em */
    background: #1a1a1a;
}

.bar::-webkit-progress-value {
    background: #21a2d6;
    box-shadow: 0 0 4px #21a2d6, 0 0 8px #21a2d6; /* Converted from 0.6em and 0.8em */
    border-radius: 8px; /* Converted from 0.7em */
}

.bar__value {
    color: #ffffff;
    font-size: 18px; /* Converted from 1.2em */
    line-height: 22px; /* Converted from 1.4em */
    letter-spacing: 1px;
    text-shadow: 0 0 10px #000000; /* Converted from 0.3em and 0.6em */
}

.completed-view-section {
    background-color: white;
    border-radius: 16px;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#mapOptions button.disabled-appearance {
    background-color: #bfbebe;
    cursor: not-allowed;
    box-shadow: none;
    outline-color: #fff;
}

#mapOptions button.disabled-appearance:hover {
    background-color: #bfbebe;
    box-shadow: none;
    outline-color: #fff;
    transition: none;
}

#mapOptions button.disabled-appearance .top,
#mapOptions button.disabled-appearance .right,
#mapOptions button.disabled-appearance .bottom,
#mapOptions button.disabled-appearance .left {
    border-color: #bfbebe; /* Match the disabled background color */
    opacity: 1;
    transition: none;
}