@font-face {
  font-family: rubikMedium;
  src: url(assets/fonts/Rubik-VariableFont_wght.ttf);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-family: rubikMedium;
}

body {
  display: grid;
  grid-template-rows: 30% auto;
}

/* HEADER */
header {
  position: static;
  padding: 1rem 2rem;
  background-image: url(assets/images/pattern-bg-mobile.png);
  background-size: cover;
  background-repeat: no-repeat;
}
header > h1 {
  color: white;
  text-align: center;
  font-size: 1.625rem;
  line-height: 1.875rem;
  letter-spacing: -0.23px;
}
header > div {
  background-color: white;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem;
  height: 3rem;
  cursor: pointer;
  overflow: hidden;
}
header > div > input {
  cursor: pointer;
  width: 100%;
  outline: none;
  height: 100%;
  padding-left: 1rem;
  border: none;
  font-size: 1.2rem;
}
header > div > button {
  background-color: black;
  height: 100%;
  cursor: pointer;
  padding: 0 1rem;
  outline: none;
  border: none;
  display: flex;
  align-items: center;
}
header > div > button:hover {
  background-color: #3f3f3f;
}

/* MAIN */
main {
  position: relative;
}

#map {
  height: 100%;
  border: none;
  z-index: 10;
  position: relative;
}

/* ASIDE - ADDRESS DATA */
aside {
  z-index: 20;
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, 70%);
  width: 85%;
  background-color: white;
  border-radius: 1rem;
  padding: 1rem 0;
  box-shadow: 0px 50px 50px rgba(0, 0, 0, 9.84%);
  margin-top: 1rem;
}
aside > div {
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
aside > div:last-child {
  margin: 0;
}
.addressTitles {
  color: #a1a1a1;
  font-size: 0.625rem;
  letter-spacing: 1.46px;
  font-weight: bold;
  margin: 0 0 7px 0;
}
.addressValues {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: -0.18px;
  color: #2c2c2c;
  margin: 0;
}
main > aside > hr {
  display: none;
}

@media (width >= 1140px) {
  body {
    grid-template-rows: 30% auto;
  }
  header {
    background-image: url(assets/images/pattern-bg-desktop.png);
  }
  header h1 {
    font-size: 2rem;
  }
  header > div {
    max-width: 40%;
    margin: 0 auto;
  }
  main > aside {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
    position: absolute;
    margin: 0;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  main > aside > div {
    text-align: left;
    height: 100%;
    padding: 0 1rem;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
  }
  main > aside > div:first-child {
    border: none;
  }

  main > aside > hr {
    display: block;
    opacity: 20%;
  }
  .addressTitles {
    font-size: 0.75rem;
  }
  .addressValues {
    font-size: 1.625rem;
  }
}
