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

::selection {
  background: #8b0000;
  color: white;
}

body {
  background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/Tile-J1SmaH7oTZQDLUHwSRXRwweP5Jx6ke.jpg");
  background-repeat: repeat;
  font-family: "Times New Roman", Times, serif;
  min-height: 100vh;
}

.sopranos-page {
  text-align: center;
  padding: 20px;
  min-height: 100vh;
}

.main-container {
  background: rgba(0, 0, 0, 0.9);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border: 3px solid #8b0000;
  box-shadow: 4px 4px 0px #000;
}

.title-section {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-gif {
  max-width: 480px;
  width: 100%;
  border: 4px solid #8b0000;
  box-shadow: 4px 4px 0px #000;
  display: block;
}

.site-title {
  font-size: 36px;
  color: #ff6b6b;
  text-shadow:
    2px 2px 0px #000,
    -1px -1px 0px #8b0000;
  margin-top: 15px;
  font-weight: bold;
  letter-spacing: 3px;
}

hr {
  border: none;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    #8b0000,
    #ff6b6b,
    #8b0000,
    transparent
  );
  margin: 20px 0;
}

.marquee-container {
  background: #000;
  color: #ff6b6b;
  padding: 8px 0;
  font-size: 16px;
  font-weight: bold;
  overflow: hidden;
  border: 2px solid #8b0000;
  margin-bottom: 20px;
}

.marquee-text {
  display: inline-block;
  animation: marquee 15s linear infinite;
  white-space: nowrap;
}

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

.search-section {
  background: #000;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #8b0000;
}

.search-label {
  color: #ff6b6b;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  text-align: left;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0px #000;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "Times New Roman", Times, serif;
  border: 3px inset #8b0000;
  background: #ffe4e1;
  color: #000;
}

.search-input:focus {
  outline: 2px solid #ff6b6b;
}

.search-note {
  color: #ddd;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 10px;
  text-align: left;
}

.gallery-title {
  font-size: 24px;
  color: #fff;
  background: #8b0000;
  padding: 10px 20px;
  display: inline-block;
  border: 3px solid #000;
  box-shadow: 3px 3px 0px #000;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px #000;
}

.gif-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gif-card {
  background: #000;
  border: 3px solid #8b0000;
  padding: 8px;
  box-shadow: 3px 3px 0px #000;
  width: 222px;
}

.gif-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  border: 2px solid #8b0000;
}

.gif-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 9px;
}

.gif-action {
  background: #8b0000;
  border: 2px outset #c74747;
  color: #fff;
  cursor: pointer;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 4px;
  text-decoration: none;
}

.gif-action:hover,
.gif-action:focus-visible {
  background: #b00000;
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.search-message {
  color: #ffb3b3;
  display: none;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 auto 15px;
  max-width: 680px;
  padding: 12px;
}

.search-message.visible {
  display: block;
}

.gif-card.hidden {
  display: none;
}

.no-results {
  color: #ff6b6b;
  padding: 20px;
  font-size: 18px;
  background: #000;
  border: 2px solid #8b0000;
  display: none;
}

.no-results.visible {
  display: block;
}

.footer {
  margin-top: 20px;
  padding: 15px;
  background: #000;
  border: 2px solid #8b0000;
  text-align: center;
}

.footer-text {
  color: #ff6b6b;
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.results-count {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  background: #000;
  padding: 8px 15px;
  display: inline-block;
  border: 2px solid #8b0000;
}

/* Floating Frank Vincent Button */
.frank-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
}

.frank-button:hover {
  transform: scale(1.1);
}

.frank-img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(3px 3px 0px #000);
}

/* Y2K Sidebar Buttons */
.sidebar-buttons {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateX(20%) scale(1.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #8b0000;
}

.sidebar-buttons a {
  display: block;
}

.sidebar-buttons img {
  display: block;
  max-width: 88px;
  height: auto;
  border: 1px solid #8b0000;
}

.sidebar-buttons img:hover {
  filter: brightness(1.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .sidebar-buttons {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
  }

  .frank-button {
    bottom: 15px;
    right: 15px;
  }

  .frank-img {
    width: 100px;
  }
}

@media (max-width: 520px) {
  .sopranos-page {
    padding: 8px;
  }

  .main-container {
    padding: 12px;
  }

  .site-title {
    font-size: 27px;
    letter-spacing: 1px;
  }

  .gif-card {
    width: 100%;
  }

  .gif-image {
    width: 100%;
  }
}

