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

body {
  font-family: 'Lexend', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-popup.show {
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  background: #FFD700;
  padding: 40px;
  border-radius: 0;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  background-image: 
      repeating-linear-gradient(
          0deg,
          transparent,
          transparent 20px,
          rgba(255,255,255,0.1) 20px,
          rgba(255,255,255,0.1) 21px
      ),
      repeating-linear-gradient(
          90deg,
          transparent,
          transparent 20px,
          rgba(255,255,255,0.1) 20px,
          rgba(255,255,255,0.1) 21px
      );
}

.cookie-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000;
}

.cookie-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cookie-icon {
  width: 40px;
  height: 30px;
  background: #000;
  border: 2px solid #fff;
  position: relative;
}

.cookie-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 15px;
  background: #fff;
}

.cookie-content p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #000;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cookie-btn {
  padding: 12px 30px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cookie-btn:hover {
  background: #000;
  color: #fff;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero-section {
  background: #FFD700;
  min-height: 100vh;
  position: relative;
  background-image: url(/wp-content/themes/ulvikado/assets/images/bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Header */
.header {
  position: relative;
  z-index: 100;
  padding: 20px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  gap: 3rem;
  z-index: 1001;
}

.nav-desktop a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-desktop a:hover {
  color: rgba(0,0,0,0.7);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #FFD700;
  padding: 80px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: right 0.3s ease;
  z-index: 999;
  background-image: 
      repeating-linear-gradient(
          0deg,
          transparent,
          transparent 20px,
          rgba(255,255,255,0.1) 20px,
          rgba(255,255,255,0.1) 21px
      ),
      repeating-linear-gradient(
          90deg,
          transparent,
          transparent 20px,
          rgba(255,255,255,0.1) 20px,
          rgba(255,255,255,0.1) 21px
      );
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 1.8rem;
  font-family: 'Pixelify Sans', monospace;
  padding: 15px 0;
  transition: color 0.3s ease;
  text-align: center;
}

.nav-mobile a:hover {
  color: rgba(0,0,0,0.7);
}

.play-now-btn {
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  text-align: center;
  border-radius: 0;
}

.play-now-btn:hover {
  background: #000;
  color: #fff;
}

/* Hero Content */
.hero-content {
  text-align: center;
  padding: 60px 20px 100px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.1;
}

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-icon {
  width: 50px;
  height: 40px;
  background: #000;
  border: 3px solid #fff;
  position: relative;
}

.hero-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 20px;
  background: #fff;
}

.hero-content p {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  text-decoration: none;
  border-top-right-radius: 40px;

  font-family: "Pixelify Sans";
}

.cta-button:hover {
  background: #000;
  color: #fff;
}

/* About Section */
.about-section {
  background: #fff;
  padding: 80px 0;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #000;
  text-align: left;
  font-weight: 600;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.method-item {
  text-align: left;
}





.method-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #000;
  font-weight: 600;
}

.method-item p {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Inside Ulvikado Section */
.inside-section {
  background: #f8f8f8;
  padding: 80px 0;
}

.inside-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.inside-image {
  position: relative;
}

.inside-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.inside-text {
  padding-left: 40px;
}

.inside-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #000;
  font-weight: 600;
  text-align: left;
}

.inside-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
  text-align: left;
}

.learn-more-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-decoration: none;
  border-top-right-radius: 40px;
}

.learn-more-btn:hover {
  background: #333;
}

/* Games Section */
.games-section {
  padding: 80px 0;
  background: #fff;
}

.games-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  color: #000;
  font-weight: 600;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.games-grid > *:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.games-grid > *:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
}

.game-link {
  text-decoration: none;
  display: block;
}

.game-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.game-item:hover {
  transform: translateY(-5px);
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact and Footer Section */
.contact-footer-section {
  background: #000;
  position: relative;
  background-image: url(/wp-content/themes/ulvikado/assets/images/bgf.png);
  background-size: cover;
}

/* Contact */
.contact {
  background: #FFD700;
  padding: 60px 0 40px;
  position: relative;
  background: transparent !important;


  background-repeat: no-repeat;
}



.contact-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.contact-icon img {
  width: 80px;
  height: 80px;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000;
  font-weight: 600;
}

.contact-info p {
  color: #000;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-logo-section {
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-logo {
  font-size: 4rem;
  color: #000;
  font-weight: 700;
  margin: 0;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 30px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-link.twitter {
  background: #1DA1F2;
}

.social-link.facebook {
  background: #4267B2;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.legal-links {
  display: flex;
  gap: 30px;
}

.legal-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #FFD700;
}

/* Footer Bottom */
.footer-bottom-section {
  background: transparent !important;
  padding: 15px 0;

}

.footer-bottom-section p {
  color: #000;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .methods-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
  }
  
  .games-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .inside-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .inside-text {
      padding-left: 0;
  }
}

@media (max-width: 768px) {
  /* Hide desktop nav, show mobile button */
  .nav-desktop {
      display: none;
  }
  
  .mobile-menu-toggle {
      display: flex;
  }
  
  .logo span {
      font-size: 1.3rem;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .hero-content p {
      font-size: 1rem;
  }
  
  .hero-icons {
      gap: 10px;
  }
  
  .hero-icon {
      width: 40px;
      height: 30px;
  }
  
  .about-section h2,
  .games-section h2,
  .contact-info h2 {
      font-size: 2rem;
  }
  
  .methods-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .games-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }
  
  .contact-content {
      flex-direction: column;
      text-align: center;
      align-items: center;
  }
  
  .footer-content {
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }
  
  .legal-links {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }
  
  .cookie-buttons {
      flex-direction: column;
      gap: 15px;
  }
  
  .cookie-content {
      padding: 30px 20px;
  }
  
  .footer-logo {
      font-size: 3rem;
  }
  
  .inside-text h2 {
      text-align: center;
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
      min-height: auto;
  }
  
  .hero-content {
      padding: 40px 20px 60px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-icons {
      gap: 8px;
  }
  
  .hero-icon {
      width: 35px;
      height: 25px;
  }
  
  .about-section,
  .games-section,
  .inside-section {
      padding: 60px 0;
  }
  
  .games-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
  }
  
  .contact {
      padding: 40px 0 30px;
  }
  
  .footer-logo {
      font-size: 2.5rem;
  }
  
  .inside-text h2 {
      font-size: 1.8rem;
  }
  
  .nav-mobile {
      width: 250px;
      padding: 70px 25px 30px;
  }
  
  .nav-mobile a {
      font-size: 1.5rem;
      padding: 12px 0;
  }
  
  .logo span {
      font-size: 1.1rem;
  }
}


/* Play in Motion Section */
.play-in-motion-section {
  padding: 80px 0;
  background: #f8f8f8;
}

.play-in-motion-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
  font-weight: 600;
  font-family: 'Pixelify Sans', monospace;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 50px;
  text-align: left;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Top row: 4 games */
.motion-games-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Bottom section: 2 games + text */
.motion-bottom-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.motion-games-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 450px;
}

.motion-text-right {
  padding-left: 20px;
}

.motion-game-link {
  text-decoration: none;
  display: block;
}

.motion-game-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.motion-game-item:hover {
  transform: translateY(-5px);
}

.motion-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .motion-games-top {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .motion-bottom-section {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .motion-games-bottom {
      width: 100%;
      max-width: 450px;
      margin: 0 auto;
  }
  
  .motion-text-right {
      padding-left: 0;
  }
}

@media (max-width: 768px) {
  .play-in-motion-section h2 {
      font-size: 2rem;
  }
  
  .motion-games-top,
  .motion-games-bottom {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }
  
  .intro-text,
  .outro-text {
      font-size: 1rem;
      margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .play-in-motion-section {
      padding: 60px 0;
  }
  
  .motion-games-top,
  .motion-games-bottom {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
  }
  
  .intro-text,
  .outro-text {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 25px;
  }
  
  .motion-bottom-section {
      gap: 20px;
  }
}



/* Game Hero Section */
.game-hero-section {
  background: #FFD700;
  padding: 60px 0;
  position: relative;
  background-image: url(/wp-content/themes/ulvikado/assets/images/bg.png);
  background-size: cover;

  background-repeat: no-repeat;
}

/* Fallback 3D grid if image not available */
.game-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      repeating-linear-gradient(
          to bottom,
          transparent 0px,
          rgba(255,255,255,0.2) 1px,
          rgba(255,255,255,0.2) 2px,
          transparent 3px,
          transparent 40px
      ),
      repeating-linear-gradient(
          to right,
          transparent 0px,
          rgba(255,255,255,0.2) 1px,
          rgba(255,255,255,0.2) 2px,
          transparent 3px,
          transparent 40px
      );
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  pointer-events: none;
}

.game-hero-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.game-image {
  width: 300px;
  height: 300px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.game-info {
  padding-left: 20px;
}

.game-info h1 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 3rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  text-shadow: -2px 3px 0 #FFF;
}
h1{
  text-shadow: -2px 3px 0 #FFF;
}
h2{
  text-shadow: -2px 3px 0 #FFF;
}

.game-info p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #000;
  margin-bottom: 30px;
  text-align: left;
}

.game-info .play-now-btn {
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  text-decoration: none;
  border-top-right-radius: 40px;
}

.game-info .play-now-btn:hover {
  background: #000;
  color: #fff;
}

/* How it Plays Section */
.how-it-plays-section {
  background: #fff;
  padding: 80px 0;
}

.how-it-plays-section h2 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 30px;
  text-align: left;
}

.how-it-plays-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  max-width: 900px;
}

/* Responsive */
@media (max-width: 1024px) {
  .game-hero-content {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
  }
  
  .game-image {
      margin: 0 auto;
  }
  
  .game-info {
      padding-left: 0;
  }
}

@media (max-width: 768px) {
  .game-hero-section {
      padding: 40px 0;
  }
  
  .game-image {
      width: 250px;
      height: 250px;
  }
  
  .game-info h1 {
      font-size: 2.5rem;
  }
  
  .game-info p {
      font-size: 1rem;
  }
  
  .how-it-plays-section {
      padding: 60px 0;
  }
  
  .how-it-plays-section h2 {
      font-size: 2rem;
  }
  
  .how-it-plays-section p {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .game-image {
      width: 200px;
      height: 200px;
  }
  
  .game-info h1 {
      font-size: 2rem;
  }
  
  .game-info p,
  .how-it-plays-section p {
      font-size: 0.95rem;
      line-height: 1.6;
  }
  
  .how-it-plays-section h2 {
      font-size: 1.8rem;
  }
}