html,
      body {
        height: 100%;
        margin: 0;
        padding: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: url('background.gif') no-repeat center center fixed;
        background-size: cover;
        background-position: bottom;
      }

      #wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100%;
      }

      .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        font-size: 32px;
        font-family: monospace, pixelfont;
        font-weight: bold;
        background-color: black;
        color: wheat;
        opacity: 0.8;
      }

      .header a {
        text-decoration: none;
      }

      .tillbaka_knapp {
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        color: wheat;
        z-index: 20;
        display: inline-block;
        animation: wobble 1.5s infinite ease-in-out;
        text-shadow: 1px 1px #eebb00ce;
      }

      @keyframes wobble {
        0% {
          transform: rotate(0deg);
        }
        25% {
          transform: rotate(5deg);
        }
        50% {
          transform: rotate(0deg);
        }
        75% {
          transform: rotate(-5deg);
        }
        100% {
          transform: rotate(0deg);
        }
      }

      #project {
        text-decoration: underline;
        display: flex;
        gap: 0px;
      }

      .letter {
        animation: fadeIn 1s ease-in-out both;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(20px) scale(1);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      #gridbox {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 50px;
        max-width: 1200px;
        margin: auto;
      }

      .box {
        display: grid;
        grid-template-rows: 80% 20%;
        justify-items: center;
        align-items: center;
        background-color: rgba(187, 173, 173, 0.8);
        border-radius: 5px;
        border: 2px solid;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        cursor: pointer;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        color: inherit;
        text-decoration: none;
      }
      .box:hover {
      box-shadow: 0 0 80px #ffffffaa;
      }
      a {
        color: inherit;
        text-decoration: none;
      }

      .box:hover {
        transform: scale(1.1);
      }

      .bilder {
        width: 100%;
        height: 100%;
        object-fit: fill;
        grid-row: 1;
      }

      .bild_text {
        width: 100%;
        height: 100%;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.2);
        border-top: 2px solid;
        grid-row: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: normal; /* byt till bold för tjockare text*/
        word-wrap: break-word;
        white-space: normal;
      }

      /* Responsivt: 2 kolumner på mindre skärmar */
      @media (max-width: 900px) {
        #gridbox {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      /* Responsivt: 1 kolumn på mobil */
      @media (max-width: 600px) {
        #gridbox {
          grid-template-columns: 1fr;
        }
        .tillbaka_knapp {
          font-size: 20px;
        }
        .letter {
          font-size: 20px;
        }
      }