:root {
  --su34: url(./images/su34.png) no-repeat left center;
  --mig29: url(./images/mig29.png) no-repeat left center;
  --mig31k: url(./images/mig31k.png) no-repeat left center;
}
body {
  margin: 0;
  padding: 0;
  cursor: url(./images/aim.png), text;
  overflow: hidden;
}

body:before {
  content: "";
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: url(./images/field-bg_dxo.jpg) repeat-x bottom left;
  background-size: 100%;
}
.radar {
  width: 240px;
  height: 450px;
  position: absolute;
  bottom: 50px;
  left: 0;
  z-index: 9999;
  background-color: #000;
}
.radar img {
  width: 220px;
  margin: 0;
  display: inline-block;
}
input + label {
  position: absolute;
  left: -100px;
  z-index: 1;
  width: 300px;
  height: 94px;
  display: block;
  z-index: 7;
  transform: translate(-50%, -50%);
  background-position: center;
  background-size: cover;
}

input:checked + label {
  opacity: 0;
  transition: all 0.5s;
  transform: rotate(120deg);
  transform-origin: 50%;
  z-index: -5;
  animation: planeDie 3s linear infinite;
}

.plane:nth-of-type(1) {
  animation: planeFly 4.5s linear 1s infinite;
  background: var(--su34);
}

.plane:nth-of-type(2) {
  animation: planeFly 5.5s linear 1s infinite;
  background: var(--mig29);
}

.plane:nth-of-type(3) {
  animation: planeFly 7s linear 1s infinite;
  background: var(--mig31k);
}

.plane:nth-of-type(4) {
  animation: planeFly 13s linear 1s infinite;
  background: var(--su34);
}

.plane:nth-of-type(5) {
  animation: planeFly 3.5s linear 1s infinite;
  background: var(--mig29);
}

.plane:nth-of-type(6) {
  animation: planeFly 8s linear 1s infinite;
  background: var(--mig31k);
}

.plane:nth-of-type(7) {
  animation: planeFly 10s linear 1s infinite;
  background: var(--su34);
}

.plane:nth-of-type(8) {
  animation: planeFly 9s linear 1s infinite;
  background: var(--mig29);
}

.plane:nth-of-type(9) {
  animation: planeFly 11s linear 1s infinite;
  background: var(--mig31k);
}

.plane:nth-of-type(10) {
  animation: planeFly 2.75s linear 1s infinite;
  background: var(--su34);
}

.score {
  position: absolute;
  bottom: 0;
  height: 50px;
  line-height: 50px;
  font-size: 30px;
  text-align: center;
  width: 100%;
  z-index: 2;
  background-color: #dadada;
}

.score:after {
  content: counter(score);
  display: inline-block;
}

.score:before {
  content: "Кількість збитих ворожих літаків: ";
  display: inline-block;
  margin-right: 10px;
}

input:checked {
  counter-increment: score;
}
@keyframes planeFly {
  0% {
    left: 150%;
    top: 15%;
  }
  25% {
    left: 95%;
    top: 5%;
  }
  50% {
    left: 65%;
    top: 15%;
  }
  75% {
    left: 15%;
    top: 5%;
  }
  100% {
    left: -70%;
    top: 70%;
  }
}
@keyframes planeDie {
  0% {
    left: -50%;
    top: 100%;
  }
}
