body {
  margin: 0;
}
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
.wrapper{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(-135deg, #c850c0, #4158d0);
  /* background: linear-gradient(375deg, #1cc7d0, #2ede98); */
  /* clip-path: circle(25px at calc(0% + 45px) 45px); */
  clip-path: circle(25px at calc(100% - 45px) 45px);
  transition: all 0.3s ease-in-out;
  z-index: 4;
}
#active:checked ~ .wrapper{
  clip-path: circle(75%);
}
.menu-btn{
  position: absolute;
  z-index: 5;
  right: 20px;
  /* left: 20px; */
  top: 20px;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(-135deg, #c850c0, #4158d0);
  /* background: linear-gradient(375deg, #1cc7d0, #2ede98); */
  transition: all 0.3s ease-in-out;

}
#active:checked ~ .menu-btn{
  background: #fff;
  color: #4158d0;
}
#active:checked ~ .menu-btn i:before{
  content: "\f00d";
}
.wrapper ul{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: center;
}
.wrapper ul li{
  margin: 15px 0;
}
.wrapper ul li a{
  color: none;
  text-decoration: none;
  font-size: 30px;
  font-weight: 500;
  padding: 5px 30px;
  color: #fff;
  position: relative;
  line-height: 50px;
  transition: all 0.3s ease;
}
.wrapper ul li a:after{
  position: absolute;
  content: "";
  background: #fff;
  width: 100%;
  height: 50px;
  left: 0;
  border-radius: 50px;
  transform: scaleY(0);
  z-index: -1;
  transition: transform 0.3s ease;
}
.wrapper ul li a:hover:after{
  transform: scaleY(1);
}
.wrapper ul li a:hover{
  color: #4158d0;
}
input[type="checkbox"]{
  display: none;
}
.content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  text-align: center;
  width: 100%;
  color: #202020;
}
.content .title{
  font-size: 40px;
  font-weight: 700;
}
.content p{
  font-size: 35px;
  font-weight: 600;
}
.toasty {
  position: fixed;
  width: 150px;
  height: 150px;
  bottom: -12px;
  right: -200px;
  transition: all 0.2s ease-in-out;
}
.toasty img {
  width: 150px;
}

.finish-text img {
  position: absolute;
  width: 400px;
  top: 50%;
  left: 50%;
  margin-top: 100px;
  margin-left: -200px;
}

.toast-active {
  right: -12px;
}

.level {
  background: url(https://i.ytimg.com/vi/bjqa3yw_OwQ/maxresdefault.jpg);
  width: 100%;
  position: absolute;
  height: 100%;
  background-size: cover;
}

.player {
  margin: 30px;
  bottom: 0;
  position: absolute;
}

.life-bar {
  position: absolute;
  width: 90%;
  margin: 5%;
  height: 30px;
}
.life-bar .bar {
  position: absolute;
  width: 45%;
  height: 28px;
  border: solid 1px #fff;
  background: rgba(0, 0, 255, 0.6);
}
.life-bar .bar .player-name {
  position: absolute;
  padding: 5px;
  color: #fff;
}
.life-bar .bar .speed {
  position: absolute;
  width: 20%;
  height: 10px;
  bottom: -12px;
  background: rgba(0, 255, 0, 0.6);
  border: 1px solid #fff;
}
.life-bar .bar-p1:before {
  position: absolute;
  content: "";
  background: rgba(255, 0, 0, 0.8);
  width: 23%;
  height: 28px;
  right: 0;
}
.life-bar .bar-p2 {
  left: 55%;
}
.life-bar .bar-p2 .player-name {
  right: 0;
}
.life-bar .bar-p2 .speed {
  right: 0;
}
.life-bar .bar-p2:before {
  position: absolute;
  content: "";
  background: rgba(255, 0, 0, 0.8);
  width: 80%;
  height: 28px;
}

.p1 {
  left: 10%;
}

.p2 {
  right: 10%;
  -webkit-filter: hue-rotate(90deg) contrast(1.1);
  filter: hue-rotate(90deg) contrast(1.1);
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

.versus-screen {
  position: fixed;
  width: 100%;
  height: 100%;
}
.versus-screen .versus {
  transition: all 0.2s ease-in-out;
}
.versus-screen .versus img {
  height: 60%;
  position: fixed;
  bottom: 0;
}
.versus-screen .versus-p1 img {
  animation: versus-animation-p1 1.5s;
}
.versus-screen .versus-p2 img {
  animation: versus-animation-p2 1.5s;
  right: 0;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

.game {
  position: absolute;
  background: #000;
  width: 100%;
  height: 100%;
  transition: all 5s ease-in-out;
}

.game-started {
  background: transparent;
}

@-webkit-keyframes versus-animation-p2 {
  0% {
    right: -500px;
  }
  100% {
    right: 0;
  }
}
@keyframes versus-animation-p2 {
  0% {
    right: -500px;
  }
  100% {
    right: 0;
  }
}
@-webkit-keyframes versus-animation-p1 {
  0% {
    left: -500px;
  }
  100% {
    left: 0;
  }
}
@keyframes versus-animation-p1 {
  0% {
    left: -500px;
  }
  100% {
    left: 0;
  }
}