:root {
  --ngk-teal: #0a5d6f;
  --ngk-green: #7fc242;
  --ngk-yellow: #ffd700;
  --ngk-yellow-dark: #ffc107;
  --primary: #0a5d6f;
  --primary-light: #0d7a91;
  --primary-dark: #084a58;
  --accent: #ffd700;
  --accent-dark: #ffc107;
  --nav-green: #7fc242;
  --nav-green-dark: #6ba835;
  --success: #00a86b;
  --bg-color: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --border-color: #e0e0e0;
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html, body { 
  height: 100%; 
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 0;
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: white;
}

.header-section {
  background: var(--ngk-teal);
  padding: 1rem 2rem;
  color: white;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-subtitle {
  color: white;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
  text-align: right;
  line-height: 1.5;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .header-subtitle {
    text-align: left;
    font-size: 0.85rem;
  }
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 { 
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.kid-button {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: none;
  background: var(--ngk-yellow);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kid-button:hover {
  background: var(--ngk-yellow-dark);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.kid-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.kid-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

.image-container {
  border-radius: 0;
  overflow: hidden;
  border: 2px solid var(--ngk-yellow);
  background: #fafbfc;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.1s ease;
}

.image-container img.roulette-spinning {
  opacity: 0.7;
  animation: roulettePulse 0.2s ease infinite;
}

@keyframes roulettePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.status-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.prompt-box {
  background: #f0f7fa;
  padding: 1.25rem 1.75rem;
  border-radius: 0;
  margin: 1.5rem 0;
  border-left: 4px solid var(--ngk-green);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ngk-green);
}

.tips-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 0;
  border: 2px solid var(--ngk-yellow);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.tips-section h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--ngk-yellow);
  padding-bottom: 0.75rem;
}

.tips-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-section li {
  font-size: 1rem;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  background: white;
  border-radius: 0;
  border-left: 4px solid var(--ngk-yellow);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ngk-yellow);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  color: var(--text-primary);
  line-height: 1.6;
}

.button-container {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.placeholder-text {
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
  font-weight: 400;
}

/* Loading overlay for new image generation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.loading-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

.loading-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ngk-teal);
  animation: pulse 2s ease infinite;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.loading-spinner {
  width: 80px;
  height: 80px;
  margin: 2rem auto;
  position: relative;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 6px solid transparent;
  border-top-color: var(--ngk-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: var(--ngk-green);
  animation-delay: 0.2s;
  animation-duration: 1.2s;
}

.spinner-ring:nth-child(3) {
  border-top-color: var(--ngk-yellow);
  animation-delay: 0.4s;
  animation-duration: 1.4s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-message {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2rem;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.loading-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  animation: fadeInOut 3s ease infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.loading-emoji {
  font-size: 3rem;
  display: inline-block;
  animation: rotate 3s linear infinite, scale 2s ease infinite;
  margin: 0 0.5rem;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}


