/* Import Default Setup */
@import url('../src/css/game-setup.css');

/* General */
.pair-up {
  border-color: #492a1c;
}

/* Title Screen */
.pair-up .title-screen {
  background-color: #fff;
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/title-screen-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.pair-up .title-screen .start-game-btn {
  margin-bottom: 4rem;
  margin-left: 0rem;
}

/* Game Container */
.pair-up .language-arts-game-container {
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/game-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-color: #fff;
  background-color: #58595b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pair-up[data-display-text='false']
  .language-arts-game-container
  .accessibility-container {
  margin-bottom: 10px;
}

.pair-up .game-container .question-container .drag-container::before {
  content: '';
  position: absolute;
  left: 5px;
  width: 75px;
  height: 57px;
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/drag-hint.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.pair-up .game-container .question-container .button-container {
  position: absolute;
  right: 0px;
  margin-top: -7px;
}

.pair-up
  .game-container
  .question-container
  .button-container
  .reset-draggables {
  height: 58px;
  width: 85px;
  padding: 5px;
  border: 2px solid;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 20px;
  outline: none;
  background-color: #ff9933;
  -webkit-box-shadow: 0 8px #e85e38;
  box-shadow: 0 8px #e85e38;
  border-color: #e85e38;
  color: #fff;
  font-size: 2rem;
}

.pair-up
  .game-container
  .question-container
  .button-container
  .reset-draggables:active {
  -webkit-box-shadow: 0 2px #e85e38;
  box-shadow: 0 2px #e85e38;
  -webkit-transform: translateY(6px);
  -ms-transform: translateY(6px);
  transform: translateY(6px);
}

.pair-up .game-container .question-container .match-container .category {
  background-color: #58595b;
  color: #fff;
  width: 420px;
  padding: 1.5rem;
  /* background-size: 73%;
  background-repeat: no-repeat; */
  margin-bottom: 2rem;
  -webkit-box-shadow: -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.4) /* Subtle white shadow (top-left) */,
    0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
  box-shadow: -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.4) /* Subtle white shadow (top-left) */,
    0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
}

.pair-up
  .game-container
  .question-container
  .match-container
  .category:first-child {
  margin-right: 2rem;
  /* background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/left-category-shoes.png');
  background-position: 50% 85%; */
}

/* .pair-up
  .game-container
  .question-container
  .match-container
  .category:last-child {
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/right-category-shoes.png');
  background-position: 50% 105%;
} */

.pair-up .game-container .question-container .match-container .category,
.pair-up .game-container .question-container .drop-area,
.pair-up .game-container .question-container .draggable-holder {
  border-radius: 25px;
}

.pair-up .game-container .question-container .drop-area {
  padding: 0px;
  width: 175px;
  height: 175px;
  /* margin: 1rem; */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #c1c1c2;
  /* border: 3px solid #fff; */
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-shadow: inset 0 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
  background-size: 70px 160px;
  background-position: center center;
}

.pair-up
  .game-container
  .question-container
  .match-container
  .category:first-child
  .drop-area:first-child,
.pair-up
  .game-container
  .question-container
  .match-container
  .category:last-child
  .drop-area:first-child {
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/salt-bg.png');
}

.pair-up
  .game-container
  .question-container
  .match-container
  .category:first-child
  .drop-area:last-child,
.pair-up
  .game-container
  .question-container
  .match-container
  .category:last-child
  .drop-area:last-child {
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/pepper-bg.png');
}

.pair-up .game-container .question-container .match-container,
.pair-up .game-container .question-container .drag-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pair-up .game-container .question-container .match-container {
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}

.pair-up .game-container .question-container .drag-container {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.pair-up .game-container .question-container .draggable-holder {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  width: 175px;
  height: 175px;
  margin-left: 1rem;
  margin-right: 1rem;
  background-color: #fff;
  border: 3px solid #fff;
  /* color: #fff; */
  overflow: hidden;
  position: relative;
  line-height: normal;
  -webkit-box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
}

/* .pair-up .game-container .question-container .draggable-holder.dragging {
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
} */

.pair-up
  .game-container
  .question-container
  .draggable-holder:has(.play-audio)
  > *:not(.play-audio):not(img) {
  margin-top: -5px;
}

.pair-up .game-container .question-container .match-img-holder {
  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;
  overflow: hidden;
  position: relative;
}

.pair-up .game-container .question-container .draggable-holder img,
.pair-up .game-container .question-container .match-img-holder img {
  width: 175px;
  height: 175px;
  -o-object-fit: cover;
  object-fit: cover;
}

.pair-up .game-container .question-container .draggable-holder:hover,
.pair-up
  .game-container
  .question-container
  .draggable-holder.ui-draggable-dragging {
  cursor: move;
}

.pair-up
  .game-container
  .question-container
  .draggable-holder:has(.play-audio):hover {
  cursor: pointer;
}

.pair-up .game-container .question-container .play-audio {
  border-color: #000;
  color: #000;
  background-color: #fff;
  opacity: 1;
}

.pair-up
  .game-container
  .question-container
  .drag-container
  .draggable-holder
  .play-audio {
  position: absolute;
  bottom: 5px;
}

.pair-up
  .game-container
  .question-container
  .drag-container
  .draggable-holder.audio-only
  .play-audio {
  position: relative;
  bottom: unset;
  margin: 0 auto;
  width: auto;
  height: auto;
  font-size: 1.75rem;
  opacity: 1;
  border: none;
  background-color: transparent;
  /* color: #fff; */
}

.pair-up .game-container .question-container .category-header .play-audio {
  margin-right: 10px;
}

.pair-up .game-container .question-container .category .category-header {
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pair-up .game-container .question-container .category .drop-area-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.pair-up .game-container .question-container .feedback-screen {
  position: relative;
  width: 100%;
  height: 300px;
  text-align: center;
  padding: 30px;
  background: -o-linear-gradient(
    top,
    #fff 0%,
    #fff 50%,
    #b2ca72 50%,
    #b2ca72 100%
  );
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#fff),
    color-stop(50%, #fff),
    color-stop(50%, #b2ca72),
    to(#b2ca72)
  );
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #fff 50%,
    #b2ca72 50%,
    #b2ca72 100%
  );
  -webkit-box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.pair-up .correct-feedback .feedback-image,
.pair-up .incorrect-feedback .feedback-image {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin-right: 20px;
  width: 100px;
  height: 270px;
  margin-top: -15px;
}

.pair-up .correct-feedback .feedback-image {
  background: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/correct-character.png');
}

.pair-up .incorrect-feedback .feedback-image {
  background: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/incorrect-character.png');
}

.pair-up .feedback button {
  margin: 0;
}

.pair-up .feedback .feedback-text .play-audio {
  margin-right: 10px;
}

/* Final Screen */
.pair-up .final-screen-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #58595b;
  background-image: url('https://s3.us-east-1.amazonaws.com/cms.accelerate-ed.com/templates/elementary/shared/production/language-arts-games/pair-up/img/final-screen-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.pair-up.language-arts-game .final-screen {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.pair-up.language-arts-game .retry-game-btn {
  margin-top: auto !important;
  margin-bottom: 12rem !important;
  margin-right: 5.5rem;
}

/* Secondary Version */
.pair-up[data-secondary-version='true'] {
  /* Drag Container */
  .game-container .question-container .drag-container {
    position: relative;
  }

  /* Reset Draggables Button */
  .game-container .question-container .button-container {
    margin-top: 0;
  }

  .game-container .question-container .button-container .reset-draggables {
    width: auto;
    min-width: unset;
    padding: 10px 30px;
    border: none;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50px;
    outline: none;
    font-weight: bold;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.25rem;
    background-color: #ff9933;
    background: -o-linear-gradient(left, #f5ac63, #ff9933);
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#f5ac63),
      to(#ff9933)
    );
    background: linear-gradient(90deg, #f5ac63, #ff9933);
    -webkit-box-shadow: 0 4px 0 #cd7c2b, 0 4px 0 #cd7c2b,
      0.15rem 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 0 #cd7c2b, 0 4px 0 #cd7c2b,
      0.15rem 0.5rem 0.5rem rgba(0, 0, 0, 0.25);
    color: #fff;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .game-container
    .question-container
    .button-container
    .reset-draggables:active {
    -webkit-transform: translateY(2px);
    -ms-transform: translateY(2px);
    transform: translateY(2px);
    -webkit-box-shadow: 0 2px 0 #cd7c2b, 0 4px 6px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 0 #cd7c2b, 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  /* Feedback */
  .game-container .question-container .hide-draggables.drag-container::before {
    visibility: hidden !important;
  }

  .game-container .question-container .feedback-container {
    padding: 1rem;
    background-color: #fff;
    min-height: 100%;
    height: auto;
    -webkit-box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.7);
  }

  .game-container
    .question-container
    .feedback-container:has(.correct-feedback[style*='display: flex;']) {
    border: 3px solid #67b74b;
  }

  .game-container
    .question-container
    .feedback-container:has(
      .correct-feedback[style*='display: flex;']
    )::before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    background-image: var(--confetti-background);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: contain;
    z-index: 1;
  }

  .game-container
    .question-container
    .feedback-container:has(.incorrect-feedback[style*='display: flex;']) {
    border: 3px solid #f4ae34;
  }

  .correct-feedback,
  .incorrect-feedback {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }

  .correct-feedback *:not(button),
  .incorrect-feedback *:not(button) {
    text-align: left;
  }
}

/* Media Queries */
@media all and (max-width: 1199px) {
  .pair-up .game-container .question-container .match-container .category {
    width: 375px;
  }
  .pair-up .game-container .question-container .drop-area,
  .pair-up .game-container .question-container .draggable-holder {
    width: 150px;
    height: 150px;
  }
  .pair-up .game-container .question-container .draggable-holder {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  .pair-up .game-container .question-container .drop-area {
    background-size: 55px 135px;
  }
  .pair-up .game-container .question-container .drag-container::before {
    left: -5px;
    width: 65px;
    height: 45px;
  }
  .pair-up .game-container .question-container .button-container {
    right: -8px;
  }
  .pair-up
    .game-container
    .question-container
    .button-container
    .reset-draggables {
    padding: 10px 25px !important;
  }
  .pair-up.language-arts-game .retry-game-btn {
    margin-top: auto !important;
    margin-bottom: 9.5rem !important;
    margin-right: 4.5rem;
  }
}

@media all and (max-width: 991px) {
  .pair-up .title-screen .start-game-btn {
    margin-bottom: 2.5rem;
  }
  .pair-up .game-container .question-container .match-container .category {
    padding: 1rem;
  }
  .pair-up .game-container .question-container .drop-area {
    background-size: 50px 126px;
  }
  .pair-up .game-container .question-container .drop-area,
  .pair-up .game-container .question-container .draggable-holder {
    width: 135px;
    height: 135px;
  }
  .pair-up .game-container .question-container .draggable-holder {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .pair-up
    .game-container
    .question-container
    .match-container
    .category:first-child {
    margin-right: 1rem;
  }
  .pair-up .game-container .question-container .match-container .category {
    width: 330px;
    margin-bottom: 1rem;
  }
  .pair-up .game-container .question-container .drag-container::before {
    left: -25px;
    width: 55px;
    height: 35px;
  }
  .pair-up .game-container .question-container .button-container {
    right: -20px;
  }
  .pair-up
    .game-container
    .question-container
    .button-container
    .reset-draggables {
    font-size: 1rem !important;
    padding: 0px 15px !important;
  }
  .pair-up
    .game-container
    .question-container
    .draggable-holder:has(.play-audio)
    > *:not(.play-audio):not(img) {
    margin-top: -15px;
  }
  .pair-up.language-arts-game .retry-game-btn {
    margin-bottom: 6.25rem !important;
    margin-right: 3.75rem;
  }
}

@media all and (max-width: 767px) {
  .pair-up .title-screen .start-game-btn {
    margin-bottom: 0rem;
  }
}

/* iPads */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
  /* Styles */
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
  /* Styles */
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
  /* Styles */
}
