* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(rgba(255, 140, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url("images/background.png") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.game-wrapper {
  text-align: center; 
}

.game-title {
  font-size: 40px;
  color: #fff8e7;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6), 0 0 15px #ffb347;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.game-container {
  width: 1000px;
  border: 4px solid #d2a679;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #f5e6cc;
  display: none;
}

canvas {
  display: block;
  width: 100%;
  height: 560px;
  background: #f5e6cc;
  background: url("images/gameBackground.webp") center/cover no-repeat;
}

button {
  padding: 12px 30px;
  background-color: #8b4513;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #a0522d;
}

.start-screen, .game-over {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.game-over h2{
  font-size: 42px;
  color: red;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#final-score {
  font-size: 22px;
  color: #fff8dc;
  background: rgba(110, 146, 43, 0.959);
  padding: 5px 20px;
  border-radius: 40px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

#high-score {
  font-size: 22px;
  color: #fff8dc;
  background: rgba(110, 146, 43, 0.959);
  padding: 5px 20px;
  border-radius: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.instructions {
  color: #5a2e0f;
  font-size: 18px;
  background: rgba(255, 245, 230, 0.8);
  padding: 15px 20px;
  border-radius: 10px;
  border: 2px solid #d2a679;
  max-width: 400px;
  line-height: 1.5;
}

.mute-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #5a2e0f;
  font-weight: 600;
  border: 2px solid #d2a679;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.mute-btn i {
  font-size: 20px;
  color: #a0522d;
  transition: color 0.3s ease;
}

.mute-btn:hover {
  background: #fff3e0;
  transform: scale(1.05);
}

.mute-btn:hover i {
  color: #8b4513;
}

.buttons {
  display: flex;
  gap: 25px;
}