/* Minimalistic Black and White Styling */

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

body {
  font-family: 'Inter', sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Container - Centered Layout */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
}

/* Header Styles */
.header {
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.header p {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: #ffffff;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
}

/* Card Styles */
.glass-card {
  background: rgba(25, 25, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0 auto;
  width: 100%;
  max-width: 350px;
}

.glass-card.minimalist {
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Game Image Styles */
.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.game-image.loading {
  background: linear-gradient(110deg, #000 30%, #222 50%, #000 70%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.portal-paws-image {
  background-image: url('assets/portal-paws-1.jpg');
}

.bee-game-image {
  background-image: url('assets/bee-game-1.jpg');
}

.hooded-magic-image {
  background-image: url('assets/hooded-magic-1.jpg');
}

.apocalunch-image {
  background-image: url('assets/apocalunch-1.jpg');
  /* If image doesn't exist yet, use a placeholder */
  background: #333;
}

/* Image Navigation */
.image-nav {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.image-nav-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.image-nav-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: black;
}

/* Game Info */
.game-info {
  padding: 1.5rem;
  text-align: center;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.game-info p {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 1.2rem;
}

.download-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #cccccc;
  transform: translateY(-2px);
}

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

.modal.minimalist {
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background: #111111;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 20px auto;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-header h2 {
  font-size: 1.8rem;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.download-option {
  background: #222222;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-option:hover {
  background: #333333;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.download-option a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  width: 80%;
}

.download-option a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.download-instructions {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.download-instructions h3 {
  margin-bottom: 1rem;
}

.download-instructions ol {
  margin-left: 1.5rem;
}

.download-instructions li {
  margin-bottom: 0.5rem;
}

.close-btn {
  display: block;
  margin: 1.5rem auto 0;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  text-align: center;
  color: #888888;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader-animation {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.loader-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  animation: loader-pulse 1.5s infinite ease-in-out;
}

.loader-circle-2 {
  animation-delay: 0.2s;
}

.loader-circle-3 {
  animation-delay: 0.4s;
}

.loader-text {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #ffffff;
}

/* Animations */
@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes loading-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Animation Classes */
.appear {
  opacity: 0;
  transform: translateY(30px);
  animation: appear 0.8s forwards;
}

.appear-delay-1 {
  animation-delay: 0.3s;
}

.appear-delay-2 {
  animation-delay: 0.6s;
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimalist Grid Lines */
.grid-lines.minimalist {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add these new styles for the text animation */
.text-animation {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.text-animation .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  animation: fadeInUp 0.8s forwards;
}

/* Stagger the animation for each letter */
.text-animation .letter:nth-child(1) { animation-delay: 0.1s; }
.text-animation .letter:nth-child(2) { animation-delay: 0.2s; }
.text-animation .letter:nth-child(3) { animation-delay: 0.3s; }
.text-animation .letter:nth-child(4) { animation-delay: 0.4s; }
.text-animation .letter:nth-child(5) { animation-delay: 0.5s; }
.text-animation .letter:nth-child(6) { animation-delay: 0.6s; }
.text-animation .letter:nth-child(7) { animation-delay: 0.7s; }
.text-animation .letter:nth-child(8) { animation-delay: 0.8s; }
.text-animation .letter:nth-child(9) { animation-delay: 0.9s; }
.text-animation .letter:nth-child(10) { animation-delay: 1.0s; }
.text-animation .letter:nth-child(11) { animation-delay: 1.1s; }
.text-animation .letter:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern button styles */
.modern-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.modern-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.15);
}

.modern-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  font-size: 1.2em;
  transition: transform 0.3s;
}

.modern-btn:hover .btn-icon {
  transform: translateY(3px);
}

/* Update download options for modern look */
.download-option {
  background: #222222;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-option:hover {
  background: #333333;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.download-option a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  width: 80%;
}

.download-option a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Update modal close button */
.close-btn {
  display: block;
  margin: 1.5rem auto 0;
}

/* Ensure existing button styles don't conflict with our new modern buttons */
.download-btn.modern-btn {
  margin: 0 auto;
}
