html, body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}


/* The Modal (background) */
.modal {
 display: none; /*  Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  padding: 0;
  border: 1px solid #888;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 8px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
  padding: 2px 16px;
    font-size: 8px;
}
.modal-camera-container {
/*  should be max width of modal-content 80%  */
  text-align: center;
    margin: auto;
    width: 100%;
    max-width: 80%;
    /* height should be 4:3 aspect ratio */
    height: auto;
    /* prevent box from increasing while the image isnt loaded */
    ;

}
.modal-camera-container img {
    width: 100%;
    height: auto;
}

/* Desktop styles */
@media screen and (min-width: 769px) {
  .modal-content {
    width: 90%;
    max-width: 1400px;
  }
  .modal-camera-container {
    max-width: 90%;
  }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  .modal-content {
    width: 100%;
    max-height: 95vh;
    border-radius: 8px;
  }
  .modal-camera-container {
    max-width: 100%;
  }
}

/* Ensure modal displays properly when shown */
.modal[style*="block"] {
  display: flex !important;
}



#map {
  height: 100vh;
  width: 100vw;
}

#maptoolbar {
/* bottom right hand side */
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: white;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    z-index: 4000;

    }
