@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
h1 {
  margin: 0;
  color: #fff;
  font-weight: 500;
  margin: 20px 0 20px;
}
.link-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 200px;
  background: url(./img/pattern-bg.png) center center no-repeat;
}
.IPaddress-form {
  display: flex;
  height: 45px;
}
.ipaddress-input {
  width: 500px;
  font-size: 16px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border: 0;
  padding: 10px;
}
.search-btn {
  width: 45px;
  height: 45px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 0;
  background-color: hsla(0, 0%, 17%, 0.856);
  display: flex;
  justify-content: center;
  align-items: center;
}
.ipaddress-input:focus,
.search-btn:focus {
  outline: 0;
}
.ipaddress-input:hover,
.search-btn:hover {
  cursor: pointer;
}
.loading {
  width: 40px;
  height: 40px;
  display: block;
}
.error {
  color: rgba(255, 255, 255, 0.863);
  margin: 5px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.info-container {
  position: relative;
  z-index: 2;
}
.info {
  position: absolute;
  top: -40px;
  left: 10vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid black;
  border-radius: 20px;
  height: 100px;
  width: 80vw;
}
.info-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #d4d4d4;
}
.info-item:last-of-type {
  border-right: none;
}
.info-header {
  font-size: 12px;
  color: #9e9d9d;
}
.info-content {
  display: block;
  font-weight: 500;
  font-size: 20px;
  text-align: center;
}
#mapid {
  height: calc(100vh - 200px);
  width: 100vw;
  z-index: 1;
}
@media (max-width: 750px) {
  .link-container {
    height: 250px;
  }
  h1 {
    font-size: 1.5em;
    margin-top: 30px;
  }
  .ipaddress-input {
    width: 300px;
  }
  .info {
    flex-direction: column;
    height: 250px;
    top: -100px;
  }
  .info-item {
    border: 0;
  }
  .info-content {
    font-size: 1em;
  }
}
