body {
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
}

#route_summary{
    display: flex;
  align-items: center;
  justify-content: center;
}
#route_buttons{
    display: flex;
  align-items: center;
  justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

label {
    margin: 10px 0 5px;
}

input {
    padding: 5px;
    margin-bottom: 10px;
    width: 200px;
}

button {
    padding: 10px 20px;
}

#directions-container {
    margin: 20px;
}

.route {
    margin-bottom: 20px;
}

hr {
    border: 1px solid #ccc;
}
/* Responsive adjustments */

#map {
        height: 80%;
    }
/*@media (min-width: 768px) {
    #map {
        height: 500px;
    }
}

@media (min-width: 992px) {
    #map {
        height: 600px;
    }
}*/
    h1 {
        font-size: 2em;
    }

    form {
        margin: 40px 20px;
    }

    label, input, button {
        font-size: 1.2em;
        padding: 10px;
        width: 75%;
        max-width: 100%;
    }


    button {
        padding: 15px;
    }

    #directions-container {
        font-size: 1.2em;
    }
    
#all_route_btn{
    margin-top:20px;
    margin-bottom:20px;
}
.routebox{
    border-style: solid;
    border-width:3px;
    text-align: center; 
    display: flex;
    justify-content: center;
        flex-direction: column;

}
.routebox > button{
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Loading overlay styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;

}

#loading-overlay .spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    
}
#loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
}