/* ---------------------- BASE ---------------------- */
body {
  font-family: 'MyGameFont', sans-serif;
  background: #f5f5f5;
  text-align: center;
  margin: 0;
  padding: 20px;
  padding-bottom: 50px;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
  font-family: 'HeadlineFont', sans-serif;
}

/* ---------------------- LOGO ---------------------- */
.logo-container {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.presskits-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #0070f3;       /* subtle blue */
  text-decoration: underline;
  transition: color 0.3s;
}

.presskits-link:hover {
  color: #005bb5;
}

.logo {
  width: 360px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
}

@media (max-width: 600px) {
  .logo {
    width: 120px;
  }
}

/* ---------------------- FONTS ---------------------- */
@font-face {
  font-family: 'MyGameFont';
  src: url('fonts/EgyptianSlatePro-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'HeadlineFont';
  src: url('fonts/EgyptianSlatePro-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---------------------- APP GRID ---------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.app-icon {
  cursor: pointer;
  transition: transform 0.2s;
}

.app-icon:hover {
  transform: scale(1.05);
}

.app-icon img {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.app-icon p {
  margin-top: 8px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  font-family: 'MyGameFont', sans-serif;
}

@media (min-width: 800px) {
  .app-icon img {
    width: 120px;
    height: 120px;
  }
}

/* ---------------------- MODAL ---------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 12px;
  text-align: center;
  width: 95%;
  max-width: 400px;
  margin: auto;
  overflow-y: auto;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.modal.show .modal-content {
  transform: scale(1);
}

@media (min-width: 800px) {
  .modal-content {
    max-width: 700px;
  }
}

/* ---------------------- MODAL CLOSE BUTTON ---------------------- */
.modal-close {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(0, 0, 0, 0.95);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .modal-close {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
}

/* ---------------------- VIDEO ---------------------- */
.game-video {
  margin-bottom: 20px;
}

.game-video iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px 12px 0 0;
}

@media (min-width: 800px) {
  .game-video iframe {
    height: 300px;
  }
}

/* ---------------------- GAME ICON ---------------------- */
.game-icon {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  margin: 10px auto;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

@media (min-width: 800px) {
  .game-icon {
    width: 120px;
    height: 120px;
  }
}

/* ---------------------- SCREENSHOTS ---------------------- */
.screenshots {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: auto;
  position: relative;
  scrollbar-width: none;
}

.screenshots img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 800px) {
  .screenshots img {
    max-height: 400px;
  }
}

/* ---------------------- SCREENSHOT MODAL ---------------------- */
#screenshot-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#screenshot-modal.show {
  display: flex;
  opacity: 1;
}

#screenshot-full {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
  border-radius: 12px;
}

/* ---------------------- SCREENSHOT CLOSE BUTTON ---------------------- */
#screenshot-modal .close {
  font-size: 28px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: absolute;
}

/* Desktop: top-right */
@media (min-width: 768px) {
  #screenshot-modal .close {
    top: 10px;
    right: 10px;
  }
}

/* Mobile: middle-bottom */
@media (max-width: 767px) {
  #screenshot-modal .close {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
    font-size: 32px;
  }
}

/* ---------------------- BULLETS ---------------------- */
.screenshot-bullets {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.screenshot-bullets span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.screenshot-bullets span.active {
  background: #333;
}

/* ---------------------- GAME TAGS ---------------------- */
.game-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.game-tags span {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: default;
  background: linear-gradient(90deg, #081448, #1a2c80, #282157, #4a478a);
  background-size: 300% 100%;
  animation: waveGradient 8s ease-in-out infinite;
}

@keyframes waveGradient {
  0% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.game-tags span:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (min-width: 800px) {
  .game-tags span {
    font-size: 16px;
    padding: 8px 16px;
  }
}

/* ---------------------- DESCRIPTIONS ---------------------- */
#modal-description-short {
  font-family: 'HeadlineFont', sans-serif;
  font-size: 16px;
  color: #444;
  margin: 10px 0;
  line-height: 1.4;
}

#modal-description-full-text {
  font-family: 'HeadlineFont', sans-serif;
  font-size: 14px;
  color: #444;
  margin: 20px 15px;
  line-height: 1.2;
  text-align: left;
  margin-top: 20px;
}

#show-full-desc-btn {
  display: none;
  cursor: pointer;
  margin-top: 5px;
  background: #282157;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
}

#show-full-desc-btn:hover {
  background: #4a478a;
}

/* ---------------------- PRIVACY BUTTON ---------------------- */
.privacy-button {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;          
  background: #333;
  color: white;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
  z-index: 9999;
  display: block;
  cursor: pointer;
  transition: background 0.2s ease;
}

.privacy-button:hover {
  background: #555;
}

@media (max-width: 600px) {
  .privacy-button {
    width: auto;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    right: 10px;
    bottom: 10px;
    left: auto;
    display: inline-block;
  }
}

#store-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap; /* allows wrapping on very narrow screens */
}

#store-badges a img.store-badge {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* On small screens (less than 480px wide) */
@media (max-width: 480px) {
  #store-badges a img.store-badge {
    height: 30px; /* shrink proportionally */
  }
}

.modal-presskit-link-container {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 15px;
}

.modal-presskit-link {
  font-weight: bold;
  color: #0070f3;
  text-decoration: underline;
  font-size: 1rem;
}

.modal-presskit-link:hover {
  color: #005bb5;
}

.modal-presskit-button {
  display: inline-block;
  margin-top: 12px;
  padding: 0.6rem 1.2rem;
  background-color: #0070f3;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.modal-presskit-button:hover {
  background-color: #005bb5;
}