@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  cursor: crosshair;
}

#canvas {
  background-color: rgb(24, 28, 31);
  background-image: url("../images/background.jpg");
  background-size: cover;
  width: 100%;
  height: 100vh;
  display: block;
}

.startGame {
  z-index: 1;
  display: flex;
  width: 100vw;
  position: absolute;
  flex-direction: column;
  top: 0;
  left: 0;
  font-family: "mMontserrat";
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: rgb(24, 28, 41);
  color: white;
}
.startGame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(30%);
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home h1 {
  text-align: center;
  margin: 0;
  line-height: 40px;
  font-style: oblique;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.home h1 span {
  font-size: 1.1rem;
}

/* #startGameBtn {
  background-color: red; 
  color: black; 
  font-family: 'Arial', sans-serif; 
  font-size: 24px; 
  font-weight: bold; 
  padding: 15px 30px; 
  border: 3px solid red; 
  border-radius: 30px; 
  text-shadow: -2px 2px 0px black, 0px 1px 0px black; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
  cursor: pointer; 
  outline: none; 
  transition: all 0.3s ease; 
}

/* Hover effect */
/* #startGameBtn:hover {
  background-color: #ff4d4d; 
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5); 
  transform: translateY(-2px); 
} */

/* Active effect (when clicked) */
/* #startGameBtn:active {
  transform: translateY(2px); 
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3); 
}  */
#startGameBtn {
  padding: 15px 40px;
  font-size: 24px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  color: #000; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); 
  background: linear-gradient(to bottom, #3be1f5, #00a2c6); 
  border: 3px solid #00a2c6;
  border-radius: 50px; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

#startGameBtn:hover {
  background: linear-gradient(to bottom, #00c6f7, #007a91); 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); 
  transform: scale(1.05); 
}

#startGameBtn:active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
  transform: scale(0.98); 
}
.timerDisplay {
  color: white;
  font-family: "Poppins";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 13;
}

.timerDisplay h1 {
  animation: animCount 8s linear ease-in;
}

@keyframes animCount {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(2.2);
  }
}

#insideGameContainer {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10;
  color: white;
  font-family: "Poppins";
  box-sizing: border-box;
  pointer-events: none;
  display: none;
  padding: 10px 20px;
}
.gameCountTime {
  position: absolute;
  top: 5vh;
  right: 5vw;
}
.gameCountTime img {
  margin-right: 10px;
}
#strikeCountDiv {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 30px;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: yellow;
}

/*
.strikeCount{
    animation: animStrikeCount .2s linear;
    width: 45px;
    height: 45px;
}
@keyframes animStrikeCount {
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.5);
    }
    100%{
        transform: scale(2.5);
    }
}
    */

#gameEndDiv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(24, 28, 31, 0.5);
  z-index: 15;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
}

.gameEndContainer {
  background-color: black;
  /* background-color: rgb(255, 49, 84); */
  /* border: 2px solid white; */
  opacity: 0.7;
  width: 60%;
  height: 60%;
  border-radius: 6px;
  pointer-events: all;
  color: white;
  padding: 25px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.697);
  text-align: center;
  font-family: "Poppins";
}

.gameEndContainer h1 {
  font-size: 1.5rem;
  text-align: center;
}

.gameEndContainer p {
  font-size: 22px;
}

/* CSS for the Restart Button */

#restartGame {
  background-color: red; 
  color: black; 
  font-family: 'Arial', sans-serif; 
  font-size: 24px; 
  font-weight: bold; 
  padding: 15px 30px; 
  border: 3px solid red; 
  border-radius: 30px; 
  text-shadow: -2px 2px 0px black, 0px 0px 0px black; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
  cursor: pointer; 
  outline: none; 
  transition: all 0.3s ease; 
}

/* Hover effect */
#restartGame:hover {
  background-color: #ff4d4d; 
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5); 
  transform: translateY(-2px); 
}

/* Active effect (when clicked) */
#restartGame:active {
  transform: translateY(2px); 
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3); 
}

.Pgameover{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
/* Audio Control  */
.sound-text {
  font-size: 20px;
  font-weight: 400;
  margin-right: 7px;
}
#muteButton {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}
.fa-volume-up,
.fa-volume-mute {
  font-size: 19px;
  color: #ffffff;
}
