* {
  box-sizing: border-box;
}
:root {
  --light-blue: #f3f8fa;
  --dark-blue: #085677;
}

@font-face {
  font-family: "Nunito";
  src: local("Nunito"), url("src/fonts/Nunito-VariableFont_wght.ttf");
}

html,
body {
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Nunito";
  color: var(--dark-blue);
  background-color: var(--light-blue);
  scroll-behavior: smooth;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.1rem;
}

header {
  position: absolute;
  z-index: 10;
  top: 0;
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-blue);
}

h1 {
  text-align: center;
}

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

.marker {
  background-image: url("src/marker-icon.svg");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  width: 2.8rem;
  height: 2.8rem;
  display: block;
  border: none;
  cursor: pointer;
  padding: 0;
}

.marker:hover {
  background-size: 95%;
  height: 3.7rem;
  transition: background-size .3s ease-in-out ;
}

.infoBox {
  display: none;
  bottom: -45vh;
}

.infoBox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 0;
  height: 25rem;
  width: 100%;
  margin: auto;
  padding: 3rem;
  z-index: 1;
  position: absolute;
  background-color: var(--light-blue);
  border-top: 1px solid var(--dark-blue);
  animation: infoBoxPopUpMobile .3s linear;
}

.marker.not-active {
  filter: opacity(0.7);
}

@keyframes infoBoxPopUpMobile {
  from {
    bottom: -45vh;
    /* transform: scale(0); */
  }
  to {
    /* transform: scale(1); */
    bottom: 0;
  }

}
h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

h4,
p {
  font-size: 1rem;
  margin: 0;
}

td {
  font-size: 0.8rem;
  line-height: 1.5rem;
}

h4 {
  margin: 1rem 0;
}

table {
  width: 100%;
}

tr {
  justify-content: space-between;
}

.exitButton {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exitButton img {
  object-fit: cover;
  cursor: pointer;
}

.coordinatesContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-bottom: 2rem;
}

footer {
  height: 100px;
  width: 100%;
  display:flex;
  align-items: flex-start;
  flex-direction: column;
}

.footerATag {
  color: var(--dark-blue);
  font-weight: bold;
  text-decoration: none;
  padding:0.5rem 0 1rem 0;
}

.about {
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-left: 1rem;
  max-width: 16rem;
}

#map {
  height: 95vh;
}

footer {
  background-color: var(--light-blue);
  z-index: 11;
  width: 100%;
  display:flex;
  align-items: center;
}

@media only screen and (min-width: 680px) {
  
  h1 {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.2rem;
  }

  .infoBox.active {
    width: 24rem;
    height: 4rem;
    border: 1px solid var(--dark-blue);
    position: absolute;
    top: 40%;
    height: 49.5%;
    left: 0;
    right: 0;
    margin: 0 auto;
    animation: infoBoxPopUp .3s linear;
  }

  @keyframes infoBoxPopUp {
    from {
      /* bottom: -25vh; */
      transform: scale(0);
    }
    to {
      transform: scale(1);
      /* bottom: 5vh; */
    }
  }
}