/* global styles */
@font-face {
  font-family: Roboto;
  src: url("../assets/fonts/Roboto.ttf");
}

@font-face {
  font-family: FredokaOne;
  src: url("../assets/fonts/FredokaOne.ttf");
}

/* PREVENT STICKY BUTTONS ON TOUCH DEVICES */
@media (pointer: coarse) {
  [data-color-link-primary]:hover,
  [data-color-link-secondary]:hover,
  [data-menu]:hover,
  [data-color-social-primary]:hover,
  [data-color-social-secondary]:hover {
    opacity: 1 !important;
  }

  [data-button]:hover:not([disabled])
  {
    opacity: 1 !important;
  }
}

[data-email] {
  position: relative;
  min-height: 100vh;
  background-color: black;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
}

:root {
  --pink: #fc63a1;
  --grey: #1c1c1c;
  --white: #fff;
}

/* firefox image selection color override */

img::selection {
  background: transparent;
  color: inherit;
}

h1,
h2,
h4,
h5,
h6,
p,
a,
span {
  word-break: break-word;
}

html,
body {
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--grey);
  position: relative;
  font-family: AcuminPro-Regular, sans-serif;
}

h1,
h2,
h4,
h5,
h6 {
  margin-bottom: 24px;
}

p {
  margin-bottom: 18px;
}

.col-12 {
  padding: 0;
}

.row {
  margin: 0;
}

a,
a:hover {
  text-decoration: none;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* positioning classes for date number */
.num-pos-1 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.num-pos-2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.num-pos-3 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.num-pos-4 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.num-pos-5 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.num-pos-6 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.num-pos-7 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.num-pos-8 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.num-pos-9 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* end of positioning classes for date number */

/* TEMPLATE STYLES */
.content {
  width: 90%;
  max-width: 1000px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  margin: 0 auto;
  text-align: center;
}

.header {
  width: 100%;
}

.logo-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}

.calendar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.footer {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: flex-end;
}

.footer span,
.footer a {
  line-height: 1;
}

/* REGISTER PAGE */
.image-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#outcome .image-text-wrap {
  margin-top: auto;
  margin-bottom: auto;
}

.prize-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  text-align: center;
}

#register-image {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.form-row {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
}

.form-box input,
.form-box select,
.span-select {
  width: 100%;
  border: none;
  border-bottom: var(--grey) 1px solid;
  border-radius: 0;
  padding: 0.5rem;
  text-align: center;
  min-height: calc(1rem + 36px);
  background-color: transparent;
}

select {
  appearance: none;
}

#date-of-birth-input {
  padding-top: 0.8rem;
}

/* additional css to manage centering selectpicker in safari */
#div-select {
  position: relative;
}

.span-select {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

#submit-button {
  max-width: 100%;
  min-width: 250px;
  padding: 10px 20px;
}

#submit-button span {
  white-space: normal;
}

.form-box {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 10px;
}

div[input-group] {
  width: 100%;
  max-width: 400px;
}

.check-row,
.custom-checkbox,
.custom-checkbox label,
[data-langkey="register_newsletter_checkbox"] {
  min-height: 27px;
}

[data-langkey="register_newsletter_checkbox"] {
  display: flex;
  align-items: flex-end;
}

.check-row {
  margin-bottom: 10px;
}

.custom-control-label::before {
  border: var(--grey) 1px solid;
  background-color: var(--white);
  border-radius: 0 !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--white);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: none;
  background-color: var(--grey);
  transform: scale(0.7);
}

.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after {
  top: calc(50% - 0.45rem);
}

.custom-checkbox .custom-control-label * {
  vertical-align: middle;
}

label > span,
label > a {
  line-height: 1.5;
}

/* socials */
ul.social {
  list-style: none;
  padding: 0;
  display: block;
  text-align: center;
  margin: 15px 0;
}

ul.social li {
  margin: 5px;
  display: inline-block;
  border-radius: 50%;
}

ul.social li a {
  text-decoration: none;
}

ul.social li a i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: unset;
  color: #fff;
  border-radius: 0;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
}

ul.social li a i:hover {
  opacity: 0.5;
}

.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-content: center center;
}

@media screen and (min-width: 767px) {
  #outcome-image {
    margin: 30px 0;
  }

  .checkbox-box {
    width: 95%;
  }

  .form-row {
    max-width: 800px;
  }

  div[input-group] {
    flex-basis: 47%;
  }
}

/* cta buttons */
.cta-buttons {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 10px auto;
}

.cta {
  display: none;
  min-width: 200px;
  min-height: 45px;
  padding: 5px 10px;
  margin: 10px;
}

/* ANIMATION */
.tile-animation {
  animation: tile-animation 0.5s linear forwards;
}

.prize-animation {
  animation: prize-animation 0.5s 0.6s linear forwards;
}

/* keyframes */
@keyframes tile-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  99% {
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes tile-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  99% {
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes prize-animation {
  0% {
    opacity: 1;
    transform: scale(0);
  }

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

@keyframes prize-animation {
  0% {
    opacity: 1;
    transform: scale(0);
  }

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

#outcome-image,
.prize-wrap > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  margin: 30px 0;
}

/* INTRODUCTION PAGE */
.introduction__inner {
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin-bottom: 30px;
}

.main__content {
  width: 100%;
  max-width: 641px;
  margin: 0 auto;
}

.main__content__inner {
  display: grid;
  place-items: center;
}

.img__container {
  width: 400px;
  height: 400px;
  margin-bottom: 18px;
}

.game-image-wrap {
  width: 500px;
  height: 500px;
  margin-bottom: 18px;
  position: relative;
}

.img__container.register {
  margin: 30px 0;
}

.img__container img {
  border-radius: 50%;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.content__container {
  margin-top: 60px;
}

.content__container__inner {
  display: flex;
  flex-direction: column;
}

.main__content button {
  max-width: 100%;
  min-width: 250px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__inner {
  margin-top: 60px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__inner a {
  margin: 10px 0;
}

@media screen and (max-width: 1024px) {
  .img__container,
  .game-image-wrap {
    width: 540px;
    height: 540px;
  }
}

@media screen and (max-width: 700px) {
  .img__container {
    width: 450px;
    height: 450px;
  }

  .game-image-wrap {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 580px) {
  .img__container,
  .game-image-wrap {
    width: 320px;
    height: 320px;
  }
}

@media screen and (max-width: 430px) {
  .game-image-wrap {
    width: 240px;
    height: 240px;
  }
}

@media screen and (max-width: 380px) {
  .main__content button {
    min-width: 0;
    width: 100%;
  }

  .img__container {
    width: 240px;
    height: 240px;
  }
}

@media screen and (max-width: 310px) {
  .img__container,
  .game-image-wrap {
    width: 200px;
    height: 200px;
  }
}

/* || MEMORY GAME  */
.game__view__inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 100%;
}

h3 > span,
h3 > span > span {
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.game__controller {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  width: 100%;
  align-items: center;
}

#card-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 100px;
}

.game-item {
  width: 220px;
  height: 220px;
}

.game-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  width: 100%;
}

/* // MEDIA QUERY // */
@media screen and (max-width: 1100px) {
  .game-item {
    width: 205px;
    height: 205px;
  }
}

@media screen and (max-width: 1023px) {
  .game__view__inner {
    gap: 50px;
  }

  #card-container {
    margin-top: 0;
    width: 80%;
    justify-content: center;
  }

  .game-item {
    width: 280px;
    height: 280px;
  }
}

@media screen and (max-width: 900px) {
  #card-container {
    width: 100%;
  }
}

@media screen and (max-width: 700px) {
  #card-container {
    margin-top: 20px;
  }

  .game__controller {
    padding: 0;
  }

  .game-item {
    height: 220px;
    width: 220px;
  }
}

@media screen and (max-width: 520px) {
  #card-container {
    margin-top: 50px;
  }

  .game-item {
    height: 180px;
    width: 180px;
  }
}

@media screen and (max-width: 430px) {
  #card-container {
    margin-top: 20px;
  }

  .game-item {
    height: 150px;
    width: 150px;
  }
}

@media screen and (max-width: 370px) {
  .game-item {
    height: 115px;
    width: 115px;
  }
}

/* /////////// GUESS THE PICTURE ///////// */

.game-image-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.gtp-content-wrap {
  width: 100%;
}

.game-info {
  width: 80%;
  margin: 0 auto;
  padding: 10px;
}

.answers-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.answer-click {
  padding: 10px;
  flex: 0 0 48%;
}

.gtp-tile-wrap {
  border-radius: 50%;
  overflow: hidden;
}

/* // MEDIA QUERY // */
@media screen and (max-width: 1024px) {
  .gtp-content-wrap {
    width: 100%;
  }

  .game-info {
    width: 80%;
  }

  .answer-click.answer {
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 500px) {
  .game-image-wrap {
    margin-top: 30px;
  }

  .game-info {
    width: 100%;
  }
}

/* //////// PERSONALITY TEST /////// */

.question__wrap {
  margin: 10px 0;
}

.game__image__swipe__wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* // SWIPE // */
.swipe-wrap {
  display: flex;
  width: 100%;
  gap: 18px;
}

.swipe-click-wrap {
  flex: 0 0 48%;
}

.swipe-wrap > div > a {
  padding: 10px;
  display: block;
}

.swipe-icon {
  border-radius: 50%;
  padding: 20px;
}

.swipe-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.icon__wrap__inner {
  display: flex;
  z-index: 60;
  position: absolute;
  justify-content: space-between;
  top: calc(50% - 50px);
  left: -45px;
  width: 119%;
  pointer-events: none;
}

.left__svg {
  transform: rotate(180deg);
}

/* // MEDIA QUERY // */
@media screen and (max-width: 1100px) {
  .swipe-wrap {
    flex-direction: column;
  }
}

@media screen and (max-width: 1024px) {
  .swipe-click-wrap {
    flex: 0 0 100%;
  }

  .icon__wrap__inner {
    width: 117%;
  }
}

@media screen and (max-width: 700px) {
  .icon__wrap__inner {
    width: 123%;
  }
}

@media screen and (max-width: 580px) {
  .swipe-icon svg {
    width: 20px;
    height: 20px;
  }

  .icon__wrap__inner {
    width: 119%;
    left: -29px;
  }
}

@media screen and (max-width: 500px) {
  .icon__wrap__inner {
    top: calc(50% - 25px);
  }

  .swipe-icon svg {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 430px) {
  .icon__wrap__inner {
    width: 124%;
  }
}

@media screen and (max-width: 350px) {
  .icon__wrap__inner {
    left: -17px;
    width: 115%;
  }
}

@media screen and (max-width: 310px) {
  .icon__wrap__inner {
    width: 117%;
  }
}

/* ///////// QUIZ ////////// */
.outcome-quiz.text {
  padding: 15px 0;
  margin-top: 30px;
}

/* // SWIPE // */
.quiz__swipe__click__wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}

.quiz__swipe__click__btn a {
  width: 100%;
  padding: 10px;
}

/*  ===== LIMIT REACHED PAGE ===== */
#limit-reached {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#limit-reached>div {
  flex: 0 0 100%;
}

.limit-container {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: auto;
  padding: 20px 10px;
  text-align: center;
}

.limit-container h2 {
  margin: 0;
}

@media screen and (min-width: 410px) {
  .limit-container {
    padding: 30px 20px;
  }
}

/* ================================ RTL SUPPORT ================================ */
[dir="rtl"] #picture-element,
[dir="rtl"] #time-wrap,
[dir="rtl"] #question-element {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

[dir="rtl"] .gtp-content-wrap,
[dir="rtl"] .icon__wrap__inner {
  direction: ltr;
}

[dir="rtl"] .custom-control.custom-checkbox {
  text-align: right;
  padding: 0 1.5rem 0 0 !important;
}

[dir="rtl"] .custom-control-label::before,
[dir="rtl"] .custom-control-label::after {
  right: -1.5rem !important;
}

[dir="rtl"] #terms,
[dir="rtl"] #privacy {
  direction: rtl;
  text-align: right;
}

button {
  font-size: inherit !important;
}