* {
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
  .privacy-policy {
    hyphens: auto;
  }
}

/* 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 {
  --white: rgb(255 255 255 / 100%);
  --black: rgb(0 0 0 / 100%);
}

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

h3 > span,
h3 > span > span {
  color: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

#terms,
#privacy {
  max-width: 90% !important;
  margin: 0 auto !important;
}

.heading-style {
  text-align: center;
  margin-bottom: 50px;
}

/* ------ CTA BUTTONS ------ */
.cta-buttons {
  display: flex;
  flex-flow: row wrap;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.cta {
  width: 100%;
  max-width: 312px;
  padding: 15px 25px;
  margin: 10px;
  display: none;
  cursor: pointer;
}

/* social icons */

.social-container {
  display: flex;
  justify-content: center;
}

.social__wrap {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

[data-social] {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 7%;
  overflow: hidden;
  margin: 0;
  transition: transform 0.3s ease-out, opacity 0.5s ease-in;
}

[data-social]:hover {
  transform: translateY(-10px);
  opacity: 0.6;
}

[data-social] > a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

a > svg {
  max-width: 50%;
  max-height: 50%;
  width: 50%;
  height: auto;
  object-fit: contain;
  margin: auto;
}

/* ------ 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,
.flex-center {
  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 */

/* ========== GENERAL LAYOUT ========== */
.page-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.logo-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  margin-bottom: 0rem;
  padding-left: 0px;
}

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

@media screen and (min-width: 1280px) {
  .logo-container {
    justify-content: flex-start;
    margin-bottom: 0;
    margin-top: 2rem;
    padding-left: 70px;
  }

  .logo {
    max-width: 250px;
  }
}

.text-container {
  width: 90%;
  height: auto;
  /* padding: 5px; */
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-left: 0;
  margin-inline: auto;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 1280px) {
  #game-view .text-container {
    align-items: flex-start;
    padding-left: 70px;
    padding-top: 0rem;
    width: 100%;
    margin-bottom: 6rem;
  }
}

.footer-container {
  width: 100%;
  height: auto;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer {
  margin: 40px 0 15px;
}

.main-container {
  width: 100%;
  height: auto;
  margin: auto;
}

/* ========== END OF GENERAL LAYOUT ========== */

/* ==================== REGISTER AND OUTCOME ==================== */
.form {
  width: 100%;
  max-width: 450px;
  margin: auto;
}

.content-image {
  width: 90%;
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  margin: 0 auto 30px;
  box-shadow: 0 0 20px rgb(0 0 0 / 40%);
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: popIn 4s 2s forwards;
}

.separator {
  margin-bottom: 30px;
}

.form-wrap,
.checkbox-container {
  width: 90%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto 20px;
}

div[input-group] > input,
div[input-group] > select,
.span-select {
  width: 100%;
  height: 59px;
  border: 1px solid;
  border-radius: 10px;
  padding: 15px 20px;
  text-align: center;
  background-color: transparent;
}

#register input::placeholder {
  text-align: center;
}

#div-select {
  position: relative;
}

.span-select {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
  background-color: transparent !important;
}

.checkbox-container {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-checkbox .custom-control-label::before {
  border: 1px solid;
  background-color: transparent !important;
  border-radius: 3px;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: transparent;
  outline: none;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: none !important;
  border-radius: 3px;
  transform: scale(0.6);
}

#register input:focus-visible,
#register select:focus-visible,
.custom-control-input:focus ~ .custom-control-label::before {
  outline: none !important;
  box-shadow: none !important;
}

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

.button-container {
  width: 90%;
  height: auto;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.button-container button {
  width: 100%;
  max-width: 300px;
  padding: 15px 25px;
}

@media screen and (min-width: 768px) {
  .form {
    max-width: 740px;
  }

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

  div[input-group] {
    flex: 0 0 calc(50% - 10px);
  }
}

@media screen and (min-width: 1024px) {
  .form {
    max-width: 900px;
  }

  .form-wrap {
    flex-flow: row wrap;
    gap: 20px;
  }

  div[input-group] {
    flex: 0 0 calc(33% - 11px);
  }
}

@media screen and (min-width: 1280px) {
  .form {
    max-width: 1200px;
  }
}

/* ----- kill outline on focus ------ */
textarea:focus-visible {
  outline: none;
}

.single-answer ::before,
.multiple-answer ::before {
  outline: none;
  box-shadow: none !important;
}

button:focus,
button:focus-visible {
  outline: none !important;
}

/* ==================== END OF REGISTER AND OUTCOME ==================== */

/* ========== ADVENT CALENDAR STYLES ========== */
.calendar-container {
  min-width: 100%;
  width: 3840px;
  height: auto;
  display: flex;
  flex-flow: row nowrap;
  place-content: center center;
  gap: 40px;
  pointer-events: all;
  margin: auto;
  position: relative;
  z-index: 2;
  overflow: auto;
  transition: all 0.3s ease;
}

.wrap::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 100%);
  border: 1px solid rgb(0 0 0 / 40%);
  border-radius: 10px;
}

.wrap {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  overflow: hidden;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
  opacity: 1;
  /* animation: fadeInMain 3s ease-in forwards; */
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  transition: all 0.5s ease;
}

@media screen and (min-width: 1280px) {
  .wrap {
    width: 200px;
    bottom: 70px;
  }
}

.prize-box {
  width: 120px;
  height: 120px;
  margin: 30px 0;
  border-radius: 15px;
  position: relative;
  z-index: 2;
}

.prize-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  opacity: 0;
  margin: auto;
  border-radius: inherit;
  /* box-shadow: 2px 3px 10px rgb(0 0 0 / 40%); */
}

.prize {
  width: 70%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: inherit;
}

.tile {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* background-size: contain !important; */
  background-size: 80% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  /* border-radius: inherit; */
  aspect-ratio: 1 / 1.866;
  /* box-shadow: 2px 3px 10px rgb(0 0 0 / 40%); */
}

.tile-inner {
  width: 80%;
  height: 90%;
  display: flex;
  border-radius: inherit;
  opacity: 0;
}

.tile-inner > p {
  line-height: 1;
  margin: 0 !important;
}

@media screen and (min-width: 1024px) {
  .wrap::-webkit-scrollbar {
    display: block;
    height: 10px;
    background-color: rgb(172 172 172 / 10%);
  }
}

@media screen and (min-width: 1280px) {
  .calendar-container {
    width: 5280px;
  }

  /* .wrap {
    width: 250px;
  } */

  .prize-box {
    width: 180px;
    border-radius: 16px;
    height: 180px;
  }
}

/* ============================== ANIMATIONS ============================== */

/* ------ PRIZE ANIMATION ------ */
.tile-animation {
  animation: tile-animation 1s linear forwards;
  transition: all 1s ease;
}

.prize-animation {
  animation: prize-animation 1s 0.5s linear forwards;
  transition: all 1s ease;
}

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

  80% {
    transform: scale(1.1);
    opacity: 0.5;
  }

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

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

  80% {
    transform: scale(1.1);
    opacity: 0.5;
  }

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

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

  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }

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

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

  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }

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

/* ============================== END OF ANIMATIONS ============================== */

/* ========== END OF ADVENT CALENDAR STYLES ========== */

/* element animations */
.logo,
.text-container,
.footer,
.form,
.social {
  animation: fadeIn 5s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInMain {
  0% {
    transform: translateX(120vw);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInMainRtl {
  0% {
    transform: translateX(-120vw);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInMainRtl {
  0% {
    transform: translateX(-120vw);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInMain {
  0% {
    transform: translateX(120vw);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.1);
    opacity: 0.1;
  }

  40% {
    opacity: 1;
  }

  80% {
    transform: scale(1.2);
    opacity: 1;
  }

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

@keyframes popIn {
  0% {
    transform: scale(0.1);
    opacity: 0.1;
  }

  40% {
    opacity: 1;
  }

  80% {
    transform: scale(1.2);
    opacity: 1;
  }

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

/*  ===== 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: 90%;
  max-width: 600px;
  height: auto;
  margin: auto;
  padding: 20px 10px;
  text-align: center;
  border-radius: 15px;
}

.limit-container h2 {
  margin: 0;
}

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

@media screen and (max-width: 1023px) {
  .wrap::-webkit-scrollbar {
    background-color: rgb(172 172 172 / 10%);
    border: 1px solid rgb(172 172 172 / 10%);
    height: 10px;
    border-radius: 10px;
  }
}

/* ================================ RTL SUPPORT ================================ */
[dir="rtl"] .custom-control.custom-checkbox {
  text-align: right;
  padding: 0 2.5rem 0 0 !important;
}

[dir="rtl"] .custom-control-label {
  text-align: right;
}

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

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

[dir="rtl"] #privacy_checbox_1,
[dir="rtl"] #privacy_checbox_2,
[dir="rtl"] #privacy_checbox_3 {
  text-align: right !important;
}

[dir="rtl"] .wrap {
  /* animation: fadeInMainRtl 4s 2s forwards; */
}

/* RTL calendar number positions */
[dir="rtl"] .num-pos-1,
[dir="rtl"] .num-pos-4,
[dir="rtl"] .num-pos-7 {
  justify-content: flex-end;
}

[dir="rtl"] .num-pos-3,
[dir="rtl"] .num-pos-6,
[dir="rtl"] .num-pos-9 {
  justify-content: flex-start;
}

.advent-calendar {
  justify-content: center;
}

@media screen and (min-width: 1280px) {
  .advent-calendar {
    justify-content: flex-start;
  }
}

.game-content-container {
  display: flex;
  /* height: 100%;
  min-height: 100svh; */
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 1280px) {
  .game-content-container {
    gap: 0;
    margin-top: auto;
  }
}

.wrap-container {
  width: 100%;
  position: relative;
  min-height: 500px;
  margin-top: auto;
}

@media screen and (min-width: 1280px) {
  .game-content-container {
    flex-direction: row;
  }
  .wrap-container {
    width: 60%;
    min-height: 700px;
    position: relative;
  }
}

.text-container {
  flex: 0 0 40%;
}

.wrap-container {
  flex: 0 0 60%;
}

.house-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 500px;
  width: auto;
  pointer-events: none;
  /* overflow: hidden; */
  object-fit: contain;
}

@media screen and (min-width: 1280px) {
  .house-img {
    width: auto;
    height: 700px;
    width: auto;
  }
}

/* .wrap::-webkit-scrollbar {
  display: none;
} */

.game-page-headline {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .game-page-headline {
    text-align: left;
  }
}

.partners-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  max-width: 500px;
  gap: 10px;
  padding: 5px 10px;
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50.5%, rgba(255, 255, 255, 0) 100%);
}

.partners-slider img {
  width: 80px;
  object-fit: contain;
  max-width: 100%;
  opacity: 0.5;
}

#snow {
  z-index: 99;
  position: relative;
}

.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(white, white);
  /* Workaround for Chromium's selective color inversion */
  border-radius: 50%;
  filter: drop-shadow(0 0 10px white);
}

.house-date {
  opacity: 0;
  transition: opacity 0.5s ease-in;
  font-size: 38px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 !important;
  z-index: 912;
  position: absolute;
  left: 50%;
  bottom: 285px;
  transform: translateX(-50%);
  font-weight: bold;
}

@media screen and (min-width: 1280px) {
  .house-date {
    font-size: 50px;
    bottom: 400px;
  }
}

.house-bg {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 100%;
}

.house-bg::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 28%;
  height: 55%;
  background-color: #321c0d;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  transform: translateX(-50%);
  min-width: 200px;
  max-height: 300px;
  max-width: 400px;
}

@media screen and (min-width: 1280px) {
  .house-bg::after {
    width: 40%;
    max-height: 400px;
  }
}

.wrap::-webkit-scrollbar {
  width: 0.5rem;
  height: 10px;
}

/* Track */
.wrap::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px white;
  border-radius: 10px;
}

/* Handle */
.wrap::-webkit-scrollbar-thumb {
  background: grey;
  border-radius: 10px;
}

/* Handle doors opening */

.house-doors {
  position: absolute;
  z-index: 95;
  bottom: 51px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 700px;
  cursor: pointer;
}

.door-left,
.door-right {
  height: 220px;
  transform: rotateY(0deg);
  transform-origin: left;
}

.door-right {
  transform-origin: right;
}

.door-left-img,
.door-right-img {
  height: 220px;
}
@media screen and (min-width: 1280px) {
  .house-doors {
    bottom: 71px;
  }

  .door-left,
  .door-right {
    height: 310px;
  }
  .door-left-img,
  .door-right-img {
    height: 310px;
  }
}

.door-left-open {
  animation: doorAnimationLeft 3s ease-in forwards;
}

.door-right-open {
  animation: doorAnimationRight 3s ease-in forwards;
}

@keyframes doorAnimationLeft {
  0% {
    transform: rotateY(0deg);
  }
  /* 40% {
    transform: rotateY(-160deg);
  }
  50% {
    transform: rotateY(-130deg);
  } */
  60% {
    transform: rotateY(-155deg);
  }
  70% {
    transform: rotateY(-135deg);
  }
  80% {
    transform: rotateY(-145deg);
  }
  90% {
    transform: rotateY(-137deg);
  }
  100% {
    transform: rotateY(-140deg);
  }
}

@keyframes doorAnimationRight {
  0% {
    transform: rotateY(0deg);
  }
  /* 40% {
    transform: rotateY(160deg);
  }
  50% {
    transform: rotateY(130deg);
  } */
  60% {
    transform: rotateY(155deg);
  }
  70% {
    transform: rotateY(135deg);
  }
  80% {
    transform: rotateY(145deg);
  }
  90% {
    transform: rotateY(137deg);
  }
  100% {
    transform: rotateY(140deg);
  }
}

.lock-left,
.lock-right {
  position: absolute;
  width: 10px;
  transform: translateX(-50%);
  bottom: 85px;
  left: 80%;
}

.lock-right {
  left: 20%;
}

#game-view {
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1280px) {
  .lock-left,
  .lock-right {
    position: absolute;
    width: 15px;
    transform: translateX(-50%);
    bottom: 140px;
    left: 80%;
  }

  .lock-right {
    left: 20%;
  }
}

h2[data-text] {
  font-size: 24px !important;
}

@media screen and (min-width: 1280px) {
  h2[data-text] {
    font-size: 38px !important;
  }
}

div[data-background] {
  background-position: bottom center !important;
}

.active-img {
  opacity: 1 !important;
  background: transparent;
}

/* Slider css */
#slider {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  width: calc(112px * 5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  transform: scale(0.6);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50.5%, rgba(255, 255, 255, 0) 100%);
}
@media screen and (min-width: 1280px) {
  #slider {
    margin-top: 1rem;
    transform: scale(1);
  }
}

#slider ul {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#slider ul li {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  width: 102px;
  height: auto;
  object-fit: contain;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.2s ease-in;
  display: flex;
  justify-content: center;
  padding-inline: 5px;
}
#slider ul li img {
  position: relative;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 102px;
  max-height: 100px;
}

.active-img {
  opacity: 1 !important;
  background: transparent;
}

/* Arrows */

.arrow-right,
.arrow-left {
  position: absolute;
  max-width: 45px;
  top: 62%;
  z-index: -1;
  cursor: pointer;
  pointer-events: all;
  opacity: 0;
}

.arrow-left {
  transform: translateY(-50%) rotate(180deg);
  left: 10px;
}
.arrow-right {
  transform: translateY(-50%);
  right: 10px;
}

@media screen and (min-width: 1280px) {
  .arrow-right,
  .arrow-left {
    max-width: 60px;
  }

  .arrow-left {
    left: 20px;
  }
  .arrow-right {
    right: 20px;
  }
}

.zIndex-back {
  z-index: -1;
}
.zIndex-front {
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .arrow-left:hover,
  .arrow-left:active,
  .arrow-right:hover,
  .arrow-left:active {
    opacity: 0.5;
  }
}
