/*
    * Course: SENG 513
    * Date: Oct 23, 2023
    * Assignment 2 - Part 2
    * Name: Anish Pokhrel
    * UCID: 30115576
*/

/* applies border-box to every element! this way padding
    doesn't affect width of elements
*/
* {
    box-sizing: border-box;
    font-family: 'Public Pixel', sans-serif;
}

.container {
    /* allows items to stack up on top*/ 
    position: relative;
    display: flex; 
    justify-content: center;
    width: 100%;
}

.healthbar-container {
    position: absolute;
    display: none;
    width: 50%;
    align-items: center;
    padding: 20px;  
} 


.outer-healthbar {
    position: relative;
    height: 30px;
    width: 100%;
}

.player-health {
    background-color: red;
    height: 30px;
    width: 100%;
    border: 2px solid black;


}

.healthbar {
    position: absolute;
    background: rgb(8, 180, 8);
    inset: 0;
    display: flex;
    width: 100%;
    border: 2px solid black;
}

#timer {
    
    background-color: rgb(65, 62, 62);
    width: 100px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
}

#game-over-container {
    display: none;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    justify-content: space-evenly;
    align-items: center;
    inset: 0;
}


#result-message {
    color: black;
    font-size: 45px;
}

#replay-button {
    background-color: red;
    border: 4px solid black;
    width: 200px;
    height: 80px;
    animation: pulse 0.9s infinite;
    font-size: 25px;
}

#replay-button:hover {
    background-color: yellow;
}

@keyframes pulse {
    0% {
      transform: scale(1);
    }
    70% {
      transform: scale(.9);
    }
    100% {
      transform: scale(1);
    }
}


#canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.information {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#instructions-title {
    padding-bottom: 30px;
    font-size: 20px;
    text-decoration: underline;
}

.keyboard-instructions {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    font-size: 16px;
}

.keys {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid black;
    width: 404px;
    padding: 10px;
}


#starting-screen {
    position: absolute;
    flex-direction: column;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
}

#starting-screen h1 {
    font-size: 50px;
}



