@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Lao&family=Playfair+Display:wght@500&display=swap");

:root {
  --bgColor2: #090a0f;
  --borderColor: rgb(246, 232, 206);
}

/*max-width 375px */

html,
body {
  scroll-behavior: auto;
  text-align: center;
  font-family: "Noto Serif Lao", serif;
  color: rgb(252, 252, 252);
  max-width: 99vw;
  justify-content: center;
  background-color: #022a81;
  margin: 3%;
  padding: 0;
}

.profil img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  margin-top: 25%;
}

h1,
h2 {
  padding-top: 3%;
  margin-bottom: 3%;
  font-size: 14px;
  font-family: "Playfair Display", serif;
  line-height: 1.5;
  text-align: center;
}

.icons img {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.5rem;
  border-radius: 50%;
}

.socials,
.youtube {
  border-style: 3px antiquewhite;
  border-radius: 3% 3% 3% 3%;
  width: 70%;
  box-shadow:
    0 0 0.5em rgb(242, 244, 213),
    inset 0 0 1em rgb(79, 79, 78);
}

.youtube a {
  color: whitesmoke;
}
.youtube img {
  width: 2rem;
  height: 2rem;
  margin: 0.5rem;
  border-radius: 50%;
}

.github {
  position: relative;
  color: var(--borderColor);
  border: solid var(--borderColor) 1px;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  padding: 1%;
  width: 60%;
}

.github a {
  color: var(--borderColor);
  text-decoration: none;
}

footer {
  font-size: 0.7rem;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

@media screen and (min-width: 375px) {
  .youtube {
    margin-bottom: 1%;
  }

  footer {
    position: relative;
  }
}

@media screen and (min-width: 768px) {
  .profil img {
    width: 9rem;
    height: 9rem;
    margin-top: 5%;
  }

  h1,
  h2,
  .github a {
    font-size: 20px;
  }

  .icons img {
    width: 1.8rem;
    height: 1.8rem;
  }

  footer {
    font-size: 1rem;
  }

  .github,
  .socials,
  .youtube {
    margin-bottom: 2%;
  }
}
