:root {
  --theme-purple: #9b3bb7;
  --theme-gold: #ffd700;
  --theme-pink: #ff69b4;
  --theme-dark: #110024;
}

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

body {
  background: #000 url("assets/tiled_bg.gif") repeat;
  background: var(--theme-dark);
  padding: 20px;
  color: #fff;
  font-family: "Comic Sans MS", cursive;
}

h1,
h2,
h3,
.counter,
.wishlist-button,
nav ul li a {
  font-family: "Press Start 2P", "Comic Sans MS", cursive, sans-serif;
}

.page-wrapper {
  width: 960px;
  margin: 0 auto;
  border: 5px double var(--theme-gold);
  background: rgba(0, 0, 0, 0.8);
  position: relative;
  padding-bottom: 20px;
}

header {
  background: var(--theme-dark);
  padding: 10px;
  border-bottom: 5px solid var(--theme-gold);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.construction-banner {
  background: black;
  color: red;
  font-weight: bold;
  border: 2px dashed yellow;
  font-size: 1.5em;
  padding: 5px 0;
}

.logo-nav-wrapper {
  display: table;
  width: 100%;
  position: relative;
  z-index: 1;
}

.logo-section {
  display: table-cell;
  vertical-align: top;
  width: 200px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border: 2px solid var(--theme-gold);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.logo {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.counter {
  background: #000;
  color: var(--theme-gold);
  padding: 5px;
  text-align: center;
  border: 1px solid var(--theme-gold);
  margin-top: 10px;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 5px var(--theme-gold);
  font-size: 0.9em;
}

.top-marquee {
  background: var(--theme-dark);
  color: var(--theme-gold);
  padding: 5px 0;
  font-weight: bold;
  border-top: 2px solid var(--theme-gold);
  border-bottom: 2px solid var(--theme-gold);
  margin-top: 10px;
  text-shadow: 0 0 5px var(--theme-gold);
}

nav {
  display: table-cell;
  vertical-align: middle;
  padding-left: 20px;
  text-align: right;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin: 0 5px;
}

nav ul li a {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(to bottom, var(--theme-purple), #6a2680);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--theme-gold);
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  text-shadow: 1px 1px #000;
  font-size: 0.7em;
}

nav ul li.selectedButton a {
  background: linear-gradient(to bottom, #c44cd9, var(--theme-purple));
  border: 2px solid #fff;
  animation: buttonPulse 2s infinite;
}

.hero {
  background: var(--theme-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(
      circle at center,
      var(--theme-gold) 1px,
      transparent 2px
    ),
    radial-gradient(circle at center, var(--theme-gold) 1px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.1;
  animation: twinkle 2s infinite alternate;
}

.hero h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: -2px -2px 0 var(--theme-purple), 2px -2px 0 var(--theme-purple),
    -2px 2px 0 var(--theme-purple), 2px 2px 0 var(--theme-purple),
    4px 4px 0 #000, 0 0 20px var(--theme-purple);
}

.hero h2 {
  color: var(--theme-pink);
  margin: 15px 0;
  text-transform: uppercase;
  font-size: 1.5em;
  text-shadow: 2px 2px var(--theme-purple);
  animation: float 3s infinite ease-in-out;
}

.hero h3 {
  color: #fff;
  margin: 20px 0;
  font-size: 1.2em;
  background: var(--theme-purple);
  padding: 10px 20px;
  border: 2px solid var(--theme-gold);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transform: rotate(-2deg);
}

.wishlist-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(to bottom, var(--theme-gold), #d4af37);
  color: #000;
  text-decoration: none;
  border: 3px solid #fff;
  font-size: 2em;
  text-transform: uppercase;
  position: relative;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 5px 5px 0 #000, inset 0 1px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 215, 0, 0.5);
  text-shadow: 1px 1px #fff;
  animation: buttonGlow 2s infinite;
  letter-spacing: 2px;
}

.bottom-marquee,
.extra-marquee,
.golden-marquee {
  color: #fff;
  background: #000;
  border-top: 1px dashed var(--theme-gold);
  border-bottom: 1px dashed var(--theme-gold);
  padding: 5px 0;
  font-size: 1em;
  font-family: "Comic Sans MS", cursive;
}

#screenshots {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--theme-gold);
  border-bottom: 5px solid var(--theme-gold);
}

#screenshots::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(155, 59, 183, 0.1) 0%,
      transparent 60%
    );
  pointer-events: none;
}

#screenshots h1 {
  color: var(--theme-gold);
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 40px 0;
  font-size: 2.5em;
  text-shadow: 2px 2px var(--theme-purple), 0 0 20px rgba(255, 215, 0, 0.5);
  position: relative;
  display: inline-block;
  width: 100%;
  font-family: "Comic Sans MS", cursive;
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.screenshot {
  position: relative;
  width: 300px;
  height: 200px;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  cursor: pointer;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--theme-gold);
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2),
    0 0 40px rgba(155, 59, 183, 0.2);
}

.screenshot::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--theme-purple),
    var(--theme-gold),
    var(--theme-purple)
  );
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 3s linear infinite;
}

.screenshot:hover {
  transform: translateY(-20px) rotateX(10deg);
}

.screenshot:hover::before {
  opacity: 1;
}

.screenshot:hover img {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3),
    0 0 60px rgba(155, 59, 183, 0.3);
}

.screenshot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%
  );
  background-size: 300% 300%;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.screenshot:hover::after {
  opacity: 1;
  animation: shine 2s infinite;
}

.decoration {
  position: absolute;
  color: var(--theme-gold);
  font-size: 24px;
  pointer-events: none;
  text-shadow: 0 0 10px var(--theme-gold);
  font-family: "Comic Sans MS", cursive;
}

.decoration:nth-child(1) {
  top: 10%;
  left: 5%;
  animation: floatStar1 4s infinite ease-in-out;
}
.decoration:nth-child(2) {
  top: 20%;
  right: 5%;
  animation: floatStar2 5s infinite ease-in-out;
}
.decoration:nth-child(3) {
  bottom: 15%;
  left: 10%;
  animation: floatStar3 6s infinite ease-in-out;
}
.decoration:nth-child(4) {
  bottom: 25%;
  right: 10%;
  animation: floatStar4 4.5s infinite ease-in-out;
}

#game-info {
  background: var(--theme-purple);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffd700' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 0h35v35H0V0zm5 5h25v25H5V5zm5 5h15v15H10V10zm5 5h5v5h-5v-5zM40 5h25v25H40V5zm5 5h15v15H45V10zm5 5h5v5h-5v-5z'/%3E%3C/g%3E%3C/svg%3E");
}

.game-info-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.game-info-wrapper::before {
  content: "★";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: var(--theme-gold);
  text-shadow: 0 0 10px var(--theme-gold);
  animation: starFloat 2s infinite ease-in-out;
}

#game-info h2 {
  color: var(--theme-gold);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-shadow: 3px 3px var(--theme-purple);
  font-size: 2em;
  width: 100%;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.testimonial {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--theme-gold);
  padding: 20px;
  border-radius: 15px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.testimonial:hover {
  transform: perspective(1000px) rotateX(5deg) scale(1.05);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 60px;
  color: var(--theme-gold);
  font-family: Georgia, serif;
  text-shadow: 2px 2px var(--theme-purple);
}

.testimonial p {
  color: var(--theme-gold);
  text-align: center;
  font-style: italic;
  font-size: 1em;
  margin: 0;
  padding: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.testimonial::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 100%
  );
  animation: shine 3s infinite;
  pointer-events: none;
  border-radius: 13px;
}

.lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 50%
  );
  animation: lightPulse 4s infinite alternate;
}

.side-menu {
  position: absolute;
  top: 0;
  left: -220px;
  border: 2px solid var(--theme-gold);
}
.side-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: "Comic Sans MS", cursive;
  padding: 5px;
  margin: 10px 0;
  background: var(--theme-purple);
  border: 2px solid var(--theme-gold);
  text-shadow: 1px 1px #000;
  font-size: 0.9em;
}

.side-menu a:hover {
  background: var(--theme-gold);
  color: #000;
  text-shadow: none;
}

.aa {
  margin-top: 20px;
  display: block;
  width: 30%;
}

.bb {
  margin-top: 10px;
  display: block;
  width: 20%;
}

.blink {
  animation: blinker 1s infinite alternate;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes floatStar1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, -15px) rotate(180deg);
  }
}
@keyframes floatStar2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-15px, -20px) rotate(-180deg);
  }
}
@keyframes floatStar3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, 15px) rotate(180deg);
  }
}
@keyframes floatStar4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(-180deg);
  }
}

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

@keyframes lightPulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.3;
  }
}

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

@keyframes buttonGlow {
  0% {
    box-shadow: 5px 5px 0 #000, inset 0 1px rgba(255, 255, 255, 0.3),
      0 0 5px var(--theme-gold);
  }
  50% {
    box-shadow: 5px 5px 0 #000, inset 0 1px rgba(255, 255, 255, 0.3),
      0 0 20px var(--theme-gold);
  }
  100% {
    box-shadow: 5px 5px 0 #000, inset 0 1px rgba(255, 255, 255, 0.3),
      0 0 5px var(--theme-gold);
  }
}

@keyframes textGlitch {
  0% {
    transform: perspective(500px) rotateX(5deg) translate(0);
  }
  2% {
    transform: perspective(500px) rotateX(5deg) translate(-2px, 2px) skew(-5deg);
  }
  4% {
    transform: perspective(500px) rotateX(5deg) translate(2px, -2px) skew(5deg);
  }
  6% {
    transform: perspective(500px) rotateX(5deg) translate(0);
  }
}

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

@media screen and (max-width: 960px) {
  .side-menu {
    display: none;
  }

  .page-wrapper {
    width: 100%;
    margin: 0;
  }

  .logo-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav {
    padding: 10px 0;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .screenshots-grid,
  .testimonials-container {
    grid-template-columns: 1fr;
  }

  .screenshot,
  .testimonial {
    margin-bottom: 20px;
    width: 100%;
    height: auto;
  }

  .main-content-wrapper {
    display: flex;
    align-items: flex-start;
  }

  .dancing-banana,
  .spinning-globe {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .logo-section {
    width: 90%;
  }

  nav ul li a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  .hero h2 {
    font-size: 1.2em;
  }

  .hero h3 {
    font-size: 1em;
  }

  .wishlist-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* News Page Specific Styles */
.news-header {
  background: var(--theme-dark);
  padding: 20px;
  border-bottom: 5px solid var(--theme-gold);
  text-align: center;
  font-family: "Press Start 2P", cursive;
  margin-bottom: 30px;
}

.news-header h1 {
  color: var(--theme-gold);
  text-shadow: 2px 2px var(--theme-purple);
  font-size: 2em;
  margin: 0;
  animation: textGlitch 5s infinite;
}

.news-article {
  margin: 40px 20px;
  padding: 25px;
  background: rgba(155, 59, 183, 0.1);
  border: 2px solid var(--theme-gold);
  border-radius: 15px;
  position: relative;
  transition: transform 0.3s ease;
}

.news-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.news-article::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--theme-purple), var(--theme-gold));
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-article:hover::before {
  opacity: 1;
}

.news-image {
  max-width: 300px;
  margin-right: 20px;
  margin-bottom: 20px;
  border: 3px solid var(--theme-gold);
  border-radius: 10px;
  float: left;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-image:hover {
  transform: scale(1.05);
}

.date-stamp {
  color: var(--theme-gold);
  font-family: "Press Start 2P", cursive;
  font-size: 0.8em;
  margin-bottom: 15px;
  text-shadow: 1px 1px var(--theme-purple);
}

.news-article h2 {
  color: var(--theme-pink);
  margin: 10px 0;
  font-size: 1.5em;
  font-family: "Press Start 2P", cursive;
  text-shadow: 2px 2px var(--theme-purple);
}

.news-article p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #fff;
}

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

/* Add responsive styles for news page */
@media screen and (max-width: 768px) {
  .news-image {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
  }

  .news-article {
    margin: 20px 10px;
    padding: 15px;
  }

  .news-header h1 {
    font-size: 1.5em;
  }
}

/* Add some cool hover effects for the news articles */
.news-article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%
  );
  background-size: 200% 200%;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-article:hover::after {
  opacity: 1;
  animation: shine 2s infinite;
}
