body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 16px;
  background: #111;
  color: #f5f5f5;
}

h1 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.input-area {
  margin-bottom: 16px;
}

#userInput {
  width: 100%;
  max-width: 420px;
  padding: 8px;
  box-sizing: border-box;
}

button {
  margin-top: 8px;
  padding: 8px 16px;
  cursor: pointer;
}

#cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.card {
  flex: 0 0 30%;
  text-align: center;
  font-size: 0.8rem;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.reversed {
  transform: rotate(180deg);
}

#result {
  margin-top: 20px;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

/* 横幅が広いときは少し余白を持たせる */
@media (min-width: 768px) {
  body {
    max-width: 800px;
    margin: 0 auto;
  }
}


/* CSS Document */

