body{
    margin: 20px;
}
/* Titles */

#examples{
    font-family: "Merriweather", serif;
    font-weight: 500;
    font-style: normal;
}
/* Title Style */
#title {
    font-family: 'Merriweather', serif;
    font-weight: 900; /* Extra bold for emphasis */
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Subtitle Style */
#subtitle {
    font-family: 'Merriweather', serif;
    min-height: 100px;
}


/* Search Bar */
#searchbar-wrapper {
    width: 100%;
    position: relative;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}
@media (max-width: 445px) {
    #searchbar-wrapper {
        margin-top: 50px;
        justify-content: left;
    }
}


.search-barandbutton {
    width: 60%; /* Default width for small screens */
    max-width: 800px; /* Optional: set a max width */
    display: flex; /* Use flexbox to layout the input and button */
    justify-content: space-between; /* Space between input and button */
    align-items: center; /* Center items vertically */
    margin-bottom: 100px;
}

input[type="text"] {
    flex-grow: 1; /* Allow input to grow and take available space */
    padding: 10px 20px; /* Padding for input */
    border: 1px solid #dcdcdc; /* Light gray border */
    border-radius: 14px; /* Rounded edges */
    font-size: 16px; /* Font size */
    outline: none; /* Remove default outline */
    transition: box-shadow 0.3s; /* Smooth transition for focus */
}

input[type="text"]:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Light blue shadow on focus */
}

.search-button {
    padding: 10px 20px; /* Padding for button */
    border: none; /* Remove default border */
    border-radius: 14px; /* Rounded edges */
    background-color: #084581; /* Dark slate gray */
    color: white; /* White text color */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
    margin-left: 10px; /* Space between input and button */
}

.search-button:hover {
    background-color: #0a253f; /* Darker gray on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
}

#examples {
    margin-left: 10px;
}

/* JSON */

#json-wrapper {
    width: 100%;
    margin-bottom: 20px;     /* Adds space between JSON display and buttons */
}
#jsonDisplay{
    width: 100%;
    display: flex;
    justify-content: center;
}

 
 /* Styling the JSON display */
pre {
    padding: 10px;
    background-color: white;
    border: 2px solid #a9a9a9;
    border-radius: 15px;
    white-space: pre-wrap;    /* Wraps long lines */
    word-wrap: break-word;     /* Allows breaking of long words */
    width: 90%;               /* Default width for small screens */
    /* max-width: 800px;          Optional: set a max width */
    max-height: 40vh;          /* Limits height to 40% of the viewport */
    overflow-y: auto;          /* Enables vertical scrollbar if content exceeds max height */
    
}


@media (min-width: 600px) {
    pre {
        width: 80%; /* Width for medium screens */
    }
}

@media (min-width: 900px) {
    pre {
        width: 70%; /* Width for larger screens */
    }
}

/* Syntax highlighting for JSON */
.key {
    color: brown;
}
.value {
    color: navy;
}
.string {
    color: green;
}

/* Spinner */
.spinner-container {
    display: flex;
    justify-content: center; 
    align-items: center;     
    
    margin-right: 50px;
  }
/* Spinner circle */
.spinner-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid lightgray;
    border-top: 2px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optional: Styling for the loading text */
#spinner span {
    margin-left: 10px; /* Space between spinner and text */
}

/* buttons create map, modify prompt */
#buttons-after-prompt {
    width: 80%;                /* Set the parent div to 80% width */
    display: flex;             /* Enable flexbox */
    justify-content: space-between; /* Distribute buttons at the extremes */
    align-items: center;       /* Center items vertically */
    margin: 0 auto;            /* Center the div itself */
    margin-top: 20px;          /* Add some space above */
}

.buttons-prompt {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;  /* Example button color */
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.buttons-prompt:hover {
    background-color: #0056b3;  /* Darker color on hover */
}

/* mapa */
#map {  width: 90%; }

#mapContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#mapButtons {
    margin-top: 20px;
    display: none; /* Initially hidden */
    gap: 10px; /* Add spacing between buttons */
    justify-content: space-between !important;
    align-items: flex-start;
    width: 87%;
}

#leftButton{
    display: flex;
    align-items: center;
}
#rightButtons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px; /* Space between the buttons */
}
#mapButtons button {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 160px; /* Adjust as needed for button width */
}

