#footer {
  height: auto;
  background-color: #222222;
  padding: 3% 5% 0;
  box-sizing: border-box;
}

#footer a,
p,
h4 {
  text-decoration: none;
  color: white;
}
#footer p {
  font-size: 0.8em;
}
#footer h4 {
  font-size: 0.8em;
}
#footer > div:nth-child(1) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 0.5em;
}
#footer > div:nth-child(1) div {
  display: flex;
  flex-direction: column;
}
#footer > div:nth-child(1) div p {
  margin: 8px 0;
  color: #7c7c7d;
  cursor: pointer;
}
#footer > div:nth-child(1) div p:hover {
  color: #ffffff;
}
#footer > div:nth-child(1) div h4 {
  margin-bottom: 30px;
}

#footer > div:nth-child(2) {
  border: 2px solid rgb(65, 65, 65);
  display: flex;
  align-items: center;
  border-left: none;
  border-right: none;
  gap: 2%;
  flex-wrap: wrap;
  padding-top: 0.7em;
  padding-bottom: 0.7em;
  height: 15%;
  box-sizing: border-box;
}
#footer > div:nth-child(3) {
  display: flex;
  align-items: center;
  height: 20%;
}
#footer > div:nth-child(3) div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2%;
  height: 100%;
  flex-grow: 2;
  padding-top: 1em;
  padding-bottom: 2em;
}
#footer > div:nth-child(3) div:nth-child(2) {
  justify-content: right;
  gap: 5%;
}
#footer > div:nth-child(3) div:nth-child(2) p {
  margin: 0 4% 0 0;
  font-weight: bold;
}
#footer > div:nth-child(3) div:nth-child(1) img {
  height: 2em;
}
#footer > div:nth-child(3) div:nth-child(1) p {
  color: #aaaaaa;
}
#footer > div:nth-child(3) div:nth-child(2) img {
  height: 1.5em;
}

@media only screen and (min-width: 500px) and (max-width: 850px) {
  #footer > div:nth-child(1) div {
    display: none;
    /* flex-direction: column; */
  }
}
@media only screen and (min-width: 260px) and (max-width: 499px) {
  #footer > div:nth-child(1) div {
    display: none;
  }
  #footer > div:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 20%;
  }
}
