/* ============================================
   FISHYOUCANFUCK.COM - Official Stylesheet
   Best viewed in Netscape Navigator 3.0+
   Resolution: 800x600 or better
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #000033;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(0, 100, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 255, 150, 0.06) 0%, transparent 50%);
  color: #00ffcc;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- STARFIELD ---- */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

#page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

/* ---- HEADER ---- */
.site-header {
  text-align: center;
  padding: 20px 10px 10px;
  border: 3px solid #ff00ff;
  border-style: ridge;
  background: rgba(0, 0, 80, 0.7);
  margin-bottom: 10px;
}

.site-title {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 1.6em;
  color: #ff00ff;
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    3px 3px 0 #880088;
  margin: 0 0 8px 0;
  line-height: 1.4;
  animation: colorshift 4s infinite;
}

@keyframes colorshift {
  0%   { color: #ff00ff; text-shadow: 0 0 10px #ff00ff, 3px 3px 0 #880088; }
  25%  { color: #ffff00; text-shadow: 0 0 10px #ffff00, 3px 3px 0 #888800; }
  50%  { color: #00ffff; text-shadow: 0 0 10px #00ffff, 3px 3px 0 #008888; }
  75%  { color: #00ff88; text-shadow: 0 0 10px #00ff88, 3px 3px 0 #008844; }
  100% { color: #ff00ff; text-shadow: 0 0 10px #ff00ff, 3px 3px 0 #880088; }
}

.site-subtitle {
  font-size: 0.85em;
  color: #ffff00;
  margin: 4px 0;
}

/* ---- MARQUEE ---- */
.marquee-bar {
  background: #000;
  border-top: 2px solid #00ff00;
  border-bottom: 2px solid #00ff00;
  padding: 4px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: #00ff00;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 22s linear infinite;
}

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

/* ---- NAVBAR ---- */
.navbar {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
  margin-bottom: 10px;
  border: 2px solid #ffff00;
  border-style: inset;
  background: rgba(0, 0, 50, 0.8);
}

.navbar a {
  display: inline-block;
  background: linear-gradient(to bottom, #003399, #001166);
  color: #00ffff;
  text-decoration: none;
  padding: 6px 14px;
  border: 2px outset #6699ff;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: none;
}

.navbar a:hover {
  background: linear-gradient(to bottom, #ffff00, #cc9900);
  color: #000000;
  border-style: inset;
}

.navbar a.active {
  background: linear-gradient(to bottom, #ff00ff, #880088);
  color: #ffffff;
  border-style: inset;
}

/* ---- DIVIDERS ---- */
.divider {
  border: none;
  height: 4px;
  background: linear-gradient(to right,
    #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  margin: 12px 0;
}

.divider-wave {
  text-align: center;
  font-size: 1.2em;
  color: #00ffcc;
  letter-spacing: 4px;
  margin: 8px 0;
  animation: wavebounce 2s ease-in-out infinite;
}

@keyframes wavebounce {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ---- CONTENT BOXES ---- */
.content-box {
  background: rgba(0, 0, 60, 0.85);
  border: 3px ridge #00ccff;
  padding: 16px;
  margin-bottom: 14px;
}

.content-box h2 {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 0.85em;
  color: #ffff00;
  text-shadow: 2px 2px 0 #885500;
  margin-top: 0;
  border-bottom: 2px dashed #ffff00;
  padding-bottom: 8px;
}

.content-box h3 {
  color: #ff88ff;
  font-size: 1em;
  margin: 10px 0 6px;
}

.content-box p {
  color: #ccffee;
  line-height: 1.6;
  font-size: 0.92em;
}

/* ---- BLINK ---- */
.blink {
  animation: blinker 1s step-start infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.blink-slow {
  animation: blinker 2s step-start infinite;
}

/* ---- FISH PROFILES ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-card {
  background: rgba(0, 20, 60, 0.9);
  border: 3px outset #ff88ff;
  padding: 12px;
  text-align: center;
}

.profile-card:hover {
  border-style: inset;
  background: rgba(30, 0, 60, 0.9);
}

.fish-avatar {
  font-size: 3.5em;
  display: block;
  margin: 0 auto 8px;
}

/* Profile photo */
.profile-photo {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  object-position: center;
  border: 3px inset #ff88ff;
  image-rendering: pixelated;
  margin-bottom: 8px;
  filter: saturate(1.2) contrast(1.1);
}

.profile-photo-none {
  display: block;
  width: 100%;
  height: 80px;
  background: repeating-linear-gradient(
    45deg,
    #000033,
    #000033 6px,
    #000066 6px,
    #000066 12px
  );
  border: 3px inset #336699;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 0.65em;
  color: #336699;
  letter-spacing: 2px;
}

/* ASCII fish blocks used in profile cards and team cards */
.ascii-fish {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.85em;
  line-height: 1.4;
  display: block;
  margin: 0 auto 8px;
  text-align: center;
  white-space: pre;
  animation: fishbob 3s ease-in-out infinite;
}

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

/* ASCII stat icons in tables */
.ascii-stat {
  font-family: 'Courier New', monospace;
  font-size: 1.4em;
  color: #00ffcc;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.profile-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6em;
  color: #ffff00;
  display: block;
  margin-bottom: 6px;
}

.profile-info {
  font-size: 0.75em;
  color: #aaffdd;
  text-align: left;
  line-height: 1.7;
}

.profile-info span {
  color: #ff88ff;
}

.heart-button {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  background: linear-gradient(to bottom, #cc0044, #880022);
  color: #fff;
  border: 2px outset #ff4488;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.8em;
  cursor: pointer;
  text-decoration: none;
}

.heart-button:hover {
  background: linear-gradient(to bottom, #ff0066, #cc0044);
  border-style: inset;
}

/* ---- MATCHMAKER ---- */
.quiz-question {
  margin-bottom: 18px;
}

.quiz-question p {
  color: #ffff88;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.quiz-option {
  display: block;
  background: rgba(0, 30, 80, 0.8);
  border: 1px solid #336699;
  padding: 7px 12px;
  margin: 4px 0;
  color: #aaddff;
  cursor: pointer;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.85em;
  text-align: left;
  width: 100%;
  transition: background 0.1s;
}

.quiz-option:hover,
.quiz-option.selected {
  background: rgba(50, 0, 100, 0.9);
  border-color: #ff00ff;
  color: #ffffff;
}

.quiz-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to bottom, #006600, #004400);
  color: #00ff00;
  border: 3px outset #00cc00;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7em;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: 2px;
}

.quiz-submit:hover {
  background: linear-gradient(to bottom, #00aa00, #006600);
  border-style: inset;
}

.result-box {
  display: none;
  background: rgba(0, 40, 0, 0.9);
  border: 3px ridge #00ff00;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.result-box.show {
  display: block;
  animation: popin 0.3s ease-out;
}

@keyframes popin {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-fish {
  font-size: 4em;
  display: block;
  margin-bottom: 10px;
}

.result-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8em;
  color: #ffff00;
  margin-bottom: 8px;
}

.result-desc {
  color: #aaffaa;
  font-size: 0.85em;
  line-height: 1.6;
}

/* ---- ABOUT ---- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.team-card {
  border: 2px ridge #336699;
  background: rgba(0, 10, 50, 0.8);
  padding: 10px;
  text-align: center;
  font-size: 0.8em;
}

.team-card .fish-avatar {
  font-size: 2.5em;
}

/* ---- FOOTER ---- */
.site-footer {
  text-align: center;
  padding: 14px;
  border: 2px ridge #336699;
  background: rgba(0, 0, 40, 0.8);
  font-size: 0.75em;
  color: #6699aa;
  margin-top: 14px;
}

.site-footer a {
  color: #00ccff;
  text-decoration: underline;
}

.hit-counter {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #ff0000;
  padding: 4px 10px;
  border: 2px inset #880000;
  display: inline-block;
  font-size: 1.1em;
  letter-spacing: 4px;
  margin: 8px 0;
}

/* ---- UNDER CONSTRUCTION ---- */
.under-construction {
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6em;
  color: #ffff00;
  padding: 10px;
  border: 2px dashed #ffff00;
  margin: 10px 0;
}

.construction-stripes {
  height: 12px;
  background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 10px,
    #000000 10px,
    #000000 20px
  );
  margin: 6px 0;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #000033; }
::-webkit-scrollbar-thumb { background: #003399; border: 1px solid #0066ff; }
::-webkit-scrollbar-thumb:hover { background: #0055cc; }

/* ---- BUBBLES ---- */
.bubbles {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6), rgba(100,200,255,0.15));
  border: 1px solid rgba(100, 200, 255, 0.4);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0.8; }
  50%  { transform: translateY(-40vh) translateX(15px); opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(-10px); opacity: 0; }
}

/* ---- BARRY BASS (Clippy) ---- */
#barry-popup {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 420px;
  z-index: 10000;
  font-family: 'Comic Sans MS', cursive;
  /* Win95-style drop shadow */
  filter: drop-shadow(3px 3px 0 #000066) drop-shadow(6px 6px 0 rgba(0,0,100,0.4));
  /* Hidden by default */
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  pointer-events: none;
}

#barry-popup.barry-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#barry-popup.barry-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Title bar - Windows 95 blue gradient */
#barry-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #000080, #1084d0);
  padding: 3px 4px 3px 6px;
  border-top: 2px solid #aaaaff;
  border-left: 2px solid #aaaaff;
  border-right: 2px solid #000033;
  border-bottom: 1px solid #000044;
}

#barry-title {
  color: #ffffff;
  font-size: 0.72em;
  font-weight: bold;
  font-family: 'Comic Sans MS', cursive;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#barry-close {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #ffffff;
  font-size: 0.7em;
  font-weight: bold;
  width: 18px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  line-height: 1;
}

#barry-close:active {
  border-style: inset;
}

/* Body */
#barry-body {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  background: #c0c0c0;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 14px;
}

/* ASCII bass art */
#barry-art {
  font-family: 'Courier New', monospace;
  font-size: 1.5em;
  color: #000080;
  margin: 0;
  line-height: 1.3;
  white-space: pre;
  flex-shrink: 0;
  animation: barrybob 2s ease-in-out infinite;
  text-shadow: 1px 1px 0 rgba(0,0,100,0.2);
}

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

/* Speech bubble */
#barry-bubble {
  position: relative;
  background: #ffffcc;
  border: 2px solid #808080;
  border-radius: 2px;
  padding: 8px 10px;
  flex: 1;
  min-height: 60px;
}

/* Bubble tail pointing left toward Barry */
#barry-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 16px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #808080;
}

#barry-bubble::after {
  content: '';
  position: absolute;
  left: -7px;
  bottom: 17px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #ffffcc;
}

#barry-msg {
  margin: 0;
  font-size: 0.88em;
  color: #000000;
  font-family: 'Comic Sans MS', cursive;
  line-height: 1.6;
  white-space: pre-line;
  min-height: 3em;
}

/* Buttons */
#barry-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}

.barry-btn {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #ffffff;
  padding: 2px 10px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.72em;
  cursor: pointer;
  min-width: 40px;
}

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

.barry-btn:hover {
  background: #d4d4d4;
}

/* ---- IMAGE POPUP (bottom-left) ---- */
#imgpop {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 360px;
  z-index: 10000;
  font-family: 'Comic Sans MS', cursive;
  filter: drop-shadow(3px 3px 0 #000066) drop-shadow(6px 6px 0 rgba(0,0,100,0.4));
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  pointer-events: none;
}

#imgpop.imgpop-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#imgpop.imgpop-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

#imgpop-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #000080, #1084d0);
  padding: 3px 4px 3px 6px;
  border-top: 2px solid #aaaaff;
  border-left: 2px solid #aaaaff;
  border-right: 2px solid #000033;
  border-bottom: 1px solid #000044;
}

#imgpop-title {
  color: #ffffff;
  font-size: 0.65em;
  font-weight: bold;
  font-family: 'Comic Sans MS', cursive;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#imgpop-close {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #ffffff;
  font-size: 0.7em;
  font-weight: bold;
  width: 18px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  line-height: 1;
}

#imgpop-close:active {
  border-style: inset;
}

@keyframes imgpop-flash {
  0%, 100% { background: #c0c0c0; }
  50%       { background: #ffff66; }
}

#imgpop-body {
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 8px;
  text-align: center;
  animation: imgpop-flash 0.6s ease-in-out infinite;
}

#imgpop-img {
  display: block;
  width: 100%;
  border: 2px inset #808080;
  image-rendering: pixelated;
}

#imgpop-caption {
  margin-top: 6px;
  font-size: 0.62em;
  color: #000080;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- RESPONSIVE COMPAT ---- */
@media (max-width: 500px) {
  .profile-grid { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr 1fr; }
  .site-title   { font-size: 1em; }
  #barry-popup  { width: calc(100vw - 32px); }
  #imgpop       { width: calc(100vw - 32px); }
}
