@-ms-viewport {
  width: device-width;
  height: auto;
}

.icon-flag-img {
  height: auto;
  width: auto;
  max-width: 25px;
  max-height: 25px;
}

.hangman-responsive {
  max-width: 90%;
  height: auto;
}

.minion-responsive {
  max-width: 50%;
  height: auto;
}

.parent-img {
  position: relative;
  width: 100%;
  height: auto;
}

.child-img {
  position: absolute;
  top: 17.5%;
  left: 15.5%;
  width: 30%;
  height: auto;
}

.body-img {
  position: absolute;
  top: 15.5%;
  left: 8%;
  width: 40%;
  height: auto;
}

.box {
  width: 50%;
  height: 48%;
  position: absolute;
  top: 10%;
  left: 15%;
  opacity: 0.95;
}

.overlay {
  z-index: 9;
}

.box-lose {
  border-color: #876605;
  background-color: #ffc107;
}

.box-win {
  border-color: #033785;
  background-color: #0d6efd;
}

.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

/* Media queries for responsiveness on different devices */

@media (max-width: 768px) {

  /* Tablet and mobile view */
  .box {
    width: 80%;
    height: auto;
    top: 5%;
    left: 10%;
  }

  .child-img,
  .body-img {
    width: 60%;
    /* Make elements smaller for mobile */
  }
}

@media (max-width: 480px) {

  /* Small mobile view */
  .box {
    width: 90%;
    height: auto;
    top: 5%;
    left: 5%;
  }

  .child-img,
  .body-img {
    width: 70%;
    /* Further reduce for smaller screens */
  }
}