html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #323232;
  overflow: hidden;
}

@font-face {
  font-family: 'AmericanStandardFont';
  src: url('fonts/GT-America-Standard-Regular.woff2') format('woff2');
}

* {
  font-family: 'AmericanStandardFont', open sans, sans-serif;
}

header {
  background-color: #47b291;
  color: #48b291;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px -4px #ffffff;
  position: relative;
  z-index: 2;
  height: 50px;
}

header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(
    to bottom,
    rgba(32, 32, 32, 0.1),
    rgba(32, 32, 32, 0.3)
  );
  z-index: -1;
}

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (orientation: landscape) {
  header {
    padding-left: 40px;
  }
}

.background {
  position: absolute;
  background-color: #323232;
  filter: blur(8px) brightness(70%);
  background: url(https://photomosaic-cdn.bluerobot.com/38000f02-fd8c-11ef-959d-42004e494300/background)
    no-repeat 50% fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.logo {
  height: 50px;
  margin-right: 10px;
  flex-shrink: 0;
}

.hashtag {
  font-size: 20px;
  margin-left: 10px;
  font-variant: small-caps;
}

footer {
  background-color: #47b291;
  color: #1d4a5a;
  padding: 10px;
  font-size: 14px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  z-index: 0;
  height: 38px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.remove-yourself {
  text-align: center;
}

.powered-by {
  color: #777;
  font-size: 12px;
}

#powered-by a:link,
#powered-by a:visited {
  color: #777;
  text-decoration: underline;
}

.header-right-pad {
  width: 200px;
}

.map {
  flex: 1;
  position: relative;
  z-index: 1;
}

.map .ol-zoomslider {
  background-color: #fff;
  width: 5px;
  max-height: 350px;
  padding: 0;
  box-shadow: 0 0 5px #fff;
  border-radius: 7.5px;
  position: absolute;
  left: 5%;
  z-index: 15;
  display: none;
}

.map .ol-zoomslider:hover {
  background-color: #fff;
}

.map .ol-zoomslider-thumb {
  height: 20px;
  width: 20px;
  margin: 0;
  filter: none;
  background-color: #fff;
  border-radius: 10px;
  border: 2px solid #fff;
  margin-top: -5px;
  margin-left: -7px;
  z-index: 20;
  cursor: pointer;
}

.map a.ol-zoomslider-handle:hover {
  background-color: #fff;
}

.modal-overlay {
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay .modal-image {
  width: 80%;
  height: 80%;
  align-items: center;
  justify-content: center;
  display: flex;
}

.modal-overlay .modal-image img {
  min-height: 100%;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
  .header-right-pad {
    display: none;
  }

  .modal-overlay .modal-image img {
    min-width: 100%;
    min-height: unset;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 768px) and (orientation: landscape) {
  .logo {
    height: 35px;
  }

  .hashtag {
    font-size: 16px;
    margin-right: 30px;
  }

  .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .remove-yourself {
    margin-left: 10px;
  }
}

.zoom-buttons {
  position: absolute;
  display: none;
  left: 5%;
  color: #fff;
  margin-left: -9px;
}

.zoom-buttons > .material-icons {
  cursor: pointer;
  font-size: 30px;
  z-index: 10;
  text-shadow: 0 0 3px #8b8b8b;
  height: 0;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  width: 400px;
  right: calc(50% - 200px);
  z-index: 10;
}

.search-box input {
  padding: 10px;
  border: none;
  border-radius: 10px 0 0 10px;
  outline: none;
  font-size: 16px;
  margin-left: 10px;
  width: 100%;
  background-color: #f2ed38;
  color: #1d4a5a;
}

.search-box button {
  padding: 10px;
  background-color: #003a48;
  color: #fff7d7;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 16px;
  width: 150px;
  margin-right: 10px;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
  .search-box {
    width: 100%;
    right: unset;
  }
}

@media only screen and (max-width: 365px) {
  footer {
    font-size: 12px;
  }
}

@media only screen and (max-width: 315px) {
  footer {
    height: 60px;
  }
}

.ol-attribution.ol-unselectable.ol-control {
  display: none;
}

/* Swap Image Styles */
.modal-overlay .modal-image.swap-modal-image {
  width: 80%;
  height: 80%;
  align-items: center;
  justify-content: center;
  display: flex;
  background-color: transparent;
}

.modal-overlay .modal-image.swap-modal-image .swap-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 2s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.modal-overlay .modal-image.swap-modal-image .swap-card.flip {
  transform: rotateY(180deg);
}

.modal-overlay .modal-image.swap-modal-image .swap-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay .modal-image.swap-modal-image .swap-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg);

  display: flex;
  align-items: center;
  justify-content: center;
}
