@import url('https://fonts.googleapis.com/css2?family=Original+Surfer&family=Pixelify+Sans:wght@400..700&display=swap');
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.canvas-container{
    position: relative;
    width: 1024px;
    height: 576px;
    margin: 0 auto 25vh auto;
    border: 10px solid white;

}
.player-health{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    top: 10px;
    left: 10px;
}
.player-health h2{
    -webkit-text-stroke: 1px grey;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Pixelify Sans", serif;
}
.player-health img{
    border-radius: 50%;
    border: 3px solid white;
    width: 90px;
    background: #0a0a53;
}
.health-container{
    width: 150px;
    height: 20px;
    border: 3px solid white;
}
.firstP-health{
    height: 100%;

    background-color: darkred;
}
.boss-health-container{
    width: 90%;
    display: none;
    position: absolute;
    bottom: 20px;
    left: calc(50% - 45%);

}
.boss-health-container h2{
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Pixelify Sans", serif;
}
.boss-health{
    height: 30px;
    background-color: darkred;
    border: 3px solid white;
    display: flex;
    align-items: center;
    font-family: "Pixelify Sans", serif;
    color: white;
    padding-left: 10px;

}
.score{
    position: absolute;
    right: 20px;
    top: 20px;
}
.score h2{
    -webkit-text-stroke: 1px grey;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Pixelify Sans", serif;
    font-size: 2rem;
}

#dog{
    left: 300px;
    display: none;

}
.SecondP-health{
    height: 100%;
    background-color: darkred;
}

.page-container{
    /*display: none;*/
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}
.start-page{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./image/startPageBackground.webp");

    z-index: 10;
    display: flex;

}
.start-page img{
    backdrop-filter: blur(2px);
   height: 100%;
}
.start-page div{
    backdrop-filter: blur(2px);
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.start-page div h1{
    color: #0096ff;
    margin: 0 0 10px 0;
    padding: 0;
    font-family: "Pixelify Sans", serif;
    font-size: 80px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.start-page div button {
    backdrop-filter: blur(2px);
    border-radius: 10px 0 0 10px;
    display: block;
    width: 100%;
    border: none;
    color: white;
    font-family: "Pixelify Sans", serif;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 10px 20px;

}
.start-page div button:hover{
    color: lightgray;
}
.start-page div button:active{
    color: grey;
}
.start-CG-container{
    z-index: 999;
    position: relative;
    top: 0;
    left: 0;
    display: none;
}
.start-CG-container img{
    position: absolute;
    top: 0;
    left: 0;
    animation: cg 5s ease-in-out forwards;
}
@keyframes cg {
    0%{
        opacity: 1;
    }
    90%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}
.start-CG-container img:nth-of-type(1){
    z-index: 6;
animation-delay: 0s;
}
.start-CG-container img:nth-of-type(2){
    z-index: 5;
    animation-delay: 5s;
}
.start-CG-container img:nth-of-type(3){
    z-index: 4;
    animation-delay: 10s;
}
.start-CG-container img:nth-of-type(4){
    z-index: 3;

    animation-delay: 15s;
}
.start-CG-container img:nth-of-type(5){
    z-index: 2;

    animation-delay: 20s;
}
.start-CG-container img:nth-of-type(6){
    z-index: 1;

    animation-delay: 25s;
}
.story-CG-container{
    z-index: 999;
    position: relative;
    top: 0;
    left: 0;
    display: none;
}
.story-CG-container img{
    position: absolute;
    top: 0;
    left: 0;
    animation: cg 5s ease-in-out forwards;
}
.story-CG-container img:nth-of-type(1){
    z-index: 6;
    animation-delay: 0s;
}
.story-CG-container img:nth-of-type(2){
    z-index: 5;
    animation-delay: 5s;
}
.story-CG-container img:nth-of-type(3){
    z-index: 4;
    animation-delay: 10s;
}
.story-CG-container img:nth-of-type(4){
    z-index: 3;

    animation-delay: 15s;
}
.story-CG-container img:nth-of-type(5){
    z-index: 2;

    animation-delay: 20s;
}
.story-CG-container img:nth-of-type(6){
    z-index: 1;

    animation-delay: 25s;
}
.stopPage{
    width: 100%;
    height: 100%;
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.69);
}
.stopPage .stopMenu{
    width: 50%;
    height: 50%;
    background: rgba(30, 30, 30, 1);
    border: 3px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: "Pixelify Sans", serif;
}
.stopPage .stopMenu h1{
    color: white;
    padding: 0;
    margin: 0;
}
.stopMenu div{
    width: 100%;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

}
.stopMenu div:nth-of-type(2){
    flex-direction: row;
    gap: 0;
}
.stopMenu div button{
    width: 100px;
    height: 50px;
    color: white;
    background: transparent;
    border: 3px solid white;
    margin: 5px;
    border-radius: 20px;
    font-family: "Pixelify Sans", serif;
    margin-top:20px ;
}
.stopMenu div button:hover{
    border: 4px solid white;
}
.stopMenu div button:active{
    background: white;
    color: #1e1e1e;
}
#nextLevel{
    display: none;
}