*{

    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scroll enabled */
    background-color: #f5f5f5;
    padding-top: 100px; /* Space for sticky header */
  }
  
  /* Sticky header */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1e2a38;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 999;
    cursor: pointer;
  }
  header h1 {
    margin-bottom: 5px;
    font-size: 24px;
  }
  header p {
    font-size: 14px;
    opacity: 0.9;
  }
  
  /* Grid layout for cards */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* MBTI card styles */
  .type-card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }
  .type-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  .type-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .type-card p {
    color: #555;
  }
  
  /* Hide modal checkboxes */
  .modal-toggle {
    display: none;
  }
  
  /* Modal base styles */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  }
  .modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
  }
  .modal-content img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  .modal-content h3 {
    margin-bottom: 10px;
  }
  .modal-content p {
    color: #444;
    font-size: 16px;
  }
  
  /* Close button */
  .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .close-btn:hover {
    color: #333;
  }
  
  /* Modal visibility via checkbox */
  .modal-toggle:checked + label + .modal,
  .modal-toggle:checked + label + div + .modal {
    display: flex;
  }
  
  /* Fade in animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }