#info,
#insight,
#scoreCard,
#scoreCard-button,
#info-button {
  display: none;
  position: absolute;
  z-index: 100;
}

body.ar #info-button {
  display: block;
  top: 15px;
  right: 15px;
}

#info-button button,
#scoreCard-button button {
  display: block;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  background-color: var(--backgroundColor);
  color: #231f20;
  color: var(--primaryColor);
  font-weight: bold;
  cursor: pointer;
  font-size: 25px;
  width: 44px;
  height: 44px;
  padding: 3px;

  box-shadow: rgba(0, 0, 0, 0.45) 0px 54px 55px, rgba(0, 0, 0, 0.32) 0px -12px 30px, rgba(0, 0, 0, 0.32) 0px 4px 6px, rgba(0, 0, 0, 0.37) 0px 12px 13px, rgba(0, 0, 0, 0.29) 0px -3px 5px;
}

#info,
#insight,
#scoreCard {
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
}

#info .content,
#insight .content,
#scoreCard .content {
  width: 85%;
  height: auto;
  min-height: 50%;
  background-color: #fff;
  background-color: var(--backgroundColor);
  border-radius: 15px;
  font-size: 16px;
  padding: 15px;
}

#insight .content {
  display: flex;
  min-height: 60%;
  align-items: center;
  justify-content: center;
  background-image: url('background.png');
  background-size: cover;
}

#insight .content .text {
  margin: 15px 0;
  padding: 10px;
  font-size: 18px;
  text-align: center;
  line-height: 22px;
}

#insight .content .controls {
  transform: rotate(90deg);
  cursor: pointer;
  margin: 0;
}

#insight .content .controls.disabled {
  opacity: 0.3;
  cursor: default;
}

#insightClose {
  margin-top: 10px;
}

#info .content .slideshow-container {
  margin-bottom: 5px;
}

#info .content .text {
  width: 100%;
  margin: 5px 10px;
}

#info .close,
#insight .close,
#scoreCard .close {
  position: absolute;
  top: 5px;
  right: 5px;
  border-radius: 50%;
  background-color: #231f20;
  background-color: var(--primaryColor);
  color: #fff;
  color: var(--backgroundColor);
  font-size: 18px;
  padding: 3px;
  text-align: center;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#story, #final-video-text {
  position: absolute;
  left: 5%;
  bottom: -30px;
  width: 82%;
  text-align: center;
  background-color: #fff;
  background-color: var(--backgroundColor);
  border-radius: 15px;
  font-size: 18px;
  line-height: 22px;
  padding: 15px;
  z-index: 1000;
  background-image: url('background.png');
  background-size: cover;
}

#story.visible {
  bottom: 3%;
  transition: all 500ms cubic-bezier(0.215, 0.61, 0.355, 1); /* easeOutCubic */
  transition-timing-function: cubic-bezier(
    0.215,
    0.61,
    0.355,
    1
  ); /* easeOutCubic */
}

#scoreCard .content {
  height: 65%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#scoreCard .content div.row {
  flex: 1;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

#scoreCard .content div.row div.cell {
  position: relative;
  flex: 1;
  height: 100%;
  width: auto;
  background-size: cover;
  opacity: 0.3;
  border-radius: 3px;
}
#scoreCard .content div.row div.cell.collected {
  opacity: 1;
  transition: all 0.75s ease-in;
}

#scoreCard .content div.row div.cell.collected::after {
  display: block;
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background-image: url(play.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
}

#scoreCard .content div.row:nth-of-type(1) {
  flex: 0.5;
  width: 100%;
}
#scoreCard .content div.row:nth-of-type(2) div.cell:nth-of-type(1) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("01-joyful.jpg");
}
#scoreCard .content div.row:nth-of-type(2) div.cell:nth-of-type(2) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("02-contented.jpg");
}
#scoreCard .content div.row:nth-of-type(2) div.cell:nth-of-type(3) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("03-dejected.jpg");
}
#scoreCard .content div.row:nth-of-type(3) div.cell:nth-of-type(1) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("04-mad.jpg");
}
#scoreCard .content div.row:nth-of-type(3) div.cell:nth-of-type(2) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("05-hurt.jpg");
}
#scoreCard .content div.row:nth-of-type(3) div.cell:nth-of-type(3) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("06-hollow.jpg");
}
#scoreCard .content div.row:nth-of-type(4) div.cell:nth-of-type(1) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("07-hopeless.jpg");
}
#scoreCard .content div.row:nth-of-type(4) div.cell:nth-of-type(2) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("08-lonely.jpg");
}
#scoreCard .content div.row:nth-of-type(4) div.cell:nth-of-type(3) {
  background-color: #231f20;
  background-color: var(--primaryColor);
  background-image: url("09-ecstatic.jpg");
}

#scoreCard .content-completed {
  display: none;
  padding: 15px;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 5px;
  box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.4);
}

#scoreCard.completed .content-completed {
  display: flex;
}

#scoreCard .content-completed .congratulations {
  font-size: 18px;
  color: #231f20;
  color: var(--primaryColor);
  text-align: center;
}

#scoreCard .content-completed .final-content {
  display: flex;
  padding: 20px 50px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#scoreCard .content-completed #final-video {
  display: none;
  position: fixed;
  top: -10%;
  height: 110%;
  width: auto;
  box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.8);
  -webkit-box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.8);
  -moz-box-shadow: 1px 2px 22px -1px rgba(0, 0, 0, 0.8);
  z-index: 1002;
}

#scoreCard .content-completed #final-video-text {
  display: none;
  position: fixed;
  bottom: 0;
  z-index: 1003;
}

#final-video-close {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
  z-index: 1003;
  border-radius: 50%;
  background-color: #231f20;
  background-color: var(--primaryColor);
  color: #fff;
  color: var(--backgroundColor);
  font-size: 18px;
  padding: 3px;
  text-align: center;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

#scoreCard .content-completed .reward {
  display: none;
  font-size: 21px;
  text-align: center;
}
#scoreCard .content-completed .reward .purple {
  color: #c2237c;
  color: var(--accentColor);
}

#scoreCard.completed .row {
  opacity: 0.3;
}

#scoreCard-button {
  display: none;
  top: 15px;
  left: 15px;
}

#scoreCard-button.completed button {
  animation: pulse-animation-magenta 1.5s infinite;
}

@keyframes pulse-animation-magenta {
  0% {
    box-shadow: 0 0 0 0px rgba(217, 1, 122, 1);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(217, 1, 122, 0);
  }
}

.close-btn {
  border: none;
  box-shadow: none;
  background-color: #231f20;
  background-color: var(--primaryColor);
  color: #fff;
  color: var(--backgroundColor);
  font-size: 16px;
  font-weight: bold;
  padding: 8px;
  border-radius: 5px;
}

#replay {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('loading.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}
