* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes rainbow {
  0% { color: #ff0000; }
  14% { color: #ff7f00; }
  28% { color: #ffff00; }
  42% { color: #00ff00; }
  57% { color: #0000ff; }
  71% { color: #4b0082; }
  85% { color: #9400d3; }
  100% { color: #ff0000; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes dance {
  0%, 100% { transform: rotate(-15deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.1); }
  50% { transform: rotate(-15deg) scale(1); }
  75% { transform: rotate(15deg) scale(0.9); }
}

@keyframes shooting {
  0% {
    transform: translate(0, 0) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translate(300px, 300px) rotate(-45deg);
    opacity: 0;
  }
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  background: #000011;
  background-image: 
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 100px 100px, 50px 50px;
  background-position: 0 0, 25px 25px;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

#sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff 0%, #ff0 50%, transparent 70%);
  border-radius: 50%;
  animation: sparkle 1s ease-out forwards;
  pointer-events: none;
}

.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #fff, transparent);
  animation: shooting linear forwards;
}

.dancing-baby {
  position: fixed;
  top: 80px;
  left: 20px;
  font-size: 60px;
  animation: dance 0.5s infinite;
  cursor: pointer;
  z-index: 100;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
  transition: transform 0.2s;
}

.dancing-baby:hover {
  transform: scale(1.2);
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 10;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.under-construction {
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 10px,
    #ff0 10px,
    #ff0 20px
  );
  padding: 10px;
  margin-bottom: 20px;
  border: 3px dashed #ff0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.construction-text {
  background: #000;
  padding: 5px 15px;
  font-weight: bold;
  color: #ff0;
  animation: blink 1s infinite;
}

.construction-worker {
  font-size: 30px;
  animation: bounce 0.5s infinite;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.berry-spin {
  font-size: 60px;
  animation: spin 3s linear infinite;
  display: inline-block;
}

.rainbow-text {
  font-size: 48px;
  font-weight: bold;
  animation: rainbow 3s linear infinite;
  text-shadow: 
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000;
}

.beta-badge {
  background: #ff0;
  color: #000;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
}

.blink {
  animation: blink 1s infinite;
}

/* Marquee */
.marquee-container {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  padding: 8px;
  overflow: hidden;
  border: 2px inset #888;
  margin-bottom: 20px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  color: #000;
  font-weight: bold;
}

/* Navigation */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-3d {
  background: linear-gradient(180deg, #dfdfdf 0%, #888 100%);
  border: 3px outset #ccc;
  padding: 10px 20px;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  transition: all 0.1s;
}

.button-3d:hover {
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
}

.button-3d:active, .button-3d.active {
  border-style: inset;
  background: linear-gradient(180deg, #888 0%, #dfdfdf 100%);
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(255,0,255,0.2), rgba(0,255,255,0.2));
  border: 3px double #ff0;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 36px;
  background: linear-gradient(90deg, #ff6b9d, #c44569, #48dbfb, #0abde3, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.or-text {
  font-size: 20px;
  color: #ff0;
}

.social-links {
  color: #0ff;
  font-size: 14px;
}

/* Main content */
.main-content {
  margin-bottom: 30px;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Filters sidebar */
.filters-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #1a1a3a, #0d0d2a);
  border: 3px ridge #666;
  padding: 15px;
  flex-shrink: 0;
}

.filters-title {
  color: #ff0;
  margin-bottom: 15px;
  text-align: center;
  font-size: 20px;
}

.search-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 3px inset #888;
  background: #fff;
  font-family: 'Comic Neue', cursive;
  font-size: 14px;
}

.category-filters h4 {
  color: #0ff;
  margin-bottom: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}

.win95-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sidebar-gifs {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  font-size: 24px;
}

.spinning-at {
  animation: spin 2s linear infinite;
  display: inline-block;
}

.star-gif {
  animation: pulse 1s infinite;
}

/* API Table */
.api-table {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(180deg, #1a1a3a, #0d0d2a);
  border: 3px ridge #666;
}

.table-header {
  background: linear-gradient(90deg, #4a0080, #800080);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: bold;
  border-bottom: 2px solid #ff0;
}

.warning-text {
  font-size: 12px;
  color: #ff0;
}

.table-subheader {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  padding: 10px 15px;
  background: #333;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #555;
}

.api-row-wrapper {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.api-row {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.api-row:hover {
  filter: brightness(1.2);
  transform: translateX(5px);
}

.api-row-content {
  display: grid;
  grid-template-columns: auto 1fr 2fr auto;
  gap: 15px;
  align-items: center;
}

.api-icon {
  font-size: 20px;
}

.api-name {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-badge {
  background: #ff0;
  color: #000;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
}

.api-desc {
  font-size: 13px;
  opacity: 0.9;
}

.expand-icon {
  font-size: 12px;
}

.api-details {
  background: #0a0a1a;
  border: 2px dashed #ff0;
  margin: 0 10px 10px 10px;
}

.api-details-inner {
  padding: 20px;
}

.api-details h4 {
  color: #0ff;
  margin: 15px 0 10px 0;
}

.api-details h4:first-child {
  margin-top: 0;
}

.endpoint-code {
  background: #1a1a3a;
  padding: 10px;
  display: block;
  border-left: 3px solid #ff0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  overflow-x: auto;
}

.code-block {
  background: #1a1a3a;
  padding: 15px;
  border-left: 3px solid #0ff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.api-actions {
  margin-top: 15px;
}

.try-button {
  display: inline-block;
  background: linear-gradient(180deg, #00ff00, #008800);
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border: 3px outset #0f0;
  font-weight: bold;
  font-family: 'Comic Neue', cursive;
}

.try-button:hover {
  background: linear-gradient(180deg, #00ff88, #00aa00);
}

.no-results {
  padding: 40px;
  text-align: center;
  color: #888;
  font-size: 18px;
}

/* Examples section */
.examples-section, .about-section {
  background: linear-gradient(180deg, #1a1a3a, #0d0d2a);
  border: 3px ridge #666;
  padding: 30px;
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.example-card {
  background: linear-gradient(135deg, #ff6b9d33, #48dbfb33);
  border: 2px solid #ff0;
  padding: 20px;
  text-align: center;
}

.example-card h3 {
  color: #ff0;
  margin-bottom: 10px;
}

/* About section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 15px;
}

.rainbow-hr {
  height: 5px;
  border: none;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  margin: 20px 0;
}

.retro-joke {
  text-align: center;
  color: #ff0;
  animation: blink 2s infinite;
}

/* Visitor counter */
.visitor-counter {
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

.counter-digits {
  display: inline-flex;
  gap: 2px;
}

.counter-digit {
  background: #000;
  border: 2px inset #888;
  padding: 5px 8px;
  font-family: 'Courier New', monospace;
  color: #0f0;
  font-weight: bold;
}

/* Webring */
.webring {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  background: linear-gradient(90deg, #4a0080, #800080, #4a0080);
  border: 2px ridge #ff0;
  margin-bottom: 20px;
}

.webring span {
  cursor: pointer;
}

.webring-name {
  font-weight: bold;
  color: #ff0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  background: repeating-linear-gradient(
    45deg,
    #1a1a3a,
    #1a1a3a 10px,
    #0d0d2a 10px,
    #0d0d2a 20px
  );
  border: 3px double #ff0;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: #0ff;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #ff0;
}

.footer-badge {
  margin-bottom: 15px;
}

.geocities-badge {
  background: linear-gradient(90deg, #ff0, #0ff);
  color: #000;
  padding: 5px 15px;
  font-weight: bold;
  display: inline-block;
  border: 2px outset #888;
}

.copyright {
  font-size: 12px;
  color: #888;
  margin-bottom: 15px;
}

.footer-gifs {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 24px;
}

.footer-gifs span {
  animation: bounce 1s infinite;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.footer-gifs span:nth-child(1) { --i: 0; }
.footer-gifs span:nth-child(2) { --i: 1; }
.footer-gifs span:nth-child(3) { --i: 2; }
.footer-gifs span:nth-child(4) { --i: 3; }
.footer-gifs span:nth-child(5) { --i: 4; }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .dancing-baby {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .rainbow-text {
    font-size: 28px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .filters-sidebar {
    width: 100%;
  }
  
  .api-row-content {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  
  .api-desc {
    display: none;
  }
  
  .table-subheader {
    display: none;
  }
  
  .nav-buttons {
    gap: 5px;
  }
  
  .button-3d {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .webring {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 10px;
  }
  
  .rainbow-text {
    font-size: 22px;
  }
  
  .berry-spin {
    font-size: 40px;
  }
  
  .hero {
    padding: 20px 10px;
  }
  
  .hero-title {
    font-size: 18px;
  }
}