@import "/components.css";

html {
  scroll-behavior: smooth;
}
.header {
  margin: 1rem;
}
.main {
  width: 60%;
  height: 80vh;
  margin: 0 auto;
}
.main-text {
  font-size: 3rem;
}
.gradient-text {
  background-image: linear-gradient(
    70deg,
    var(--info-color),
    var(--danger-color)
  );
  -webkit-background-clip: text;
  color: transparent;
}
.main-img {
  width: 6rem;
  height: 6rem;
}
.spiral-img {
  width: 2rem;
  height: 2rem;
}
.link-btn {
  text-decoration: none;
}
.main-content {
  width: 100%;
  margin: 0 auto;
}
.sticky {
  position: sticky;
  top: 0;
}
.aside {
  width: 20%;
  padding: 1rem;
  border-radius: 3px;
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2);
  height: 100vh;
  overflow-y: auto;
}
.active {
  background-color: var(--info-color);
  color: var(--white-color);
  border-radius: 3px;
  padding: 0.3rem 1rem;
}
.aside-link:hover {
  background-color: var(--info-color);
  color: var(--white-color);
  border-radius: 3px;
  padding: 0.3rem 1rem;
  transition: 0.2s ease;
}
.doc-content {
  width: 75%;
}
.palette-color {
  width: 100px;
  height: 100px;
  border-radius: 3px;
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.2);
}
.hr {
  margin: 1rem auto;
}
.para {
  width: 80%;
  margin: 0 auto;
  text-align: justify;
}
.menu {
  cursor: pointer;
}
.open-menu.hidden {
  display: none;
}
.open-menu {
  position: sticky;
  top: 0;
  background-color: var(--danger-color);
  color: var(--white-color);
  padding: 0.5rem;
  font-size: 2rem;
}
.close-menu.hidden {
  display: none;
}
.align-self-start {
  align-self: start;
}
.header-link {
  font-size: 1.5rem;
  font-weight: 700;
}
.icon {
  font-size: var(--sm);
  cursor: pointer;
}
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
}

@media screen and (max-width: 900px) {
  html {
    font-size: 90%;
  }
  .doc-content {
    width: 75%;
  }
  .main {
    width: 90%;
  }
}
@media screen and (max-width: 670px) {
  html {
    font-size: 80%;
  }
  .aside {
    width: 25%;
  }
  .doc-content {
    width: 70%;
  }
  .main {
    width: 90%;
  }
}
@media screen and (max-width: 512px) {
  html {
    font-size: 70%;
  }
  .main {
    width: 90%;
  }
  .aside {
    position: relative;
    display: none;
  }
  .doc-content {
    width: 100%;
  }
  .open-menu.hidden {
    display: block;
  }
}
