/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ffff00, #ff00ff, #00ffff);
  background-size: 400% 400%;
  animation: rainbowBackground 0.8s ease-in-out infinite;
  cursor: none;
}

/* Rainbow Background Animation - Balanced */
@keyframes rainbowBackground {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 50% 0%;
  }
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Header Styles */
.main-header {
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.site-title {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  animation: titlePulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px #ff00ff, 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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

.subtitle {
  font-size: 1.2rem;
  color: #ffff00;
  font-weight: bold;
  text-transform: uppercase;
}

/* Main Content */
.main-content {
  margin-bottom: 40px;
}

/* Character Container */
.character-container {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dancing-character {
  display: inline-block;
  animation: smoothDance 1s ease-in-out infinite alternate, gentleBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px #ff00ff);
}

@keyframes smoothDance {
  0% {
    transform: rotate(-5deg) scale(0.95);
  }
  100% {
    transform: rotate(5deg) scale(1.05);
  }
}

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

/* Roblox GIF Styles */
.roblox-gif {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  border: 3px solid #ff00ff;
  box-shadow: 0 0 20px #ff00ff;
}

.placeholder-character {
  filter: drop-shadow(0 0 10px #ff00ff);
}

/* MLG Images Container */
.mlg-images {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  animation: mlgContainerFloat 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes mlgContainerFloat {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(0.5deg) scale(1.01);
  }
  75% {
    transform: rotate(-0.5deg) scale(0.99);
  }
}

/* MLG Grid Layout */
.mlg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 50px);
  gap: 12px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* MLG Items (Images) */
.mlg-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mlg-img {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 10px #ff00ff) saturate(1.5) brightness(1.2);
  animation: mlgItemFloat 2s ease-in-out infinite;
}

@keyframes mlgItemFloat {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.1);
  }
}

/* Individual MLG Item Positions */
.mlg-item-1 {
  grid-column: 1 / 2;
  grid-row: 1;
  animation-delay: 0s;
}
.mlg-item-2 {
  grid-column: 3 / 4;
  grid-row: 1;
  animation-delay: 0.5s;
}
.mlg-item-3 {
  grid-column: 5 / 6;
  grid-row: 1;
  animation-delay: 1s;
}
.mlg-item-4 {
  grid-column: 2 / 3;
  grid-row: 3;
  animation-delay: 1.5s;
}
.mlg-item-5 {
  grid-column: 4 / 5;
  grid-row: 3;
  animation-delay: 2s;
}

/* MLG Text Elements */
.mlg-text {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #ffff00;
  text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 0 0 15px #ff00ff,
    0 0 25px #00ffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mlgTextPulse 1.5s ease-in-out infinite;
  z-index: 3;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mlg-text:hover {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  transform: scale(1.1);
}

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

/* MLG Text Positions */
.mlg-text-1 {
  grid-column: 1 / 2;
  grid-row: 1;
  animation-delay: 0.1s;
}
.mlg-text-2 {
  grid-column: 2 / 3;
  grid-row: 1;
  animation-delay: 0.3s;
}
.mlg-text-3 {
  grid-column: 3 / 4;
  grid-row: 1;
  animation-delay: 0.5s;
}
.mlg-text-4 {
  grid-column: 4 / 5;
  grid-row: 1;
  animation-delay: 0.7s;
}
.mlg-text-5 {
  grid-column: 1 / 2;
  grid-row: 2;
  animation-delay: 0.9s;
}
.mlg-text-6 {
  grid-column: 2 / 3;
  grid-row: 2;
  animation-delay: 1.1s;
}
.mlg-text-7 {
  grid-column: 3 / 4;
  grid-row: 2;
  animation-delay: 1.3s;
}
.mlg-text-8 {
  grid-column: 4 / 5;
  grid-row: 2;
  animation-delay: 1.5s;
}

/* Special Effects for MLG Items */
.mlg-item:hover .mlg-img {
  animation: mlgItemChaos 0.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #ff00ff) saturate(2) brightness(1.5) hue-rotate(90deg);
}

@keyframes mlgItemChaos {
  0%,
  100% {
    transform: rotate(-10deg) scale(0.9);
  }
  25% {
    transform: rotate(10deg) scale(1.2);
  }
  50% {
    transform: rotate(-5deg) scale(1.1);
  }
  75% {
    transform: rotate(5deg) scale(1);
  }
}

/* Mobile Responsive MLG Grid */
@media (max-width: 768px) {
  .mlg-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 45px);
    gap: 8px;
    max-width: 400px;
  }

  .mlg-text {
    font-size: 1.1rem;
  }

  /* Adjust positions for mobile */
  .mlg-text-1 {
    grid-column: 1 / 2;
    grid-row: 1;
  }
  .mlg-text-2 {
    grid-column: 2 / 3;
    grid-row: 1;
  }
  .mlg-text-3 {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  .mlg-text-4 {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .mlg-text-5 {
    grid-column: 1 / 2;
    grid-row: 3;
  }
  .mlg-text-6 {
    grid-column: 2 / 3;
    grid-row: 3;
  }
  .mlg-text-7 {
    grid-column: 1 / 2;
    grid-row: 4;
  }
  .mlg-text-8 {
    grid-column: 2 / 3;
    grid-row: 4;
  }
}

/* Button Styles */
.button-container {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  animation: containerSway 3s ease-in-out infinite alternate;
}

@keyframes containerSway {
  0% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(5px);
  }
}

.download-btn,
.activate-btn {
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.1s ease;
  min-width: 300px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  animation: buttonFloat 1s ease-in-out infinite alternate;
}

.download-btn {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.activate-btn {
  background: linear-gradient(45deg, #ff0000, #ff4757);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.8);
  }
}

@keyframes buttonFloat {
  0% {
    transform: translateY(0) rotate(-1deg);
  }
  100% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes buttonShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-3px);
  }
  20% {
    transform: translateX(3px);
  }
  30% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  50% {
    transform: translateX(-1px);
  }
  60% {
    transform: translateX(1px);
  }
  70% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
  90% {
    transform: translateX(-1px);
  }
}

.download-btn:hover,
.activate-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Features Section */
.features {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  animation: featuresFloat 4s ease-in-out infinite;
}

@keyframes featuresFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

.features h2 {
  color: #00ff00;
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.features ul {
  list-style: none;
  font-size: 1.2rem;
}

.features li {
  color: #ffff00;
  margin: 10px 0;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  animation: listItemGlow 3s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 0.2s);
}

@keyframes listItemGlow {
  0%,
  100% {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 5px #ffff00;
  }
  50% {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 15px #ffff00, 0 0 25px #ff00ff;
  }
}

.features li:before {
  content: '⚡ ';
  color: #ff00ff;
}

/* Footer */
.main-footer {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  animation: footerWobble 5s ease-in-out infinite;
}

@keyframes footerWobble {
  0%,
  100% {
    transform: skew(0deg);
  }
  25% {
    transform: skew(0.5deg);
  }
  75% {
    transform: skew(-0.5deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .dancing-character {
    font-size: 3rem;
  }

  .download-btn,
  .activate-btn {
    min-width: 250px;
    font-size: 1.2rem;
    padding: 12px 25px;
  }

  .container {
    padding: 15px;
  }

  /* Mobile visitor counter */
  .visitor-counter {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 15px;
    position: fixed;
    width: auto;
  }

  .counter-label {
    font-size: 0.8rem;
  }

  .counter-number {
    font-size: 1.5rem;
  }

  .counter-subtitle {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.5rem;
  }

  .dancing-character {
    font-size: 2.5rem;
  }

  .download-btn,
  .activate-btn {
    min-width: 200px;
    font-size: 1rem;
  }

  /* Extra small mobile visitor counter */
  .visitor-counter {
    padding: 8px 12px;
  }

  .counter-label {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  .counter-number {
    font-size: 1.3rem;
    margin: 5px 0;
  }

  .counter-subtitle {
    font-size: 0.55rem;
  }
}

/* Counter-Strike Crosshair Cursor */
* {
  cursor: none !important;
}

.crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  animation: crosshairPulse 2s ease-in-out infinite;
}

.crosshair::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
  transform: translateY(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

.crosshair::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(0deg, #00ff00, #ffff00, #ff0000);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

@keyframes crosshairPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Audio Status Indicator */
.audio-status {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffff00;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 9998;
  border: 2px solid #ff00ff;
  animation: statusBlink 2s ease-in-out infinite;
}

.audio-status.enabled {
  color: #00ff00;
  border-color: #00ff00;
  animation: none;
}

/* Visitor Counter */
.visitor-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #ff00ff;
  border-radius: 15px;
  padding: 15px 20px;
  text-align: center;
  z-index: 9997;
  animation: counterFloat 3s ease-in-out infinite alternate, counterGlow 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.counter-label {
  color: #ffff00;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.counter-number {
  color: #00ff00;
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Impact', 'Arial Black', sans-serif;
  text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 0 0 15px #00ff00;
  animation: numberPulse 1.5s ease-in-out infinite;
  line-height: 1;
  margin: 8px 0;
}

.counter-subtitle {
  color: #00ffff;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes counterFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes counterGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.6);
  }
}

@keyframes numberPulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000,
      0 0 15px #00ff00;
  }
  50% {
    transform: scale(1.1);
    text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000,
      0 0 25px #00ff00, 0 0 35px #ffff00;
  }
}

@keyframes statusBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.6;
  }
}

/* Click effect animation */
@keyframes clickSplash {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}

/* MLG Explosion animation */
@keyframes mlgExplosion {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(2) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--end-x, 100px), var(--end-y, 100px)) scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Screen shake animation */
@keyframes screenShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-10px) translateY(-5px);
  }
  20% {
    transform: translateX(10px) translateY(5px);
  }
  30% {
    transform: translateX(-8px) translateY(-3px);
  }
  40% {
    transform: translateX(8px) translateY(3px);
  }
  50% {
    transform: translateX(-6px) translateY(-2px);
  }
  60% {
    transform: translateX(6px) translateY(2px);
  }
  70% {
    transform: translateX(-4px) translateY(-1px);
  }
  80% {
    transform: translateX(4px) translateY(1px);
  }
  90% {
    transform: translateX(-2px) translateY(-1px);
  }
}

/* 360 NoScope animation */
@keyframes spin360 {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: rotate(90deg) scale(1.1);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: rotate(180deg) scale(0.9);
    filter: hue-rotate(180deg);
  }
  75% {
    transform: rotate(270deg) scale(1.1);
    filter: hue-rotate(270deg);
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: hue-rotate(360deg);
  }
}

/* Audio Container (hidden for now) */
.audio-container {
  display: none;
}
