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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8c0 50%, #7fcdcd 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: #2c3e50;
  text-align: center;
  padding: 20px;
}

.container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

h1 {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.hebrew {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.answer {
  font-size: clamp(8rem, 30vw, 25rem);
  font-weight: bold;
  margin: 2rem 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.answer.yes {
  color: #2c3e50;
}

.answer.no {
  color: #e74c3c;
}

.answer.maybe {
  font-size: clamp(7rem, 27vw, 23rem);
  color: #f39c12;
}

.loading {
  color: #f39c12;
  animation: pulse 1.5s infinite;
}

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

.date-info {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin-bottom: 2rem;
  opacity: 0.8;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.why-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.why-toggle {
  background: none;
  border: none;
  color: #ecf0f1;
  font-size: 1.2rem;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.3s ease;
}

.why-toggle:hover {
  background: rgba(236, 240, 241, 0.15);
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
}

.arrow.flipped {
  transform: rotate(180deg);
}

.explanation {
  color: #ecf0f1;
  height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.explanation.expanded {
  height: 60px;
  padding: 10px;
}

.explanation p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.error {
  color: #e74c3c;
  font-size: 1.2rem;
  margin: 2rem 0;
}

/* Debug Mode Styles */
.debug-panel {
  background: rgba(44, 62, 80, 0.1);
  border: 2px solid rgba(44, 62, 80, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.debug-panel h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.debug-panel label {
  display: block;
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.debug-date-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(44, 62, 80, 0.3);
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  margin-bottom: 1rem;
}

.debug-date-input:focus {
  outline: none;
  border-color: #7fcdcd;
  box-shadow: 0 0 0 2px rgba(127, 205, 205, 0.2);
}

.debug-button {
  background: #7fcdcd;
  color: #2c3e50;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.debug-button:hover {
  background: #88d8c0;
  transform: translateY(-1px);
}
