body {
    background: #111;
    margin: 0;
    overflow: hidden;
    color: white;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

#startMenuBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9000;
    color: white;
    text-align: center;
}

#startMenuPanel {
    width: 40%;
    background: rgb(49, 49, 49);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
    border: 4px solid rgb(199, 73, 73);
}

#startMenuPanel h1 {
    font-size: clamp(10px, 3vw, 40px);
    margin-bottom: 1vh;
    font-family: "PressStart-Regular", "Arial" ;
    width: 100%;
}

#startMenuPanel h3 {
    font-size: clamp(10px, 1.5vw, 22px);
    margin-bottom: 1vh;
    color: #ff4747;
    font-family: "PressStart-Regular", "Arial" ;
    width: 100%;
}

#startMenuPanel p {
    font-size: clamp(10px, 1.2vw, 18px);
    margin-bottom: 0.5vh;
    line-height: 3vh;
    font-family: "PressStart-Regular", "Arial" ;
}

#startButton {
    padding: 15px 30px;
    margin-top: 1vh;
    margin-bottom: 1vh;
    font-size: clamp(10px, 1.2vw, 18px);
    cursor: pointer;
    background: #ff4747;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: "PressStart-Regular", "Arial" ;
}

#startButton:hover {
    background: #ff6b6b;
}

#keysDisplay {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  width: 100%;                   
}

#keysDisplay img {
  flex: 1 1 auto;  
  max-width: 50px;
  height: auto; 
  width: 20%;
}

#gameOverMenuBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: white;
    text-align: center;
}

#gameOverMenuPanel {
    width: 40%;
    background: rgb(49, 49, 49);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
    border: 4px solid rgb(199, 73, 73);
}

#gameOverMenuPanel h1 {
    font-size: clamp(10px, 3vw, 40px);
    margin-bottom: 1vh;
    font-family: "PressStart-Regular", "Arial" ;
    width: 100%;
}

#gameOverMenuPanel h3 {
    font-size: clamp(10px, 1.5vw, 22px);
    margin-bottom: 1vh;
    color: #ff4747;
    font-family: "PressStart-Regular", "Arial" ;
    width: 100%;
}

#gameOverMenuPanel p {
    font-size: clamp(10px, 1.2vw, 18px);
    margin-bottom: 0.5vh;
    line-height: 3vh;
    font-family: "PressStart-Regular", "Arial" ;
}

#restartButton {
    padding: 15px 30px;
    margin-top: 1vh;
    margin-bottom: 1vh;
    font-size: clamp(10px, 1.2vw, 18px);
    cursor: pointer;
    background: #ff4747;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: "PressStart-Regular", "Arial" ;
}

#restartButton:hover {
    background: #ff6b6b;
}

#gameContainer {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    gap: 10px;
    width: 70%;
}

#laneContainer {
    position: relative;
    width: 30%;
    height: 500px;
    border: 4px solid rgb(104, 21, 21);
    background: #222;
    overflow: hidden;
}

#playerContainer {
    position: relative;
    width: 70%;
    height: 500px;
    border: 4px solid rgb(104, 21, 21);
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#player {
  display: flex;
  justify-content: center; 
  align-items: end;
  gap: 10px;
  width: 100%; 
  z-index: 10; 
  height: 70%;
  margin-bottom: 30px;
}

#player img {
  flex: 1 1 auto;  
  max-width: 280px;
  height: auto; 
  width: 20%;
}

#keysContainer {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 10px;
  width: 60%;  
  z-index: 10;
  height: 20%;
}

#keysContainer img {
  flex: 1 1 auto;  
  max-width: 80px;
  height: auto; 
  width: 20%;
}

#healthContainer {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 1px;
  width: 70%;  
  z-index: 10;
  height: 10%;
}

#healthContainer img {
  flex: 1 1 auto;  
  max-width: 50px;
  height: auto; 
  width: 20%;
}

#infoContainer {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 70%;
    height: 10%;
}

#infoText {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 30%;
    text-align: center;
    font-size: clamp(10px, 3vw, 32px);
    font-family: "PressStart-Regular", "Arial" ;
}

#backgroundContainer {
  position: absolute;
  width: 100%; height: 100%;
  left: 0; top: 0;
  z-index: 0;
  pointer-events: none;
  overflow:visible;
  filter: brightness(80%);
}

#stageBackground {
  position: absolute;
  width: 100%; height: 80%;
  left: 0; top: 0;
  object-fit: cover;
}

#stageBackgroundBottom {
  position: absolute;
  width: 100%; height: 20%;
  left: 0; bottom: 0;
}

#score {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 70%;
    font-size: clamp(10px, 3vw, 32px);
    font-family: "PressStart-Regular", "Arial" ;
}

.lane {
    position: absolute;
    width: 50%;
    height: 100%;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

#leftLane {
    left: 0;
}

#rightLane {
    left: 50%;
}

.note {
    position: absolute;
    width: 50%;
}

.hitZone {
    position: absolute;
    bottom: 50px;
    width: 100%;
    height: 15px;
}

#leftHit {
    left: 0;
}

#rightHit {
    left: 50%;
}


@keyframes shake {
  0%   { transform: translate(0px, 0px); }
  20%  { transform: translate(-10px, 0px); }
  40%  { transform: translate(10px, 0px); }
  60%  { transform: translate(-10px, 0px); }
  80%  { transform: translate(10px, 0px); }
  100% { transform: translate(0px, 0px); }
}

.shake {
  animation: shake 0.3s;
}

@keyframes drumShake {
  0%   { transform: translate(0px, 0px); }
  20%  { transform: translate(-2px, 0px); }
  40%  { transform: translate(2px, 0px); }
  60%  { transform: translate(-2px, 0px); }
  80%  { transform: translate(2px, 0px); }
  100% { transform: translate(0px, 0px); }
}

.drumShake {
  animation: drumShake 0.3s;
}

@font-face {
  font-family: 'PressStart-Regular'; 
  src: url('./fonts/PressStart2P-Regular.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}