.leaves-for-caterpillars .card__img-wrapper {
  position: relative;
}
.leaves-for-caterpillars .card__img {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 96%;
}

.leaves-for-caterpillars {
  position: relative;
}
.text-confirm-answer {
  font-size: 15px;
  font-weight: 400;
  color: grey;
  position: absolute;
  top: 0;
  left: 19%;
  width: auto;
  transform: translate(0, 100%);
  opacity: 1;
  transition: all 250ms ease 0s;
  z-index: 9;
}

.text-confirm-answer.transparent {
  opacity: 0;
  transition: all 250ms;
}
.card__img .leaves-for-caterpillars-outline {
  width: 100%;
  height: 83.6vw;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
@media screen and (min-width: 436px) {
  .card__img .leaves-for-caterpillars-outline {
    height: 248px;
  }
}
.leaves-for-caterpillars .card__text {
  font-size: 18px;
  margin-bottom: 30px;
  text-align: start;
  width: 88%;
}

.grid-draw-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.5fr 0 1.5fr 0 1.5fr 0 1.5fr 0 1.5fr 0 1.5fr;
  grid-template-columns: repeat(6, 1.5fr);
  gap: 0;
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, 0%);
  width: 87vw;
  height: 87vw;
  outline: 5px solid gray;
}
@media screen and (min-width: 436px) {
  .grid-draw-container {
    width: 300px;
    height: 300px;
  }
}

.draw-cell {
  border: 0.5px solid silver;
  width: 14.5vw;
  height: 14.5vw;
  margin: 0;
  padding: 0;
  background-color: white;
}
@media screen and (min-width: 436px) {
  .draw-cell {
    width: 50px;
    height: 50px;
  }
}

.clickable {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 15px auto 10px auto;
}
@media screen and (min-width: 436px) {
  .buttons {
    margin: 40px auto 10px auto;
    /* margin-top: 30px; */
  }
}

.button {
  position: relative;
  width: 12vw;
  height: 12vw;
  margin: 10px;
  display: inline-block;
  cursor: pointer;
}

@media screen and (min-width: 436px) {
  .button {
    width: 38px;
    height: 38px;
  }
}

.button-border {
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  position: absolute;
  top: -9px;
  left: -9px;
  border-radius: 5px;
  pointer-events: none;
  display: none;
}

.button.selected .button-border {
  display: block;
}

.red-button {
  background-color: #e60000;
}
.red-button.selected .button-border {
  border: 3px solid #e60000;
}
.green-button {
  background-color: #34cc34;
}
.green-button.selected .button-border {
  border: 3px solid #34cc34;
}
.blue-button {
  background-color: #648dd4;
}
.blue-button.selected .button-border {
  border: 3px solid #648dd4;
}

.yellow-button {
  background-color: #ffc00c;
}
.yellow-button.selected .button-border {
  border: 3px solid #ffc00c;
}
.red {
  background-color: #e60000;
}

.green {
  background-color: #34cc34;
}

.blue {
  background-color: #648dd4;
}

.yellow {
  background-color: #ffc00c;
}
/* .main .leaves-for-caterpillars .card__img {
  width: 96%;
} */
.card__img-wrapper {
  width: 88vw;
  height: 88vw;
  position: relative;
  margin-top: 5vw;
}
@media screen and (min-width: 436px) {
  .card__img-wrapper {
    width: 300px;
    height: 300px;
    margin-top: 15px;
  }
}

.card__img .card__img-wrapper .leaf,
.card__img .card__img-wrapper .caterpillar {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 11vw;
  height: 11vw;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.card__img .card__img-wrapper .leaf {
  width: 10vw;
  height: 10vw;
}
@media screen and (min-width: 436px) {
  .card__img .card__img-wrapper .leaf,
  .card__img .card__img-wrapper .caterpillar {
    width: 38px;
    height: 38px;
  }
  .card__img .card__img-wrapper .leaf {
    width: 36px;
    height: 36px;
  }
}
.card__img .card__img-wrapper .leaf-1 {
  top: 74.6%;
  left: 25.6%;
}
.card__img .card__img-wrapper .leaf-2 {
  top: 74.6%;
  left: 42%;
}
.card__img .card__img-wrapper .leaf-3 {
  top: 74.6%;
  left: 58.6%;
}
.card__img .card__img-wrapper .caterpillar-1 {
  top: 41%;
  left: 42%;
}
.card__img .card__img-wrapper .caterpillar-2 {
  top: 41%;
  left: 58%;
}
.card__img .card__img-wrapper .caterpillar-3 {
  top: 58%;
  left: 42%;
}
.card__img .card__img-wrapper .caterpillar-4 {
  top: 58%;
  left: 58%;
}

.card__wrap-blocked .buttons {
  display: none;
}
