/* Modal Styles */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    display: inline-block;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.map-thumbnail-container div {
    text-align: center;
}

.map-thumbnail-container p {
    margin: 0;
    font-weight: bold;
}

.map-thumbnail-container img {
    height: 300px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.map-thumbnail-container img:hover {
    border-color: #007BFF;
}

/*
    Region button
 */
.button-container {
    display: flex;
    justify-content: space-between; /* Text on left, button on right */
    padding-bottom: 20px; /* Adds spacing */
    align-items: center; /* Align items vertically */

}

.text {
    margin: 0; /* Remove default paragraph margin */
    font-size: 16px;
}

.footer-text {
	font-size: 10px;
	padding-top: 10px;
}

.button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #135997;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.button:hover {
    background-color: #083674;
}

.button svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/*
    Highway Selection Table
 */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed; /* Ensures even column distribution */
    border: none;
}

td {
    text-align: center;
    padding: 5px;
    word-wrap: break-word; /* Prevents overflow */
}

.highway-shield {
    height: 75px; /* Fixed height for uniform appearance */
    width: auto; /* Ensures aspect ratio is maintained */
    max-width: 90%; /* Prevents overflow */
    cursor: pointer;
}

/* Ensuring that the table cells adjust evenly */
.highway-row td {
    width: calc(100% / var(--columns)); /* Dynamically adjusts based on number of highways */
}

/* Hide main container until region is selected */
#main-container {
    display: none;
}

/*
    Thumbnail Table
 */

.thumbnail-table {
    width: 100%;
    border-collapse: collapse;
}

.thumbnail-table tbody tr {
    height: 100px;
}

.thumbnail-table td {
    width: calc(100% / var(--columns));
    text-align: center;
}

.thumbnail-table img {
    width: 100%;
    cursor: pointer;
}

.thumbnail-table p {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0 0 0;
}
