html, body {
    height: 100%;
}

body {
    font-family: "Delius", cursive;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#header{
    width: 100%;
    flex: 1 1 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 0 1rem;
    box-sizing: border-box;
}

#header #buttons {
    margin-left: auto;
}

#buttons button {
    height: 80%;
}

#viewerDiv {
    width: 100%;
    flex: 1 1 auto; 
    min-height: 0; 
    overflow: auto; 
}

#loginForm{
    position: fixed;
    inset: 0; /* top:0;right:0;bottom:0;left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0); /* transparent when hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, background 220ms ease, visibility 220ms;
    z-index: 1000;
}

#loginForm.visible{
    background: rgba(0,0,0,0.45);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#loginForm .modal{
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    min-width: 260px;
    max-width: 92%;
    transform: translateY(-8px) scale(0.99);
    transition: transform 220ms ease, opacity 220ms ease;
    opacity: 0;
    position: relative;
}

#loginForm.visible .modal{
    transform: translateY(0) scale(1);
    opacity: 1;
}

#loginForm .close{
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
}

.popup p {
    margin: 0 !important;
}

.popup h2 {
    margin: 10px;
    margin-left: 0px;
}

.popup h4 {
    margin: 10px;
    margin-left: 0px;
}

.leaflet-popup-content {
    font-family: "Delius", cursive;
    font-weight: 400;
    font-style: normal;
}


#extraPhotoView{
    position: fixed;
    inset: 0; /* top:0;right:0;bottom:0;left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0); /* transparent when hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, background 220ms ease, visibility 220ms;
    z-index: 1000;
}

#extraPhotoView.visible{
    background: rgba(0,0,0,0.45);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#extraPhotoView .photoModal{
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    min-width: 260px;
    max-width: 92%;
    transform: translateY(-8px) scale(0.99);
    transition: transform 220ms ease, opacity 220ms ease;
    opacity: 0;
    position: relative;
}

#extraPhotoView.visible .photoModal{
    transform: translateY(0) scale(1);
    opacity: 1;
}

#extraPhotoView .close{
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    html, body {
        font-size: 85%; 
    }

    #header {
        padding: 0 0.5rem;
    }

    #login button {
        height: 90%;
        font-size: 0.9rem;
    }
}

.popup img {
    width: 100%;
    height: 100%;
}

* {box-sizing:border-box}

/* Slideshow container */
.carousel-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  height: 90vh;
}

/* Hide the images by default */
.mySlides {
  display: none;
  height: 100%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}