/* top left e meu padrao de distribuicao na tela */
/* coordenada cartesiana: localizacao de um ponto no plano */
/* vai sempre aparecer na tela do computador as coordenadas (0,0) por convencao */

/* X horizontal left */
/* Y vertical top */

body {
    font-family: "Play", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    color: #FAA80A;
    margin: 0;
    padding: 0;
}

#score-area {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    background-color: #4a7bbe;

}

#game-area {
    /* background-color: rgb(12, 46, 12); */
    background-image: url(./assets/backgrounggame.webp);
    background-size: cover;
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
}

#life-score {
    /* width: 50px; */
    /* height: 50px; */
}


#lives {
    /* width: 50px; */
    /* height: 50px; */
}

#player {
    width: 180px;
    aspect-ratio: 1.6;
    background-image: url(./assets/heli1.png);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#bullet {
    width: 30px;
    height: 30px;
    position: absolute;
    border-radius: 50%;
    background-image: url(./assets/shoot.png);
    background-size: cover;
    display: none;
}

#computer {
    width: 280px;
    aspect-ratio: 2.7;
    background-image: url(./assets/heli2.png);
    background-size: cover;
    position: absolute;
    top: 0;
    right: 0;
}

#truck {
    width: 200px;
    aspect-ratio: 1.4;
    position: absolute;
    bottom: 0;
    right: 0;
    background-image: url(./assets/militartruck2.png);
    background-size: cover;
}


#character {
    width: 70px;
    /* 218/461 dividir o tamanho da imagem */
    aspect-ratio: 0.47;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url(./assets/character-cowboy.png);
    background-size: cover;
    transform: rotateY(180deg);
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    text-align: center;
    /* 15% from the top and centered */
    padding: 24px;
    border: 1px solid #FAA80A;
    border-radius: 16px;
    width: 50%;
    /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close-content {
    color: #3E69A5;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-content:hover,
.close-content:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#play-again-btn{
    padding: 8px 16px;
    background-color: #3E69A5;
    color: #FAA80A;
    font-weight: bolder;
    border: none;
    border-radius: 4px;
}
canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
}
