html {
    padding: 30px;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; 
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    margin: 0;
    padding: 0;
    width: 100vh;
    background-color: #f5f5f5; 
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.heading {
    text-align: left;
    width: 100%; /* Ensure the heading takes the full width of the container */
    margin-left: 0; /* Remove any default left margin */
}

#intro-text, #task-text, #info-text, #conclusion-text{
    padding-left: 20px;
    padding-right: 20px;
} 

.author-info-container{
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.byline {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
    align-items: center; 
}

.author-info {
    display: flex;
    margin-bottom: 20px;
    align-items: center; 
}

.author-image {
    border-radius: 50%;
    max-width: 50px;
    height: 50px;
    margin-right: 10px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.2em;
    font-weight: bold;
}

.publish-date {
    font-size: 0.9em;
    color: #777;
}

.author-link {
    text-decoration: none;
    color: black; /* Set text color to black */
}

.author-link:hover {
    text-decoration: underline; /* Underline on hover */
}

#map {
    height: 600px;
    width: 100%;
    margin: 20px 0;
}

.horizontal-line-container {
    display: flex;
    align-items: center; /* Center the horizontal line vertically */
    justify-content: center; /* Center the horizontal line horizontally */
    height: 50px; /* Adjust the height as needed */
}

.horizontal-line {
    border-top: 2px solid #000; /* Change to border-top for a horizontal line */
    width: 80%; /* Adjust width as needed */
    margin: 0 auto; /* Center the line horizontally */
    height: 1px;
}

#searchInput {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
    font-size: 1em;
}

#neighborhoodTable {
    width: 80%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
}

#neighborhoodTable th, #neighborhoodTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#neighborhoodTable th {
    cursor: pointer;
    background-color: #f2f2f2;
}

#neigborhoodTable thead tr th {
    text-align: left;
}

#neighborhoodTable th:hover {
    background-color: #ddd;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Higher z-index to ensure it appears in front of the map */
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Prevent overflow */
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Adjust width to fit within the modal */
    max-width: 600px; /* Limit the width to the screen size */
    height: 80vh; /* Adjust height to fit within the modal */
    overflow: hidden;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.download-container {
    text-align: center;
    margin: 20px 0;
}

.download-button {
    background-color: #212121; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #969696;
    color: black;
}

/* Media query for desktop screens */
@media (min-width: 700px) {
    .modal-content {
        width: 45%; /* Adjust width for desktop screens */
        height: 90vh;
    }

    .horizontal-line {
        border-top: 1.5px solid #717171;
        height: 1px;
        width: 85%;
        margin: 20px auto;
        padding-top: 10px; /* Adjust padding as needed */
        padding-bottom: 10px; /* Adjust padding as needed */
    }

    h1 {
        width: 100%;
    }

    .author-info-container {
        width: 70%;
    }

    p{
        width: 100%;
    }

    #searchInput {
        width: 70%;
    }

    #neighborhoodTable {
        width: 100%;
    }
}

.map-title {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5em;
}

.map-subheading {
    text-align: left;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.legend-box {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #000;
    vertical-align: middle; 
}

/* Media query for mobile screens */
@media (max-width: 700px) {
    .map-title {
        font-size: 1.2em;
    }

    .map-subheading {
        font-size: 0.9em;
        flex-direction: row; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
    }

    .legend-box {
        margin-right: 10px; /* Add margin below the box */
    }
}