/* Global Layout */
body {
  font-family: 'Comic Neue', cursive, Arial, sans-serif;
  background: linear-gradient(to right, #fff7e6, #ffe29a);
  margin: 0;
  padding: 0;
  text-align: center;
 background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');

  background-size: 100px;
  background-attachment: fixed;
}

/* Titles */
h1, h2 {
  color: #ff6f00;
  font-weight: bold;
  text-shadow: 1px 1px 0 #fff3e0;
}

/* Button Styling */
button {
  padding: 12px 24px;
  margin: 10px;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  cursor: pointer;
  background-color: #ffe0b2;
  box-shadow: 2px 2px 4px #d7ccc8;
  transition: 0.3s;
}

button:hover {
  background-color: #ffd54f;
  transform: scale(1.05);
}

button.active {
  background-color: #ff6f00;
  color: white;
}

button:disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* Completed Levels */
.completed {
  background-color: #4caf50 !important;
  color: white !important;
}

/* Screen Containers */
.level-menu, .quiz-screen, .result-screen, .celebration-screen {
  padding: 40px 20px;
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff8e1;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 30px;
}

/* Answer Buttons */
.options button {
  display: block;
  margin: 12px auto;
  width: 80%;
  font-weight: bold;
}

.optionBtn {
  border-radius: 10px;
  background-color: #fce4ec;
}

.optionBtn:hover:enabled {
  background-color: #f8bbd0;
}

#nextBtn {
  background-color: #ffecb3;
}

#nextBtn:disabled {
  opacity: 0.6;
}

/* Celebration Fireworks */
#fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: transparent;
}

/* Cute Emoji Icons (Optional Decoration) */
h1::before {
  content: '🌟 ';
}

h1::after {
  content: ' 🌟';
}

.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-block;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.back-button img {
  width: 40px;
  height: 40px;
}

.back-button:hover {
  transform: scale(1.1);
}
a button {
  text-decoration: none;
  color: #333;
}

a button:hover {
  background-color: #b39ddb;
  transform: scale(1.05);
}

.fun-facts-card {
  padding: 40px 20px;
  max-width: 700px;
  margin: 20px auto;
  background-color: #fff3e0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.fun-facts-card h2 {
  color: #ff6f00;
  margin-bottom: 10px;
}

.fun-facts-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.fun-fact-btn {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 15px;
  background-color: #ce93d8;
  color: white;
  box-shadow: 2px 2px 4px #b39ddb;
  transition: 0.3s;
}

.fun-fact-btn:hover {
  background-color: #ba68c8;
  transform: scale(1.05);
}
