@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 sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

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

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

@keyframes flame {
  0%, 100% { text-shadow: 0 0 4px #ff0000, 0 -5px 4px #ff6600, 0 -10px 8px #ffff00; }
  25% { text-shadow: 0 0 4px #ff3300, 0 -7px 4px #ff9900, 0 -12px 8px #ffcc00; }
  50% { text-shadow: 0 0 4px #ff6600, 0 -5px 4px #ffcc00, 0 -8px 8px #ffffff; }
  75% { text-shadow: 0 0 4px #ff3300, 0 -6px 4px #ff6600, 0 -11px 8px #ffff00; }
}

@keyframes hourglass {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes construction {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 20px 0; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='24' font-size='24'%3E👆%3C/text%3E%3C/svg%3E"), auto;
}

.app-container {
  background-color: #00ffff;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='10' y='40' font-size='30'%3E⭐%3C/text%3E%3C/svg%3E");
  background-size: 60px 60px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.sparkle {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffffff 0%, #ffff00 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 2s infinite;
}

.sparkle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 10%; animation-delay: 0.4s; }
.sparkle-3 { top: 50%; left: 3%; animation-delay: 0.8s; }
.sparkle-4 { top: 70%; right: 5%; animation-delay: 1.2s; }
.sparkle-5 { top: 85%; left: 15%; animation-delay: 1.6s; }

.header-section {
  background: linear-gradient(180deg, #000080 0%, #0000ff 100%);
  border-bottom: 4px solid #ffff00;
}

.under-construction-banner {
  background: repeating-linear-gradient(
    45deg,
    #ffff00,
    #ffff00 10px,
    #000000 10px,
    #000000 20px
  );
  color: #ff0000;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  padding: 8px 20px;
  animation: construction 0.5s linear infinite;
  text-shadow: 2px 2px 0 #ffffff;
  font-family: 'VT323', monospace;
}

.main-title {
  font-family: 'VT323', monospace;
  color: #ffff00;
  text-shadow: 
    3px 3px 0 #ff0000,
    6px 6px 0 #ff6600;
  animation: flame 0.5s infinite;
  letter-spacing: 2px;
}

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

.marquee-container {
  overflow: hidden;
  background: #000000;
  border: 3px inset #808080;
  padding: 8px 0;
}

.marquee-text {
  color: #00ff00;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
}

.beveled-box {
  background: #c0c0c0;
  border: 4px outset #ffffff;
  box-shadow: 
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #808080,
    4px 4px 0 #000000;
}

.input-label {
  font-family: 'VT323', monospace;
  color: #000080;
  font-size: 1.3rem;
  text-shadow: 1px 1px 0 #ffffff;
}

.geocities-input {
  font-family: 'Comic Neue', cursive;
  background: #ffffff;
  border: 3px inset #808080;
  font-size: 1.1rem;
  outline: none;
}

.geocities-input:focus {
  border-color: #0000ff;
  box-shadow: 0 0 8px #00ffff;
}

.geocities-input::placeholder {
  color: #808080;
  font-style: italic;
}

.win95-button {
  background: #c0c0c0;
  border: 3px outset #ffffff;
  font-family: 'VT323', monospace;
  cursor: pointer;
  transition: all 0.1s;
}

.win95-button:hover {
  background: #d0d0d0;
}

.win95-button:active {
  border-style: inset;
  transform: translate(1px, 1px);
}

.win95-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.generate-button {
  background: linear-gradient(180deg, #00ff00 0%, #008800 100%);
  color: #ffffff;
  text-shadow: 2px 2px 0 #004400;
  font-size: 1.5rem;
  animation: flame 0.3s infinite;
}

.win95-select {
  font-family: 'VT323', monospace;
  background: #ffffff;
  border: 2px inset #808080;
  font-size: 1rem;
}

.browser-window {
  background: #c0c0c0;
  border: 3px outset #ffffff;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  overflow: hidden;
}

.browser-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
}

.browser-buttons {
  display: flex;
  gap: 4px;
}

.browser-btn {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 2px outset #c0c0c0;
}

.browser-btn.close { background: #c0c0c0; }
.browser-btn.minimize { background: #c0c0c0; }
.browser-btn.maximize { background: #c0c0c0; }

.browser-title {
  flex: 1;
  font-weight: bold;
}

.browser-toolbar {
  background: #c0c0c0;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  border-bottom: 2px groove #808080;
}

.toolbar-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  padding: 2px 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.toolbar-btn:active {
  border-style: inset;
}

.address-bar {
  background: #ffffff;
  border: 2px inset #808080;
  padding: 2px 8px;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: #0000ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  background: #ffffff;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generated-image {
  max-width: 100%;
  display: block;
}

.loading-state {
  text-align: center;
  padding: 40px;
}

.hourglass {
  font-size: 4rem;
  animation: hourglass 2s ease-in-out infinite;
  display: inline-block;
}

.loading-state p {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: #000080;
  margin-top: 16px;
}

.browser-actions {
  background: #c0c0c0;
  border-top: 2px groove #808080;
}

.section-title {
  font-family: 'VT323', monospace;
  color: #ff00ff;
  text-shadow: 2px 2px 0 #00ffff;
  animation: rainbow 4s linear infinite;
}

.history-item {
  background: #ffffff;
  border: 3px outset #c0c0c0;
  transition: all 0.2s;
  overflow: hidden;
}

.history-item:hover {
  border-color: #ffff00;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff00ff;
}

.history-prompt {
  background: #000080;
  color: #ffffff;
  font-family: 'VT323', monospace;
}

.footer-section {
  background: linear-gradient(180deg, #800080 0%, #ff00ff 50%, #800080 100%);
  border-top: 4px solid #ffff00;
}

.visitor-counter {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #ffffff;
}

.counter-label {
  text-shadow: 2px 2px 0 #000000;
}

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

.counter-digit {
  background: #000000;
  color: #00ff00;
  padding: 4px 8px;
  border: 2px inset #808080;
  font-size: 1.5rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.badge {
  padding: 8px 16px;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  border: 3px outset #c0c0c0;
  background: #c0c0c0;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.badge:hover {
  background: #ffff00;
  border-color: #ff0000;
}

.netscape-badge {
  background: linear-gradient(180deg, #006600 0%, #00cc00 100%);
  color: #ffffff;
}

.guestbook-badge {
  background: linear-gradient(180deg, #cc6600 0%, #ffcc00 100%);
  color: #000000;
}

.webring-badge {
  background: linear-gradient(180deg, #ff0066 0%, #ff99cc 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #660033;
}

.rainbow-divider {
  height: 8px;
  background: linear-gradient(90deg, 
    #ff0000 0%, 
    #ff7f00 14%, 
    #ffff00 28%, 
    #00ff00 42%, 
    #0000ff 57%, 
    #4b0082 71%, 
    #9400d3 85%, 
    #ff0000 100%
  );
  border: 2px outset #ffffff;
}

.blink {
  animation: blink 1s step-end infinite;
  color: #ffff00;
  font-family: 'VT323', monospace;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
  
  .rainbow-text {
    font-size: 1.2rem;
  }
  
  .geocities-input {
    font-size: 1rem;
    padding: 12px;
  }
  
  .generate-button {
    width: 100%;
    font-size: 1.2rem;
  }
  
  .browser-toolbar {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .address-bar {
    width: 100%;
    order: 1;
  }
  
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .sparkle {
    display: none;
  }
}