html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  main {
    flex: 1;
  }  

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #fff;
    color: #000k;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
  }

  h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #000;
  }
  h2 {
    font-size: 2rem;
    color: #000;
  }

  p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #000;
  }

  nav a {
    text-decoration: none;
    color: white;
    background: #cc0000;
    padding: 0.75em 1.5em;
    border-radius: 8px;
    margin: 0.5em;
    display: inline-block;
    transition: background 0.3s;
  }

  nav a:hover {
    background: #990000;
  }

  footer {
    bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
    padding-top: 4rem;
  }

  .hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #777;
    padding: 0.5rem;
    border-bottom-right-radius: 8px;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 150px;
    background: #fff;
    border-radius: 4px;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: block;
  }

  .menu-icon {
    cursor: pointer;
    font-size: 2em;
  }

  @keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

.spoiler-card {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    visibility: hidden;
  }
  
  body.spoiler-visible .spoiler-card {
    opacity: 1;
    pointer-events: auto;
    max-height: 1000px; /* should be larger than any card height */
    visibility: visible;
  }
  
  
.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: green;
  }
  
  .dark-mode-toggle input {
    margin-left: 0.5rem;
    transform: scale(1.5);
  }
  
  .dark-mode {
    background: #111;
    color: white;
  }
  
  .dark-mode nav a {
    background: #222;
    color: #eee;
  }
  
  .dark-mode nav a:hover {
    background: #444;
  }
  .dark-mode h1 {
    color: #fff;
  }
  .dark-mode h2{
    color: #fff;
  }
  .dark-mode p{
    color: #fff;
  }

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
  }
  
  .site-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.2s ease, background 0.3s ease;
  }
  
  .site-card:hover {
    transform: translateY(-4px);
    background: #222;
  }
  
  .site-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #cc0000;
  }
  
  .site-card p {
    color: #ccc;
    margin-bottom: 1rem;
  }
  
  .site-card a {
    background: #cc0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .site-card a:hover {
    background: #990000;
  }

  project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
  }
  
  .project-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.2s ease, background 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-4px);
    background: #222;
  }
  
  .project-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #cc0000;
  }
  
  .project-card p {
    color: #ccc;
    margin-bottom: 1rem;
  }
  
  .project-card a {
    background: #cc0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .project-card a:hover {
    background: #990000;
  }
  
  /* Hidden by default */
.hidden {
    display: none !important;
  }
  
  /* Fullscreen overlay */
  .popup-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* Inner ad box */
  .popup-content {
    background: white;
    color: green;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
  }
  
  /* Close button */
  .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
  }
  