* {
  margin: 0;
  box-sizing: border-box;
}
body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: lightgray;
  font-family: sans-serif;
}
#background {
  width: 95%;
  height: 95%;
  background-color: white;
  border-radius: 15px;
}
#profileInfo {
  width: 80%;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}
#left {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#left img {
  width: 30%;
  border-radius: 50%;
}
#right {
  width: 90%;
}
#userTop {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.button {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 1.5em;
  padding-right: 1.5em;
  margin: 0, 0.5em;
  height: 20px;
  background: beige;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.button:hover {
  background: #dfdfdf;
  color: white;
}
#follow {
  background: #4193ef;
  color: white;
}
#follow:hover {
  background: #4d9df7;
}
.button img {
  height: 20px;
  width: 20px;
}
#more {
  width: 25px;
  height: 25px;
  margin-left: 10px;
}
#infoMid {
  display: flex;
  justify-content: space-evenly;
  margin-left: 0.5em;
}
hr {
  height: 1px;
  background: lightgray;
  border: none;
  width: 80%;
}
#bar {
  display: flex;
  justify-content: space-around;
  margin: auto;
  width: 75%;
}
.option img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.option {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: grey;
  cursor: pointer;
}
.option:hover {
  color: #aaaaaa;
}
#active {
  color: black;
}
#feed {
  display: flex;
  justify-content: space-evenly;
  width: 95%;
  height: 95%;
}
.post {
  width: 30%;
  margin: 0.3em;
}
.post img {
  width: 300px;
  height: 300px;
}

@media (max-width: 600px) {
  #profileInfo {
    flex-direction: column;
    gap: 1em;
  }

  #left img {
    width: 50%;
  }

  #right {
    width: 100%;
  }

  #userTop {
    flex-direction: column;
    align-items: center;
  }

  .button {
    padding: 0.5em;
    font-size: 0.9em;
  }

  #follow {
    width: 100%;
    text-align: center;
  }

  #feed {
    flex-direction: column;
    align-items: center;
  }
  .post {
    width: 80%;
  }
}
@media (max-width: 768px) {
  #profileInfo {
    gap: 1.5em;
  }

  #left img {
    width: 40%;
  }

  #feed {
    flex-direction: column;
    align-items: center;
  }

  .post {
    width: 45%;
  }
}

@media (min-width: 1024px) {
  #profileInfo {
    gap: 2em;
  }

  #left img {
    width: 30%;
  }
  #feed {
    flex-direction: row;
    justify-content: space-between;
  }

  .post {
    width: 30%;
  }
}
