* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, #87ceeb 0%, #b8e6b8 40%, #90c978 100%);
  color: #2b2b2b;
  min-height: 100vh;
}

.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}

.cow {
  font-size: 5rem;
  animation: bounce 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 4rem;
  margin: 10px 0 0;
  letter-spacing: 4px;
  color: #4a3728;
  text-shadow: 2px 2px 0 #fff;
}

.subtitle {
  font-size: 1.2rem;
  margin: 8px 0 24px;
}

.cloud {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.8;
  animation: drift 20s linear infinite;
}

.cloud1 { top: 20px; left: -10%; }
.cloud2 { top: 60px; left: -20%; animation-delay: -8s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(120vw); }
}

#moo-btn, #random-btn {
  font-size: 1.1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: #4a3728;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

#moo-btn:hover, #random-btn:hover {
  background: #6b5340;
  transform: scale(1.05);
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
  margin-top: 0;
  color: #4a3728;
}

.facts ul {
  padding-left: 20px;
  line-height: 1.8;
}

.hint {
  font-size: 0.85rem;
  color: #777;
  margin-top: 16px;
  margin-bottom: 0;
}

.random-fact-box {
  text-align: center;
}

#random-fact {
  font-size: 1.15rem;
  min-height: 3em;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #4a3728;
  font-size: 0.9rem;
}
