body {
    background: #d2d2ea;
    font-family: 'Baskerville', serif;
    font-weight: 400;
    font-size: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
  margin-left: 50px;
  transition: margin-left .5s ease;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding-bottom: 20px;
  min-height: 0;
}

#map {
    min-height: 80vh;
    background: #e9ecef;
    flex-shrink: 0;
}

#description {
    padding: 20px;
    flex-shrink: 0;
}

#description-box {
    margin-bottom: 20px;
    background-color: #b1b1ce;
}

#scroll-content {
    padding: 20px;
    flex: 1 1 auto;
    min-height: 500px;
    overflow-y: auto;
}

/* Images grid container */
.img-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 20px;
    background-color: #b1b1ce;
    padding: 20px;
    min-height: 200px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.img-div {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.img-in-div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* The overlay effect - lays on top of the container and over the image */
.img-overlay {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 10px;
  text-align: center;
}

/* When you mouse over the container, fade in the overlay title */
.img-div:hover .img-overlay {
  opacity: 1;
}

#modal01 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1005; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.w3-modal-content {
    background-color:#b1b1ce;
    color:#0a0a0a;
}


.footer {
    align-items: center;
    background: #585b6f;
    color: #ffffff;
    width: 100%;
    padding: 20px;
    flex-shrink: 0;
}

h1 {
    font-family: 'Grenze Gotisch', serif;
    font-weight: 700;
    font-size: 2.5rem;
}

h2 {
    font-family: 'Grenze Gotisch', serif;
    font-weight: 700;
    font-size: 1.75rem;
}

h3 {
    font-family: 'Grenze Gotisch', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

p {
    font-family: 'Baskerville', serif;
    font-weight: 400;
    font-size: 1rem;
}

a {
    color: #9796d4;
    text-decoration: none;
}

a:hover {
    color: rgb(130, 131, 132);
    text-decoration: none;
}

button {
    background: rgba(123, 122, 190, 0.9);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(102, 101, 158, 0.9);
    border-radius: 10px;
}

button:hover {
    background: rgba(102, 101, 158, 0.9);
    border: 2px solid rgba(102, 101, 158, 0.9);

}

.btn-primary {
    background: rgba(123, 122, 190, 0.9);
    border: 2px solid rgba(102, 101, 158, 0.9);
}

.btn-primary:hover {
    background: rgba(102, 101, 158, 0.9);
    border: 2px solid rgba(102, 101, 158, 0.9);
}

h5 {
    font-family: 'Grenze Gotisch', serif;
}

/* Loading spinner style */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* The spinner that runs while API call resolves. */
.spinner {
    width: 200px;
    height: 200px;
    border: 16px solid #6e4e88;
    border-top: 16px solid #d5a6f0;
    border-radius: 50%;
    animation: spin 1s infinite ease-in-out;
}

/* Set blending mode to multiply for middle pane (RD2 vector tile layer)
.leaflet-pane.middle {
    mix-blend-mode: multiply;
}

/* The animation that defines the type motion for spinner */
@keyframes spin {
    /* At the beginning of the animation it isn't rotated. */
    0% {
        transform: rotate(0deg);
    }
    /* At the end of the animation it will rotate a full circle. */
    100% {
        transform: rotate(360deg);
    }
}

/* Leaflet popup & tooltip custom style */
.leaflet-container {
    font-family: 'Baskerville', serif;
}

.leaflet-bar a {
    /* Override the default style for Leaflet's zoom  */
    background: rgba(100, 100, 100, 0.9);
    color: rgba(244, 244, 244, 0.8);
}

/* Custom Tool tips */
.leaflet-tooltip-own {
    background: rgba(58, 58, 58, 0.955);
    color: rgb(244, 244, 244);
    border: none;
    font-size: 1.4rem;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.leaflet-tooltip-left:before {
    right: 0;
    margin-right: -12px;
    border-left-color: rgba(0, 0, 0, 0.4);
}

.leaflet-tooltip-right:before {
    left: 0;
    margin-left: -12px;
    border-right-color: rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content-wrapper {
    background: rgb(62, 62, 62);
    color: rgb(244, 244, 244);
    border: none;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content p,
.leaflet-popup-content a {
    font-family: 'Baskerville', serif;
    line-height: 1.6rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.leaflet-popup-content h3 {
    font-family: 'Grenze Gotisch', serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.popup-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-top: 6px 0;
    border-radius: 6px;
}

/* Sidebar styling for menu*/
#navbarContent {
    display: flex;
    flex-direction: column;
}

.show {
    display: flex !important;
}

#fake-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px; /* Width of the vertical strip */
    min-height: 100vh; /* Full viewport height */
    background-color: #888ca9; /* Same color as sidebar */
    z-index: 900;
}

.sidebar {
    height: 100%; /* Full page height */
    width: 0; /* Collapsed width */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #888ca9;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: 20px;
    transition: 0.5s;
    z-index: 1000;
}

/* Sidebar expanded state */
.sidebar.open {
    width: 250px; /* Expanded width */
}

/* Sidebar links */
.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #0a0a0a;
    display: block;
    transition: 0.3s;
}

/* Sidebar links when hovering over them */
.sidebar a:hover {
    color: #f1f1f1;
}

/* Sidebar close button (top right corner) */
.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Button to open sidebar */
.openbtn {
    all: unset;
    position: fixed;
    top: 15px;
    left: 0;
    font-size: 30px;
    cursor: pointer;
    background-color: #888ca9; /* Fix hover color since it is orange like the button class */
    color: rgb(0, 0, 0);
    padding: 5px 10px;
    z-index: 1001;
}

.openbtn:hover {
    background-color: #56596e;
    color: #fff1f1;
    border: 2px solid #56596e;
}

.closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
}

/* When sidebar is open, shift the main content to the right */
#main.shifted {
  margin-left: 250px;
}

/* Allow mobile users to tap on the image to show the overlay */
@media (hover: none) {
    .img-overlay {
        opacity: 1;
    }
}

/* Change sidebar style on smaller screens */
@media screen and (max-height: 450px) {
    .sidebar {
        padding-top: 15px;
    }
    .sidebar a {
        font-size: 18px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}