/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

body {
  background-image: url("./images/bg-pattern-top.svg"),
    url("./images/bg-pattern-bottom.svg");
  background-repeat: no-repeat;
  background-size: 40%, 55%;
  background-position: top -20em left 6em, bottom -35em right -10em;
  background-color: hsl(185, 75%, 39%);
  height: 70vh;
  font-family: "Kumbh Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

#maindiv {
  height: 530px;
  width: 25%;
  margin: 0 auto;
  margin-top: 8em;
}

#Followers {
  display: flex;
  justify-content: space-around;
  padding-left: 1em;
  padding-right: 1em;
  margin-top: 1.5em;
  font-family: "Kumbh Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
}

#Followers > div > p {
  color: hsl(0, 0%, 59%);
}

#detail {
  background-color: white;
  width: 100%;
  height: 315px;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

#detail > h3 {
  margin-top: 1em;
}

span {
  font-size: 20px;
  font-weight: 300;
  color: hsl(0, 0%, 59%);
}

#detail > p {
  font-size: 18px;
  color: hsl(0, 0%, 59%);
  font-weight: 400;
}

#img {
  border-radius: 50%;
  display: flex;
  margin: 0 auto;
  margin-top: -3em;
  outline: 6px solid white;
}

#bgimg {
  width: 100%;
  height: 160px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

hr {
  border-top: 1px solid hsl(0, 0%, 59%);
  margin-top: 1.5em;
}

@media screen and (max-width: 1100px) {
  #maindiv {
    width: 50%;
  }
}

@media screen and (max-width: 850px) {
  body {
    background-image: url("./images/bg-pattern-top.svg"),
      url("./images/bg-pattern-bottom.svg");
    background-repeat: no-repeat;
    background-size: 60%, 50%;
    background-position: top -2em left -6em, bottom -6em right -5em;
  }
  #maindiv {
    width: 50%;
  }
}

@media screen and (max-width: 431px) {
  body {
    background-image: url("./images/bg-pattern-top.svg"),
      url("./images/bg-pattern-bottom.svg");
    background-repeat: no-repeat;
    background-size: 80%, 80%;
    background-position: top -2em left -6em, bottom -6em right -5em;
  }

  #maindiv {
    width: 80%;
  }
}
