:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-color: #2d3436;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', sans-serif;
}

body {
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-color);
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 500px;
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

header p {
  font-size: 0.95rem;
  color: #636e72;
  margin-bottom: 2rem;
}

.result-card {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  padding: 2rem;
  border-radius: 18px;
  margin-bottom: 2rem;
  border: 2px solid #ffeded;
  transition: all 0.3s ease;
}

.result-card.hidden {
  display: none;
}

.category {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

#menu-name {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.emoji {
  font-size: 4rem;
}

.pick-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-bottom: 2rem;
}

.pick-btn:hover {
  background-color: #fa5252;
  transform: translateY(-2px);
}

.pick-btn:active {
  transform: translateY(0);
}

.history {
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.history h3 {
  font-size: 0.9rem;
  color: #b2bec3;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#history-list {
  list-style: none;
}

#history-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f9f9f9;
  display: flex;
  justify-content: space-between;
}

.content-guide {
  text-align: left;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background-color: #fffaf0;
  border-radius: 14px;
  border-left: 4px solid #fbd38d;
}

.content-guide h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.content-guide p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1rem;
}

.content-guide ul {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: #4a5568;
}

.content-guide li {
  margin-bottom: 0.5rem;
}

.contact-section {
  margin-top: 2rem;
  border-top: 2px dashed #eee;
  padding-top: 2rem;
  text-align: left;
}

.contact-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  font-size: 0.9rem;
}

.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #a0aec0;
}

.footer-nav a {
  color: #718096;
  text-decoration: none;
  margin: 0 5px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 10px;
}

/* Legal Pages Styling */
.legal-page {
  text-align: left;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--primary-color);
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
}

.ad-placeholder {
  min-height: 100px;
  background-color: #f1f3f4;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 0.8rem;
}
