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

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1b1e48, #000000);
  font-family: "Arial", sans-serif;
  color: rgb(5, 160, 238);
  overflow: hidden;
}

#gameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-left: 690px;
  /* Adjust this value as needed */

}

#gameCanvas {
  border: 6px solid rgb(36, 52, 64);
  box-shadow: 0 4px 10px rgba(201, 164, 2, 0.5);
  max-width: 120vw;
  max-height: 80vh;
  z-index: 1;
  background-color: transparent;
  backdrop-filter: blur(8px);
}

.gameProgress {
  display: flex;
  justify-content: space-evenly;
  /* Spacing between liveScore and liveLife */
  align-items: center;
  padding: 10px;
  color: #fff;
  font-size: 25px;
  text-align: center;
  width: 100%;
  margin-top: -40px;
}

/* #liveScore {
  font-size: 18px;
  color: white;
  margin-top: 10px;
  left: 80px;
} */
#liveLife {
  margin-top: 25px;
  font-size: 18px;
  color: white;
  margin-left: 150px;
}

#score {
  color: rgb(208, 179, 249);
  font-weight: 800;
}

#lives {
  color: red;
  font-weight: 800;
}

#warningMessage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: red;
  font-weight: bold;
  text-align: center;
  animation: blink 1s ease-in-out 1;
  /* Runs for 1 second, and only once */
  z-index: 1000;
  display: none;
}

/*--floating social media icon--*/
.floating-social {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.social-icon {
  background: #333;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 7px;
  font-size: 25px;
  transition: background 0.2s ease, transform 0.3s ease;
  text-decoration: none;
  position: relative;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0px rgba(255, 255, 255, 0);
  transition: box-shadow 0.4s ease-in-out;
  z-index: -1;
}

#linkedin:hover {
  background-color: #0A66C2;
}

#linkedin:hover:before {
  box-shadow: 0 0 15px 5px #0A66C2;
}

#twitter:hover {
  background-color: #000000;
}

#twitter:hover:before {
  box-shadow: 0 0 15px 5px rgba(128, 128, 128, 0.8);
}

#discord:hover {
  background-color: #7289da;
}

#discord:hover:before {
  box-shadow: 0 0 15px 5px #7289da;
}

#whatsapp:hover {
  background-color: #25D366;
}

#whatsapp:hover:before {
  box-shadow: 0 0 15px 5px #25D366;
}

/*--end floating social media icon--*/

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hidden {
  display: none;
}


#gameControls {
  position: absolute;
  left: 20px;
  /* Adjust this value to position controls on the left */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.controlGroup {
  margin-bottom: 20px;
}

#levelSelect {
  margin-top: 5px;
  margin: 8%;
  font-size: 22px;
  background: linear-gradient(143deg, #4b4bab, #262b8f);
  border: none;
  border-radius: 1rem;
  padding: 8px;
  display: block;
  width: 81%;
  text-align: center;
  color: whitesmoke;
}

#levelSelect:hover {
  transform: scale(1.05);
  background-color: rgb(50, 61, 164);
  color: #000;

}

#difficulty {
  font-size: 29px;
  font-weight: 750;
  color: #b3b328;
  margin-left: 10px;

}

#startButton,
#pauseButton,
#restartButton {
  margin-top: 10px;
}

#gameInfo {
  position: absolute;
  top: 139px;
  left: 8px;
  /* Adjust this value to align with the shifted game content */
  font-size: 18px;
  background: linear-gradient(143deg, #75758d, #45465a);
  padding: 11px 12px;
  border-radius: 15px;
  background-color: var(--background-color);
  border: var(--text-color) 3px solid;

}

a {
  color: rgb(136, 208, 128)
}

.logo {

  position: absolute;
  display: inline-block;

}


.logo:hover {
  opacity: 1;
  transition: ease-out;
  transition: opacity 1s;
}

#startButton,
#restartButton,
#pauseButton {
  position: absolute;
  font-size: 25px;
  background: linear-gradient(143deg, #338e42, #068412);
  color: rgb(232, 249, 45);
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 71px;

}

button {
  border-radius: 15px;
}

#startButton:hover,
#restartButton:hover {
  background-color: rgb(62, 177, 74);
  transform: scale(1.05);
}

#gameOver {
  position: absolute;
  top: 30%;
  left: 38%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgb(188, 109, 109);
  display: none;
  text-align: center;
  background: linear-gradient(143deg, #a8a8a8, #45465a);
  padding: 20px;
  border-radius: 10px;
  animation: popIn 0.3s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border: 7px solid #353b45;
  z-index: 10;
}


#instructions {
  position: absolute;
  top: 100px;
  font-size: medium;
  width: 260px;
  padding: 5px;
  font-weight: 700;
  text-decoration: solid;
  margin-left: 45px;

}

#instructionsList {
  width: 300px;
  padding: 29px;
  border-radius: 40px;
  background: linear-gradient(143deg, #639397, #ba9e7d);
  color: rgb(58, 44, 44);
  max-height: 340px;
  /* Set a maximum height to enable scrolling */
  overflow-y: auto;
  /* Enable vertical scrolling */
  display: none;
  cursor: pointer;

}

a {
  text-decoration: none;
  color: #2a70b1;
}


.primary-btn {
  color: #040404;
  padding: 20px;
  width: 200px;
  margin: 7%;
  background: linear-gradient(143deg, #4141a7, #1b22a3);
  color: whitesmoke;
  cursor: pointer;
  text-decoration: none;
  border-radius: 1rem;
  font-size: 20px;

}

.primary-btn:hover {
  background-color: rgb(114, 103, 107);
  color: #000;
  transform: scale(1.05);
}

h3 {
  color: #000000;
}

#highScore {
  position: absolute;
  bottom: 110px;
  left: 65px;
  font-size: 29px;
  color: #9bbee1;
}

#finalScore {
  font-size: 24px;
  margin-top: 20px;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  #instructions {
    top: 0;
    right: 10px;
    width: 200px;
  }

  #gameInfo,
  #highScore {
    font-size: 14px;
  }
}

.snowflake {
  --size: 1vw;
  background: url('https://github.com/Jay-1409/Jay_Shah_Portfolio/blob/main/public/Static/Images/SnowFlake.png?raw=true') no-repeat center center;
  width: calc(4*var(--size));
  height: calc(4*var(--size));
  background-size: cover;
  /* Use 'cover' if you want to cover the entire area */
  position: absolute;
  top: -5vh;
  z-index: -1;
  animation: snowfall 100s linear infinite;
  /* Add animation property if not already present */
}


@keyframes snowfall {
  0% {
    transform: translate3d(var(--left-ini), 0, 0);
  }

  100% {
    transform: translate3d(var(--left-end), 80vh, 0);
  }
}

.snowflake:nth-child(1) {
  --size: 0.8vw;
  --left-ini: 4vw;
  --left-end: 2vw;
  left: 55vw;
  animation: snowfall 14s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(2) {
  --size: 0.8vw;
  --left-ini: 5vw;
  --left-end: 5vw;
  left: 63vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(3) {
  --size: 0.2vw;
  --left-ini: 0vw;
  --left-end: -3vw;
  left: 17vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(4) {
  --size: 0.2vw;
  --left-ini: -5vw;
  --left-end: 10vw;
  left: 66vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(5) {
  --size: 0.6vw;
  --left-ini: -6vw;
  --left-end: 3vw;
  left: 39vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -6s;
}

.snowflake:nth-child(6) {
  --size: 0.4vw;
  --left-ini: 2vw;
  --left-end: 3vw;
  left: 86vw;
  animation: snowfall 8s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(7) {
  --size: 0.2vw;
  --left-ini: -1vw;
  --left-end: 7vw;
  left: 87vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -2s;
}

.snowflake:nth-child(8) {
  --size: 0.6vw;
  --left-ini: -3vw;
  --left-end: 3vw;
  left: 77vw;
  animation: snowfall 15s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(9) {
  --size: 0.8vw;
  --left-ini: -4vw;
  --left-end: -5vw;
  left: 50vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(10) {
  --size: 0.8vw;
  --left-ini: 1vw;
  --left-end: -1vw;
  left: 34vw;
  animation: snowfall 12s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(11) {
  --size: 1vw;
  --left-ini: 4vw;
  --left-end: 4vw;
  left: 29vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(12) {
  --size: 0.4vw;
  --left-ini: 9vw;
  --left-end: -1vw;
  left: 100vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(13) {
  --size: 0.4vw;
  --left-ini: 8vw;
  --left-end: -2vw;
  left: 86vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -3s;
}

.snowflake:nth-child(14) {
  --size: 0.8vw;
  --left-ini: -1vw;
  --left-end: -1vw;
  left: 18vw;
  animation: snowfall 8s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(15) {
  --size: 0.8vw;
  --left-ini: 0vw;
  --left-end: 10vw;
  left: 35vw;
  animation: snowfall 15s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(16) {
  --size: 1vw;
  --left-ini: 10vw;
  --left-end: -5vw;
  left: 23vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -6s;
}

.snowflake:nth-child(17) {
  --size: 0.8vw;
  --left-ini: -3vw;
  --left-end: 1vw;
  left: 89vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(18) {
  --size: 0.8vw;
  --left-ini: 8vw;
  --left-end: 6vw;
  left: 33vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(19) {
  --size: 0.6vw;
  --left-ini: -1vw;
  --left-end: 1vw;
  left: 26vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(20) {
  --size: 0.4vw;
  --left-ini: 7vw;
  --left-end: -9vw;
  left: 75vw;
  animation: snowfall 13s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(21) {
  --size: 0.2vw;
  --left-ini: -2vw;
  --left-end: -7vw;
  left: 81vw;
  animation: snowfall 14s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(22) {
  --size: 0.6vw;
  --left-ini: 9vw;
  --left-end: -7vw;
  left: 75vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(23) {
  --size: 0.2vw;
  --left-ini: 7vw;
  --left-end: -9vw;
  left: 28vw;
  animation: snowfall 12s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(24) {
  --size: 1vw;
  --left-ini: 5vw;
  --left-end: 8vw;
  left: 17vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -6s;
}

.snowflake:nth-child(25) {
  --size: 0.8vw;
  --left-ini: -7vw;
  --left-end: 5vw;
  left: 29vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(26) {
  --size: 0.8vw;
  --left-ini: 10vw;
  --left-end: -8vw;
  left: 19vw;
  animation: snowfall 13s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(27) {
  --size: 1vw;
  --left-ini: 5vw;
  --left-end: 7vw;
  left: 71vw;
  animation: snowfall 7s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(28) {
  --size: 0.8vw;
  --left-ini: -2vw;
  --left-end: 5vw;
  left: 96vw;
  animation: snowfall 14s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(29) {
  --size: 0.4vw;
  --left-ini: 8vw;
  --left-end: -5vw;
  left: 67vw;
  animation: snowfall 15s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(30) {
  --size: 0.4vw;
  --left-ini: 9vw;
  --left-end: -1vw;
  left: 14vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(31) {
  --size: 0.8vw;
  --left-ini: 9vw;
  --left-end: -6vw;
  left: 38vw;
  animation: snowfall 8s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(32) {
  --size: 0.2vw;
  --left-ini: -1vw;
  --left-end: -3vw;
  left: 96vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(33) {
  --size: 0.6vw;
  --left-ini: 1vw;
  --left-end: 0vw;
  left: 10vw;
  animation: snowfall 12s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(34) {
  --size: 0.6vw;
  --left-ini: 8vw;
  --left-end: -9vw;
  left: 73vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -2s;
}

.snowflake:nth-child(35) {
  --size: 0.6vw;
  --left-ini: 10vw;
  --left-end: -8vw;
  left: 53vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -2s;
}

.snowflake:nth-child(36) {
  --size: 0.8vw;
  --left-ini: 1vw;
  --left-end: -7vw;
  left: 62vw;
  animation: snowfall 8s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(37) {
  --size: 0.2vw;
  --left-ini: -4vw;
  --left-end: 8vw;
  left: 47vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -7s;
}

.snowflake:nth-child(38) {
  --size: 0.8vw;
  --left-ini: 5vw;
  --left-end: 5vw;
  left: 4vw;
  animation: snowfall 12s linear infinite;
  animation-delay: -1s;
}

.snowflake:nth-child(39) {
  --size: 0.8vw;
  --left-ini: 3vw;
  --left-end: -2vw;
  left: 29vw;
  animation: snowfall 7s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(40) {
  --size: 1vw;
  --left-ini: -5vw;
  --left-end: -6vw;
  left: 65vw;
  animation: snowfall 13s linear infinite;
  animation-delay: -9s;
}

.snowflake:nth-child(41) {
  --size: 0.6vw;
  --left-ini: -6vw;
  --left-end: 3vw;
  left: 52vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(42) {
  --size: 0.2vw;
  --left-ini: 5vw;
  --left-end: -9vw;
  left: 48vw;
  animation: snowfall 13s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(43) {
  --size: 1vw;
  --left-ini: 0vw;
  --left-end: -3vw;
  left: 44vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(44) {
  --size: 0.4vw;
  --left-ini: 5vw;
  --left-end: 7vw;
  left: 20vw;
  animation: snowfall 7s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(45) {
  --size: 0.8vw;
  --left-ini: 4vw;
  --left-end: 7vw;
  left: 78vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(46) {
  --size: 0.4vw;
  --left-ini: -4vw;
  --left-end: 3vw;
  left: 63vw;
  animation: snowfall 7s linear infinite;
  animation-delay: -5s;
}

.snowflake:nth-child(47) {
  --size: 0.6vw;
  --left-ini: -7vw;
  --left-end: -7vw;
  left: 19vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(48) {
  --size: 0.8vw;
  --left-ini: -4vw;
  --left-end: 4vw;
  left: 47vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(49) {
  --size: 0.2vw;
  --left-ini: 10vw;
  --left-end: -1vw;
  left: 43vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(50) {
  --size: 0.6vw;
  --left-ini: -4vw;
  --left-end: 7vw;
  left: 86vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -2s;
}

.snowflake:nth-child(51) {
  --size: 0.6vw;
  --left-ini: -7vw;
  --left-end: -7vw;
  left: 19vw;
  animation: snowfall 10s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(52) {
  --size: 0.8vw;
  --left-ini: -4vw;
  --left-end: 4vw;
  left: 47vw;
  animation: snowfall 6s linear infinite;
  animation-delay: -10s;
}

.snowflake:nth-child(53) {
  --size: 0.2vw;
  --left-ini: 10vw;
  --left-end: -1vw;
  left: 43vw;
  animation: snowfall 11s linear infinite;
  animation-delay: -8s;
}

.snowflake:nth-child(54) {
  --size: 0.6vw;
  --left-ini: -4vw;
  --left-end: 7vw;
  left: 86vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -2s;
}

.snowflake:nth-child(55) {
  --size: 0.6vw;
  --left-ini: -4vw;
  --left-end: 7vw;
  left: 86vw;
  animation: snowfall 9s linear infinite;
  animation-delay: -2s;
}



/* added small blur every 6 snowflakes*/
.snowflake:nth-child(6n) {
  filter: blur(1px);
}




/* Dark mode */

/* Default light mode colors */
:root {
  --background-color: rgb(7, 7, 7);
  --text-color: rgb(233, 217, 217);
  --header-bg: lightgray;
}

h2 {
  color: var(--text-color);
}

/* Dark mode colors */
[data-theme="dark"] {
  --background-color: #121212;
  --text-color: #94838d;
  --header-bg: #1c1c1c;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

header {
  background-color: gray;
  width: 0%;
  display: inline-block;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 5px;
  left: 1px;
  padding: 0px;
  border-radius: 40px;
}

h1 {
  margin: 0;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

#mode-label {
  margin-left: 10px;
  font-size: 1rem;
}

/* Toggle Switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
  background: linear-gradient(135deg, #a06506, #eec009);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/sun.png');
  background-size: cover;
  transition: 0.4s;
  top: 3px;
  left: 4px;
}

input:checked+.slider {
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

input:checked+.slider:before {
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/crescent-moon.png');
  transform: translateX(26px);
}

.theme-switch-wrapper {
  font-size: 64%;
  color: rgb(112, 239, 224);
  font-size: xx-large;
  width: 100%;
}

#musicVolumeText {
  color: white;
}

#volumeControl {
  margin-right: 140px;
  display: flex;
  align-items: center;
}

#volumeSlider {
  margin-right: 100px;
  width: 100px;
}

#liveScore {
  position: absolute;
  border-radius: 20px;
  padding: 10px;
  margin-left: 2px;
  left: 134px;
  top: 40px;
  font-size: 20px;
  font-weight: 900;
  color: rgb(237, 238, 238);
  border: 5px solid rgb(11, 34, 132);
}


/* #liveScore {
  position: absolute;
  top: 40px;
  left: 150px;
  font-size: 20px;
  font-weight: bold;
  color: white;
} */
#liveLife {
  position: absolute;
  top: 450px;
  right: 158px;
  font-size: 20px;
  font-weight: bold;
  border: 5px solid skyblue;
  border-radius: 20px;
  padding: 20px;

}



.controls {
  display: none;
}

@media (max-width: 480px) {

  /* Control Buttons for Mobile */
  .controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Space between buttons */
  }

  .controls button {
    background-color: #0f0;
    color: #000;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .controls button:hover {
    background-color: #00b300;
  }

  /* Pop-in Animation */
  @keyframes popIn {
    0% {
      transform: scale(0.5);
      opacity: 0;
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}


.nameofplayer {
  position: absolute;
  top: 70px;
  left: 50;
  font-size: 30px;
  color: white;
  font-weight: bold;
}



/* Container for the header */
header {
  display: flex;
  justify-content: left;
  /* Centering the logo */

  margin-left: 20px;
  background-color: #2c3e50;
  /* Example background color */
}

/* Logo Styling */
.logo {
  width: 200px;
  height: 200px;
  transition: all 0.3s ease;
  /* Smooth transition on size change */
}

/* Live Score and Life Section */
/* Live Score and Life Section */
/* Live Score and Life Section */
/* Live Score and Life Section */
#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
  margin-top: 10px;
  margin-left: 40px;
}

/* #liveScore, #liveLife {
  font-size: 18px;
  color: white; Example color

  margin-bottom: 10px;
  left: 80px;
} */
/* #liveLife{
  top: 35px;
} */

#gameInfo {
  display: flex;
  justify-content: left;
  font-size: 20px;
  color: rgb(213, 213, 57);
  margin-left: 30px;
  margin-top: 50px;
}

/* Sidebar for score and life */
.sidebar {
  padding: 20px;
  border-radius: 10px;
}

/* Icons */
#gameInfo i {
  margin-right: 10px;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .logo {
    width: 96px;
    height: auto;
    left: 5px;
    margin-top: 30px;
    margin-left: 50px;
  }

  #liveLife {
    font-size: 16px;
    left: 60px;
  }

  #liveLife {
    top: 28px;
  }

  #gameInfo {
    font-size: 16px;
  }
}

/* Media Query for extra small screens */
@media (max-width: 480px) {
  .logo {
    width: 90px;
    left: 5px;
    margin-top: 30px;
    margin-left: -15px;
  }

  #liveLife {
    font-size: 14px;
    left: 60px;
  }

  #liveLife {
    top: 25px;
  }

  #gameInfo {
    font-size: 14px;
  }
}

Name {
  font-size: 1em;
  color: #000;
  /* Dark color */
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  /* Light background to contrast with the name */
  padding: 5px 10px;
  border-radius: 5px;
}

.modal-content {
  margin: 10px;

}

/* Music Volume */

.styled-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  margin-right: 10px;
  margin-top: 10px;
  background-color: transparent;
  /* Transparent background */
  border: 2px solid #ddd;
  /* Border to define the button */
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #eeb8b8;
  /* Text color */
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.styled-button i {
  margin-right: px;
  color: #666;
  /* Icon color */
}

.styled-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  /* Light background on hover */
  border-color: #bbb;
  /* Slightly darker border */
}

.styled-button:active {
  background-color: rgba(0, 0, 0, 0.2);
  /* Darker background when clicked */
  border-color: #aaa;
}

.styled-button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
    justify-content: flex-start;
    /* Adjust the layout for better readability */
  }

  #gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
  }

  #gameCanvas {
    border: 2px solid rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(201, 164, 2, 0.5);
    max-width: 89vw;
    z-index: 1;
    background-color: transparent;
    backdrop-filter: blur(8px);
  }

  .gameProgress {
    font-size: 18px;
    /* Adjust the font size for smaller screens */
    padding: 5px;
  }

  #gameInfo {
    top: 50px;
    /* Move game info higher on the screen */
    left: 10px;
    /* Adjust for smaller screen sizes */
    font-size: 14px;
  }

  #instructions {
    position: block;
    font-size: medium;
    font-weight: 700;
    text-decoration: solid;
    transform: scale(0.7);
    padding: 0%;
    margin: 0%;
    border: 0%;
    top: 0%;
  }

  #instructionsTitle {
    font-size: 16px;
    padding: 10px;
  }

  #instructionsList {
    font-size: 12px;
    padding: 8px;
  }

  button {
    font-size: 18px;
    padding: 8px 16px;
  }

  #startButton,
  #restartButton,
  #pauseButton {
    width: 80%;
    /* Increase button size for easier tapping */
    font-size: 20px;
  }

  #highScore {
    bottom: 5px;
    left: 5px;
    font-size: 16px;
  }

  #gameOver {
    position: block;
    font-size: 10px;
    color: #f00;
    display: none;
    top: 50%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    animation: popIn 0.3s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
  }

  .controlGroup {
    margin-bottom: 0px;
  }

  #gameControls {
    position: absolute;
    left: 0%;
    /* Adjust this value to position controls on the left */
    top: 15%;
    transform: scale(0.6) translateX(-30%);
    display: flex;
    flex-direction: column;
  }

  #levelSelect {
    transform: scale(0.8);
  }

  #instructionsList {
    background-color: #007bff;
    color: #f8f4f4;
    max-height: 300px;
    /* Set a maximum height to enable scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
    display: none;
    cursor: pointer;
    z-index: 9999;
    position: absolute;
  }

  /* scrollbar color adding for chrome */
  #instructionsList::-webkit-scrollbar {
    width: 12px;
    /* Width of the scrollbar */
  }

  #instructionsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Background of the scrollbar track */
  }

  #instructionsList::-webkit-scrollbar-thumb {
    background: navy;
    /* Color of the scrollbar handle */
    border-radius: 6px;
    /* Rounded corners for the scrollbar handle */
  }

  #instructionsList::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Color on hover */
  }

  a {
    text-decoration: none;
  }


  #instructionsTitle {
    background-color: #007bff;
    color: #040404;
    cursor: pointer;
    text-decoration: none;
    border-top: #007bff;
    border-radius: 50rem;
    font-size: 18px;
    top: 0%;
    z-index: 9999;
    /* Ensure the title is also in front of the canvas */
    position: relative;
    /* Adjust positioning as necessary */
  }

  #instructionsTitle:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }


#nextLevelMessage {
  position: fixed;  /* Ensures it stays in place on the screen */
  top: 50%;         /* Centers vertically */
  left: 50%;        /* Centers horizontally */
  transform: translate(-50%, -50%);  /* Adjusts for perfect centering */
  z-index: 9999;    /* High z-index to appear above everything else */
  background-color: rgba(0, 0, 0, 0.8);  /* Semi-transparent background */
  color: white;     /* Text color */
  padding: 20px;    /* Add some padding for better visibility */
  font-size: 24px;  /* Make the text larger */
  display: none;    /* Hidden by default */
}
}