* {
  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 .3s ease-out, opacity .5s ease-in;
}

[data-social]:hover {
  transform: translateY(-10px);
  opacity: .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;
  margin: 20px 0 30px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

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

.text-container {
  width: 100%;
  height: auto;
  padding: 5px;
  position: relative;
  z-index: 2;
}

.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: 6240px;
  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 .3s ease;
}

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

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

.wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  overflow: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fadeInMain 3s ease-in forwards;
}

.prize-box {
  width: 220px;
  height: calc(220px * 1.866);
  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: 90%;
  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: cover !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;
}

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

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

  .prize-box {
    width: 350px;
    border-radius: 22px;
    height: calc(350px * 1.866);
  }
}

@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: 7200px;
  }

  .prize-box {
    width: 260px;
    border-radius: 16px;
    height: calc(260px * 1.866);
  }
}

/* ============================== 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;
}