/* GLOBAL RESET AND PAGE LAYOUT */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

/* RED HELP PLEA */
.help-plea {
  font-size: 4em;
  font-weight: 900;
  color: #d32f2f;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  font-family: 'Comic Sans MS', cursive, sans-serif;
  transform: perspective(500px) rotateX(15deg);
  letter-spacing: 2px;
}

/* CENTER CONTENT CONTAINER */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
}

/* Dynamic state background that gets updated by JavaScript */
.container {
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--state-shape, none);
  background-size: 300px 300px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
  display: var(--state-display, none);
}

/* POSTER BOX STYLING */
.poster-box {
  margin-top: 20px;
  padding: 24px;
  border: 2px solid #d32f2f;
  text-align: left;
  max-width: 600px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.poster-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #d32f2f;
}

.poster-header h3 {
  color: #d32f2f;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

.case-number {
  color: #666;
  font-size: 0.9em;
  margin: 5px 0 0 0;
}

.photo-section {
  text-align: center;
  margin-bottom: 20px;
}

.photo-section img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ddd;
  margin: 0 10px;
}

.child-info h2 {
  color: #d32f2f;
  font-size: 1.8em;
  margin: 0 0 15px 0;
  text-align: center;
}

.action-buttons button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.label {
  font-weight: bold;
  color: #333;
  font-size: 0.9em;
  margin-bottom: 2px;
}

.detail-item span:last-child {
  color: #666;
}

.description {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.95em;
}

.contact-info {
  background-color: #e3f2fd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.contact-info strong {
  color: #1976d2;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.action-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#toggle-photo {
  background-color: #4caf50;
  color: white;
}

#toggle-photo:hover {
  background-color: #45a049;
}

#next-poster {
  background-color: #2196f3;
  color: white;
}

#next-poster:hover {
  background-color: #1976d2;
}

/* FOOTER STYLING */
.contact-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
