@font-face {
    font-family: 'pixely-font';
    src: url('../fonts/ARCADECLASSIC.TTF');
    /* Dit is voor mijn pixel font in de game */
}
body {
    font-family: 'pixely-font';
    /* letter-spacing: 2px; */
    color: #ffdb66;
}
#aapje {
    position: absolute;
    left: 40%;
    width: 20%;
    top: 0px;
    height: 120px;
    background-image: url("../images/aapje-sheet.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation: play .8s steps(2) infinite;
    display: none;
}

#banaan {
    position: relative;
    width: 16%;
    height: 50px;
    top: 120px;
    background-image: url("../images/banaan.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#banaan2 {
    position: relative;
    width: 16%;
    height: 50px;
    top: 120px;
    background-image: url("../images/banaan.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    visibility: hidden;
    animation: banaan2-visible 1s linear 1s forwards;
}
/* De banaan was links gepostioneerd, dus heb ik een mini animatie gedaan dat het eers hidden is en dan visible op de map komt */
@keyframes banaan2-visible {
    from {
        visibility: hidden;
    }

    to {
        visibility: visible;
    }
}

#health {
    position: absolute;
    height: 164px;
    width: 40px;
    margin-left: 1%;
    margin-top: 1%;
    background-image: url("../images/hartjes-sheet.svg");
    background-repeat: no-repeat;
    background-size: 90%;
}

.score {
    position: absolute;
    height: 100px;
    width: 10%;
    right: 0%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#final-score{
    height: 100px;
    width: 60%;
    flex-direction: row;
    justify-content: space-around;
    right: 24%;
}
#final-score #score-final{
    font-size: 6em;
}
#final-score #banaan-image{
    width: 50%;
}
#score-text{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}
#banaan-image{
    height: 100%;
    width: 100%;
    background-image: url("../images/banaan.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}
.start-game-overlay{
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.instructions{
    position: absolute;
    border: 1px solid;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: first baseline;
    align-items: center;
    visibility: hidden;
}

#instructions-text{
    font-size: 2em;
    width: 80%;
    height: 50%;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
#instructions-text h1{
    font-size: 2em;
    margin-left: -6%;
    margin-bottom: 20px;
}
.restart-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}
.restart-overlay h1{
font-size: 6em;
margin-bottom: 300px;
}
.aap-scene{
    position: absolute;
    border: 1px solid;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: first baseline;
    align-items: center;
    background-image: url("../images/scene.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: none;
}
#title-game{
    text-align: center;
    padding: 20px;
    width: 85%;
    border: 6px solid;
    background: #000;
    font-size: 5em;
    animation: title-game-animation 1s linear infinite;
}
/* De titel van het spel dat groter en kleiner wordt */
@keyframes title-game-animation {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.8);
    }
}
#start-button, #restart-button, #quit-button{
    border: none;
    background: none;
    font-family: 'pixely-font';
    padding: 10px;
    width: 50%;
    color: #ffdb66;
    cursor: pointer;
    font-size: 30px;
    transition: all 0.3s ease-in-out;
}
#start-button{
    margin-top: 100px;
}
#restart-button{
    position: relative;
    top: -50px;
}
#play-button{
    border: none;
    background: none;
    padding: 10px;
    width: 50%;
    color: #ffdb66;
    cursor: pointer;
    font-size: 30px;
    bottom: 200px;
    transition: all 0.3s ease-in-out;
}

#start-button:hover, #restart-button:hover, #quit-button:hover, #play-button:hover{
    color: #ffdb66;
    background: rgba(0,0,0,0.9);
    font-size: 35px;
}
#grote-aap{
    position: absolute;
    bottom: 0;
    left: -250px;
    width: 249px;
    height: 161px;
    background-image: url("../images/big-aapje.png");
    background-repeat: no-repeat;
    background-size: cover;
}
/* Die grote aapje die van links naar rechts gaat */
@keyframes aapje-stelen {
    0% {
        left: -250px;
    }

    100% {
        left: 500px;
    }
}
#gsm{
    position: absolute;
    left: 192px;
    bottom: 74px;
    width: 31px;
    height: 24px;
    background-image: url("../images/half-gsm.png");
    background-repeat: no-repeat;
    background-size: cover;
}
/* animatie om het te verdwijen */
@keyframes gsm-weg {
    0% {
        visibility: visible;
    }

    100% {
        visibility: hidden;
    }
}
#mens {
    position: absolute;
    left: 40%;
    top: 655px;
    width: 20%;
    height: 120px;
    background-image: url("../images/mens-sheet.svg");
    background-repeat: no-repeat;
    background-size: cover;
    animation: play .8s steps(2) infinite;
    display: none;
}
/* voor de chaining animatie om ze te laten lopen */
@keyframes play {
    from {
        background-position: 0px;
    }

    to {
        background-position: -200px;
    }
}
.all-game-elements{
    display: none;
}