* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'MonoFonto';
    src: url('assets/monofonto rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: "Open Sans", sans-serif;
    min-height: 100vh;
    max-width: 480px; /* Force mobile layout on all screens */
    margin: 0 auto; /* Center on desktop */
    background-color: #000000; /* Black background */
    color: #cccccc; /* Light grey text for general readability */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.3); /* Add depth on desktop */
}
.main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    padding: 5rem 5rem;
    width: 80%;
    min-height: 80vh;
    margin: 70px 150px;
}

.title{
    display: flex;
    flex-direction: column;
    align-items: center;
}



.ascii-wrapper{
    background-color: #1f1f1f;
    max-width:fit-content;
}
#ascii{
    font-size: 10px;
}



.main-subtitle {
    color: #0F0; /* Light green text color */
    text-shadow: 
        0 0 5px #0F0, /* Small green glow */
        0 0 10px #0F0, /* Medium green glow */
        0 0 20px #0F0, /* Large green glow */
        0 0 40px #0F0, /* Extra-large green glow */
        0 0 80px #0F0; /* Intense green glow */
    font-family: 'Monofonto'; /* Gives the "hacker" style font */
    background-color: #1f1f1f;
    font-size: 1vw;
    
}

.autocomplete {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.form{
    display: flex;
    gap: 5px;
    width: 100%;
    align-content: center;
    justify-content: space-evenly;
    align-items: flex-end;
}
.input,
.form input[type='text'],
.form input[type='button'] {
    color: #0F0; /* Light green text color */
    text-shadow: 
        0 0 5px #0F0, /* Small green glow */
        0 0 10px #0F0, /* Medium green glow */
        0 0 20px #0F0, /* Large green glow */
        0 0 40px #0F0, /* Extra-large green glow */
        0 0 80px #0F0; /* Intense green glow */
    font-family: 'Monofonto'; /* Gives the "hacker" style font */
    border: 1px solid transparent;
    border-radius: 6px;
    border-color: #00FF00;
    background-color: #1f1f1f; /* Dark background for input */
    padding: 15px 20px;
    font-size: 18px;
    color: #cccccc; /* Light grey text for input */
}

.buttons {
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #0F0;
    background-color:#000000 ;
    cursor: pointer;
    border: 3px solid #00FF00;
    margin-top: 66%;
    padding: 0.75em 0.5em;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

/* Terminal-style button animations */
.buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.buttons:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.buttons:hover::before {
    left: 100%;
}

.buttons:active {
    transform: translateY(0);
    box-shadow: 0px 0px 0px 0px;
    background-color: #001a00;
}

.buttons:active {
box-shadow: 0px 0px 0px 0px;
top: 5px;
left: 5px;
}

#getNearestStation{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
#savedStops{
    border-radius: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #0F0;
    background-color:#000000 ;
    cursor: pointer;
    border: 3px solid #00FF00;
    padding: 0.75em 0.5em;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#savedStops::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

#savedStops:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

#savedStops:hover::before {
    left: 100%;
}

#savedStops:active {
    transform: translateY(0);
    background-color: #001a00;
}


  #installButton{
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #0F0;
    background-color:#000000 ;
    cursor: pointer;
    border: 3px solid #00FF00;
    padding: 0.75em 0.5em;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#installButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

#installButton:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

#installButton:hover::before {
    left: 100%;
}

#installButton:active {
    transform: translateX(-50%) translateY(0);
    background-color: #001a00;
}

#installHelp {
    position: fixed;
    top: 10px;
    right: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #0F0;
    background-color: #000000;
    cursor: pointer;
    border: 2px solid #00FF00;
    padding: 0.5em 0.75em;
    border-radius: 8px;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    z-index: 1000;
}

.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.install-modal-content {
    background: #1f1f1f;
    color: #cccccc;
    padding: 30px;
    border-radius: 15px;
    max-width: 350px;
    text-align: center;
    border: 2px solid #0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.install-modal-content h3 {
    color: #0f0;
    margin-bottom: 20px;
    font-family: 'Monofonto', monospace;
}

.install-modal-content ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.install-modal-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.share-icon {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    margin: 0 3px;
    vertical-align: middle;
    font-size: 14px;
}

.install-modal-content button {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #0F0;
    background-color: #000000;
    cursor: pointer;
    border: 2px solid #00FF00;
    padding: 0.5em 1em;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#myInput::placeholder{
    color: #0F0; /* Light green text color */
    text-shadow: 
        0 0 5px #0F0, /* Small green glow */
        0 0 10px #0F0, /* Medium green glow */
        0 0 20px #0F0, /* Large green glow */
        0 0 40px #0F0, /* Extra-large green glow */
        0 0 80px #0F0; /* Intense green glow */
    font-family: 'Monofonto'; /* Gives the "hacker" style font */
}

.form input[type='button'] {
    background-color: #00FF00; /* Orange background for buttons */
    color: #ffffff; /* White text for buttons */
}


.button:hover {
    background-color: #e9a78d; /* Lighter orange for button hover */
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2c2c2c; /* Slightly lighter background for autocomplete items */
}

.autocomplete-items div {
    color: #cccccc; /* Light grey text for autocomplete items */
    padding: 10px;
    cursor: pointer;
    color: #0F0; /* Light green text color */
    text-shadow: 
        0 0 5px #0F0, /* Small green glow */
        0 0 10px #0F0, /* Medium green glow */
        0 0 20px #0F0, /* Large green glow */
        0 0 40px #0F0, /* Extra-large green glow */
        0 0 80px #0F0; /* Intense green glow */
    font-family: 'Monofonto'; /* Gives the "hacker" style font */
}

.autocomplete-items div:hover,
.autocomplete-active {
    background-color: #00FF00; /* Orange background for active/hover state */
    color: #ffffff;
}
.sort{
    cursor: pointer;
}
.destination{
    /* text-decoration: underline; */
    cursor:pointer;
}

#stationHeader{
    position: relative;
    color: #0f0; /* Light green text color */
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    font-family: 'Monofonto'; /* Gives the "hacker" style font */
    background-color: #1f1f1f;
    border: 1px solid;
    padding: 10px 0;
}
#saveStop{
    position:absolute;
    left: 0;
    top: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #0F0;
    background-color:#000000 ;
    cursor: pointer;
    border: 3px solid #00FF00;
    padding: 0.5em 0.5em;
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

tbody{
    box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px;
    color: white;
}

.unselectable {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera, and Firefox */
}

table,
th,
td {
    border: 1px solid rgba(255, 255, 255, 0.125);
    margin-top: 30px;
}

table {
    border-collapse: collapse;
}

th {
    background-color: #00FF00; /* Bright green background for table headers */
    padding: 15px 30px;
    color: #000000; /* Black text for table headers */
    font-family: 'Monofonto';
}

td {
    padding: 10px;
    background-color: #1f1f1f; /* Slightly lighter background for table cells */
    color: #0f0; /* Light green text color */
    font-family: 'Monofonto'; 
    cursor: pointer;
    user-select: none;
}
.detail-row{
    text-align: left;
    padding-left: 25%;
}
ul {
    /* Remove the default list styling */
    list-style-type: none;
    padding: 0;
}

/* Target each list item */
ul li {
    /* Add space around the pipe character for readability */
    padding-left: 10px;
}

/* Use the ::before pseudo-element to add content before each li */
/* ul li::before {
    content: "|-|";
    padding-right: 10px;
} */
#station-list li::before {
    content: none !important;
}
#station-list li{
    margin-bottom: 10%;
}
.blinking-cursor {
    font-weight: bold;
    color: #0f0; /* or whatever color the text is */
    text-shadow: 
        0 0 3px #0F0,
        0 0 6px #0F0;
    animation: blinking 0.3s infinite alternate;
  }
  
  @keyframes blinking {
    from { opacity: 1; }
    to { opacity: 0; }
  }
#submitButton:hover{
    background-color: #9cdcfe;
}


/* style.css */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.popup-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: rgb(64,64,64);
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

button.nearestStations {
    width: 80%;
    display: inline-block;
    font-size: 18px;
    background-color: #003300;
    font-family: 'Monofonto';
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for all changes */
    color: aliceblue;

}
button.deleteStop {
    width: 12%;
    display: inline-block;
    font-size: 18px;
    background-color: #003300;
    font-family: 'Monofonto';
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for all changes */
    color: aliceblue;
    padding-left: 4px;
    padding-right: 4px;
    margin-left: 8%;

}

button.nearestStations:active{
    transform: scale(0.95);
    background-color:blue ;
}
.nearestStations {
    display: block;
    margin: 5px auto;
    font-size: 18px;
    background-color: #003300;
    font-family: 'Monofonto';
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for all changes */
    color: aliceblue;

}


.popup-content ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0;
    margin: 0 auto; /* Center the list in the popup */
    width: 95%; /* Limit the list width to ensure it doesn't touch the edges of the popup */
}
.popup-content ul li {
    color: #ff6b6b; /* Red color for error messages like "No bus stops found" */
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
}
.popup-content h2{
    color: #0f0;
    text-align: center;
    }
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* .loader {
border: 4px solid #f3f3f3; 
border-top: 4px solid #3498db; 
border-radius: 50%;
width: 20px;
height: 20px; 
animation: spin 2s linear infinite;
} */
.spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    /* Center the spinner */
    position: fixed; /* Changed to fixed to ensure it stays in the same place even if the page is scrolled */
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* Ensure spinner is above the overlay */
  }
  .overlay {
    position: fixed; /* Cover the entire screen */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1000; /* Ensure overlay is below the spinner but above everything else */
    display: none; /* Initially hidden */
  }

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.wheresmybus-org-branding {
    position: fixed;
    top: 147px; /* Approximately 20% from the top, adjusted based on viewport height */
    left: 50%;
    /* transform: matrix(1, 0, 0, 1, -157.953, 0); /* Corresponds to translateX(-50%) */
    transform: translateX(-50%);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 1); /* Transparent */
    padding: 10px;
    font-size: 32px; /* 2em */
    font-weight: 700; /* bold */
    color: #0F0; 
    font-family: Electrolize, monospace;
    /* text-shadow: rgb(0, 255, 255) 0px 0px 5px, rgb(0, 255, 255) 0px 0px 10px, rgb(0, 255, 255) 0px 0px 15px, rgb(0, 255, 255) 0px 0px 20px; Electric blue glow */
    letter-spacing: 2px;
    opacity: 1;
    overflow: hidden;
    animation: glitch-effect 10s infinite;
}

/* Glitch effect pseudo-elements */
.wheresmybus-org-branding::before,
.wheresmybus-org-branding::after {
    content: attr(data-text);
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    color: #0F0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    pointer-events: none;
}

.wheresmybus-org-branding::before {
    animation: glitch-red 10s infinite;
    color: #ff0040;
    z-index: -1;
}

.wheresmybus-org-branding::after {
    animation: glitch-blue 10s infinite;
    color: #00ffff;
    z-index: -2;
}

/* Glitch keyframe animations - keep transform contained */
@keyframes glitch-effect {
    0%, 89%, 91%, 95%, 97%, 100% {
        transform: translateX(-50%);
        filter: hue-rotate(0deg);
    }
    90%, 92%, 94%, 96%, 98% {
        transform: translateX(-50%) skew(1deg);
        filter: hue-rotate(90deg);
    }
}

@keyframes glitch-red {
    0%, 89%, 91%, 95%, 97%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    90%, 94%, 98% {
        transform: translateX(-4px) translateY(2px);
        opacity: 0.6;
    }
    92%, 96% {
        transform: translateX(3px) translateY(-1px);
        opacity: 0.8;
    }
}

@keyframes glitch-blue {
    0%, 89%, 91%, 95%, 97%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    90%, 94%, 98% {
        transform: translateX(5px) translateY(-2px);
        opacity: 0.5;
    }
    92%, 96% {
        transform: translateX(-3px) translateY(1px);
        opacity: 0.7;
    }
}

.version-indicator {
    display: block;
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    margin-top: 5px;
    letter-spacing: 1px;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.branding-tagline {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    letter-spacing: 0.5px;
    color: #0F0;
    font-family: 'MonoFonto', monospace;
    opacity: 0.7;
    line-height: 1.3;
    text-align: center;
}



  



  
@media only screen and (max-width: 767px) {

    body {
    transform: scale(1);
    /*font-family: 'Monofonto';*/
    font-family: "Open Sans", sans-serif;
    min-height: 100vh;
    background-color: #000000; /* Black background */
    color: #cccccc; 
    display: flex;
    align-items: center;
    justify-content: center;
    }
 


    .main {
    display: flex;
    flex-direction: column;
    gap: none;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    border-radius: 12px;
    margin: 0;
    padding:0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    }

    .spinner {
        width: 60px; /* Smaller spinner for mobile */
        height: 60px; /* Smaller spinner for mobile */
        border-width: 8px; /* Thinner border for a smaller spinner */
    }
    #logo{
        width: 400px;
    }
    #ascii{
    font-size: 6px;
    border-radius: 10px;

    }
    .main-subtitle {
    color: #00FF00;
    font-weight: 300;
    font-size: 10px;
    margin-top: 0;

    }
    .platform{
    padding-left: 10px;
    padding-right: 10px;
    }
    .title{
    background-color: #1f1f1f;
    height: 130px;
    border-radius: 10px;

    }
    .autocomplete{
        display: absolute;
        margin-top: 100%;
    }
    .body{
    align-items:start;
    }


    #app{
    width: 100%;
    }
    table {
    width: 100%;
    table-layout: fixed; /* This ensures that the table itself adheres to the width constraints */
    }

    th, td {
    word-wrap: break-word; /* Ensures content within cells does not cause overflow */
    font-size: 3.5vw; /* Adjust font size to fit smaller screens was 12px */
    }

    .detail-row td ul li {
    font-size: 3.5vw; 
    /* Adjusts font size for the details row for better fit was 12px */
    }

    /* You might also adjust padding and text size within table headers and cells for a better fit */
    th, td {
    padding: 8px; /* Reduced padding */
    }

    #typeWriteMe{
        font-size: 3.5vw;
    }

    /* .popup-content button {
        width: 80%;
    } */
    
    #installHelp {
        font-size: 14px;
        padding: 0.4em 0.6em;
        top: 5px;
        right: 5px;
    }
    
    .install-modal-content {
        max-width: 90%;
        padding: 20px;
        margin: 10px;
    }
    
    .install-modal-content h3 {
        font-size: 18px;
        color: 0f0;
    }
    
    .install-modal-content li {
        font-size: 14px;
    }
    
    .branding-tagline {
        margin-top: 3px;
        padding: 0 10px;
    }

}

/* Remove shadow on actual mobile devices */
@media (max-width: 480px) {
    body {
        box-shadow: none;
    }
}

/* Add this with your other styles */
.radius-selector {
    margin: 20px 0;
    text-align: center;
    color: #cccccc;
    font-family: 'Monofonto';
}

.radius-selector label {
    display: block;
    margin-bottom: 10px;
    color: #0F0;
    /* text-shadow: 
        0 0 5px #0F0,
        0 0 10px #0F0,
        0 0 20px #0F0; */
    font-size: 16px;
}

#searchRadius {
    background-color: #1f1f1f;
    border: 2px solid #00FF00;
    border-radius: 6px;
    color: #0F0;
    /* text-shadow: 
        0 0 5px #0F0,
        0 0 10px #0F0; */
    font-family: 'Monofonto';
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
}

#searchRadius option {
    background-color: #1f1f1f;
    color: #0F0;
}

/* Add these styles for the map */
#mapContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
}

#mapView {
    width: 90%;
    height: 80%;
    margin: 5% auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#closeMapButton {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #0f0;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    pointer-events: auto;
    touch-action: manipulation;
}

#closeMapButton:hover {
    background-color: #7a110f;
    transform: scale(1.1);
}

#closeMapButton:active {
    transform: scale(0.95);
}

/* Add a back button at bottom */
#mapBackButton {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f0;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    pointer-events: auto;
    touch-action: manipulation;
    font-family: 'Monofonto', monospace;
}

#mapBackButton:hover {
    background-color: #7a110f;
    transform: translateX(-50%) scale(1.05);
}

#mapBackButton:active {
    transform: translateX(-50%) scale(0.95);
}

/* Map loading overlay */
#mapLoadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2002;
    border-radius: 10px;
}

#mapLoadingOverlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #9e1614;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

#mapLoadingOverlay .loading-text {
    color: #0F0;
    font-family: 'MonoFonto', monospace;
    font-size: 14px;
    text-shadow: 0 0 10px #0F0;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #mapView {
        width: 98%;
        height: 90%;
        margin: 1% auto;
    }
    
    #closeMapButton {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    #mapBackButton {
        bottom: 15px;
        font-size: 14px;
        padding: 8px 16px;
    }
}



