html, body {
  height: 99%;
}

footer{
  background: rgba(236, 234, 234, 0.555);
  text-align: center;
}



/* welcome dialog */
#welcome{
  display: flex;
  position: fixed;
  width:100%;
  height:100%;
  background:rgba(194, 198, 199, 0.925);
  z-index: 100000;
  align-items:center;
 }

 #alert-div{
  text-align: center;
  /* height:200px; */
  margin: auto;
 }
 /* end welcome dialog */




/* responsive layout */
.flex-container{
  display: flex;
}

#table-content {
  overflow: auto; 
  height: 97vh;
  width:40%;
  padding:0px 10px;
}

#map{
  width:60%;
  height:97vh;
}


@media only screen and (max-width: 1580px) {

  .flex-container{
    flex-wrap: wrap;
  }

  #table-content{
    order:1;
    width:100%;
    height:50vh;
  }

  #map{
    width:100%;
    height:50vh;
  }


}


@media only screen and (min-width: 1580px) {
  #show-on-small-screen{
    display: none;
  }
}

/* layout */






 /* Legend styles */
 .leaflet-legend{
  background-color: white;
  padding: 10px;
  border-radius: 15px;
}



/* custom legend container - alternative to leaflet legend*/
#legend-container{
  position:absolute;
  left:10px;
  bottom:40px;
  z-index: 10000;
  height:230px;
  width:200px;
  /* background-color: #ffffffb4; */
  border-radius: 10px;
  padding: 0px 10px;
}


.transparent-bg{
  background-color: #ffffffb4;
}

.white-bg{
  background-color: white;
}


#legend-title{
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 5px;
}


.legend-category-heading{
  font-size: 1.6em;
  font-weight: bold;
}

.leaflet-legend img{
  width: 30px;
  height:30px;
  /* margin-bottom: 10px; */
  margin-right:5px;
}

.legend-label{
  font-size: 1.5em;
}

.legend-icon-circle
{
  height:20px;
  width:20px; 
  display:inline-block;
  border-radius:50%; 
  border:1px solid black;
  margin-right:5px;
}

.report-legend-elem,.exp-legend-elem{
  margin-bottom: 10px;
}
 /* End Legend styles */







 /* statistics values */
 p#stats,.badge-pill{
  font-size:20px;
}

#tot_reports{
  font-weight: bold;
}

#tot_fire_reports{
  font-weight: bold;
  color: white;
}

#tot_police_reports{
  font-weight: bold;
  color: white;
}

#tot_ambulance_reports{
  font-weight: bold;
  color: white;
}
 /* end statistics values */


/* table*/

table {
   border: 1px solid black;
   border-collapse: collapse;
   width: 100%;
 }


 th,td {
  font-size: larger;
   text-align: left;
   padding: 10px;
 }

 tr:hover{
    background: lightgrey!important;
 }

 td.report_id{
  width: 35px !important;
  cursor: pointer;
  
 }

 td.Fire{
  background: #FFE0DF;
 }
 td.Police{
  background: #DEF3FF;
 }
 td.Ambulance{
  background: #DEFFDF;
 }


/* end table*/





/* ----------------------------IMAGE MODAL POPUP------------------------- */
.popup-img{
  cursor: pointer;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* 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: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

/* ----------------------------END MODAL POPUP IMAGE------------------------- */






#table-view-control{
  position: absolute;
  top: 10px;
  left: 70px;
  z-index: 1000;
  background: white;
  border: 2px solid rgb(165, 164, 164);
  width: 50px;
  height: 50px;
  text-align: center;
  padding:5px 0px;
  cursor: pointer;
}

.table-shown{
  color:green;
}
.table-hidden{
  color:gray;
}


.hide-elem{
  display: none;
}
.show-elem{
  display: block;
}


.full-width{
  width:100% !important;
}
.full-height{
  height:97vh !important;
}
.half-height{
  height:50vh !important;
}