.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}
.photo-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* home.scss */
/* Greeting Card */
.greeting-card,
.game-card {
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* stronger shadow to pop */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* smooth hover animation */
}

.greeting-card:hover,
.game-card:hover {
  transform: translateY(-4px); /* slight lift on hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); /* stronger shadow on hover */
}

/* Headings inside cards */
.greeting-card h1,
.game-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Paragraphs inside cards */
.greeting-card p,
.game-card p {
  margin-bottom: 1rem;
  color: #555;
}

/* Inputs inside cards */
.greeting-card input[type=text],
.game-card input[type=text],
.game-card input[type=number] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Buttons inside cards */
.greeting-card button,
.game-card button {
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: #4cafef;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.greeting-card button:hover,
.game-card button:hover {
  background-color: #3a95d9;
}

/* Feedback message styling */
.game-card .feedback {
  font-weight: bold;
  margin-top: 1rem;
  color: #d9534f; /* red for incorrect guesses */
}

.game-card .feedback:contains("Correct") {
  color: #28a745; /* green if correct */
}

.contact-card {
  max-width: 500px; /* Keep the card from being too wide */
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.contact-card h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
}
.contact-card form {
  display: flex;
  flex-direction: column;
}
.contact-card form input[type=text],
.contact-card form input[type=email] {
  width: 100%; /* Fill the card width */
  max-width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box; /* Prevent overflow */
}
.contact-card form button {
  width: fit-content; /* Button wraps its text */
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background-color: #4cafef;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-card form button:hover {
  background-color: #3a95d9;
}
.contact-card p {
  margin-top: 1rem;
  font-weight: bold;
  color: #333;
}

/* gallery.scss */
.gallery-card {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.gallery-card h1 {
  margin-bottom: 1rem;
}
.gallery-card .gallery-folders {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery-card .gallery-folders li {
  background: #4cafef;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-card .gallery-folders li a {
  color: white;
  text-decoration: none;
}
.gallery-card .gallery-folders li:hover {
  background: #3a95d9;
}

/* --------------------
   Base layout
-------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

/* --------------------
   App container
-------------------- */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* --------------------
   Navigation bar
-------------------- */
.main-nav {
  margin-bottom: 1rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  background-color: #333;
  border-radius: 8px;
  overflow-x: auto; /* scroll on mobile */
}

.main-nav ul li {
  display: inline-block;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
  transition: background 0.2s ease;
}

.main-nav a:hover {
  background-color: #555;
}

/* --------------------
   Page content
-------------------- */
.page-content {
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --------------------
   FAQ page
-------------------- */
.faq-page {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #f2f2f2;
  border: none;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  color: #222;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background-color: #e0e0e0;
}

.faq-answer {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-radius: 6px;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------
   Mobile adjustments
-------------------- */
@media (max-width: 768px) {
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.45rem 0.8rem;
  }
  .page-content {
    padding: 1rem;
  }
  .faq-question {
    font-size: 1.15rem;
    padding: 0.85rem 1rem;
  }
  .faq-answer {
    font-size: 0.95rem;
  }
}
