* {
  padding: 0;
  margin: 0;
}

canvas {
  background: #69696d;
  display: block;
  margin: 0 auto;
  margin-top: 15px;
  border: 3px solid white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

#myP {
  padding-top: 35px;
  padding-left: 10px;
  text-align: center;
  font-family: fantasy;
  font-size: 30px;
  font-style: italic;
  font-weight: bold;
}

#myP button {
  background: #09c;
  border-radius: 8px;
  padding: 20px 80px;
  color: white;
  float: left;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#myP button:hover {
  background: #07a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#myP button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#newGame {
  padding-top: 5px;
  padding-left: 10px;
  text-align: center;
  font-family: fantasy;
  font-size: 30px;
  font-style: italic;
  font-weight: bold;
}

#newGame button {
  background: #16bc5f;
  border-radius: 8px;
  padding: 20px 80px;
  color: white;
  float: right;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#newGame button:hover {
  background: #14a84f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#newGame button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

html {
  height: 100%;
  background-color: black;
  background-size: cover;
}

#myTitle {
  text-align: center;
  padding-top: 17.5px;
  color: orange;
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='30' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%23222' stroke-width='10' %3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
  font-family: fantasy;
  font-size: 50px;
  background-size: cover;
}

#score {
  text-align: center;
  padding-top: 24.5px;
  padding-left: 15px;
  color: white;
  font-family: fantasy;
  font-size: 30px;
  transition: color 0.3s ease;
}

#score span {
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

#score span.score-updated {
  transform: scale(1.3);
  color: #32CD32;
}

#stats {
  text-align: center;
  padding-top: 10px;
  padding-left: 15px;
  color: white;
  font-family: fantasy;
  font-size: 20px;
}

#stats span {
  font-weight: bold;
  color: #87CEEB;
}

#powerBarContainer {
  text-align: center;
  padding-top: 15px;
  padding-bottom: 10px;
  width: 400px;
  margin: 0 auto;
}

#powerBarLabel {
  color: white;
  font-family: fantasy;
  font-size: 18px;
  margin-bottom: 5px;
  display: inline-block;
}

#powerBarBg {
  width: 100%;
  height: 25px;
  background-color: #333;
  border: 2px solid #555;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

#powerBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff00, #ffff00, #ff6600, #ff0000);
  transition: width 0.1s linear;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

#winMsg {
  color: #FFD700;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Start Menu Styles */
#startMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#menuContent {
  text-align: center;
  color: white;
  font-family: fantasy;
}

#menuTitle {
  font-size: 60px;
  color: orange;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#menuContent h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #FFD700;
}

#levelButtons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.levelBtn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid #FFD700;
  border-radius: 15px;
  padding: 30px 50px;
  color: white;
  font-family: fantasy;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.levelBtn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  border-color: #FFA500;
}

.levelBtn:active {
  transform: translateY(-2px) scale(1.02);
}

.levelDesc {
  display: block;
  font-size: 18px;
  margin-top: 10px;
  color: #FFD700;
  font-style: italic;
}

#levelIndicator {
  text-align: center;
  padding-top: 10px;
  padding-left: 15px;
  color: white;
  font-family: fantasy;
  font-size: 24px;
  font-weight: bold;
}

#levelIndicator span {
  color: #FFD700;
}
