* {
  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 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 100px; /* Adjust this value as needed */
}

#gameCanvas {
  border: 6px solid yellow;
  box-shadow: 0 4px 10px rgba(201, 164, 2, 0.5);
  max-width: 70vw;
  height: 70vh;
  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%;
}

#liveScore,
#liveLife {
  margin: 5px 0;
}
#instructions {
  position: absolute;
  right: 0;
  top: 20px;
  width: 300px;
  padding: 20px;}    #instructionsList {
  
  padding: 29px;
  border-radius: 40px;
  background-color: blueviolet;
  color: yellow;
  max-height: 340px; /* Set a maximum height to enable scrolling */
  overflow-y: auto; /* Enable vertical scrolling */
  display: none;
  cursor: pointer;}/* 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 */}

#score {
  color: yellow;
  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;
}

@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: 7%;
  font-size: 22px;
  background-color: #a6ff00;
  border: none;
  border-radius: 1rem;
  padding: 8px;
  display: block;
  width: 81%;
  text-align: center;
}

#levelSelect:hover{
  transform: scale(1.05);
  background-color: greenyellow;

}

#difficulty{
  font-size: 29px;
  color: #ffffff;

}

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

#gameInfo {
  position: absolute;
  top: 139px;
  left: 123px; /* Adjust this value to align with the shifted game content */
  font-size: 18px;
  background-color: rgba(20, 19, 19, 0.7);
  padding: 11px 12px;
  border-radius: 15px;
  background-color: var(--background-color);
  border: var(--text-color) 3px solid;
}

a{
  color: rgb(90, 249, 75)
}

.logo {

  position: absolute;
  top: -40px;
  left: -45px;
  width: 140px;
  height: 120px;
  margin: 20px;


  display: inline-block;
  
}


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

#startButton,
#restartButton,
#pauseButton {
  position: absolute;
  font-size: 21px;
  padding: 13px 20px;
  background-color: rgb(20, 171, 20);
  color: yellow;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 71px;
  
}

button{
  border-radius: 45px;
}
#startButton:hover,
#restartButton:hover {
  background-color: rgb(12, 247, 27);
  transform: scale(1.05);
}

#gameOver {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #f00;
  display: none;
  text-align: center;
  background-color: black;
  padding: 20px;
  border-radius: 10px;
  animation: popIn 0.3s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border: 7px solid #fff;
  z-index: 10;
}

.instructions {
    background-color: #1E90FF;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.instruction-section {
    margin-bottom: 20px;
}

.instruction-section h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    margin: 5px 0;
}


#instructions {
  position: absolute;
  right: 0;
  top: 20px;
  width: 300px;
  padding: 20px;
}

#instructionsList {
  
  padding: 29px;
  border-radius: 40px;
  background-color: blueviolet;
  color: yellow;
  max-height: 340px; /* Set a maximum height to enable scrolling */
  overflow-y: auto; /* Enable vertical scrolling */
  display: none;
  cursor: pointer;
  
}

/* 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 */
}

.icon {
    margin-right: 10px;
    font-size: 1.2em;
}
a {
  text-decoration: none;
}


.primary-btn {
  color: #040404;
  padding: 20px;
  width: 200px;
  margin: 7%;
  background-color: blueviolet;
  color: yellow;
  cursor: pointer;
  text-decoration: none;
  border-top: #007bff;
  border-radius: 50rem;
  font-size:18px;
  
}
.primary-btn:hover{
  background-color: palevioletred;
  transform: scale(1.05);
}

h3{
  color: #000000;
}

#highScore {
  position: absolute;
  bottom: 50px;
  left: 70px;
  font-size: 29px;
  color: #d8fd05;
}

#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: orange;
  font-size: xx-large;
  width: 100%;
}

#musicVolumeText {
  color: white;
}

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

#volumeSlider {
  margin-left: 10px;
  width: 150px;
}

#liveScore {
  position: absolute;
  border: 5px solid skyblue;
  border-radius: 20px;
  padding: 6px;
  margin: -20px;
  margin-left: 2px;
  top: 50px;
  left: 134px;
  font-size: 20px;
  font-weight: bold;
  color: gold;
}

#liveLife {
  position: absolute;
  border: 5px solid skyblue;
  border-radius: 20px;
  padding: 6px;
  top: 90px;
  left: 134px;
  font-size: 20px;
  font-weight: bold;
  color: gold;
}


#liveScore {
  position: absolute;
  top: 10px;
  left: 88px;
  font-size: 20px;
  font-weight: bold;
  color: white;
}
#liveLife {
  position: absolute;
  top: 42px;
  left: 88px;
  font-size: 20px;
  font-weight: bold;
  color: white;
}



.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: center; /* Centering the logo */
  padding: 10px;
  background-color: #2c3e50; /* Example background color */
}

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

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

#liveScore, #liveLife {
  font-size: 18px;
  color: white; /* Example color */
  margin-top: 5px;
  margin-bottom: 10px;
  left: 80px;
}
#liveLife{
  top: 35px;
}

#gameInfo {
  display: flex;
  justify-content: center;
  font-size: 20px;
  color: white;
}

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

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

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

  #liveScore, #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;
  }

  #liveScore, #liveLife {
      font-size: 14px;
      left: 60px;
  }
  #liveLife{
    top: 25px;
  }

  #gameInfo {
      font-size: 14px;
  }
}
.playerName {
  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;
}


/* Music Volume */

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

.styled-button i {
  margin-right: 5px;
  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 screen and (max-width:2000px){
  #gameCanvas{
    height: 55vh;
    max-width: 50vw;
  }
}

@media screen and (max-width:1200px) {
  .levelClass{
    max-width: 15vw;
    max-height: 10vh;
  }
  #difficulty{
    font-size: 25px;
  }
}

@media screen and (max-width:1100px) {
  #displayName{
    font-size: 0.8rem;
    top: 50%;
    visibility: hidden;
  }
  #gameCanvas{
    height: 40vh;
    max-width: 30vw;
  }
}

@media screen and (max-height:750px) {
  #gameCanvas{
    height: 40vh;
  }
  
}

@media screen and (max-width:650px) {
  #gameCanvas{
    max-width: 35vw;
    height: 35vh;
  }
}