/* ---------------- Hexago Page CSS ---------------- */

/* Reduce gap between sections for Hexago */
.product-container {
  gap: 30px !important; /* Override the 50px gap from game-page.css */
}

/* Move right column (text) to the left for Hexago */
.product-info {
  transform: translateX(-60px) !important; /* Move text content to the left */
}

/* Reset transform earlier for Hexago due to wider images to prevent overlap */
@media (max-width: 1200px) {
  .product-info {
    transform: none !important; /* Reset transform before overlap occurs */
  }
}

/* Button color override for Hexago only */
.waitlist-btn {
  background-color: var(--primary-color);
  color: #fff;
  width: 250px;
  min-width: 250px;
}

.waitlist-btn:hover {
  background-color: var(--accent-color);
}

/* Buy button styling - match waitlist button exactly */
.buy-btn {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  margin-top: 1em;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s;
  width: 250px;
  min-width: 250px;
}

.buy-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.buy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#buttonContainer {
  margin-top: 0.4em;
  display: block;
}

#buttonContainer button {
  display: inline-block;
  width: 250px;
  min-width: 250px;
}

/* Blur background when modal is open */
body.modal-open main,
body.modal-open #header,
body.modal-open #footer {
  filter: blur(2px);
  will-change: filter;
  transform: translateZ(0); /* Force GPU acceleration */
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--secondary-color);
  color: var(--text-color); /* dynamic for dark mode */
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow-color);
  animation: fadeIn 0.25s ease-in-out;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--text-color);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.close-btn:hover { 
  color: var(--primary-color);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.waitlist-form input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.waitlist-form button {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.waitlist-form button:hover { 
  background-color: var(--accent-color); 
}

#thankYouMessage h3 { 
  margin-bottom: 0.5rem; 
  color: var(--primary-color);
}

#thankYouMessage p { 
  color: var(--text-color);
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .main-image { max-width: 100%; }
  
  .waitlist-form button {
    font-size: 1.1rem; /* Larger text on mobile */
    padding: 14px 16px; /* Slightly larger padding for better mobile UX */
  }
}
