@font-face {
    font-family: bird;
    src: url(flappy-bird-font.ttf);
}

@font-face {
    font-family: pixel;
    src: url(font.TTF);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #caeff4;
}

.container{
    height: 630px;
    width: 30%;
    border: 8px solid rgb(0, 0, 0, 1);
    margin: 30px auto;
    position: relative;
    background-color: #71C5CF;
    overflow: hidden;
}

.character{
    height: 35px;
    width: 45px;
    position: absolute;
    z-index: 1;
    top: 20%;
    left: 50px;
    z-index: 20;
    rotate: -10deg;
}

.hole{
    height: 200px;
    width: 50px;
    background-color: #71C5CF;
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    position: absolute;
    animation: anime 3s linear infinite;
    z-index: 5;
}

.hole::after{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    bottom: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);

}

.hole::before{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    top: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);
}

.hole2{
    height: 200px;
    width: 50px;
    background-color: #71C5CF;
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    position: absolute;
    animation: anime3 3s linear infinite;
    animation-delay: 4s;
    z-index: 5;
    right: -100px;
}

.hole2::after{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    bottom: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);

}

.hole2::before{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    top: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);
}

.hole3{
    height: 200px;
    width: 50px;
    background-color: #71C5CF;
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    position: absolute;
    animation: anime2 3s linear infinite;
    animation-delay: 2s;
    z-index: 5;
    right: -100px;
}

.hole3::after{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    bottom: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);

}

.hole3::before{
    content: "";
    position: absolute;
    height: 40px;
    width: 70px;
    background-color: #00A800;
    top: -40px;
    left: -25%;
    border: 3px solid black;
    background: linear-gradient(to left,#00A800, #4ceb4c);
}

.block{
    height: 100%;
    width: 50px;
    background-color: #00A800;
    border-left: 3px solid black;
    border-right: 3px solid black;
    position: absolute;
    animation: anime 3s linear infinite;
    z-index: 5;
    background: linear-gradient(to left,#00A800, #4ceb4c);
}

@keyframes anime {
    0%{
        right: -150px;
    }
    100%{
        right: 950px;
    }
}

.block2{
    animation: anime2 3s linear infinite;
    animation-delay: 2s;
    right: -100px;
}

@keyframes anime2 {
    0%{
        right: -150px;
    }
    100%{
        right: 950px;
    }
}

.block3{
    animation: anime3 3s linear infinite;
    animation-delay: 4s;
    right: -100px;
}

@keyframes anime3 {
    0%{
        right: -150px;
    }
    100%{
        right: 950px;
    }
}


.bird{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    position: absolute;
    z-index: 1;
}

.game-wrapper{
    display: block;
}

.play-menu img{
    height: 80px;
    width: 250px;
    scale: 1.4;
    position: absolute;
    top: 60px;
    left: 105px;
}

.tap-container img{
    height: 140px;
    width: 155px;
    position: absolute;
    top: 170px;
    left: 160px;
    scale: 0.999;
}

.button{
    position: absolute;
    height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 150px;
    gap: 10px;
}

button{
    height: 50px;
    width: 200px;
    border: 4px solid #000000;
    background-color: #00A800;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    opacity: 0.8;
    cursor: pointer;
    color: whitesmoke;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

button p{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
}

button::before{
    content: "";
    position: absolute;
    height: 200px;
    width: 200px;
    rotate: 45deg;
    background-color: #04d104;
    bottom: -400%;
    right: -100%;
    transition: 0.2s ease-in-out;
    z-index: 1000;
}

button:hover::before{
    bottom: -140%;
    right: 0;
}

.game-over{
    display: none;
}

.game-over img{
    height: 70px;
    width: 280px;
    scale: 1.3;
    position: absolute;
    top: 60px;
    left: 90px;
}

h1{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 20px;
    color: rgb(0, 0, 0, 0.8);
    opacity: 1;
}

span{
    position: absolute;
    right: 10px;
}

.mainScore{
    font-family: bird;
    font-size: 40px;
    letter-spacing: 0;
    opacity: 1;
    color: #000;
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translate(-50%);
    z-index: 1000000;
    background-color: #fff;
}

.sec{
    font-size: 20px;
    left: 10px;
    position: relative;
}

.board{
    height: 200px;
    width: 150px;
    background-color: #DED997;
    position: relative;
    top: 10px;
    left: 10px;
    border: 6px solid rgb(0, 0, 0, 0.8);
    padding-left: 10px;
    padding-top: 5px;
}

a{
    text-decoration: none;
    cursor: pointer;
}

.board2{
    position: absolute;
    left: inherit;
    right: 10px;
    top: 10px;
}

.bgImage{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
}

.dead img{
    height: 150px;
    width: 100px;
    position: absolute;
    top: 150px;
    left: 175px;
}


.other-buttons{
    position: absolute;
    bottom: 10px;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.title{
    text-align: center;
    top: 75px;
    position: absolute;
    font-weight: 900;
    font-family: pixel;
}

.coins{
    background-color: #1dbe30;
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: 1;
}

.coins::before{
    background-color: #21d335;
}

.coins p{
    padding-left: 30px;
}

.high{
    left: 10px;
}

#cImg{
    height: 80px;
    width: 85px;
    opacity: 1;
    position: absolute;
    top: -8px;
}

#nextBtn{
    height: 70px;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -60px;
    left: 280px;
    scale: 1;
}

#nextBtn2{
    height: 70px;
    width: 70px;
    top: 50px;
    left: 0px;
    scale: 1;
}

#nextImg{
    opacity: 1;
    height: 100px;
    width: 100px;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 15000;
}

#nextImg2{
    opacity: 1;
    height: 100px;
    width: 100px;
    rotate: 180deg;
    position: absolute;
    left: -40px;
    top: -40px;
    z-index: 15000;
}

#nextBtn::after, #nextBtn2::after{
    content: "";
    position: absolute;
    height: 100px;
    width: 100%;
    background-color: #00A800;
    top: 0px;
    left: 0px;
    z-index: 10;
}

.hole{
    display: flex;
    align-items: center;
    justify-content: center;
}


.hole img{
    height: 40px;
    width: 30px;
}

.swiper {
    width: 350px;
    height: 110px;
    position: absolute;
    top: 200px;
    scale: 0.7;
    left: 50px;
  }

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}


.coin-score{
    height: 10px;
    width: 10px;
    display: flex;
    font-family: bird;
    font-size: 25px;
    position: absolute;
    z-index: 100000000;
    background-color: transparent;
    align-items: center;
    padding: 27px 0 0 0px;
    gap: 5px;
    scale: 0.8;
    opacity: 1;
    left: 40px;
}

.coin-scoreImg{
    height: 50px;
    width: 40px;
    opacity: 0.9;
    scale: 0.7;
    position: absolute;
    z-index: 100000000000;
}

#hImg{
    height: 150px;
    width: 150px;
    object-fit: cover;
    opacity: 1;
    position: absolute;
    top: -28px;
    left: -20px;
}

.highScoreImg{
    position: absolute;
    height: 100px;
    width: 100px;
    right: 17px;
    top: -20px;
    scale: 0.6;
    opacity: 1;
}

.high-score{
    opacity: 1;
    height: 10px;
    width: 10px;
    display: flex;
    font-family: bird;
    font-size: 25px;
    position: absolute;
    z-index: 100000000;
    background-color: transparent;
    align-items: center;
    padding: 27px 0 0 0px;
    gap: 5px;
    scale: 0.8;
    opacity: 1;
    right: 15px;
    top: 5px;
    font-family: bird; 
    padding-right: 30px;
    z-index: 100;   
}

