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

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

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

@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-button]:hover,
  [data-color-social-primary]:hover,
  [data-color-social-secondary]:hover {
    opacity: 1 !important;
  }
}

[data-button] {
  padding: .8rem 1rem;
  border: 3px solid;
}

*,
body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --gold: #d5b375;
  --brown: #855433;
  --white: #fff;
  --brown-dark: #522401;
}

.heading-style {
  width: fit-content;
}

h1,h2,h3,h4,h5,h6,a {
  font-weight: bold;
}

a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
}

.wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.main {
  width: 100%;
  position: relative;
}

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

.gradient-shadow {
  background: rgb(0 0 0 / 50%);
  background: linear-gradient(0deg, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 40%) 60%, rgb(0 0 0 / 10%) 90%, rgb(0 0 0 / 0%) 100%);    
}

/* social icons */

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

[data-social] {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border: 2px solid white;
  border-radius: 0;
  overflow: hidden;
  margin: 10px 5px 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;
}

/* header main footer sizes */
.header,
.main,
.footer {
  z-index: 2;
}

.header {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.privacy-policy {
  margin: 1rem auto;
}

.panel {
  background: white;
  padding: 2rem;
  padding-bottom: 0;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 7rem;
  width: 100%;
  justify-content: center;
}

/* header */
.logo-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.logo-container > img {
  max-height: 120px;
  max-width: 280px;
  object-fit: contain;
}

.header-text {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

/* end of header */

/* footer */
.footer {
  width: 100%;
  text-align: center;
}

.footer-wrap {
  z-index: 1;
}

/* end of footer */

/* registration */
.main-reg {
  display: flex;
  flex-flow: column nowrap;
  max-width: 100%;
  justify-content: center;
}

.main-outcome {
  justify-content: space-evenly;
  overflow-x: hidden;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.prize-img {
  max-width: 600px;
  max-height: 400px;
  object-fit: contain;
}

/* form */
form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
  z-index: 4;
}

form * {
  background: transparent;
  border: 0;
  outline: 0;
  max-width: 100%;
}

.form-box,
.button-box,
.checkbox-box {
  width: 100%;
}

.form-box {
  display: flex;
  flex-flow: column wrap;
  margin-bottom: 10px;
}

.checkbox-box {
  display: flex;
  flex-direction: column;
}

#div-select > select {
  width: 100%;
  border: none;
}

.custom-checkbox {
  display: flex;
  flex-direction: row;
}

.form-box input,
.form-box select,
.span-select {
  width: 100%;
  border: var(--brown) 2px solid;
  border-radius: 0;
  padding: 0.5rem;
  margin: 0.5rem 0;
  text-align: center;
  min-height: calc(1rem + 36px);
}

select {
  appearance: none;
}

/* additional css to manage centering selectpicker in safari */
#select-div {
  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;
}

.button-box {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

button span {
  font-weight: bold;
}

#submit-button {
  padding: 0.8rem 1rem;
  border: solid 3px;
  position: absolute;
  margin-top: 2.5rem;
  min-width: 240px;
}

.main-reg,
.main-outcome {
  display: flex;
  flex-flow: column nowrap;
}

.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;
}

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

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

.custom-contol {
  width: 70%;
}

.check-col {
  margin-bottom: 10px;
  position: relative;
  width: 100%;
}

/* end of registration */
.outcome-txt {
  max-width: 90%;
}

/* title salutation hack + theres more on media quaries */
#div-select {
  position: relative;
  border: none;
}

option {
  color: black !important;
}

/* ADVENT CSS */
.advent-wrap {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
}

.col-container {
  max-width: 30.5rem;
  padding: 0;
}

.col-container .row {
  justify-content: space-between;
}

.prize-box {
  position: relative;
  margin: 0 0.4rem;
  margin-bottom: 0.8rem;
}

.prize-square-large {
  width: 9rem;
  height: 9rem;
}

.prize-rectangle-large {
  width: 18rem;
  height: 9rem;
}

.prize-square-medium {
  width: 6.5rem;
  height: 6.5rem;
}

.prize-rectangle-medium {
  width: 13rem;
  height: 6.5rem;
}

.prize-square-small {
  width: 5.2rem;
  height: 5.2rem;
}

.prize-rectangle-small {
  width: 10.4rem;
  height: 5.2rem;
}

.prize-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
}

.prize-wrap > img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  object-fit: cover;
}

.tile {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.tile-inner {
  width: 100%;
  height: 100%;
  padding: 12px;
  position: relative;
}

.date {
  font-size: 24px;
  color: var(--brown-dark);
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

/* positioning classes for date number in chocolate cube */
.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;
}

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

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

@media only screen and (max-width: 440px) {
  .prize-square-large {
    width: 28vw;
    height: 28vw;
  }

  .prize-rectangle-large {
    width: 56vw;
    height: 28vw;
  }

  .prize-square-medium {
    width: 20vw;
    height: 20vw;
  }

  .prize-rectangle-medium {
    width: 40vw;
    height: 20vw;
  }

  .prize-square-small {
    width: 16vw;
    height: 16vw;
  }

  .prize-rectangle-small {
    width: 32vw;
    height: 16vw;
  }
}

@media only screen and (min-width: 441px) and (max-width: 1450px) {
  .prize-square-large {
    width: 8.25rem;
    height: 8.25rem;
  }

  .prize-rectangle-large {
    width: 16.5rem;
    height: 8.25rem;
  }

  .prize-square-medium {
    width: 6rem;
    height: 6rem;
  }

  .prize-rectangle-medium {
    width: 12rem;
    height: 6rem;
  }

  .prize-square-small {
    width: 4.75rem;
    height: 4.75rem;
  }

  .prize-rectangle-small {
    width: 9.5rem;
    height: 4.74rem;
  }
}

@media only screen and (max-width: 992px) {
  .advent-wrap {
    max-width: 34rem;
  }

  .col-container .row {
    justify-content: center;
  }
}

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

/* keyframes */
@keyframes tile-animation {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(90deg);
    display: none;
  }
}

@keyframes tile-animation {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(90deg);
    display: none;
  }
}

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

/* keyframes */
@keyframes prize-animation {
  0% {
    transform: rotateX(90deg);
    opacity: 1;
  }

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

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

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

@media screen and (max-width: 768px) {
  .logo-container > img {
    max-height: 120px;
    max-width: 200px;
  }

  .panel {
    padding: 2rem;
    padding-bottom: 0;
    margin-top: 1rem;
    margin-bottom: 6rem;
  }

  #submit-button {
    margin-top: 2rem;
  }

  .prize-img { 
    max-width: 100%;
  }

  .form-box {
    width: 100%;
  }

  .check-col {
    margin-left: 0;
  }

  .main-outcome {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .check-col {
    margin-left: 1.4rem;
    width: 94%;
  }

  .reg-txt-mob {
    display: none;
  }

  .reg-txt {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    max-width: 90%;
  }

  .reg-txt > p, .reg-txt > h2 {
    max-width: 100%;
  }

  .checkbox-box {
    width: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  form {
    width: 80%;
  }

  .form-box {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
  }

  .form-box div {
    width: 45%;
  }

  .form-box,
  form,
  .checkbox-box, .main-outcome, .main-reg {
    width: 700px;
  }
}

@media screen and (min-width: 1024px) {
  .form-box,
  form,
  .checkbox-box, .main-outcome, .main-reg {
    width: 900px;
  }

  .check-col {
    margin-left: 1.9rem;
    width: 93%;
  }
}

@media screen and (min-width: 1200px) {
  .form-box,
  form,
  .checkbox-box, .main-outcome, .main-reg {
    width: 1024px;
  }

  .form-box div {
    width: 32%;
  }

  .check-col {
    margin-left: 0.9rem;
    width: 97%;
  }
}

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

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