/* These styles are generated from project.scss. */

/* Kid-friendly color palette - Cabbage theme */
:root {
  --primary-green: #9ed99c;
  --primary-green-dark: #6fb96d;
  --accent-green: #b8e6b7;
  --accent-lime: #d4f1d3;
  --primary-orange: #f59e0b;
  --primary-pink: #ec4899;
  --background-light: #fef3c7;
  --background-cream: #fef9e7;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --navbar-bg: #d4f1d3;
  --footer-bg: #e8f7e7;
  --accent-yellow: #fbbf24;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-cream);
  color: var(--text-dark);
  font-family: 'Afacad Flux', sans-serif;
  font-optical-sizing: auto;
}

.container {
  flex: 1 0 auto;
}

.navbar {
  background-color: var(--navbar-bg) !important;
  border-bottom: 3px solid var(--primary-green-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  color: var(--primary-green-dark) !important;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-green-dark) !important;
}

.footer {
  background-color: var(--footer-bg) !important;
  border-top: 3px solid var(--primary-green);
  margin-top: auto;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Game Tiles */
.game-tile {
  display: block;
  background-color: white;
  border: 3px solid black;
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 300px;
  cursor: pointer;
}

.game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.game-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.game-tile-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.game-tile-title {
  color: var(--text-dark);
  font-weight: bold;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.game-tile-description {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.game-tile-placeholder {
  background-color: #f5f5f5;
  border-color: #ccc;
  cursor: default;
}

.game-tile-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .game-tile {
    min-height: 250px;
  }

  .game-tile-image {
    width: 120px;
    height: 120px;
  }

  .game-tile-title {
    font-size: 1.5rem;
  }
}
