@font-face {
  font-family: "8bits";
  src: url("fonts/pkmnfl.ttf") format("truetype");
}

@font-face {
  font-family: "8bits-bold";
  src: url("fonts/upheavtt.ttf") format("truetype");
}

:root {
    --width-game: 750px;
    --height-game: 625px;
    --width-doctor: 60px;
    --width-zombie: 60px;
}

html,body {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: '8bits';
    background-image: url("assets/arcade_machine.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-color: black;
}

#interface {
    width: var(--width-game);
    height: var(--height-game);
    z-index: 1;
    position: absolute;
    display: flex;
}

#game-over {
    display: none;
    flex-direction: column;
    background-color: black;
    width: 100%;
    place-self: center;
    padding: 20px;
    font-family: "8bits-bold";
    color: white;
}

#home {
    position: relative;
    width: 100%;
    height: 100%;
}

#start {
    position: absolute;
    color:white;
    font-size: 50px;
    bottom: 0;
    margin-bottom: 75px;
    margin-left: 110px;
    font-family: "8bits-bold";
    animation: parpadear 1s infinite;
}

@keyframes parpadear {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#game-over #go{
    font-size: xxx-large;
    text-align: center;
    margin: 0;
}
#game-over #retry {
    font-size: x-large;
    text-align: center;
    margin: 10px;
    animation: parpadear 1s infinite;
}

#game-container {
    width: var(--width-game);
    height: var(--height-game);
    position: relative;
    overflow: hidden;
    cursor: url("assets/cursor.png"), auto;
    background-image: url("assets/floor.png");
    background-position: center center;
}

#shot-area {
    width: var(--width-game);
    height: var(--height-game);
    position: absolute;
    z-index: 1;
}

#doctor {
    width: var(--width-doctor);
    aspect-ratio: 14/20;
    position: absolute;
    top: 500px;
    left: calc(var(--width-game) / 2 - var(--width-doctor) / 2);
    background-image: url("assets/oak_1.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.zombie {
    width: var(--width-zombie);
    aspect-ratio: 14/20;
    position: absolute;
    top: -50px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.score-menu {
    display: flex;
    width: 100%;
    height: fit-content;
    justify-content: space-around;
    position: absolute;
    top: 10px;
}

.score {
    font-size: x-large;
    color: white;
    user-select: none;
    background-image: url("assets/score.png");
    background-position: center center;
    background-size: cover;
    margin: 0;
    padding: 10px;
    width: 160px;
    height: 36px;
    align-items: center;
    display: flex;
    justify-content: center;
}

.bullet {
    width: 10px;
    aspect-ratio: 1/1;
    position: absolute;
    background-image: url("assets/bullet.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.super-bullet {
    width: 50px;
    aspect-ratio: 1/1;
    position: absolute;
    background-image: url("assets/super_bullet.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: spin 500ms infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


#super-bullets {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    background-image: url("assets/panel_sb.png");
    background-position: center center;
    background-size: cover;
    width: 130px;
    height: 50px;
}

#sb-counter {
    font-size: x-large;
    color: white;
    margin-right: 10px;
}

#deco-sb {
  width: 60px;
  aspect-ratio: 1/1;
  position: absolute;
  bottom: 170px;
  right: 180px;
  animation: spin 3s infinite linear;
}