html {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  /*font-family: Arial, Helvetica, sans-serif;*/
  font-family: Roboto;
  /*font-family: "Times New Roman", Times, serif;*/
}

/* This breaks the popups
tbody {
  position: absolute;
  width: 100%;
  height: 60px;
  display: block;
  top: 0;
  right: 0;
}

tr {
  position: absolute;
  width: 100%;
  height: 60px;
  display: block;
  top: 0;
  right: 0;
}
*/

#loader-page {
  color: white;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  transition: width 4s, height 4s;
}

#loader-header {
  position: fixed;
  color: white;
  top: 10%;
  width: 50%;
  height: 30%;
  left: 25%;
  margin: auto;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

#loader-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#loader-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 33%;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1000;
  margin: -76px 0 0 -76px;
  border-radius: 50%;
  border-top: 16px solid red;
  border-right: 16px solid black;
  border-left: 16px solid white;
  border-bottom: 16px solid gold;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  -webkit-animation: spin 2s linear infinite;
}

.testudo {
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  left: 50%;
  right: 50%;
  z-index: 1000;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s;
}

@-webkit-keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 0px;
    opacity: 1;
  }
}

@keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

#shadow {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 900;
  background: black !important;
  opacity: 0.5;
  top: 0px;
}

#headerBar {
  top: 0px !important;
  width: 100%;
  height: 60px;
  /*padding-top: 10px;*/
  position: absolute;
  float: left;
  background: #e21833;
  z-index: 899;
  margin-top: 0px;
  padding-top: 0px;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.headerText {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  /*font-weight: bold;*/
  /*font-size: 28px;*/
  left: 50%;
  transform: translate(-50%, 0%);
  /*line-height: 2;*/
  line-height: 1.75;
  /*width: 315px;*/
  height: 30px;
  width: 400px;
}

#ht1 {
  position: absolute;
  margin-top: 0;
  margin-bottom: 0;
  top: 0;
  font-size: 20px;
  font-weight: bold;
}

#ht2 {
  position: absolute;
  margin-top: 0;
  margin-bottom: 0;
  top: 30px;
  font-size: 16px;
  /*color: #ffd200;*/
}

/*
#headerText-mobile {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: bold;
  font-size: 28px;
  left: 50%;
  transform: translate(-50%, 0%);
  line-height: 2;
  width: 100%;
  height: 60px;
  display: none;
}
*/

#headerText-mobile {
  float: right;
  width: 200px;
  height: 100%;
  line-height: 30px;
  font-weight: bold;
  font-size: 18px;
  text-align: right;
  padding-right: 10px;
  display: none;
}

#headerImage {
  padding-top: 5px;
  padding-left: 10px;
  padding-bottom: 5px;
  padding-right: 10px;
  display: inline;
  vertical-align: middle;
}

#headerImage-mobile {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  float: left;
  display: none;
  height: 60px;
  width: 60px;
}

#links {
  position: absolute;
  right: 1rem;
  height: 60px;
  top: 0;
  width: 300px;
  display: block;
}

.headerTable {
  top: 0;
  right: 0;
  position: absolute;
  height: 60px;
  width: 100%;
}

.headerTable td {
  position: absolute;
  white-space: nowrap;
  display: inline-block;
  font-size: 14px;
  width: 100px;
  height: 60px;
  padding: 0;
  top: 0;
}

#headerTbody {
  position: absolute;
  width: 300px;
  height: 60px;
  top: 0;
}

#headerTr {
  position: absolute;
  width: 300px;
  height: 60px;
}

#buttonLabelsCell {
  right: 0;
  line-height: 20px;
  text-align: center;
  top: 10px;
  bottom: 50px;
  height: 40px;
  text-wrap: wrap;
}

#splash-cell {
  left: 0;
  line-height: 40px;
  text-align: center;
}

#splash-cell-text {
  position: absolute;
  right: 10px;
  cursor: pointer;
  text-decoration: underline;
}

#splash-cell-text:hover {
  color: #ffd200;
}

#linkCell {
  left: 100px;
  line-height: 40px;
  text-align: center;
}

#centerLink {
  text-decoration: none;
}

#linkText {
  /*font-size: 18px;
  font-weight: bold;*/
  cursor: pointer;
  text-decoration: underline;
}

#linkText:hover {
  color: #ffd200;
}
/*
#sidebar {
    height: calc(100% - 60px);
    width: 25%;
    top: 60px;
    left: 0;
    background-color: #333;
    position: absolute;
    margin: 0;
    z-index: 599;
}
*/
#sidebar {
  height: calc(100% - 60px);
  width: 400px;
  top: 60px;
  left: 0;
  background-color: #333;
  position: absolute;
  margin: 0;
  z-index: 599;
}

#layerInfos {
  position: absolute;
  background-color: white;
  height: 350px;
  width: 100%;
  z-index: 601;
  text-align: center;
}

#layerInfos img {
  margin: auto;
  display: block;
  padding-top: 5px;
  position: absolute;
  width: 95%;
  height: auto;
  padding-left: 5px;
  padding-right: 5px;
  background-size: cover;
  max-width: calc(100% - 10px);
  max-height: calc(100% - 5px);
  top: 0;
}

#resultTable {
  bottom: 0;
  height: calc(100% - 350px);
  width: 100%;
  position: absolute;
  top: 350px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  text-align: center;
  z-index: 600;
}

#tableText {
  margin-top: 0;
  margin-bottom: 0;
  position: absolute;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
  text-align: center;
  top: 1rem;
  width: 380px;
  left: 0;
}

#spacer {
  top: 351px;
  height: 2px;
  width: 100%;
  background-color: #333;
}

.card {
  display: inline-block;
  height: fit-content;
  width: 90%;
  background-color: white;
  font-size: 16px;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: 10px;
  margin-right: 10px;
  vertical-align: middle;
  line-height: 1.6;
  padding-left: 10px;
  padding-right: 10px;
}

.card:hover {
  background-color: #ffd200;
  color: black;
  cursor: pointer;
}

.card:focus {
  background-color: #e21833;
  cursor: pointer;
}

#viewDiv {
  height: calc(100% - 60px);
  width: calc(100% - 400px);
  right: 0;
  margin-left: 0;
  margin-right: 0;
  position: absolute;
  top: 60px;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
}

:focus {
  outline: none;
}

h5 {
  font-size: 26px;
  color: black;
  text-align: center;
  font-weight: bold;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

h6 {
  font-weight: bold;
  color: black;
  font-size: 18px !important;
  text-align: center !important;
  margin: 3px;
}

#splash {
  /* Hidden by default */
  position: absolute; /* Stay in place */
  z-index: 901; /* Sit on top */
  left: 50%;
  top: 12.5%;
  width: 45%;
  max-width: 625px;
  height: 75%;
  transform: translate(-50%, 0);
  overflow: auto;
  background: white;
  border: 1px solid #333;
  border-radius: 5px 5px 5px 5px;
}

#splash-header {
  position: absolute;
  border-bottom: 1px solid black;
  height: 50px;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 902;
}

#splash-title {
  position: absolute;
  /*color: white;*/
  font-size: 26px;
  left: 50%;
  transform: translate(-50%, 0%);
  text-align: center;
  font-weight: bold;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: auto;
  line-height: 2;
}

.popup-tutorial {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  display: block;
  border: 2px solid white;
}

#splash-content {
  position: absolute;
  width: 100%;
  height: calc(100% - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  top: 50px;
  left: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

#splash-footer {
  position: absolute;
  height: 70px;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  z-index: 902;
  border-top: 1px solid black;
}

#dontshow-container {
  height: 20px;
  top: 5px;
  position: absolute;
  width: 180px;
  /*margin-left: auto;
  margin-right: auto;*/
  display: block;
  transform: translate(122%, 0%);
}

#dontshow-check {
  position: absolute;
  left: 0;
  height: 14px;
  width: 14px;
  top: 3px;
  margin: 0;
}

#dontshow-label {
  font-size: 12px;
  line-height: 20px;
  position: absolute;
  right: 0;
}

/*
#splash_checkbox {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
  position: relative;
}


#check {
  margin-left: 15px;
  vertical-align: middle;
  position: relative;
}
*/

.modal-button {
  font-weight: bold;
  color: black;
  /*background-color: white;*/
  border: 1px solid #333;
  font-size: 14px;
  height: 30px;
  width: 180px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  cursor: pointer;
  bottom: 10px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  padding-left: 5%;
  padding-right: 5%;
}

.modal-button:hover {
  /*background-color: #e21833;*/
  box-shadow: -1px 3px 4px 0px rgba(14, 14, 14, 0.7);
}

#open-splash {
  position: absolute;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-color: white;
  right: 20px;
  /*top: 100px;*/
  top: 92px;
  z-index: 899;
  outline-color: transparent;
  /*border: 3px solid black;*/
  box-shadow: 1px 1px 1px 1px #333;
}

#open-splash:hover {
  background-color: lightgray;
}

#manual-icon {
  padding: 2px;
  height: 28px;
  width: 28px;
}

#moreInfo-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  left: 80px;
  bottom: 20px;
  z-index: 899;
  border: 1px solid black;
  display: none;
}

#moreInfo-icon:hover {
  background-color: lightgray;
}

#moreInfo-img {
  padding: 4px;
  height: 32px;
  width: 32px;
}

#moreInfo {
  position: fixed;
  z-index: 910;
  width: 45%;
  max-width: 625px;
  height: 57%;
  top: 21.5%;
  left: 50%;
  transform: translate(-50%, 0%);
  background-color: white;
  display: none;
  overflow: auto;
  border: 1px solid #333;
  border-radius: 5px 5px 5px 5px;
}

#moreInfo-header {
  position: absolute;
  height: 50px;
  border-bottom: 1px solid black;
  top: 0;
  right: 0;
  width: 100%;
}

.moreInfo-sectionheader {
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  display: block;
}

#moreInfo-title {
  position: absolute;
  font-size: 26px;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  text-align: center;
  font-weight: bold;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: auto;
  line-height: 2;
}

#moreInfo-content {
  position: absolute;
  width: 100%;
  height: calc(100% - 100px);
  overflow: auto;
  /*Could remove overflow in the future*/
  top: 50px;
  left: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.infoModal-text {
  /*color: white;*/
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  padding-left: 1rem;
  padding-right: 1rem;
}

#mobile-disclaimer {
  display: none;
  color: white;
  font-weight: bold;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  padding-left: 1rem;
  padding-right: 1rem;
}

#moreInfo-link {
  color: #e21833;
  font-weight: bold;
}

.moreInfo-link2 {
  text-decoration: none;
}

#moreInfo-link:hover {
  color: #ffd200;
}

#feedbackLink {
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: #e21833;
  text-align: center;
  font-weight: bold;
}

#feedbackLink:hover {
  color: #ffd200;
}

#moreInfo-footer {
  position: absolute;
  height: 50px;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  z-index: 911;
  border-top: 1px solid black;
}

#queryIcon {
  position: absolute;
  /*width: 40px;
  height: 40px;*/
  height: 32px;
  width: 32px;
  cursor: pointer;
  background-color: white;
  right: 20px;
  top: 20px;
  z-index: 899;
  /*border: 0.5px solid darkgray;*/
  outline-color: #6a6a6b;
  box-shadow: 0 1px 1px 1px gray;
}

#search {
  /*padding: 4px;
  height: 32px;
  width: 32px;*/
  padding: 2px;
  height: 28px;
  width: 28px;
}

#search:hover {
  background: #eaeaea;
}
/*
#queryIcon. tooltip {
    visibility: hidden;
    background-color: black;
    color: white;
    text-align: center;
    padding: 7px 7px 7px 7px;
    position: absolute;
    z-index: 900;
    top: -5px;
    right: 105%;
}
*/
/*
#queryButton:hover. tooltip {
    visibility: visible;
}
*/

#legendIcon {
  position: absolute;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-color: white;
  right: 20px;
  /*top: 180px;*/
  top: 92px;
  z-index: 899;
  /*border: 0.5px solid darkgray;*/
  outline-color: #6a6a6b;
  box-shadow: 0 1px 1px 1px gray;
}

#legend {
  padding: 2px;
  height: 28px;
  width: 28px;
}

#legend:hover {
  background-color: #eaeaea;
}

.tooltip {
  background-color: white;
  color: black;
  font-size: 14px;
  text-align: center;
  z-index: 900;
}

/*
#floor4img {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: fit-content;
    height: fit-content;
}
*/

#floor4img {
  position: absolute;
  width: 95%;
  padding-left: 2.5%;
  padding-right: 2.5%;
  background-size: cover;
  max-width: 100%;
}

/*
#legendIcon. tooltip {
    visibility: hidden;
    background-color: black;
    color: white;
    text-align: center;
    padding: 7px 7px 7px 7px;
    position: absolute;
    z-index: 900;
    bottom: -5px;
    right: 105%;
}
*/

#legendModal {
  position: absolute;
  z-index: 899;
  right: 10px;
  bottom: 10px;
  height: 400px;
  width: max-content;
  overflow: auto;
  background: white;
  border: 1px solid black;
  border-radius: 1%;
  -moz-box-shadow: 3px 3px 4px #333;
  -webkit-box-shadow: 3px 3px 4px #333;
  box-shadow: 3px 3px 3px #333;
}

#selectModal {
  position: fixed;
  z-index: 899;
  right: 0;
  top: 120px;
  height: fit-content;
  /*height: 480px;*/
  width: 20%;
  max-width: 315px;
  overflow: auto;
  background: white;
  border: 1px solid black;
  border-radius: 5px 0px 0px 5px;
  border: 1px solid #333;
  /*-moz-box-shadow: 3px 3px 4px #333;
  -webkit-box-shadow: 3px 3px 4px #333;
  box-shadow: 3px 3px 3px #333;*/
}

.select-title {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid black;
}

.select-content {
  color: black;
}

.select-fieldset {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.search-button {
  /*background: white;*/
  border: 1px solid #333;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
  cursor: pointer;
}

.search-button:hover {
  box-shadow: -1px 3px 4px 0px rgba(14, 14, 14, 0.7);
}

#searchButton:hover {
  background: lightgreen;
}

#clear:hover {
  background: lightpink;
}

select {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#locationInput,
#drawerInput {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

hr {
  border-top: 1px solid black;
}

.searchType {
  font-weight: bold;
  /*color: white;*/
}

#error-screen {
  position: absolute;
  top: 35%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  height: 15%;
  width: 15%;
  background-color: white;
  display: none;
  z-index: 901;
  padding-top: 0;
  padding-left: 2.5%;
  padding-right: 2.5%;
  padding-bottom: 2.5%;
  border: 1px solid black;
}

@media screen and (max-height: 800px) {
  #error-screen {
    height: 30%;
    width: 30%;
    top: 35%;
  }
}

#error-header {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  width: 100%;
  border-bottom: 1px solid black;
}

#error-header h5 {
  color: red;
}

#error-footer {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  left: 0;
}

#error-content {
  margin: auto;
  display: block;
  position: relative;
  top: 1rem;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

#error-button {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  display: block;
  cursor: pointer;
}

.buttonLabels {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 125px;
  height: 260px;
}

#buttonLabelCheck {
  position: absolute;
  /*top: 10px;*/
  top: 0;
  left: 0;
}

#buttonLabelDesc {
  position: absolute;
  /*top: 10px;*/
  right: 0px;
  height: 40px;
  width: 80px;
}

#selectLabel {
  position: absolute;
  top: 62px;
  height: 20px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  right: 6px;
  /*background-color: white;*/
}

#moreInfoLabel {
  position: absolute;
  /*top: 150px;*/
  top: 134px;
  height: 20px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  right: 6px;
  /*background-color: white;*/
}

#legendLabel {
  position: absolute;
  /*top: 230px;*/
  top: 134px;
  /*top: 206px;*/
  height: 20px;
  width: 100%;
  /*right: 9px;*/
  right: 5px;
  /*background-color: white;*/
}

.buttonLabelText {
  position: absolute;
  /*
  display: flex;
  justify-content: center;
  */
  right: inherit;
  width: fit-content;
  font-size: 14px !important;
  /*font-family: Arial !important;*/
  font-family: Roboto !important;
  color: black;
  font-weight: bold;
}

.esri-view {
  --esri-view-outline-color: none !important;
}

@media screen and (max-width: 1100px) {
  #headerText {
    left: 0;
    padding-left: 1rem;
    transform: none;
  }

  #headerImage {
    display: none;
  }

  #sidebar {
    /*width: 40%;*/
    width: 300px;
  }

  #layerInfos {
    height: 25%;
  }

  #resultTable {
    height: 75%;
    top: 25%;
  }

  .card {
    padding-left: 0;
    padding-right: 0;
  }

  #viewDiv {
    /*width: 60%;*/
    width: calc(100% - 300px);
  }
}

@media screen and (max-width: 500px) {
  #loader-img {
    display: none;
  }

  #loader-text {
    position: absolute;
    width: 100%;
    height: fit-content;
    font-size: 16px;
    bottom: 45%;
  }

  #ht1,
  #ht2,
  #links {
    display: none;
  }

  #headerText {
    display: none;
  }

  #headerText-mobile {
    display: block;
  }

  #headerImage-mobile {
    display: block;
  }

  #linkText {
    display: none;
  }

  #splash {
    width: 95%;
    max-width: none;
    height: 80%;
    left: 50%;
    top: 10%;
    transform: translate(-50%, 0%);
  }

  #moreInfo-icon {
    display: block;
  }

  #moreInfo {
    width: 95%;
    height: 80%;
    left: 50%;
    top: 10%;
    transform: translate(-50%, 0%);
  }

  #moreInfo-title {
    font-size: 20px;
  }

  #sidebar {
    display: none;
  }

  #viewDiv {
    width: 100%;
  }

  #selectModal {
    width: 95%;
    right: 0;
    height: fit-content;
    top: 120px;
  }

  #dontshow-container {
    transform: translate(0, 0);
    right: 25%;
  }

  #mobile-disclaimer {
    display: block;
  }
}
