/* Base styles */
body {
  margin: 0;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: #fff0d6;
  color: #333;
  text-align: center;
  transition: background-color 0.5s;
}

h1 {
  font-size: 2.5rem;
  color: #ff6f61;
  margin-top: 30px;
}

/* Navigation styling */
#tabs-top, #tabs-bottom {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  padding: 10px 0;
  border-radius: 20px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#tabs-top a, #tabs-bottom a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

#tabs-top a:hover, #tabs-bottom a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Word game area */
.word-box {
  font-size: 2rem;
  padding: 15px 30px;
  border: 3px dashed #a29bfe;
  display: inline-block;
  margin: 20px auto;
  border-radius: 15px;
  background: #f1f8ff;
}

input#letterInput {
  font-size: 1.5rem;
  padding: 10px;
  width: 60px;
  text-align: center;
  border: 2px solid #fd79a8;
  border-radius: 12px;
  margin: 10px;
}

/* Buttons */
button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #55efc4, #81ecec);
  color: #2d3436;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

button:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
}

/* Volume and theme section */
.volume-slider {
  width: 150px;
  margin: 10px;
}

.color-toggle {
  margin: 20px;
  font-size: 1rem;
}

select {
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}

/* Result display */
#result {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #0984e3;
}

/* Confetti Canvas */
canvas#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
}
