/* Retro Windows 95 style basic reset and style */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.splink:link{color: blue;
  text-decoration: none;
}
.splink:visited{color: blue;
  text-decoration: none;
}
.splink:hover{color: purple;
  text-decoration: underline;
} 
.section-highlight {
  animation: highlight-fade 1.5s ease-out;
}

@keyframes highlight-fade {
  0% {
    background-color: lightskyblue;
  }
  100% {
    background-color: transparent;
  }
}
/* Ensure the body takes up the full height of the viewport */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: black;
  font-size: 18px;
  line-height:1.5;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


header {
  position: fixed;
  width: 100%;
  border-bottom: 2px solid black;
    z-index: 10001;

}
main {
  flex-grow: 1;
  margin-top: 50px; /* Match the height of the fixed header */
  padding: 10px;
  
}
.logo {
  font-weight: bold;
  font-size: 28px;
  color: navy;
  text-shadow: 1px 1px 0 white;
  letter-spacing: 1px;
  
}
nav{
  background: linear-gradient(to top, #c0c0c0 0%, #808080 100%);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #404040;
}
nav ul{

  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: #2929297c;
}
nav li:first-child{
  margin-right: auto;
}
nav a.sideactive:not(.logo) {
  color: white !important;
  background-color: #2929297c;
  outline: 2px solid black;
  transition: background-color 0.3s, color 0.3s;
}
.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
  color: black;
}
.sidebar a:hover{
  background-color: #2929297c;
}
.sidebar a.active {
  background-color: #2929297c;
   color: white;
}
.menu-button{
  display: none;
}

:root {
            --space-color: #0b0b2b;
            --star-color: #ffffff;
            --nebula-purple: #6a0dad;
            --nebula-blue: #1a1a8a;
            --card-bg: rgba(26, 26, 46, 0.8);
        }
        
        body {
            font-family: 'VT323', monospace;
            background-color: var(--space-color);
            color: white;
            margin: 0;
            padding: 0;
            background-image: 
                radial-gradient(circle at 10% 20%, var(--nebula-purple), transparent 20%),
                radial-gradient(circle at 90% 30%, var(--nebula-blue), transparent 25%),
                linear-gradient(to bottom, transparent, var(--space-color));
            min-height: 100vh;
        }
        
        .space-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .star {
            position: absolute;
            background-color: var(--star-color);
            border-radius: 50%;
            animation: twinkle var(--duration) infinite alternate;
        }
        
        @keyframes twinkle {
            0% { opacity: 0.3; }
            100% { opacity: 1; }
        }
        
        .contentheading {
            text-align: center;
            padding: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            font-family: inherit; /* follow reading settings */
            /* Use a larger relative multiplier so the heading grows noticeably even at small size changes */
            font-size: 1.6em;
            margin: 0;
            letter-spacing: 1.5px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            transition: font-size 160ms ease;
        }
        
        h1 {
            /* Keep headings responsive but larger than body for emphasis */
            font-family: inherit;
            font-size: 1.6em;
            margin: 0;
            letter-spacing: 2px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            transition: font-size 160ms ease;
        }
        
        .search-container {
            max-width: 800px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        /* Content card text scaling */
        .content-card,
        .card-title,
        .card-text,
        .card-labels,
        .label {
            font-family: inherit;
        }
        .card-title { font-size: 1.15em; }
        .card-text { font-size: 1em; color: rgba(255,255,255,0.85);}
        
        .search-bar {
            display: flex;
            position: relative;
        }
        
        #search-input {
            flex: 1;
            padding: 0.8rem;
            font-family: inherit;
            font-size: 1em;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            border-radius: 4px;
        }
        /* ensure placeholder also inherits font & scales */
        #search-input::placeholder { font-family: inherit; font-size: inherit; color: rgba(255,255,255,0.65); }
        #search-input::-webkit-input-placeholder { font-family: inherit; font-size: inherit; color: rgba(255,255,255,0.65); }
        #search-input::-moz-placeholder { font-family: inherit; font-size: inherit; color: rgba(255,255,255,0.65); }
        #search-input:-ms-input-placeholder { font-family: inherit; font-size: inherit; color: rgba(255,255,255,0.65); }
        
        #search-input:focus {
            outline: none;
            border-color: var(--nebula-purple);
            box-shadow: 0 0 10px var(--nebula-purple);
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: var(--card-bg);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-top: none;
            border-radius: 0 0 4px 4px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 10;
            display: none;
        }
        
        .search-result-item {
            padding: 0.8rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .search-result-item:hover {
            background-color: rgba(106, 13, 173, 0.3);
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
            -webkit-tap-highlight-color: transparent;
        }
        
        button {
            /* inherit the chosen font on <main> and scale with it */
            font-family: inherit;
            font-size: 1em;
            padding: 0.5rem 1rem;
            background-color: var(--nebula-purple);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        button:hover {
            background-color: var(--nebula-blue);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }
        
        .filters {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        
        .filter-chip {
            padding: 0.3rem 0.8rem;
            background-color: rgba(106, 13, 173, 0.3);
            border-radius: 20px;
            cursor: pointer;
            border: 1px solid var(--nebula-purple);
        }
        
        .filter-chip.active {
            background-color: var(--nebula-purple);
        }
        
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            padding: 1rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .content-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        
        .content-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            border-color: var(--nebula-purple);
        }
        
        .card-image {
            width: 100%;
            height: 180px;
            object-fit: fill;
            aspect-ratio: 2/1;
        }
        
        .card-content {
            padding: 1rem;
        }
        
        .card-title {
            font-size: 1.5rem;
            margin: 0 0 0.5rem 0;
        }
        
        .card-text {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
        }
        
        .card-labels {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin-top: 0.5rem;
        }

        /* Detail view and UI elements inherit reading settings */
        .back-button,
        .detail-title,
        .detail-content,
        #credit-section,
        .card-labels .label,
        .card-title,
        .card-text {
            font-family: inherit;
            /* inherit the main font-size to ensure Reading Settings control sizing */
            font-size: inherit;
            transition: font-size 160ms ease;
        }

        .back-button {
            /* use inherit to follow main font-size */
            font-size: inherit;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            background: rgba(255,255,255,0.06);
            color: white;
            border-radius: 4px;
            display: inline-block;
        }

        .detail-title {
            /* slightly larger than main text but expressed as inheritance */
            font-size: inherit;
            font-weight: 700;
            margin: 0.5rem 0;
        }

        .detail-content {
            font-size: inherit; /* match main text size */
            color: rgba(255,255,255,0.95);
            line-height: 1.6;
        }

        .card-image {
            width: 100%;
            max-height: 360px;
            object-fit: cover;
            border-radius: 6px;
        }

        .card-labels .label {
            font-size: 0.95em;
        }

        #credit-section {
            font-size: 0.9em;
            color: rgba(255,255,255,0.75);
            margin-top: 12px;
        }
        
        .label {
            font-size: 0.8rem;
            padding: 0.2rem 0.5rem;
            background-color: rgba(106, 13, 173, 0.3);
            border-radius: 4px;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0;
        }
        body.noscroll
       {
            overflow: hidden !important;
            width: 100vw;
        }
        body.noscroll main 
        {
              overflow: hidden !important;
        }
        
        .filters {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-top: 10px;
    padding-bottom: 4px;
    margin: 1rem 0;
    -webkit-tap-highlight-color: transparent;

}
.filter-chip {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
    /* Keep your existing styles for .filter-chip */
}

/* Optional: Hide scrollbar for a cleaner look */
.filters::-webkit-scrollbar {
    display: none;
}
.filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


        /* Content Detail View */
        .content-detail {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--space-color);
            z-index: 100;
            overflow-y: auto;
            padding:1rem;
            display: none;
           padding-top: 60px;
        }
        
        .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .back-button {
            font-size: 1.5rem;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        
        .detail-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .detail-title {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .detail-image {
            width: 100%;
            max-height: 400px; 
            object-fit:contain;
            margin: 1rem 0;
        }
        .detail-video {
            object-fit: contain;
            aspect-ratio: 16/9;
            width: 100%;
              margin-top: 8px;

        }
        .detail-video-label {
  text-align: center;
  margin-top: 8px;
  font-size: 1rem;
  color: #9b9b9b;
  font-weight: bold;
}
        .detail-text {
            font-size: 1.2rem;
            line-height: 1.5;
            margin-bottom: 1rem;
        }
        .detail-content ul {
            padding-left: 1.5rem;
        }
         .detail-content ol {
            padding-left: 2rem;
        }
        .credit-section {
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Responsive adjustments */
        @media (min-width: 768px) {
            .content-grid {
                grid-template-columns: repeat(auto-fill, minmax(400px));
            }
        }
        
        @media (min-width: 1200px) {
            .content-grid {
                grid-template-columns: repeat(auto-fill, minmax(450px));
            }
        }

        .contact-prompt {
            border-radius: 8px;
            padding: 10px;
            text-align: center;
        }
        
        .click-here {
            color: #8ebbe9;
            cursor: pointer;
            font-weight: bold;
            -webkit-tap-highlight-color: transparent;
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 50px;
            width: 100%;
            height: 100%;
            overflow: auto;
            
        }
        
        .modal-content {
            background-color: #ffffff;
            margin: 10% auto;
            padding: 25px;
            border-radius: 20px;
            width: 80%;
            max-width: 600px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            color:black;
        }
        
        .close {
            color: #000000;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: black;
        }
        
        .format-guide {
            background-color: whitesmoke;
            border-left: 4px solid #0066cc;
            padding: 15px;
            margin: 15px 0;
            border-radius: 8px;
        }
        
        .format-guide h3 {
            margin-top: 0;
            color: #0066cc;
        }
        
        .format-guide ul {
            padding-left: 20px;
        }
        
        .mail-button {
            background-color: #0066cc;
            color: white;
            border: none;
            padding: 12px 20px;
            text-align: center;
            text-decoration: none;
            display: block;
            font-size: 16px;
            margin:10px auto;
            cursor: pointer;
            border-radius: 50px;
            transition: background-color 0.3s;
            -webkit-tap-highlight-color: transparent;
            
        }
        
        .mail-button:hover {
            background-color: #0052a3;
        }
      .codesection {
      margin: 10px auto;
      padding: 20px;
      border-radius: 10px;
      max-width: 900px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
      .code-container {
      position: relative;
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;
      margin-top: 20px;
    }

    .code-header {
      background: #004d40;
      color: #fff;
      padding: 10px;
      text-align: center;
      font-weight: bold;
      font-size: 16px;
    }

    .code-block {
      display: flex;
      overflow-x: auto;
      font-family: sans-serif;
      font-size: 14px;
      background: #272822;
      color: #f8f8f2;
      padding: 10px;
    }
    .code-block pre {
      display: flex;
      overflow-x: auto;
      font-family:  monospace;
      font-size: 14px;
    }
    .code-buttons {
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .code-buttons button {
      background: #009688;
      border: none;
      color: #fff;
      padding: 5px 10px;
      margin-left: 5px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 12px;
    }
    .output-box {
      display: none;
      background: #e0f2f1;
      border-left: 4px solid #009688;
      margin-top: 10px;
      padding: 10px;
      color: black;
    }

footer {
  background: linear-gradient(to top, #3a3939  0%, #3a3939 100%);
  color: white;
  text-align: center;
  padding: 1px 2px 2px;
}

.socials-container {
  display: flex;
  gap: 14px;
  padding: 1em;
  justify-content: center;
}

.socials-container a {
  background-color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: background-color 0.3s;
}

.socials-container a svg {
  height: 20px;
  width: 20px;
}

.socials-container a::before {
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.3em 0.7em;
  font-size: 0.75rem;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-26px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover {
  background-color: var(--accent-color);
  fill: white;
}

.socials-container a::after {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover::before {
  transform: translateY(-52px) rotate(0);
  opacity: 1;
}

.socials-container a:hover::after {
  transform: translateY(-32px) rotate(0);
  opacity: 1;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0 15px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #aaa;
}

footer p {
font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

footer span {
  font-weight: bold;
  color: #bbb;
}
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
      width: 250px;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .socials-container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0.8em;
  }

  .socials-container a {
    width: 40px;
    height: 40px;
  }

  .socials-container a svg {
    height: 18px;
    width: 18px;
  }

  .socials-container a::before {
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
    transform: translateY(-22px) rotate(25deg);
  }

  .socials-container a:hover::before {
    transform: translateY(-45px) rotate(0);
  }

  .socials-container a::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent-color);
  }

  .socials-container a:hover::after {
    transform: translateY(-28px) rotate(0);
  }
}



