@font-face {
    font-family: "Fixedsys Excelsior";
    src: url("fonts/fsex-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
  }

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

  html,
  body {
    width: 100%;
    height: 100%;
    font-family: "Fixedsys Excelsior", monospace;
    background: #ffffff;
    color: #0a0a0a;
  }

  html {
    overflow-y: scroll;
  }

  body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: repeat(12, 1fr);
  }

  .logo {
    grid-row: 1;
    grid-column: 1 / 2;
    position: fixed;
    padding: 20px;
    font-size: 18px;
    white-space: nowrap;
  }

  .header-nav {
    position: absolute;
    padding: 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
  }

  .header-nav a {
    text-decoration: none;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.1px;
    opacity: 0.6;
    width: auto;
    color: #000000;
  }

  .header-nav a:hover {
    opacity: 1;
  }

  .header-nav a.active {
    opacity: 1;
  }

  .logo img {
    display: block;
    width: 80%;
    height: auto;
  }
  
  .page-title {
    grid-row: 1;
    grid-column: 4 / 10;
    padding-top: 20px;
    font-size: 24px;
    letter-spacing: -0.2px;
    white-space: nowrap;
  }

  .input {
    grid-row: 2;
    grid-column: 4 / 10;
    margin-top: 20px;
  }

  .button-container {
    grid-row: 2;
    grid-column: 4 / 10;
    align-self: center;
    justify-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .button-container button {
    background: transparent;
    font-family: "Fixedsys Excelsior", monospace;
    color: #0a0a0a;
    padding: 8px 10px;
    cursor: pointer;
    opacity: 0.5;
    font-size: 18px;
    border: 1px solid #111;
    transition: opacity 0.4s ease, background 0.3s ease;
  }

  .button-container button.active {
    background: #ffffff;
    outline: 2px solid #111;
    color: #0a0a0a;
    opacity: 1;
  }

  .button-container button:hover {
    outline: 1px solid #111;
  }

  #content {
    grid-row: 2;
    grid-column: 4 / 10;
    align-self: start;
    justify-self: stretch;
    font-family: "Fixedsys Excelsior", monospace;
    height: 25em;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 18px;
    background-color: #f9f9f9;
    padding: 1em;
  }

  #content::-webkit-scrollbar {
    width: 8px;
  }

  #content::-webkit-scrollbar-track {
    background: #f9f9f9;
  }

  #content::-webkit-scrollbar-thumb {
    background-color: #fbfbfb;
    border-radius: 4px;
  }

  #content::-webkit-scrollbar-thumb:hover {
    background-color: #f9f9f9;
  }

  #content {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f9f9f9;
    margin-top: 0;
  }

  .bottom-links {
    grid-row: 3;
    grid-column: 4 / 10;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 20px;
    white-space: nowrap;
  }

  .bottom-links a {
    font-size: 18px;
    color: #0a0a0a;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .bottom-links a:hover {
    color: rgba(0, 0, 0, 1);
  }

  @media (max-width: 480px) {
    body {
      overflow: scroll;
    }

    .logo {
      font-size: 16px;
      padding: 16px;
    }

    .page-title {
      font-size: 16px;
      grid-column: 3 / 11;
    }

    .side-left,
    .side-right {
      font-size: 14px;
      padding: 16px;
    }

    .button-container {
      gap: 8px;
    }

    .button-container button {
      font-size: 16px;
      min-width: 100px;
      padding: 6px 12px;
    }

    #content {
      font-size: 16px;
      height: 30%;
    }

    .bottom-links {
      padding-bottom: 16px;
    }

    .bottom-links a {
      font-size: 16px;
      margin-right: 12px;
    }
  }