
@keyframes birdFlap{
    0%{
        transform: rotate(-20deg);
    }
    50%{
        transform: rotate(-20deg);
    }
    60%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(85deg);
    }
}
@keyframes birdFall{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(85deg);
    }
}

@keyframes birdDead{
    0%{
        transform: none;
    }
    100%{
        transform: rotate(85deg);
    }
}

@font-face{
    font-family: 'Dark Souls';
    src: url('assets/OptimusPrinceps.ttf');
}

img.bird{
    position: relative;
    width: 75;
    left: 10vw;
    margin-bottom: 50vw !important;
}

button.score{
    z-index: 1;
    position: fixed;
    height: 40;
    width: auto;
    font-size: 20;
}

img.fall{
    animation: birdFall 0.7s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

img.deadFast{
    animation: birdDead 0s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

img.dead{
    animation: birdDead 0.35s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

img.flapping{
    animation: birdFlap 0.9s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

button.loseButton{
    position: fixed;
    z-index: 1;
    top: 34.7vh;
    width: 500;
    font-size: 80;
    background-color: red;
    font-family: 'Dark Souls';
}
#debug{
    margin-top: 40;
}
#debug2{
    margin-top: 80;
}

button.startButton{
    position: fixed;
    z-index: 1;
    top: 45vh;
    width: 300;
    font-size: 40;
    background-color: rgb(44, 212, 6);
    font-family:'Courier New', Courier, monospace;
    font-weight: bold;
    margin-left: 100;
}

.startButton:hover{
    background-color: rgb(34, 147, 9);
}

.centre{
    margin-inline: auto;
    max-width: fit-content;
    padding-right: 500;
}




div.score{
    z-index: 1;
}

.topPipe{
    position: fixed;
    top: -300;
    transform: rotate(180deg);
    z-index: 0;
    left: 500;
}
.bottomPipe{
    position: fixed;
    bottom: -300;
    z-index: 0;
    left: 500;
}

img.pipe{
    width: 120;
    height: auto;
    /* outline: auto; */
    position: fixed;
}




div.pipe{
    /* outline: auto; */
    position: relative;
    animation-name: pipeMove;
    animation-duration: 100s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    left: 0;
    z-index: 0;
}


button.gap{
    /* outline: auto; */
    outline-color: blue;
}

/* variable classes */
button.gap{
    height: 50;
}
/* end */

.hidden{
    display: none;
}
