section a {
  color: rgb(255, 63, 76);
}
section a:hover {
  background-color: rgba(204, 142, 146, 0.349);
  text-decoration: none;
}

.box-article {
  /* background-color: rgba(253, 175, 192, 0.5); */
  width: 48%;
  max-width: 740px;
  min-height: 100vh;
  margin: 8rem auto 1rem auto;
  /* text-align: center; */
}

article {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 2px rgba(255, 255, 255, 0.25);
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  line-height: 1.3;
  color: rgb(255 131 140);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 1px 1px 0 #fff;
}

article h1:first-child {
  margin-top: 0;
}

article h1 {
  font-size: 2.5rem;
  margin: 2rem 0 1.25rem;
}

article h2 {
  font-size: 2rem;
  margin: 1.75rem 0 1rem;
}

article h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.875rem;
}

article h4 {
  font-size: 1.25rem;
  margin: 1.25rem 0 0.75rem;
}

article h5 {
  font-size: 1.125rem;
  margin: 1rem 0 0.625rem;
}

article h6 {
  font-size: 1rem;
  margin: 0.875rem 0 0.5rem;
}

article p {
  color: rgb(180, 90, 98);
  line-height: 1.5;
  margin: 1rem 0;
}

article blockquote {
  padding: 0 1em;
  border-left: 0.25em solid #ea90b7;
}

article ul,
article ol {
  padding-left: 1.5rem;
}

article li {
  line-height: 1.8;
  color: rgb(180, 90, 98);
}

article code {
  padding: 0.2em 0.4em;
  background-color: #818b981f;
  border-radius: 6px;
  font-size: 85%;
  margin: 0;
  white-space: break-spaces;
}

article hr {
  margin: 1.5em 0;
  border-color: #ff98c570;
}

article img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

article img:hover {
  transform: scale(1.02);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  animation: fadeIn 0.3s;
}

.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoomIn 0.3s;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #bbb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

article pre {
  position: relative;
  background-color: #818b981f;
  margin: 0 0 1rem 0;
  padding: 0.2rem 0.5rem;
}

article pre code {
  background-color: initial;
  padding: 0;
}

.copy-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(255, 131, 140, 0.5);
  color: rgb(180, 90, 98);
  border: none;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

pre:hover .copy-btn {
  opacity: 0.9;
}

aside {
  position: fixed;
  width: 20%;
  max-height: 335px;
  overflow: auto;
  top: 8rem;
  right: 3%;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 2px rgba(255, 255, 255, 0.25);
}
aside a {
  color: rgb(255 131 140);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
}

.sidebar-nav ul {
  list-style: none;
  padding-left: 0;
  color: rgb(255 131 140);
}

.sidebar-nav li {
  margin: 15px 0;
  padding: 5px;
}

.sidebar-nav li[data-level="2"] {
  margin-left: 1em;
}
.sidebar-nav li[data-level="3"] {
  margin-left: 2em;
}
.sidebar-nav li[data-level="4"] {
  margin-left: 3em;
}
.sidebar-nav li[data-level="5"] {
  margin-left: 4em;
}
.sidebar-nav li[data-level="6"] {
  margin-left: 5em;
}

.sidebar-nav a.active {
  font-weight: 600;
  color: rgb(180, 90, 98);
}

@media screen and (max-width: 500px) {
  .box-article {
    width: 100%;
    margin: 7rem auto 1rem auto;
    padding: 0 1rem;
  }
  article {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.75);
  }
  article h1 {
    font-size: 2rem;
  }
  article h2 {
    font-size: 1.75rem;
  }
  article h3 {
    font-size: 1.375rem;
  }
  article p {
    margin: 0.75rem 0;
  }
  article code {
    background-color: rgba(255, 255, 255, 0.361);
  }
  aside {
    display: none;
  }

  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) scale(1);
    animation: mobileZoomIn 0.3s;
  }

  @keyframes mobileZoomIn {
    from {
      transform: translate(-50%, -50%) scale(0.5);
      opacity: 0;
    }
    to {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
}
