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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.4;
}

/* Page Wrapper - Centers everything at 50% */
.page-wrapper {
  width: 50%;
  margin: 0 auto;
  background-color: #0a0a0a;
}

/* Top Banner */
.top-banner {
  background: linear-gradient(
    90deg,
    #5eb3e4 0%,
    #5eb3e4 50%,
    #ff6b6b 50%,
    #ff6b6b 100%
  );
  color: #000;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.banner-sub {
  font-size: 10px;
  margin: 0 8px;
}

.banner-sale {
  background: #c8102e;
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 8px;
}

/* Compact Logo Header - Top Left Corner Only */
.logo-header {
  background-color: #8b0a1e;
  width: fit-content;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: url(img/background/Pointer.svg), pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 3px;
  background-color: white;
  display: block;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Hamburger animation - all bars move together */
.hamburger.active span {
  background-color: white;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -350px;
  width: 350px;
  height: 100vh;
  background-color: #1a1a1a;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.sidebar-menu.open {
  left: 0;
}

.sidebar-header {
  background-color: #c8102e;
  padding: 20px;
  color: white;
  font-size: 24px;
  font-weight: 900;
  font-family: Arial Black, sans-serif;
}

.sidebar-nav {
  padding: 0;
}

.sidebar-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a2a;
  transition: background-color 0.2s;
}

.sidebar-nav a:hover {
  background-color: #2a2a2a;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Logo */
.logo-text {
  color: white;
  font-size: 28px;
  font-weight: 900;
  font-family: Arial Black, sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Navigation Wrapper - Full Width, Separate */
.nav-wrapper {
  position: sticky;
  top: 0;
  background-color: #c8102e;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: stretch;
}

/* Hidden header in nav (shows on scroll) */
.nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-wrapper.scrolled .nav-header {
  padding: 10px 20px;
  width: auto;
  opacity: 1;
}

/* Navigation */
.main-nav {
  background-color: #c8102e;
  display: flex;
  padding: 0;
  overflow-x: auto;
  flex: 1;
  align-items: stretch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 15px 5%;
  white-space: nowrap;
  transition: background-color 0.2s;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav a:hover {
  background-color: #73231f;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  background-color: #000;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 15px;
}

.bookmark-hero {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.bookmark-hero:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Story Container */
.story-container {
  background-color: #1a1a1a;
  padding: 20px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 0 auto;
}

/* Story Item */
.story-item {
  background-color: #2a2a2a;
  border-radius: 0;
  overflow: hidden;
  cursor: url(img/background/Pointer.svg), pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-item:hover {
  cursor: url(img/background/Pointer.svg), pointer;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.story-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #000;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.story-item:hover .story-image img {
  transform: scale(1.05);
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff0000;
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Story Info */
.story-info {
  padding: 15px;
  background-color: #2a2a2a;
}

.story-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: white;
  margin-bottom: 12px;
  min-height: 62px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #3a3a3a;
}

.story-author {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.comment-count {
  font-size: 12px;
  color: #999;
  margin-left: auto;
  margin-right: 10px;
}

.bookmark-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.bookmark-btn:hover {
  color: white;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #888;
  padding: 40px 20px;
  text-align: center;
  border-top: 3px solid #c8102e;
}

.site-footer p {
  margin-bottom: 10px;
  font-size: 13px;
}

.site-footer a {
  color: #c8102e;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.tagline {
  margin-top: 20px;
  font-style: italic;
  color: #666;
}

/* Responsive */
@media (max-width: 1400px) {
  .page-wrapper {
    width: 60%;
  }
}

@media (max-width: 1200px) {
  .page-wrapper {
    width: 70%;
  }

  .story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .page-wrapper {
    width: 85%;
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    width: 100%;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    height: 350px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-title {
    font-size: 20px;
  }

  .logo-text {
    font-size: 24px;
  }
}

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #c8102e;
  color: white;
}

::-moz-selection {
  background-color: #c8102e;
  color: white;
}

#Mole {
  background-image: url(img/background/Whac-A-Mole-Background.svg);
  font-family: Eliot Lord;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

#score,
#timer {
  color: white;
  font-weight: 900;
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

#startButton,
#endButton {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 20px;
  border-radius: 25px;
  z-index: 2147483647;
}

.hole {
  margin: auto;
  height: 150px;
  width: 150px;
  background-image: url("img/background/hole.svg");
  border: none;
  cursor: url("img/background/Pointer.svg");
  border-radius: 150px;
}

.mole {
  background-size: 150px;
  background-image: url("img/background/Tory Mole.svg");
}

.game-container {
  width: 100%;
  gap: 0%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 30%);
  border: none;
  padding: 20px;
  border-radius: 10px;
}

#moleheader {
  background-color: #a92323;
  height: 30%;
  padding: 3%;
}

#moleheader img {
  top: 100%;
}

.worm {
  margin-top: 20px;
  width: 200px;
  height: 50px;
  cursor: url(img/background/Pointer.svg);
  position: absolute;
  margin-right: -150px;
  z-index: 3;
  border-radius: 4px;
}

/* Walking animations */
.k img,
.l img {
  transform: translate(300px, 0px);
  width: 15%;
  height: 15%;
  position: absolute;
  z-index: -5;
  animation: walking 12s linear infinite;
}

.k img {
  top: 35%;
}

.l img {
  top: 85%;
}

.m img {
  transform: translate(0px, 300px);
  position: absolute;
  z-index: -5;
  width: 15%;
  height: 15%;
  top: 60%;
  animation: walking1 12s linear infinite;
}

@keyframes walking {
  0% {
    left: -2%;
    transform: scaleX(-1);
  }
  100% {
    left: 110%;
    transform: scaleX(-1);
  }
}

@keyframes walking1 {
  0% {
    left: 120%;
    transform: scaleX(1);
  }
  100% {
    left: -1%;
    transform: scaleX(1);
  }
}

/* Results Modal */
.results-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.results-modal.active {
  display: flex;
}

.results-content {
  background-color: #35334c;
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(200, 16, 46, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.results-title {
  color: #c8102e;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.results-score {
  color: white;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #35334c;
  border-radius: 10px;
}

.results-message {
  color: #ccc;
  font-size: clamp(16px, 3vw, 20px);
  margin-bottom: 30px;
  line-height: 1.5;
}

.results-btn {
  background-color: #c8102e;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  border-radius: 25px;
  cursor: url("img/background/Pointer.svg"), pointer;
  margin: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.results-btn:hover {
  background-color: #a00d24;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.4);
}

.results-btn-secondary {
  background-color: #444;
}

.results-btn-secondary:hover {
  background-color: #666;
}

/* Responsive Game Scaling */
.game-container {
  max-width: 600px;
  margin: 20px auto;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
  padding: 20px;
}

.hole {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  margin: 0;
  background-image: url("img/background/hole.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: url("img/background/Pointer.svg"), pointer;
  border-radius: 50%;
}

.mole {
  background-size: contain;
  background-image: url("img/background/Tory Mole.svg");
  background-repeat: no-repeat;
  background-position: center;
}

#startButton,
#endButton {
  margin: 10px auto;
  padding: 12px 24px;
  font-size: clamp(16px, 2vw, 20px);
  border-radius: 25px;
  z-index: 2147483647;
  display: block;
  cursor: url("img/background/Pointer.svg"), pointer;
  background-color: #c8102e;
  color: white;
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

#startButton:hover,
#endButton:hover:not(:disabled) {
  background-color: #73231f;
  transform: translateY(-2px);
}

#endButton:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.game-info {
  text-align: center;
  margin: 20px auto;
}

#score,
#timer {
  font-size: clamp(18px, 3vw, 24px);
  margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .game-container {
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .game-container {
    max-width: 100%;
    padding: 10px;
  }

  .results-content {
    padding: 30px 20px;
  }
}
