.modal-header {
  font-family: SodaFont;
  font-size: 32px;
  color: #ffffff;
  background-color: #005EAC;
  border-bottom: none;
}

.modal-body,
.modal-body a {
  text-align: center;
  color: #0165ae;
  background-color: #00b4e6;
  font-size: 18px !important;
}

.modal .btn-close {
  --bs-btn-close-opacity: 1;
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");

  background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
}

/* ------------------------------ *
 *              BLOCK             *
 * ------------------------------ */

.modal-body__title,
.modal-body__subtitle {
  font-family: SodaFont;
  color: #fff;
  text-transform: uppercase;
  font-size: 64px;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.modal-body__subtitle {
  font-size: 32px;
  padding-bottom: 20px;
}

.memory-game-container {
  padding: 20px;
  color: #fff;

  background-image: url(http://postoboncombossabores.kinsta.cloud/wp-content/uploads/2024/07/sabores-postobon-trama-deskotp.webp), linear-gradient(180deg, #81cbf2 0%, rgba(112, 202, 228, 1) 20%, #00b3e6 20%, #00b3e6 40%, #1688cb 40%, #1280c5 59%, #1688cb 59%, #005eac 100%) !important;
}

.memory-game-form {
  text-align: center;
  width: 50%;
  margin: 0 auto;
  line-height: normal;
}

.memory-game-intro,
.memory-game-board,
.memory-game-congratulations {
  margin: 20px 0;
}

.memory-game-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 20px;
}

.memory-card {
  width: 140px;
  height: 160px;
  margin: 10px;
  position: relative;
  perspective: 1000px;
  background-color: transparent;
  cursor: pointer;
}

.memory-game-board {
  background-color: rgb(255 255 255 / 60%);
  border-radius: 6px;
  max-width: 900px;
  margin: 25px auto;
}

/* ------------------------------ *
 *            ELEMENTS            *
 * ------------------------------ */

.memory-game-board__title {
  text-align: center;
  padding-top: 1.5rem;
  color: #044984;
}

.memory-game-form__title {
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  font-size: 24px;
  margin-bottom: 10px !important;
}

.memory-game-form__email {
  height: 45px !important;
  width: 100% !important;
  border-radius: 8px !important;
  font-size: 24px;
  background-color: #FFFFFF;
  padding-top: 12px !important;
  padding-right: 16px !important;
  padding-bottom: 12px !important;
  padding-left: 16px !important;
  margin: 0 auto 10px auto;
}

.memory-game-form__email::placeholder {
  color: #c9c9c9 !important;
}

.memory-game-form__terms,
.memory-game-form__terms a {
  font-size: 14px;
  color: #fff;
}

.memory-game-form__terms a {
  text-decoration: underline;
}

.memory-game-form__start {
  display: block;
  margin: 0 auto;
  background-color: #ea70a1 !important;
  border: none;
  color: white;
  padding: 15px 35px 22px 35px;
  text-align: center;
  text-decoration: none;
  font-size: 27px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: inset 0px 1px 0px rgba(256, 256, 256, 0.5), inset 0px -9px 1px #9f486c;
}

.memory-card__back,
.memory-card__front {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border: 2px solid #fff;
  border-radius: 10%;

  box-shadow: 0px 0px 14px -4px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.6s, box-shadow 0.3s ease 0s;
}

.memory-card:hover .memory-card__back,
.memory-card:hover .memory-card__front {
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
}

.memory-card__back {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotateY(0deg);
}

.memory-card__front {
  background-repeat: no-repeat;
  background-position: center;
  transform: rotateY(180deg);
}

.congrats-modal .modal-content {
  box-shadow: 0px 0px 18px 1px rgb(0 0 0 / 30%) !important
}

.modal-backdrop {
  background-color: #fff !important;
  opacity: 0.4 !important;

}

/* ------------------------------ *
 *            MODIFIERS           *
 * ------------------------------ */

.memory-card.flip .memory-card__back {
  transform: rotateY(-180deg);
}

.memory-card.flip .memory-card__front {
  transform: rotateY(0deg);
}

.memory-card.matched {
  box-shadow: 0 0 11px -2px #90EE90;
  pointer-events: none;
  animation: match 1.2s 1;
}


.modal--fade-scale {
  transform: scale(0);
  opacity: 0;
  transition: all .25s linear;
}

.modal--fade-scale.show {
  opacity: 1;
  transform: scale(1);
}


/* ------------------------------ *
 *           ANIMATIONS           *
 * ------------------------------ */

@keyframes match {
  0% {
    transform: rotateY(180deg);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1.2, .9);
  }

  75% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes badMatch {
  0% {
    transform: rotateY(180deg);
  }

  25% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(-20px) rotate(-20deg);
  }

  60% {
    transform: translateX(20px) rotate(20deg);
  }

  70% {
    transform: translateX(-20px) rotate(-20deg);
  }

  80% {
    transform: translateX(20px) rotate(20deg);
  }

  100% {
    transform: translateX(0px);
  }
}


/* ------------------------------ *
 *          RESPONSIVE            *
 * ------------------------------ */

@media (max-width: 768px) {
  .memory-game-form {
    width: 80%;
  }

  .memory-game-form__start {
    font-size: 20px;
  }

  .memory-card__back,
  .memory-card__front {
    border-radius: 8%;
  }
}

@media (max-width: 576px) {
  .memory-game-container {
    padding: 0;
  }

  .memory-game-form {
    width: 100%;
  }

  .memory-game-form__start {
    font-size: 18px;
  }

  .memory-game-board {
    width: 100%;
  }

  .memory-card {
    width: 100px;
    height: 120px;
  }

  .memory-card__back,
  .memory-card__front {
    border-radius: 6%;
  }
}

@media (max-width: 400px) {
  .memory-card {
    width: 90px;
    height: 110px;
  }

  .memory-card__back,
  .memory-card__front {
    border-radius: 4%;
  }
}

@media only screen and (max-width: 767px) {
  .memory-game-form__email {
    font-size: 18px;
    max-width: 320px;
  }
}

@media only screen and (min-width: 981px) {
  .memory-game-form__email {
    max-width: 610px;
  }
}