  html,
  body {
      height: 100%;
      margin: 0;
  }

  body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
  }

  main {
      flex: 1;
  }

  /* index.php */
  .link-card {
      border: 1px solid #e0e0e0;
      border-radius: 12px;
      background: #fff;
      text-decoration: none;
      color: inherit;
      transition: all 0.2s ease;
  }

  .link-card:hover {
      background: #f8f9fa;
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

    /* === Preloader style === */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }

    #preloader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

    /* Anpassad animation för att ge delay mellan bubblorna */
    .spinner-grow {
        animation: spinner-grow 0.75s linear infinite;
    }

    .spinner-grow:nth-child(1) {
        animation-delay: 0s;
    }

    .spinner-grow:nth-child(2) {
        animation-delay: 0.25s;
    }

    .spinner-grow:nth-child(3) {
        animation-delay: 0.5s;
    }

    @keyframes spinner-grow {
        0% {
            transform: scale(0);
            opacity: 0.5;
        }

        50% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(0);
            opacity: 0.5;
        }
    }

    /* Style för preloader */
        html {
        scroll-behavior: smooth;
    }

    h2[id] {
        scroll-margin-top: 20px;
        /* Justera efter höjden på din header/navbar */
    }

    .toast-container {
    z-index: 1100;
}
