.congruent-parts .card__img-wrapper {
  position: relative;
}
.congruent-parts .card__img {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.congruent-parts {
  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 .congruent-parts-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 .congruent-parts-outline {
    height: 248px;
  }
}
.congruent-parts .card__text {
  margin-bottom: 20px;
  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 0 1.5fr 0
    1.5fr;
  grid-template-columns: repeat(8, 1.5fr);
  gap: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin-left: -0.2px;
}
@media screen and (min-width: 436px) {
  .grid-draw-container {
    margin-left: unset;
  }
}

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

.clickable {
  cursor: pointer;
}

.buttons {
  margin-top: 17px;
  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;
}
@media screen and (min-width: 436px) {
  .buttons {
    margin-top: 30px;
  }
}

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

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

.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;
}
