html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    font-family: Roboto, sans-serif;
    overflow: hidden; /* Prevent scroll bars */
}

h3 {
    text-align: center;
    margin: 5px;
    font-size: 14px;
}

#map {
    height: 100%;
    width: 100%;
}

#sidebar {
    display: none; /* Hide the sidebar by default */
    height: 100%;
    overflow-y: scroll;
    background: #fff;
    padding: 10px; /* Add padding to the sidebar */
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

}

/* Display the sidebar on larger screens */
@media (min-width: 1024px) {
    #map {
        width: 86%; /* Adjust the width of the map when sidebar is visible */
    }

    #sidebar {
        display: block; /* Show the sidebar */
        width: 14%; /* Set the desired width of the sidebar */
    }
}

/* Hide the sidebar in portrait orientation on mobile devices */
@media (max-width: 768px) and (orientation: portrait) {
    #map {
        width: 100%; /* Full width map when sidebar is hidden */
    }

    #sidebar {
        display: none; /* Hide the sidebar in portrait mode */
    }
}

/* Display the sidebar in landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    #map {
        width: 74%; /* Adjust the width of the map when sidebar is visible */
    }

    #sidebar {
        display: block !important; /* Show the sidebar in landscape mode */
        width: 26%; /* Set the desired width of the sidebar */
    }
}

/* Pixel 6 Pro specific */
@media (max-width: 1080px) and (max-height: 2400px) and (orientation: landscape) {
    #sidebar {
        display: block !important;
        width: 26%;
       /* background-color: lightgreen;  Different color for debugging */
    }

    #map {
        width: 74%;
    }
}

#legend {
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 5;
    padding: 5px;
}

#marker-list {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

#marker-list li {
    cursor: pointer;
    padding: 5px 10px; /* Adjust padding to fit the text closer to the left side */
    list-style: none;
    border-bottom: 1px solid #ddd;
}

#marker-list li:hover {
    background: #eee;
}

/* Styling for the info-link class 
.info-link a {
    color: red;
    text-decoration: none; 
    font-size: 30px;
    font-weight: bold; 
    text-align: center;
}
*/


/* Styling for marker popups
.popup-link {
    font-size: 30px;
    text-align: center;
    
}
    */

.info-window-content {
    background-color: white; /* Change this to your desired background color */
    padding: 0 5px 10px 5px;
    border-radius: 5px;
    color: #000000; /* Text color */
    }


.info-window-content h3 { /* System or Entrance number */
    margin: 0 0 10px 0;
    color: #25aaddff; 
    font-size: 24px;
    text-align: center;
}

.info-window-content p {  /* Information text in the Popup */
    margin: 5px 0;
    font-size: 16px;
    font-weight: Bold;
}


/* New Styles for the Search Box */
#search-box {
    width: calc(100% - 20px); /* Adjust width considering padding */
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.info-window-content a.info-link {
    display: inline-block;
    margin: 5px auto;
    padding: 5px; /* Adjust padding to make it look like a button */
    font-size: 14px;
    font-weight: bold;
    color: #fff; /* White text color */
    background-color: #25aadd; /* Blue background color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
}

/*
.info-window-content a.info-link:hover {
    background-color: red;
    text-decoration: none;
}

*/