@layer framie {
  html {
    scroll-behavior: smooth;
    font-size: 25px;
    font-family: monospace, sans-serif;
  }

  body {
    background-color: #222;
    padding: 10px;
    border-radius: 30px;
    position: relative;
  }

  * {
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none; /* remove the scrollbar from all */
  }

  .page-title {
    margin-block-start: 20px;
    margin-inline: auto;
    font-weight: bolder;
    font-size: 30px;
    border: 5px solid;
    border-radius: 10px;
    padding: 3px 10px;
    letter-spacing: 2px;
    text-align: center;
    width: fit-content;

    &:hover {
      color: yellow;
      cursor: pointer;
    }
  }

  .cont-grid {
    display: grid;
    grid: none / repeat(auto-fill, minmax(500px, 1fr));
    place-items: center;
    gap: 70px;
    margin-top: 50px;
  }

  /* wrappers Start */
  .wrapper,
  .wrapper-id-title {
    --main-col: #8abaf5;
    --main-bg-col: #000;

    border: 3px solid var(--main-col);
    background-color: var(--main-bg-col);
    padding: 30px;
    margin-top: 30px;
    border-radius: 20px;
    position: relative;
  }
  .wrapper-id-title {
    &::before {
      position: absolute;
      background-color: var(--main-col);
      border-radius: 20px;
      padding: 7px 10px;
      white-space: nowrap;
      inset: -22px auto auto 20px;
      display: inline-flex;
      place-content: center;
      place-items: center;
      font-size: 21px;
    }
  }
  .wrapper-id-title::before {
    content: attr(id);
  }
  /* wrappers End */

  /* Progress Start */
  .progress-cont {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 7px;
    background-color: #eee5;
    z-index: 100;

    & > #progress {
      top: 0;
      left: 0;
      padding: 0;
      margin: 0;
      width: 0%;
      height: 7px;
      background-color: #5561f5;
      transition: width 300ms ease-out;
    }
  }
  .progress {
    background-color: #5561f5;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 5px;
    z-index: 100;
    scale: 0 1;
    --scale-up: 1 1;
    transform-origin: left;
    animation: scale-up linear 1ms;
    animation-timeline: scroll(nearest);
  }
  /* Progress End */

  /* BackToTop Start */
  .back-to-top {
    cursor: pointer;
    border: 20px solid;
    border-radius: 50%;
    border-color: #5561f5;
    width: fit-content;
    position: fixed;
    right: 20px;
    bottom: 20px;
    transition: 700ms;
    opacity: 0.3;

    &:hover {
      opacity: 1;
      border-top-color: transparent;
      border-right-color: transparent;
      border-left-color: transparent;
      border-radius: 0;
      transform: translateY(-20px);
    }
  }
  /* BackToTop End */
}
