html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: whitesmoke;;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto; /* ✅ Allow vertical scrolling */
}

    @keyframes rainbow-border {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    @keyframes pop {
      0% { transform: scale(0); opacity: 0; }
      60% { transform: scale(1.2); opacity: 1; }
      100% { transform: scale(1); }
    }

    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2vh;
    }

.overlay-card {
    width: 100%;
    /* max-width: 100%; */
    background: rgb(18 220 255 / 95%);
    color: #000;
    padding: 0.2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    border: 1px solid #ddd;
    box-sizing: border-box;
}



    .overlay-card h2 {
      margin: 0 0 10px;
      font-size: 1.2em;
    }

    .overlay-card p {
      margin: 0;
      font-size: 1.2em;
      opacity: 0.7;
    }

    .container {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 0.6vmin;
      width: 75vmin;
      height: 75vmin;
    justify-content: start;

      max-width: 600px;
      aspect-ratio: 1 / 1;
      position: relative;
      padding: 8px;
      border-radius: 16px;
      background: #fff;
      z-index: 1;
      box-shadow: 0 0 0 4px transparent;
      background-clip: padding-box;
      border: 4px solid transparent;
      background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #ff6600, #00ffff, #00ff00, #ff00ff, #ff6600);
      background-origin: border-box;
      background-clip: padding-box, border-box;
      animation: rainbow-border 6s linear infinite;
    }

    .box {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 6px;
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      /*transition: box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease, filter 0.3s;*/
      z-index: 0;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      font-size: 1em;
      cursor: pointer;
      color: transparent;
    }

    .box.revealed {
      color: #000;
      animation: pop 0.4s ease-out;
    }

    .box::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      z-index: -1;
      background: linear-gradient(135deg, #ff6600, #00ffff, #00ff00, #ff00ff, #ff6600);
      background-size: 300% 300%;
      animation: rainbow-border 6s linear infinite;
      opacity: 0.2;
      transition: opacity 0.3s ease;
    }

    .box:hover::after {
      opacity: 1;
    }

    .box:hover {
      border-color: #007bff;
      filter: brightness(120%);
      z-index: 1;
    }

    .popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0,0,0,0.2);
      text-align: center;
      z-index: 999;
      width: 90%;
      max-width: 400px;
      display: none;
    }

    .popup input {
      margin: 10px 0;
      padding: 8px;
      font-size: 1em;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    .popup button {
      margin-top: 10px;
      padding: 8px 16px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    @media screen and (max-width: 600px) {
      .container {
        width: 75vw;
        gap: 1.5vw;
      }

      .overlay-card {
        width: 90%;
      }
    }
    
    @media screen and (max-width: 480px) {
  .overlay-card {
    font-size: 0.85rem;
    padding: 1rem;
    width: 95%;
  }

  .overlay-card h1 {
    font-size: 1.1rem;
  }
}
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.4);
  z-index: 998;
  display: none;
}
.site-footer {
  background: linear-gradient(135deg, #1c1c1c, #333);
  color: #f1f1f1;
  padding: 30px 20px 20px;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 50px;
  width: -webkit-fill-available;
}

.site-footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer .footer-links {
  margin-bottom: 10px;
}

.site-footer .footer-links a {
  color: #ddd;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.site-footer .footer-copy {
  color: #aaa;
  font-size: 0.85rem;
}


/* ✅ Ensure touch targets are large enough */
button,
.popup button,
.footer-links a,
input[type="date"] {
  min-height: 48px;
  min-width: 48px;
  padding: 10px 16px;
  font-size: 1rem;
  margin: 6px 6px;
  line-height: 1.4;
  box-sizing: border-box;
  touch-action: manipulation;
}

/* ✅ Improve spacing and target area for footer links */
.site-footer .footer-links a {
  display: inline-block;
  margin: 6px 10px;
  padding: 6px;
  min-height: 48px;
  min-width: 48px;
  text-align: center;
}

.blog-posts {
  margin-top: 50px;
  padding: 20px;
  background-color: #f9f9fc; /* Light background */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
  border: 1px solid #e0e0e0;
  box-sizing: border-box; /* Corrected from 'border-box' to property 'box-sizing' */
  max-width: 100%;
}
    .blog-posts h2 { font-size: 1.4em; color: #444; margin-bottom: 15px; }
    .blog-post { background: #fefefe; padding: 15px 20px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 15px; }
    .blog-post h3 { margin: 0 0 8px; font-size: 1.2em; color: #6a5acd; }
    .blog-post p { margin: 0; color: #555; }

@media (max-width: 600px) {
  .blog-posts {
    padding: 15px;
    margin: 20px 10px;
  }
}
/* ✅ Ensure boxes are accessible and tappable */
/*.box {*/
/*  min-height: 48px;*/
/*  min-width: 48px;*/
/*  touch-action: manipulation;*/
/*}*/
