body {
    overflow: hidden;
}

canvas {
    display: block;
    background-color: green;
 
}

#dv1 {
    width: 65px;
    height: 100px;
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
}

/*barra de carregamento*/

div.barra {
    position: relative;
    bottom: 20px;
    right: 5px;
    width: 120%;
    height: 10px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

div.barraCheia {
    background-color: black;
    width: 0%;
    height: 100%;
}

/*Cronometro*/

div.timer {
    position: absolute;
   background-color: transparent;
   border-radius: 10px;
   padding: 5px 10px;
    top:5px;
    left: 90%;
    transform: translate(-50%);
}

#time {
    font-family: 'Press Start 2P';
}

/*Caixa de Diálogo*/

div.conversationBubble {
    position: absolute;
    width: 100%;
    height: 20%;
    background-color: rgba(0,0,0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 90%;
    left: 0px;
    transform:translate(0,-50%);
    
}

img.motherImage {
    position:absolute;
    width: 80px;
    left: 200px;
}

.pressEnter {
    position: absolute;
    width: 100px;
    right: 11%;
    animation: fadeIn 1s linear;
}

/*Imagem da mãe*/

.mother {
    position: absolute;
    width: 100px;
    height: 100px;
    transform: translate(-50%,-50%);
    top: 80%;
    left: 43%;
    
}

.motherCharacter {
    width: 70px;
}

/*Game Over Screen*/

.gameOverScreen {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
    border-radius: 10px;
    box-shadow: 1px 1px 10px black;
    width: 400px;
    height: 300px;
    background-color: white;

}

.gameOverScreen h1 {
    font-family: 'Press Start 2P';
    position: relative;
    top: 20px;
    color: red;
    font-size: 30pt;
}

#tryAgainButton {
    width: 200px;
    height: 80px;
    font-size: 15pt;
}

.punishment {
    text-align: center;
    font-family: 'Press Start 2P' ;
    font-size: 10pt;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

/*Victory Screen*/

.victoryScreen {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width:400px;
    height: 300px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 1px 1px 10px black;
    gap: 50px;
}

.victoryScreen h1 {
    position: relative;
    top: 20px;
    font-family: 'Press Start 2P';
    color: green;
    font-size: 20pt;
}
.victoryScreen h2 {
    position: relative;
    top: 15px;
    text-align: center;
    
}

#playAgainButton {
    width: 200px;
    height: 80px;
    font-size: 15pt;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
