/* ========================================
         RETROWEB.CSS - 90s GeoCities Framework
         Version 1.0 - "The Radical Edition"
      ======================================== */

/* BASE STYLES */
body {
  background-color: #000080;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    ),
    repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
  color: #ffff00;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  margin: 0;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* ALTERNATIVE BACKGROUNDS */
.bg-starry {
  background: #000
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="150" cy="30" r="1" fill="white"/><circle cx="50" cy="80" r="1" fill="white"/><circle cx="180" cy="120" r="1" fill="white"/><circle cx="90" cy="160" r="1" fill="white"/></svg>');
}

.bg-teal {
  background: #008080;
}

.bg-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-sunset {
  background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}

/* CONTAINERS */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 5px ridge #ffd700;
  padding: 20px;
  box-shadow: 0 0 20px #00ff00;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 5px ridge #ffd700;
  padding: 20px;
  box-shadow: 0 0 20px #00ff00;
}

/* TYPOGRAPHY */
h1 {
  text-align: center;
  color: #ff00ff;
  font-size: 36px;
  text-shadow: 3px 3px 0 #00ffff, 6px 6px 0 #ff1493;
  font-family: "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: rainbow 3s linear infinite;
  margin: 20px 0;
}

@keyframes rainbow {
  0% {
    color: #ff00ff;
  }
  16% {
    color: #00ffff;
  }
  33% {
    color: #ffff00;
  }
  50% {
    color: #00ff00;
  }
  66% {
    color: #ff1493;
  }
  83% {
    color: #ffa500;
  }
  100% {
    color: #ff00ff;
  }
}

h2 {
  color: #00ff00;
  font-size: 28px;
  text-decoration: underline;
  text-shadow: 2px 2px 4px #000;
  font-family: "Impact", sans-serif;
  margin-top: 30px;
}

h3 {
  color: #00ffff;
  font-size: 20px;
  font-style: italic;
  margin-top: 20px;
}

h4 {
  color: #ff00ff;
  font-size: 18px;
  margin-top: 15px;
}

p {
  margin: 10px 0;
}

/* LINKS */
a {
  color: #00ffff;
  text-decoration: underline;
  font-weight: bold;
}

a:visited {
  color: #ff00ff;
}

a:hover {
  color: #ffff00;
  text-decoration: none;
  text-shadow: 0 0 10px #ffff00;
}

/* BUTTONS */
.btn, button {
  background: linear-gradient(180deg, #00ff00, #008000);
  color: #000;
  border: 3px outset #ffffff;
  padding: 10px 20px;
  font-family: "Arial Black", sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
  margin: 5px;
  display: inline-block;
  text-decoration: none;
}

.btn:hover, button:hover {
  background: linear-gradient(180deg, #ffff00, #ffd700);
  box-shadow: 3px 3px 10px #00ff00;
  color: #000;
}

.btn:active, button:active {
  border-style: inset;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.btn-primary {
  background: linear-gradient(180deg, #0000ff, #000080);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(180deg, #ff0000, #8b0000);
  color: #ffffff;
}

.btn-warning {
  background: linear-gradient(180deg, #ffff00, #ffa500);
  color: #000;
}

.btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

/* FRAMES & BOXES */
.frame {
  border: 5px ridge #c0c0c0;
  background: linear-gradient(135deg, #2e0854 0%, #000428 100%);
  padding: 15px;
  margin: 20px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.frame-3d {
  border: 5px outset #c0c0c0;
  background: rgba(192, 192, 192, 0.2);
  padding: 15px;
  margin: 20px 0;
}

.frame-gold {
  border: 5px ridge #ffd700;
  background: linear-gradient(135deg, #4a2c00 0%, #1a0a00 100%);
  padding: 15px;
  margin: 20px 0;
}

.box {
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid #00ffff;
  padding: 15px;
  margin: 10px 0;
}

.box-neon {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #00ff00;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 0 10px #00ff00, inset 0 0 10px rgba(0, 255, 0, 0.3);
}

/* TABLES */
table {
  border: 4px ridge #ffd700;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  margin: 20px 0;
}

th {
  background: linear-gradient(180deg, #ff00ff, #8b008b);
  color: #ffffff;
  padding: 10px;
  border: 2px outset #ffd700;
  font-weight: bold;
}

td {
  background: rgba(0, 0, 0, 0.5);
  color: #00ffff;
  padding: 8px;
  border: 2px inset #808080;
}

tr:hover td {
  background: rgba(255, 255, 0, 0.2);
}

/* LISTS */
ul, ol {
  margin: 10px 0;
  padding-left: 30px;
}

li {
  margin: 5px 0;
}

/* SPECIAL COMPONENTS */
.marquee {
  background: #000;
  color: #00ff00;
  padding: 10px;
  border: 3px solid #ff00ff;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  margin: 20px 0;
}

.marquee span {
  display: inline-block;
  animation: scroll 15s linear infinite;
}

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

.under-construction {
  background: repeating-linear-gradient(
    45deg,
    #ffff00,
    #ffff00 10px,
    #000 10px,
    #000 20px
  );
  border: 5px solid #ff0000;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  color: #000;
  font-size: 18px;
  animation: blink 1s infinite;
  margin: 20px 0;
}

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

.hit-counter {
  background: #000;
  border: 3px inset #808080;
  padding: 10px;
  text-align: center;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 20px;
  display: inline-block;
  letter-spacing: 5px;
  margin: 10px 0;
}

.guestbook-entry {
  background: rgba(255, 255, 255, 0.1);
  border: 3px double #00ffff;
  padding: 15px;
  margin: 10px 0;
  color: #ffffff;
}

.guestbook-entry .author {
  color: #ff00ff;
  font-weight: bold;
  font-size: 16px;
}

.guestbook-entry .date {
  color: #00ff00;
  font-size: 12px;
  font-style: italic;
}

.webring {
  background: #808080;
  border: 4px ridge #ffffff;
  padding: 15px;
  text-align: center;
  margin: 20px 0;
}

.webring a {
  margin: 0 10px;
  color: #ffff00;
  text-decoration: none;
  font-weight: bold;
}

/* BADGES & ICONS */
.badge {
  display: inline-block;
  padding: 5px 10px;
  background: #ff00ff;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 12px;
  font-weight: bold;
  margin: 2px;
}

.badge-new {
  background: #ff0000;
  animation: blink 1s infinite;
}

.badge-hot {
  background: #ff6600;
  animation: pulse 1s infinite;
}

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

.badge-cool {
  background: #0000ff;
}

/* TEXT EFFECTS */
.neon-text {
  color: #00ff00;
  text-shadow:
    0 0 5px #00ff00,
    0 0 10px #00ff00,
    0 0 20px #00ff00,
    0 0 40px #00ff00;
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 5px #00ff00,
      0 0 10px #00ff00,
      0 0 20px #00ff00,
      0 0 40px #00ff00;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

.neon-pink {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

.neon-cyan {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.text-shadow-3d {
  text-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.5);
}

/* ANIMATIONS */
.star {
  display: inline-block;
  color: #ffff00;
  animation: twinkle 1.5s infinite;
  font-size: 20px;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bounce {
  animation: bounce 1s infinite;
  display: inline-block;
}

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

.shake {
  animation: shake 0.5s infinite;
  display: inline-block;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

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

/* DIVIDERS */
hr {
  border: none;
  height: 8px;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3
  );
  border-top: 2px ridge #ffd700;
  border-bottom: 2px ridge #ffd700;
  margin: 20px 0;
}

.divider-simple {
  border: none;
  height: 3px;
  background: #00ff00;
  margin: 20px 0;
}

.divider-dots {
  text-align: center;
  border: none;
  margin: 20px 0;
}

.divider-dots::before {
  content: "★ ✦ ★ ✦ ★";
  color: #ffff00;
  font-size: 20px;
}

/* FORMS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea {
  background: #000;
  color: #00ff00;
  border: 3px inset #808080;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin: 5px 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

select {
  background: #000;
  color: #00ff00;
  border: 3px inset #808080;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

label {
  color: #00ffff;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* NAVIGATION BAR */
.navbar {
  background: linear-gradient(180deg, #c0c0c0, #808080);
  border: 4px outset #ffffff;
  padding: 0;
  margin: 0 0 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  padding: 5px 10px;
}

.navbar-brand {
  color: #000080;
  font-family: "Arial Black", sans-serif;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #ffffff;
  margin-right: 20px;
}

.navbar-brand:hover {
  color: #ff00ff;
  text-shadow: 1px 1px 0 #ffff00;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.navbar-menu li {
  margin: 0 2px;
}

.navbar-menu a {
  display: block;
  padding: 10px 15px;
  background: linear-gradient(180deg, #0000cd, #000080);
  color: #ffffff;
  text-decoration: none;
  border: 3px outset #ffffff;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.1s;
}

.navbar-menu a:hover {
  background: linear-gradient(180deg, #ff00ff, #8b008b);
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00;
  border-color: #ffff00;
}

.navbar-menu a:active {
  border-style: inset;
  transform: translateY(2px);
}

.navbar-menu a.active {
  background: linear-gradient(180deg, #00ff00, #008000);
  color: #000000;
  border-style: inset;
}

/* VERTICAL NAVBAR (SIDEBAR STYLE) */
.navbar-vertical {
  background: linear-gradient(180deg, #c0c0c0, #808080);
  border: 4px ridge #ffd700;
  padding: 10px 0;
  width: 200px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.navbar-vertical .navbar-brand {
  display: block;
  text-align: center;
  margin: 0 0 15px 0;
  padding: 10px;
  border-bottom: 3px solid #000080;
}

.navbar-vertical .navbar-menu {
  flex-direction: column;
}

.navbar-vertical .navbar-menu li {
  margin: 5px 10px;
}

.navbar-vertical .navbar-menu a {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* RETRO TAB NAVBAR */
.navbar-tabs {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 -3px 0;
}

.navbar-tabs .navbar-menu {
  border-bottom: 5px solid #ffd700;
}

.navbar-tabs .navbar-menu li {
  margin: 0 3px 0 0;
}

.navbar-tabs .navbar-menu a {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  background: linear-gradient(180deg, #4b0082, #2e0854);
  color: #00ffff;
  position: relative;
  top: 3px;
}

.navbar-tabs .navbar-menu a:hover {
  background: linear-gradient(180deg, #8b008b, #4b0082);
  color: #ffff00;
  top: 1px;
}

.navbar-tabs .navbar-menu a.active {
  background: linear-gradient(180deg, #ff00ff, #8b008b);
  color: #ffffff;
  border-bottom: 5px solid #ff00ff;
  top: 3px;
}

/* NEON NAVBAR */
.navbar-neon {
  background: #000000;
  border: 3px solid #00ff00;
  box-shadow: 0 0 10px #00ff00, inset 0 0 10px rgba(0, 255, 0, 0.3);
}

.navbar-neon .navbar-brand {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.navbar-neon .navbar-menu a {
  background: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

.navbar-neon .navbar-menu a:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #ff00ff;
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
  box-shadow: 0 0 10px #ff00ff;
}

.navbar-neon .navbar-menu a.active {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  color: #ff00ff;
  box-shadow: 0 0 15px #ff00ff;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}

.p-1 {
  padding: 10px;
}
.p-2 {
  padding: 20px;
}
.p-3 {
  padding: 30px;
}

.float-left {
  float: left;
  margin-right: 15px;
}

.float-right {
  float: right;
  margin-left: 15px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* GRID SYSTEM */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col {
  flex: 1;
  padding: 0 10px;
  box-sizing: border-box;
}

.col-half {
  flex: 0 0 50%;
  padding: 0 10px;
  box-sizing: border-box;
}

.col-third {
  flex: 0 0 33.333%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* DEMO PAGE SPECIFIC STYLES */
.component-demo {
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed #00ffff;
  padding: 20px;
  margin: 15px 0;
  border-radius: 5px;
}

.component-title {
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

code {
  background: #000;
  color: #00ff00;
  padding: 2px 6px;
  border: 1px solid #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.code-block {
  background: #000;
  color: #00ff00;
  padding: 15px;
  border: 2px solid #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 10px 0;
  white-space: pre;
}
