body {
    margin: 0;
    font-family: monospace;
}

body * {
    user-select: none;
}

#board {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
}

#bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url(images/board-bg.jpg) no-repeat center center fixed;
    background-size: cover;
}

#outercircle {
    pointer-events: none;
    position: relative;
    border: 10px solid rgba(255, 255, 255, 0.5);
    width: 70px;
    height: 70px;
    border-radius: 60px;
    z-index: 2;
}

#innercircle {
    background-color: red;
    position: absolute;
    top: 25px;
    left: 25px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
}

#counter {
    position: absolute;
    top: 0;
    right: 1em;
    font-size: 4vw;
    color: white;
}

.zombie {
    position: absolute;
    width: 200px;
    overflow: hidden;
    animation-name: zombieMovement;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    z-index: 1;
}

@keyframes zombieMovement {
    0% {left: 110%;}
    100% {left: -300px;}
}

.zombiebody {
    pointer-events: none;
    animation-name: zombieAnimation;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
}
      
@keyframes zombieAnimation {
    0%, 9.999% {transform: translateX(0px);}
    10%, 19.999% {transform: translateX(-200px);}
    20%, 29.999%  {transform: translateX(-400px);}
    30%, 39.999%  {transform: translateX(-600px);}
    40%, 49.999%  {transform: translateX(-800px);}
    50%, 59.999%  {transform: translateX(-1000px);}
    60%, 69.999%  {transform: translateX(-1200px);}
    70%, 79.999%  {transform: translateX(-1400px);}
    80%, 89.999%  {transform: translateX(-1600px);}
    90%, 99.999%  {transform: translateX(-1800px);}
}

#gameover {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgb(90, 10, 43);
    text-align: center;
    border-radius: 10px;
    padding: 3em 5em;
    position: absolute;
    z-index: 3;
}

#restart {
    cursor: pointer;
    padding: 1em;
    border-radius: 10px;
    border: 0px;
}
