* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background: #111;
}

.page {
  display: none;
  min-height: 100vh;
  padding: 20px;
}

.page.active {
  display: block;
}

/* --- HOME PAGE STYLES --- */
#home-page {
  background: linear-gradient(to bottom right, #f48c42, #f6b93b);
  text-align: center;
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  width: 100%;
}

/* Navigation Text Styling */
.home-btn,
.about-btn {
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
  display: inline-block;
}

.home-btn {
  color: #540b03;
}

.about-btn {
  color: #fff;
}

.home-btn:hover,
.about-btn:hover {
  opacity: 0.7;
}

/* --- TITLE & PROMPT --- */
.title-container {
  margin-top: 15px;
  margin-bottom: 65px;
}

.app-title {
  font-size: 84px;
  color: #416043;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.main-question {
  font-size: 21px;
  color: #333;
  text-align: center;
  margin: 20px auto;
  max-width: 400px;
  position: relative;
  
  opacity: 0;
  animation: fade-in 1s forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- BUTTON GRID --- */
.mood-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.mood-btn {
  background-color: rgba(220, 220, 220, 0.85);
  border: none;
  padding: 15px 35px;
  font-size: 16px;
  color: #333;
  min-width: 160px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, background 0.2s;
}

.mood-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background-color: rgba(200, 200, 200, 0.95);
}

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

.mood-btn.wide {
  min-width: 300px;
  background-color: rgba(220, 220, 220, 0.9);
  margin-top: 20px;
}

.mood-btn.wide:hover {
  transform: scale(1.05);
  background-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .app-title { font-size: 48px; }
  .mood-grid { gap: 20px; }
}

/* --- MOOD PAGE STYLES --- */
#mood-page {
  background: #e5e5e5;
  text-align: center;
}

.mood-heading {
  margin-top: 40px;
  color: #333;
}

.quote-box {
  margin: 40px auto;
  padding: 20px;
  max-width: 600px;
  background: #d9a5a5;
  border-radius: 8px;
  font-size: 18px;
  font-style: italic;
}

.explanation-box {
  margin: 20px auto;
  padding: 30px;
  max-width: 700px;
  background: #d99898;
  border-radius: 8px;
}

.action-buttons {
  margin-top: 40px;
}

.action-buttons button {
  margin: 0 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #333;
  color: white;
  transition: background 0.3s;
}

.action-buttons button:hover {
  background: #555;
}

/* --- DARK MODE --- */
body.dark-mode #home-page {
  background: linear-gradient(to bottom right, #4a2700, #2c1a00);
}

body.dark-mode #mood-page {
  background: #1a1a1a;
}

body.dark-mode .home-btn,
body.dark-mode .main-question,
body.dark-mode .about-btn {
  color: #ffffff;
}

body.dark-mode .app-title {
  color: #94ad96;
}


body.dark-mode .mood-heading {
  color: #ffffff;
}

body.dark-mode .mood-btn {
  background-color: rgba(60, 60, 60, 0.9);
  color: #fff;
}

body.dark-mode .quote-box {
  background: #5c3d3d;
  color: #fff;
}

body.dark-mode .explanation-box {
  background: #4a2e2e;
  color: #ddd;
}

/* Theme Button */
.theme-btn {
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-btn:hover {
  transform: scale(1.2);
}
