body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .title {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-center input[type="text"] {
    width: 33.33%; /* Set width to 1/3 of the screen */
    min-width: 200px; /* Ensure a minimum width for usability */
    padding: 5px;
    font-size: 1em;
}

.header-right {
    display: flex;
    align-items: center;
}

header input[type="checkbox"] {
    margin-right: 10px;
}

.container {
    display: flex;
    width: 100%;
    height: calc(100% - 50px); /* Adjust for header height */
}

.map {
    flex: 1;
    height: 100%;
}

.gallery {
    flex: 1;
    height: 100%;
    overflow-y: auto;
}

#map {
    width: 100%;
    height: 100%;
}

#nanogallery2 {
    width: 100%;
}

.show-left .gallery,
.show-right .map {
    display: none;
}

.show-left .map,
.show-right .gallery {
    flex: 1;
    width: 100%; /* Ensure the remaining panel takes full width */
}
