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

body {
  font-family: 'Comic Neue', cursive;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  color: #718096;
  font-weight: 300;
}

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

.intro {
  margin-bottom: 3rem;
}

.child-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.child-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.child-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.child-card.active {
  background-color: #f0f9ff;
  border-color: #4CAF50;
}

.child-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.child-card h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.child-card p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.hobby {
  font-style: italic;
  color: #718096 !important;
}

.gallery-section {
  margin-top: 3rem;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-header h2 {
  color: white;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.show-all-btn {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.show-all-btn:hover {
  background-color: #45a049;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.drawing-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: block;
}

.drawing-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.drawing-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.drawing-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 10px;
  transition: transform 0.3s ease;
}

.drawing-card:hover img {
  transform: scale(1.05);
}

.drawing-info {
  padding: 1.5rem;
}

.drawing-info h4 {
  font-size: 1.3rem;
  color: #2d3748;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.artist-tag {
  display: inline-block;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drawing-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .child-cards {
    grid-template-columns: 1fr;
  }
  
  .gallery-header {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .child-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 0.5rem;
  }
  
  header {
    padding: 1.5rem 1rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.env-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
}

body[data-env="development"] .env-indicator {
    display: block;
    background: #ff6b6b;
}

body[data-env="production"] .env-indicator {
    display: none;
}