*,
*:is(::after, ::before) {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
  text-transform: uppercase;
}

.documents {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;

  li {
    flex: 1 0 calc(30ch - 2.5em);
    text-align: center;
    padding: 0.2em;

    & > a + small {
      font-size: 0.7rem;
    }

    a {
      display: block;
      padding: 0.5em;
      border: 1px solid #000;
      border-radius: 0.5em;
      text-decoration: none;
      color: inherit;

      &:hover {
        background-color: #000;
        color: #fff;
      }
    }
  }
}

header {
  display: flex;

  img {
    width: auto;
    height: min(10em, auto);
  }
}

footer {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #000;

  ul {
    display: flex;
    gap: 1em;
    list-style-type: none;
    padding-left: 0;

    &::before {
      content: "Laman Lain: ";
      font-weight: bolder;
    }

    li {
      &:not(:last-child)::after {
        content: "|";
        margin-left: 1em;
      }
    }

    a {
      color: inherit;
      text-underline-offset: 0.3em;
      transition: text-underline-offset ease-in-out 300ms;

      &:hover {
        text-underline-offset: 0.5em;
      }
    }
  }

  .support {
    display: flex;
    align-items: center;
    gap: 1em;
  }
}

small {
  &.information {
    display: block;
    font-size: smaller;
    color: #555;
    font-style: italic;
  }
}

.decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;

  .top-right {
    position: fixed;
    top: 0;
    right: 0;
    width: min(70vw, 70vh);
    height: auto;
  }

  .top-left {
    position: fixed;
    top: 0;
    left: 0;
    width: min(20vw, 20vh);
    height: auto;
  }

  .bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(50vw, 50vh);
    height: auto;
    transform: rotate(180deg);
  }
}

.main {
  /* background-color: #fff; */
  width: calc(100% - 2em);
  padding: 2em;
  max-width: 60ch;
  margin: 0 auto;
}
