body {
            margin: 0;
            
            background-color: black;
            color: rgb(192, 192, 192);
            min-height: 100vh;
            font-family: Arial, Helvetica, sans-serif;
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            padding: 5vh 0 10vh;
        }
        h1{
            margin: 0;
            line-height: 0;
        }
        h1, h2, h3 {
            font-weight: 100;
            color: rgb(192, 192, 192);
        }
        h3 {
            display: none;
        }
        p, li{
          line-height: 1.5em;
        }
        ul{
          margin: 3em 0;
          list-style-type: '––     ';
        }
        .bottom-links {
          margin-top: 40px;
          display: flex;
          justify-content: center;
          gap: 20px;
          width: 100%;
          max-width: 55ch;
      }
        li {
          margin-left: 2em;
          margin-bottom: 1em;
        }
        #about{
          padding: 20px;
          max-width: 55ch;
        }

        .btn {
          border: 1px solid rgb(192, 192, 192);
          border-radius: 20px;
          padding: 10px 20px;
          background-color: rgba(0, 0, 0, 0.5);
          text-decoration: none;
          color: rgb(192, 192, 192);
          cursor: pointer;
          transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
      }

      .btn:hover {
          background-color: rgb(192, 192, 192);
          color: black;
      }

      #logo {
          width: 120px;
          transition: filter 200ms ease-in-out;
      }

      #logo:hover {
          filter: brightness(1.2);
      }
    a[href^="mailto:"]:not(.btn) {
            color: inherit !important;
            text-decoration: none !important;
        }

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/bg-lepidodendron.png') center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

    .container {
      position: relative;
      width: 400px;
      height: 400px;
      max-width: 80vw;
      max-height: 35vh;
      aspect-ratio: 1;
      margin: 20px auto;
    }

    .square {
      width: 100%;
      height: 100%;
      background: url('../img/shell-spin.png');
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      transform-origin: center;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
      cursor: pointer;
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
    }

    .modal.active {
      display: flex;
    }

    .modal-content {
      background-color: black;
      border: 1px solid rgb(192, 192, 192);
      padding: 30px;
      border-radius: 20px;
      max-width: 600px;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
      margin: 20px;
      color: rgb(192, 192, 192);
      line-height: 1.6;
    }

    .close-modal {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 28px;
      font-weight: bold;
      color: rgb(192, 192, 192);
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      width: 30px;
      height: 30px;
      line-height: 1;
    }

    @media (hover: hover) {
      .close-modal:hover {
        color: white;
      }
    }

    .math-link {
      position: absolute;
      bottom: 10px;
      right: 10px;
      color: rgba(255, 255, 255, 0.4);
      text-decoration: none;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      background: rgba(0, 0, 0, 0.6);
      padding: 4px 10px;
      border-radius: 12px;
      opacity: 0;
      transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
      cursor: pointer;
    }
    
    .container.show-link .math-link {
      opacity: 1;
    }
    
    @media (hover: hover) {
      .container:hover .math-link {
        opacity: 1;
      }
      
      .math-link:hover {
        color: rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.9);
      }
    }
