body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #e2bf72;
  color: #222;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center; /* Centers content horizontally */
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.ttturtle-app {
  max-width: 600px;
  margin: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px #0002;
  padding: 2rem 1.5rem;
  border: 2px solid #E53935;
  transition: border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  background-color: rgba(54, 54, 50, 0.596); /* Dark grey/black background with some transparency */
  padding: 0.5rem 1rem; /* Adjust padding to ensure the background covers the text */
  border-radius: 0.3rem; /* Optional: rounds the corners of the background */
  transition: color 0.4s ease;
}

.limerick-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.limerick-list.fade {
  opacity: 0;
  transform: translateY(20px);
}

.limerick-item {
  padding: 1rem;
  border-left: 5px solid #E53935;
  border-radius: 0.5rem;
  background: #F9F9F9;
  transition: background-color 0.4s ease, border-left-color 0.4s ease;
}

.refresh-button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #86e0a8;
  color: #525252;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

@keyframes fallSpin {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.turtle {
  position: fixed;
  top: -2rem;
  font-size: 2rem;
  z-index: 1000;
  pointer-events: none;
  animation: fallSpin linear forwards;
}
footer {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}
