* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
}

body {
    display: grid;
    place-items: center;
    height: 100vh;
}

.game-container {
    width: 900px;
    height: 500px;
    background-color: antiquewhite;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #c9dbe9;
    /* background: -webkit-linear-gradient(top, #99b3c7 0%, #c9dbe9 100%);
	background: -linear-gradient(top, #99b3c7 0%, #c9dbe9 100%);
	background: -moz-linear-gradient(top, #99b3c7 0%, #c9dbe9 100%); */

    background: -webkit-linear-gradient(top, #c9dbe9 0%, #99b3c7 100%);
    background: -linear-gradient(top, #c9dbe9 0%, #99b3c7 100%);
    background: -moz-linear-gradient(top, #c9dbe9 0%, #99b3c7 100%);
}

.point-objects {
    width: 75px;
    height: 75px;
    position: absolute;
    right: 100%;
    bottom: 150px;
    z-index: 1;
}

.game-hero {
    /* width: 143px; */
    /* height: 205px; */
    width: 200px;
    height: 102px;
    position: absolute;
    left: 150px;
    bottom: 110px;
    z-index: 2;
    /* background-color: black; */
    /* background: url("./animation2.gif");
    background-position:0 5px;*/

    background-size: 100;
    /* transition: 2s; */
    background: url("./puppy-sprite-png.png");
    animation: sprite 1s steps(8) infinite;
}

.game-hero:after {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    filter: blur(5px);
    width: 170px;
    height: 10px;
    content: '';
    display: block;
    bottom: -10px;
    position: absolute;
    left: 15px;
    transition: 0.05s;
}

.game-hero-jump.game-hero:after {
    /* bottom: -130px; */
    transform: scale(.5);
    opacity: 0;
}

.game-hero-jump {
    background: url("./puppy-jump-png.png") !important;
}

@keyframes sprite {
    to {
        background-position: -3200px;
    }
}

.terminal {
    width: 200px;
    height: 103px;
    background: url("./puppy-sprite-svg.svg");
    animation: sprite 1.5s steps(8) infinite;
}

.game-hero img {
    width: 100%;
}

.square-points {
    /* background-color: red; */
    background: url("./ball-point.png") center no-repeat;
}

.rounded-square-points {
    /* background-color: green; */
    /* border-radius: 20px; */
    background: url("./food-point.png") center no-repeat;
}

.circle-points {
    /* background-color: blue;
    border-radius: 100vmax; */
    background: url("./bone-point.png") center no-repeat;
}



.game-base-floor {
    width: 100%;
    position: absolute;
    height: 130px;
    bottom: 0;
    left: 0;
    background: url("./animation-land.png");
    background-repeat: repeat;
    background-position: 0 0;
    /* background-size: auto 100%; */
    /*adjust s value for speed*/
    animation: animatedBackground 1.75s linear infinite;
}

@keyframes animatedBackground {
    100% {
        background-position: -900px 0px;
    }
}

.jump-up {
    background-color: aquamarine;
    animation: jumpUp 0.5s;
    animation-timing-function: cubic-bezier(.5, 0.05, 1, .5);
}

@keyframes jumpUp {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -200px, 0);
    }
}

.jump-down {
    background-color: rgb(176, 194, 16);
    animation: jumpUp 0.5s;
    animation-timing-function: cubic-bezier(.5, 0.05, 1, .5);
}

@keyframes jumpDown {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}



.blocker {
    width: 75px;
    height: 75px;
    background-color: rgb(196, 180, 211);
    position: absolute;
    bottom: 100px;
    right: 100%;
    z-index: 1;
}

.blocker-1 {
    /* background-color: blueviolet; */
    width: 70px;
    height: 100px;
    background: url('./wood-blocker.png') center bottom no-repeat;
}

.blocker-2 {
    height: 90px;
    width: 120px;
    /* background-color: rgb(15, 158, 115); */
    background: url('./rock.png') center bottom no-repeat;
}

.blocker-3 {
    bottom: 0px;
    /* background-color: rgb(233, 157, 44); */

    z-index: 1;

    height: 140px;
    z-index: 1;
    width: 120px;
    background: #a5bdcf;
}

.game-over-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    display: none;
}

.game-over {
    /* width: 80%;
    height: 70%; */
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, .5) 0 0 5px;
    position: relative;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
    padding: 40px 80px;
    border-radius: 1vmax;
}

.points-count-game-over {
    width: 100px;
    height: 100px;
    border: red 2px solid;
    border-radius: 100vmax;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    line-height: 1;
    font-weight: bold;
}

.play-again {
    background-color: rgb(168, 47, 93);
    color: #fff;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 10px 20px;
    cursor: pointer;
}

.game-stats {
    display: flex;
}

.points-count {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    display: inline-flex;
    margin-left: auto;
}

.pause-game {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    display: inline-flex;
}

.play-game {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    display: inline-flex;
}


/*Time to finalise the cloud shape*/
.cloud {
    width: 200px;
    height: 60px;
    background: #fff;

    border-radius: 200px;
    -moz-border-radius: 200px;
    -webkit-border-radius: 200px;

    position: relative;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: #fff;
    width: 200px;
    height: 80px;
    position: absolute;
    top: -15px;
    left: 10px;

    border-radius: 100px;
    -moz-border-radius: 100px;
    -webkit-border-radius: 100px;

    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
    -moz-transform: rotate(30deg);
}

.cloud:after {
    width: 120px;
    height: 120px;
    top: -55px;
    left: auto;
    right: 15px;
}

/*Time to animate*/
.x1 {
    -webkit-animation: moveclouds 15s linear infinite;
    -moz-animation: moveclouds 15s linear infinite;
    -o-animation: moveclouds 15s linear infinite;
    animation: moveclouds 15s linear infinite;
}

/*variable speed, opacity, and position of clouds for realistic effect*/
.x2 {
    left: 200px;

    -webkit-transform: scale(0.4);
    -moz-transform: scale(0.4);
    transform: scale(0.4);
    opacity: 0.6;
    /*opacity proportional to the size*/

    /*Speed will also be proportional to the size and opacity*/
    /*More the speed. Less the time in 's' = seconds*/
    -webkit-animation: moveclouds 25s linear infinite;
    -moz-animation: moveclouds 25s linear infinite;
    -o-animation: moveclouds 25s linear infinite;
    animation: moveclouds 25s linear infinite;
}

.x3 {
    left: -250px;
    top: -200px;

    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    transform: scale(0.6);
    opacity: 0.8;
    /*opacity proportional to the size*/

    -webkit-animation: moveclouds 20s linear infinite;
    -moz-animation: moveclouds 20s linear infinite;
    -o-animation: moveclouds 20s linear infinite;
    animation: moveclouds 20s linear infinite;
}

.x4 {
    left: 470px;
    top: -250px;

    -webkit-transform: scale(0.65);
    -moz-transform: scale(0.65);
    transform: scale(0.65);
    opacity: 0.75;
    /*opacity proportional to the size*/

    -webkit-animation: moveclouds 18s linear infinite;
    -moz-animation: moveclouds 18s linear infinite;
    -o-animation: moveclouds 18s linear infinite;
    animation: moveclouds 18s linear infinite;
}

.x5 {
    left: -150px;
    top: -150px;

    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0.8;
    /*opacity proportional to the size*/

    -webkit-animation: moveclouds 20s linear infinite;
    -moz-animation: moveclouds 20s linear infinite;
    -o-animation: moveclouds 20s linear infinite;
    animation: moveclouds 20s linear infinite;
}

@-webkit-keyframes moveclouds {
    0% {
        margin-left: 1000px;
    }

    100% {
        margin-left: -1000px;
    }
}

@-moz-keyframes moveclouds {
    0% {
        margin-left: 1000px;
    }

    100% {
        margin-left: -1000px;
    }
}

@-o-keyframes moveclouds {
    0% {
        margin-left: 1000px;
    }

    100% {
        margin-left: -1000px;
    }
}

@keyframes moveclouds {
    0% {
        margin-left: 1000px;
    }

    100% {
        margin-left: -1000px;
    }
}