:root {
    --title-width: 176px;
    --title-height: 176px;
  }
  
  body {
    background-color: #ebf6f9;
    margin: 0;
    font-family: 'Georgia', sans-serif;
  }
  
  header {
    height: 80px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
  
    span {
      color: red;
    }
  }
  
  main {
    margin-top: 32px; /* Távolság a fejléc alatt */
  }
  
  .grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 8px);
    /* A teljes magasság mínusz a fejléc és a margó magassága */
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(4, var(--title-width));
    grid-template-rows: repeat(3, var(--title-height));
    gap: 16px;
  }
  
  .tile {
    width: var(--title-width);
    height: var(--title-height);
    background-color: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    font-size: 0.85rem;
  
    &:hover {
      transform: scale(1.08);
    }
  
    p {
      text-align: justify;
    }
  }
  
  .tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
  
    span {
      position: relative;
    }
  }
  
  .tile-header span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 130%;
    height: 3px;
    background-color: purple;
  }
  
  .icon {
    width: 48px;
  }
  
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, var(--title-width));
    }
  
    .grid-wrapper {
      height: auto;
      padding-top: 64px;
      padding-bottom: 16px;
    }
  }
  
  
  /* Modal styles */
  .modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s; /* Fade-in animation */
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 350px;
    transform: scale(1); /* Ensure final scale is 1 */
    animation: zoomIn 0.5s forwards;
  
    h2 {
      margin-top: 0;
      border-bottom: 3px solid purple;
      padding-bottom: 10px; /* Space between text and underline */
    }
  
    p#modal-text {
      text-align: justify;
    }
  }

  footer {
    height: 36px;
    background-color: #466;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    width: 100%;

    a {
      font-family: Georgia, 'Times New Roman';
      color: white;
    }
  }
  
  .modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .modal-close:hover,
  .modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Keyframes for animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0.7);
    }
  
    to {
      transform: scale(1);
    }
  }
  