/* Reset */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #7fff4d;
  color: #eee;
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}




.game-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #cfa64f;
  border: 3px solid #3b250d;
  border-radius: 12px;
  box-shadow:
    inset 0 2px 0 #f2d27a,
    inset 0 -2px 0 #8a6728,
    0 4px 0 #3b250d;
  padding: 1rem;

  transition: transform 0.2s ease;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}


.game-container:hover {
  transform: translateY(-3px);
}

.image-container {
  width: 100%;
  aspect-ratio: 16 / 6;
  height: auto;
  border: 4px solid #3b250d;
  box-shadow:
    inset 0 4px 0 #f2d27a,
    inset 0 -4px 0 #8a6728;
  border-radius: 0;

  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: top center;
  image-rendering: pixelated;
}


.game-text {
  text-align: center;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-family: "Pixelify Sans", sans-serif;
  color: #2a1605;
}

.game-text h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.game-text p {
  line-height: 1.5;
}

.game-text a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #e6c36a;
  border: 2px solid #3b250d;
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 #8a6728;
  text-decoration: none;
  color: #2a1605;
  font-weight: 600;
  transition: transform 0.1s ease;
}

.game-text a:hover {
  transform: translateY(-2px);
}



.mailto-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #61dafb;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mailto-button:hover {
  background-color: #21a1f1;
  transform: translateY(-2px);
}



.home-section {
  padding: 3rem 1rem;
  text-align: center;

  background-image: url("/images/banner.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: top center;

  color: #eee;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  animation: slideBg 60s linear infinite;
}

.home-section h1 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #000000;
  margin-bottom: 1rem;
}

@keyframes slideBg {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1000px 0; 
  }
}




.navbar {
  padding: 1rem;
  background: #4da1ff;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem 1.5rem;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #cfa64f;
  border: 3px solid #3b250d;
  border-radius: 10px;

  box-shadow:
    inset 0 2px 0 #f2d27a,
    inset 0 -2px 0 #8a6728;
}

.navbar-brand {
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #2a1605;
  text-decoration: none;
  text-shadow: 1px 1px 0 #f8e8b0;
}

.navbar-links a {
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #2a1605;
  text-decoration: none;
  margin-left: 1rem;
  padding: 0.3rem 0.6rem;

  border: 2px solid transparent;
}

.navbar-links a:hover {
  background: #e6c36a;
  border: 2px solid #3b250d;
  box-shadow: inset 0 -2px 0 #8a6728;
}



.horizontal-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


.media-section {
  text-align: center;
  font-family: "Press Start 2P", monospace;
  color: #2a1605;
}

.media-section h2 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #000000;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.screenshots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.screenshot {
  width: clamp(150px, 50vw, 300px);
  aspect-ratio: 3 / 4;
  height: auto;
  background-size: cover;
  background-position: center;
  border: 4px solid #3b250d;
  box-shadow: inset 0 4px 0 #f2d27a,
              inset 0 -4px 0 #8a6728,
              0 8px 0 #3b250d;
}

.trailers {
  display: flex;
  justify-content: center;
  width: 100%;
}

.trailers iframe {
  flex: 1 1 100%;
  width: clamp(100px, 60vw, 300px);
  aspect-ratio: 3 / 4;
  border: 4px solid #3b250d;
  border-radius: 6px;
}
.icon {
  width: clamp(20px, 1.5vw, 45px);
  vertical-align: middle;
}



.dropdown {
  position: relative;
}

.dropbtn {
  background: #e6c36a;
  color: #2a1605;
  padding: 0.5rem 1rem;
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: bold;
  border: 2px solid #3b250d;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 #8a6728;
  transition: background 0.2s ease;
}

.dropbtn:hover {
  background: #ecd492;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #cfa64f;
  min-width: 180px;
  border: 2px solid #3b250d;
  box-shadow:
    inset 0 2px 0 #f2d27a,
    inset 0 -2px 0 #8a6728;
  z-index: 1000;
  border-radius: 6px;

  left: 0;
  right: auto;
  overflow: hidden;
  white-space: nowrap;
}

.dropdown.right-align .dropdown-content {
  left: auto;
  right: 0;
}


.dropdown-content a {
  color: #2a1605;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.8rem);
  display: block;
  font-family: "Pixelify Sans", sans-serif;
}

.dropdown-content a:hover {
  background: #ecd492;
}

.dropdown:hover .dropdown-content {
  display: block;
}


@media (max-width: 800px) {
  .game-row,
  .game-row.reverse {
    flex-direction: column;
  }

  .game-image,
  .game-content {
    flex: 1 1 100%;
  }

  header h1 {
    font-size: 2rem;
  }
}

.footer {
  padding: 1.5rem 1rem;
  background: #54a833;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.5rem;

  display: grid;
  grid-template-columns: 1fr auto 2fr;
  align-items: start;
  gap: 1rem;

  background: #cfa64f;
  border: 3px solid #3b250d;
  border-radius: 10px;

  box-shadow:
    inset 0 2px 0 #f2d27a,
    inset 0 -2px 0 #8a6728;
  
  grid-template-rows: auto auto;
}

.footer-container .footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 3px solid #3b250d;
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: #2a1605;
  text-shadow: 1px 1px 0 #f8e8b0;
}


.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: "Pixelify Sans", sans-serif;
  color: #2a1605;
}

.footer-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-shadow: 1px 1px 0 #f8e8b0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #2a1605;
  text-decoration: none;

  background: #e6c36a;
  padding: 0.4rem 0.8rem;
  border: 2px solid #3b250d;
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 #8a6728;
}

.footer-link:hover {
  background: #ecd492;
}

.pixel-divider {
  width: 4px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    #3b250d,
    #3b250d 6px,
    #8a6728 6px,
    #8a6728 12px
  );
}

/* Mobile layout */
@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pixel-divider {
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
      to right,
      #3b250d,
      #3b250d 6px,
      #8a6728 6px,
      #8a6728 12px
    );
  }
}
