.game {
  width: 600px;
  height: 200px;
  border: 1px solid black;
  margin: auto;
  background-color: white;
  margin-top: 20px;
  margin-left: 60px;
}

#dino {
  width: 50px;
  height: 50px;
  background-image: url("dino-removebg-preview.png");
  background-size: 50px 50px;
  position: relative;
  top: 150px;
}

.jump {
  animation: jump 0.3s linear;
}

@keyframes jump {
  0% {
    top: 150px;
  }

  30% {
    top: 130px;
  }

  50% {
    top: 80px;
  }

  80% {
    top: 130px;
  }

  100% {
    top: 150px;
  }
}

#cactus {
  width: 20px;
  height: 40px;
  position: relative;
  top: 110px;
  left: 580px;
  background-image: url("cac-removebg-preview.png");
  background-size: 20px 40px;
  animation: block 2s infinite linear ;
}

@keyframes block {
  0% {
    left: 580px;
  }

  100% {
    left: -20px;
  }
}
#ob{
  border: black solid 2px;
}
#dd{
  position: relative;
  height: 80px;
  width: 600px;
  margin-left: 30%;
}
.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.popup-container:target {
  display: block;
}
.close-link {
  position: absolute;
  top: 10px;
  right: 10px;
  text-decoration: none;
  color: black;
}
#popup{
  position: absolute;
  margin-top: 200px;
  width: 50%;
  height: auto;
  background: linear-gradient(#e66465, rgb(100, 222, 106));
  border-radius: 20px;
  animation: fade 2s ;
  
}
@keyframes fade {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
.aa{
 
  width: 20px;
}
.game{
  position: relative;
  border-radius: 20px;
}
.oo{
  display: block;
  border-radius: 20px;
  text-align: center;
  width: 180px;
  padding: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: rgb(195, 66, 66);
  margin-left: 35%;
  border: 1px solid;
  margin-top: 10px;
}
.sc{
  background-color: white;
  display: flex;
  position: absolute;
  margin-left: 73.5%;
}
#scc{
  position: relative;
  left: 10px;
}
.sc input{
  width: 50px;
  margin-left:20px ;
}
#numberInput{
  background-color: white;
  border-radius: 20px;
  text-align: center;
}
.popup-container h2{
  color: black;

}
.rt{
  display: flex;
  background-color: rgb(195, 66, 66);
  border-radius: 10px;
  width: 47%;
  margin-left: 24.5%;
  padding-left: 20px;
}
html {
  height:100%;
}

body {
  margin:0;
}

.bg7 {
  animation:slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, rgb(130, 20, 3) 50%, rgb(3, 41, 5) 50%);
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}

.bg0 {
  animation-direction:alternate-reverse;
  animation-duration:4s;
}

.bg1 {
  animation-duration:5s;
}

.content {
  background-color:rgba(255,255,255,.8);
  border-radius:.25em;
  box-shadow:0 0 .25em rgba(0,0,0,.25);
  box-sizing:border-box;
  left:50%;
  padding:10vmin;
  position:fixed;
  text-align:center;
  top:50%;
  transform:translate(-50%, -50%);
}

h1 {
  font-family:monospace;
}

@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}
