* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}
body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("./images/underwater_scene.jpg");
    background-size: cover;
    overflow: hidden;
}



#canvas1 {
    width: 1400px;
    height: 750px;
    border: 3px solid rgb(17, 133, 175);
    background-image: url("./images/underwater_scene.jpg");
    background-size: cover;
    position: relative;
}


#startButton, #tryAgain, #nextbtn {
    background-color: #a90994;
    border: 0;
    border-radius: 56px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
    font-size: 18px;
    font-weight: 600;
    outline: 0;
    padding: 16px 21px;
    width: 350px;
    height: 50px;
    position: absolute;
    top: 350px;
    text-align: center;
    text-decoration: none;
    transition: all .3s;
    touch-action: manipulation;
  }
  
  #startButton:before, #tryAgain:before, #nextbtn:before {
    background-color: initial;
    background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
    border-radius: 125px;
    content: "";
    height: 50%;
    left: 4%;
    opacity: .5;
    position: absolute;
    top: 0;
    transition: all .3s;
    width: 92%;
  }
  
  #startButton:hover, #tryAgain:hover, #nextbtn:hover {
    box-shadow: rgba(255, 255, 255, .2) 0 3px 15px inset, rgba(0, 0, 0, .1) 0 3px 5px, rgba(0, 0, 0, .1) 0 10px 13px;
    transform: scale(1.05);
  }
  


#introText {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    color:white;
    font-size: 25px;
    font-family: fantasy;
    font-weight: bold;
    font-size: 70px;
    transition: background-color 0.3s ease;
    padding: 20px;
    
}

#introText:hover, #level1:hover{
    background-color:rgba(6, 105, 148, 0.513);

}

#level1, #highscore, #highScoreVal {
    position: absolute;
    top: 440px;
    left: 50%;
    transform: translateX(-50%);
    color:aliceblue;
    font-size: 25px;
    font-family:fantasy;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding:20px;
}


#highscore, #highScoreVal {
    font-size: 40px;
}


#highScoreVal {
    position: absolute;
    top: 35px;
    left: 50%;

}


#timer {
    position: absolute;
    top: 35px;
    left: 8%;
    color:aliceblue;
    font-family: fantasy;
    font-size: 25px;
    background-color:#92087fd5;
    padding: 8px;
    border-radius: 10px;
    background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 40%);
}


#levelcompleteMsg, #gameoverMsg, #level2 {
    position: absolute;
    top: 250px;
    left: 32%;
    color:aliceblue;
    font-size: 45px;
    font-family:fantasy;
    font-weight: bold;
    padding:20px;

}

#gameoverMsg {
    top: 240px;
    left: 40%;
}


#lifeContainer {
    position: absolute;
    top: 50px;
    left: 17%;

}

#levelCounter {
    position: absolute;
    top: 50px;
    left: 25%;
}




