body {
  margin: 0;
  background-color: rgb(249, 252, 228);
  background-size: cover;
}

#instruction-text {
  font-size: 30px;
  font-family: fantasy;
  color: #0e5101;
  padding: 10px;
  margin-top: auto;
  margin-bottom: auto;
}

#start-btn {
  background-color: #0e5101;
  color: white;
  padding: 10px;
  font-size: 30px;
  font-family: fantasy;
  border-radius: 50px;
  margin-top: 20px;
}

#instructions-btn {
  background-color: rgb(249, 252, 228);
  border-style: none;
}

#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#start-screen h1 {
  font-size: 50px;
  font-family: fantasy;
  color: #0e5101;
  margin: 0;
  border-radius: 50px;
  padding-top: 40px;
}

#game-over-screen h1 {
  font-size: 50px;
  color: rgb(105, 5, 27);
  margin: 0;
  padding-bottom: 70px;
}

#restart-btn,
#restart-btn2 {
  background-color: #0e5101;
  color: white;
  padding: 10px;
  font-size: 30px;
  font-family: fantasy;
  border-radius: 50px;
  margin-top: 30px;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px;
}

#game-box {
  background-image: url("../img/underwater-bg.webp");
  background-size: cover;
  width: 800px;
  height: 500px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

#game-box * {
  pointer-events: none;
}

#header {
  display: flex;
  font-size: 20px;
  color: rgb(105, 5, 27);
  font-weight: bold;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  width: 100%;
}

#timer {
  margin: 0 auto;
}

#score {
  margin-right: auto;
}

#sound-btn {
  margin-left: auto;
  background-color: rgb(249, 252, 228);
  border-style: none;
}

#game-over-screen,
#game-screen,
#score-result-screen {
  display: none;
}

#bonus,
#bonus1,
#bonus2,
#bonus3 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

#popup {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background: rgba(0,0,0,0.5);
  
 
  justify-content: center;
  align-items: center;
} 

#popup-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

/* 
@media (max-width: 600px) {
  #game-box {
    width: 100%;
    height: 400px;
  } */
