/* =========================================================
   RESET
========================================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* =========================================================
   MINIGAME PAGE STYLE - TAB LAYOUT
   Matches The Nook homepage theme
========================================================= */

body {
  font-family: 'Playfair Display', serif;
  background-color: #fcefe7;
  margin: 0;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header reused from main site */
.main-header {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background-color: rgb(31, 31, 31);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid #ffffff;
}
.clicklogo{
  font-size: 2rem;
  position: relative;
  left: -2.4em;
}

.nav-links{
  position: relative;
  left: 6em;
}

.main-header a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
}
.main-header a:hover{
    color: #d37a33;
    text-decoration: underline;
}

.main-header a.active {
  color: #d37a33;
  text-decoration: underline;
}

/* =========================================================
   MINIGAME SECTION
========================================================= */
.minigame-section {
  text-align: center;
  padding: 4rem 10%;
  flex: 1;
}

.minigame-section h1 {
  font-size: 2.5rem;
  color: #d37a33;
  margin-bottom: 2rem;
}

/* ===================== TABS ===================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background-color: transparent;
  border: 2px solid #d37a33;
  color: #d37a33;
  padding: 10px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #d37a33;
  color: #fff;
  box-shadow:  -10px 0 10px rgb(255, 110, 110), 10px 0 20px rgb(128, 128, 238);
}

.tab-btn.active {
  background-color: #d37a33;
  color: #fff;
}

/* ===================== GAME GRID ===================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns fixed */
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 650px) {
  .game-grid {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}

/* Game Cards */
.game-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: -10px 0 20px rgb(255, 110, 110), 10px 0 20px rgb(128, 128, 238);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card h2 {
  margin: 1rem 0 0.5rem 0;
  color: #d37a33;
}

.game-card p {
  padding: 0 1rem 1.5rem 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* ===================== FOOTER ===================== */
 footer {
      background-color: #1a1a1a;
      padding: 25px 40px;
      text-align: center;
      border-top: 1px solid #333;
    }

    footer p {
      color: #999;
      font-size: 13px;
      margin: 0;
    }

.dice-icon {
  /* Keep orange accent color for dice icon */
  color: #ffffff;
  font-size: 30px;
  /* Remove animation and add static glitch effect with blue and red shadows */
  position: relative;
  display: inline-block;
  text-shadow: 2px 0 0 #ff0000, -2px 0 0 #0000ff;
}