@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

body {
  font-family: "Rubik", sans-serif;
  background-image: url("pattern-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.main h2 {
  color: #fff;
}

#form {
  padding: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}

#form input {
  width: 30%;
  padding: 15px;
  outline: none;
  border: none;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  font-family: inherit;
}

#form button {
  border: none;
  padding: 16px;
  background-color: black;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ip-container {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  position: absolute;
  top: 26%;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.ip-container > div {
  margin: 20px;
}

.border {
  border-left: 1px solid hsl(0, 0%, 59%);
}

h3 {
    color: hsl(0, 0%, 17%);
}

p {
  color: hsl(0, 0%, 59%);
  margin-bottom: 10px;
}

#map {
  z-index: -1;
  position: absolute;
  top: 35.4%;
  height: 70%;
  width: 100%;
}

#submit:hover {
  opacity: 0.8;
  cursor: pointer;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid black;
    border-color: black transparent black transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
  .ip-container {
    display: block;
    position: relative;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: none;
  }

  #form input {
    width: 100%;
  }

  #map {
  height: 90%;
  }
}
