* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "DMMono";
  font-display: swap;
  src: url("./DMMono.woff2") format("woff2");
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

:root {
  --transition: 0s;
  --index: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
}

html {
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  display: flex;
  justify-content: end;
  font-size: 20px;
  font-family: "DMMono";
  flex-direction: column;
  overflow: hidden;
  width: 420px;
  height: 860px;
  border-radius: 32px;
  border: 2px solid #ffffff20;
}

@media (max-width: 600px), (max-height: 960px) {
  body {
    border: 2px solid #ffffff00;
    width: 100%;
    height: 100%;
  }
}

.view {
  width: 500%;
  height: 100%;
  display: flex;
  translate: calc(-100% / 5 * var(--index)) 0;
  transition: translate var(--transition);

  .page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);

    &.active {
      opacity: 1;
    }
  }
}

nav {
  width: 100%;
  padding: 10px;

  ul {
    display: flex;
    list-style: none;
    user-select: none;

    li {
      display: flex;
      gap: 0px;
      cursor: pointer;
      padding: 10px;
      padding-inline: 20px;
      border-radius: 100px;
      align-items: center;
      transition: background-color var(--transition), gap var(--transition),
        color var(--transition), width var(--transition);
      justify-content: center;
      white-space: nowrap;
      color: gray;

      .icon {
        width: 24px;
        height: 24px;
        padding: 2px;

        img {
          display: block;

          &.active {
            display: none;
          }
        }
      }

      span {
        display: none;
        font-size: 14px;
      }

      &.active {
        gap: 10px;
        background-color: #ffffff20;
        color: white;

        .icon {
          img {
            display: none;

            &.active {
              display: block;
            }
          }
        }

        span {
          display: block;
        }
      }
    }
  }
}
