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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: #083A42;
  background-color: #EDFAFB;
  min-height: 100%;
}

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 #083A42;
      border-radius: 0.5em;
      text-decoration: none;
      color: inherit;

      &:hover {
        background-color: #083A42;
        color: #fff;
      }
    }
  }
}

header {
  display: flex;

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

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

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

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

  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: #84aab0;
    font-style: italic;

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

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

.decorations {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  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;
  }
}

.main {
  width: 100%;
  padding: 1em;
  max-width: 60ch;
  margin: 0 auto;
}

.line-bottom {
  width: 100%;
  height:0.5em;
  background-color: #c55a11;

  &::after {
    content: "";
    display: block;
    width: 20%;
    height: 100%;
    background-color: #42d8d8;
    border-right: 2em solid #4472c4;
    border-left: 1em solid #083A42;
  }
}