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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #333333 0%, #613723 100%);
    touch-action: none;
}

#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333333 0%, #613723 100%);
    cursor: pointer;
    touch-action: none;
}

#scoreBoard, #livesBoard {
  position: absolute;
  top: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  background: #FFF;
  box-shadow: 0 4px 0 0 #FFC533;
  color: #7F2C22;
  text-align: right;
}

#scoreBoard {
    left: 20px;
    padding: 5px 20px 5px 70px;
    font-family: Nunito;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    z-index: 10;
}

#livesBoard {
    right: 20px;
    padding: 5px 20px 5px 20px;
}

.life {
}

#scoreIcon {
  display: block;
  position: absolute;
  left: 10px;
  top: -8px;
  width: 50px;
  height: 40px;
  background-image: url('../img/icon-score.png');
  background-size: 100%;
  background-repeat: no-repeat;
}

.popupGeneral {
  border-radius: 40px;
  background: #FF8F0E;
  color: white;
  box-shadow: 0 8px 0 0 #D17000;
  padding: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  text-align: center;
  z-index: 20;
  max-width: 480px;
  min-width: 300px;
}

.popupGeneral h2 {
  font-family: Nunito;
  font-size: 2.8em;
  font-weight: bold;
  text-shadow: 0px 2.08px 8px rgba(177, 95, 0, 0.8);
}

.popupGeneral h3 {
  margin: 1em 0;
}

#gameOver {
    display: none;
}

#gameOver p {
    font-size: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    #gameOver {
        padding: 20px;
    }

    #gameOver h2 {
        font-size: 24px;
    }

    #gameOver p {
        font-size: 16px;
    }

    .popupGeneral {
      width: 90%;
    }

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


#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
}

.button-circle {
  border: none;
  border-radius: 100%;
  background: #038B9D;
  box-shadow: 0 4px 0 0 #03535E;
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-circle:hover {
  box-shadow: 0 1px 0 0 #03535E;
  /* margin-top: 2px; */
  transform: translate(0%, 5%);
  background: #00a5bb;
  transition: all 0.2s ease;
}
