:root {
  --modals-text-color: #01479D;
  --screenshot-bg: #C2E5F3;
  --modals-font-size: 18px;
}

.modalWrapper {
  position: fixed;
  z-index: 10;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ageRestriction {
  background-repeat: no-repeat;
  background-size: cover;
  width: 415px;
  height: 361px;

  display: grid;
  place-content: center;
  place-items: center;
  grid-template-columns: 280px;
  row-gap: 15px;
}

.modalWrapper .modalText {
  font-family: 'Chalkboard SE';
  color: var(--modals-text-color);
  font-size: var(--modals-font-size);
  line-height: 105%;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0;
  margin: 0;
}

.ageRestriction > .buttonsWrapper {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  column-gap: 18px;
}

.ageRestriction > .buttonsWrapper > button {
  border: unset;
  outline: none;
  background-image: url("../pictures/ageRestBtn.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: unset;
  width: 86px;
  height: 51px;
}

.findSanta {
  width: 365px;
  height: 404px;
  background-repeat: no-repeat;
  background-size: cover;

  display: grid;
  place-content: center;
}

.findSanta > p {
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: 0.05em;


  color: var(--modals-text-color);
  text-align: center;
  width: 275px;

  margin-bottom: 110px;
  margin-left: 10px;
}

.gameStart {
  position: relative;
  display: grid;
  justify-content: center;
  justify-items: center;
  align-content: end;
  row-gap: 20px;

  background-repeat: no-repeat;
  background-size: cover;
  width: 415px;
  height: 361px;
  margin-bottom: 350px;
}

.gameStart > p {
  width: 300px;
}

.gameStart > button {
  background-image: url("../pictures/startGameBtn.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 216px;
  height: 67px;

  border: unset;
  background-color: unset;
  outline: none;
  margin-bottom: 74px !important;

  animation: pulse 1500ms infinite;
}

.gameEnd {
  display: grid;
  position: relative;
  place-content: center;
  place-items: center;
  background-image: url("../pictures/endModalBackground.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 530px;
  height: 500px;

  row-gap: 16px;
}

.gameEnd > p {
  width: 330px;
  text-align: center;
  font-size: 16px !important;
  align-content: center;
  align-items: center;
}

.gameEnd > .buttonsWrapper {
  display: grid;
  row-gap: 8px;
  justify-content: center;
  justify-items: center;
}

.gameEnd > .buttonsWrapper > button {
  outline: none;
  background-color: unset;
  border: unset;
}

.gameEnd > .buttonsWrapper > #playAgainBtn {
  background-image: url("../pictures/playAgainBtn.png");
  background-size: cover;
  width: 196px;
  height: 61px;
}

.gameEnd > .buttonsWrapper > #selfieBtn {
  background-image: url("../pictures/selfieBtn.png");
  background-size: cover;
  width: 236px;
  height: 61px;
}

.gameEnd #yourScore {
  margin-left: 5px;
  font-size: 24px;
}

#photoBtn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 13px;
  width: 70px;
  height: 66px;
  z-index: 9;
}

#selfieCanvas {
  position: fixed;
  width: 100%;
  height: 100%;
}

.screenshotBg {
  width: 100vw;
  height: 100vh;

  background-color: var(--screenshot-bg);
  display: grid;
  grid-template-columns: calc(100% - 40px);
  place-content: center;
}

.screenshotWrapper {
  position: relative;
  width: 100%;

  border: 2px solid #FFFFFF;
  border-radius: 32px;
  background-color: #FFFFFF;
  overflow: hidden;
}

#screenshot {
  width: 100%;
  object-fit: cover;
}

#closeScreenshotBtn {
  position: absolute;
  top: 0;
  right: 12px;
  width: 47px;
}

.screenshotWrapper > footer {
  position: absolute;
  bottom: 0;
  height: 50px;
  width: 100%;

  background: rgba(194, 229, 243, 0.8);
  border-top: 2px solid #FFFFFF;

  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  padding: 0 23px;
  box-sizing: border-box;
}

#shareBtn {
  display: grid;
  justify-content: end;
  grid-auto-flow: column;
  align-content: center;
  align-items: center;
  column-gap: 15px;
}

.screenshotWrapper > footer > #shareBtn > span {
  color: var(--modals-text-color);
  font-size: var(--modals-font-size);
}

.blur {
  filter: blur(50px);
}

#soundBtn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 5;
}

#soundBtn > img {
  width: 56px;
}

.modalBg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.aimCamera {
  width: 261px;
  height: 109px;

  display: grid;
  place-content: center;
  grid-template-columns: 180px;

  position: relative;
  bottom: 200px;
}

.aimCamera .modalText {
  margin-top: 10px;
}

.triggerBlock {
  width: 250px;
  height: 250px;

  display: grid;
  place-content: center;

  grid-template-columns: 194px;
  background-image: url("../pictures/blueCircle.png");
  background-size: cover;
}

.triggerBlock > img {
  width: 100%;
  opacity: 0.3;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }

  100% {
    transform: scale(1);
  }
}
