
  @charset "UTF-8";

html {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  cursor: url(../img/aim.png), text;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
}

body:before {
  content: "";
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: url(../img/photo_2026-02-07_17-18-30.jpg)
    no-repeat top center;
  overflow: hidden;
  background-size: cover;
}

input + label {
  position: absolute;
  left: -100px;
  z-index: 1;
  width: 10rem;
  height: 8rem;
  display: block;
  z-index: 7;
  transform: translate(-50%, -50%);
  background: url(../img/tar.png) no-repeat left center;
  background-position: center;
  background-size: cover;
}

input:checked {
  counter-increment: score;
}

input:checked + label {
  transition: all 1s;
  margin-top: 600px;
  transform: rotate(30deg);
  transform-origin: 50%;
  z-index: -5;
  animation: utkaDie 1 linear infinite;
}


.duck:nth-of-type(1) {
  animation: utkaFly 5s linear 1s infinite;
  animation-direction: alternate;
}

.duck:nth-of-type(2) {
  animation: utkaFly 5s linear 2s infinite;
  animation-direction: alternate;
}

.duck:nth-of-type(3) {
  animation: utkaFly 5s linear 3s infinite;
  animation-direction: alternate;
}

.duck:nth-of-type(4) {
  animation: utkaFly 5s linear 4s infinite;
  animation-direction: alternate;
}

.duck:nth-of-type(5) {
  animation: utkaFly 5s linear 5s infinite;
  animation-direction: alternate;
}
.duck:nth-of-type(6) {
  animation: utkaFly 5s linear 6s infinite;
  animation-direction: alternate;
}
.duck:nth-of-type(7) {
  animation: utkaFly 5s linear 7s infinite;
  animation-direction: alternate;
}
.duck:nth-of-type(8) {
  animation: utkaFly 5s linear 8s infinite;
  animation-direction: alternate;
}


@keyframes utkaFly {
  0% {
    left: 150%;
    top: 10%;
  }
  25% {
    left: 80%;
    top: 50%;
  }
  50% {
    left: 50%;
    top: 30%;
  }
  75% {
    left: 30%;
    top: 40%;
  }
  100% {
    left: -50%;
    top: 10%;
  }
}

@keyframes utkaDie {
  0% {
    left: -50%;
    top: 100%;
  }
}

.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: "Score: ";
  display: inline-block;
  margin-right: 10px;
}

.win-message {
  color: rgb(230, 10, 10);
  position: fixed;
  width: 60vw;
  height: 20vw;
  left: 20vw;
  top: 10vw;
   font-size: 48px;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}


input:checked
  + label
  + input:checked
  + label
  + input:checked
  + label
  + input:checked
  + label
  + input:checked
  + label
  + input:checked
  + label
  + input:checked
  + label
  + input:checked
  ~ .win-message {
  display: flex !important;
}
