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

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

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

@media only screen and (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;
  }
}

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

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%);
}

ul.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
  margin-top: 1.5rem;
}

ul.social li {
  margin: 0.5rem 1rem;
  display: inline-block;
}

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: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 18px;
  transition: all .3s ease-in-out;
}

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

/* 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;
  padding: 5px 10px;
  margin: 10px;
}

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

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

.privacy-policy .container {
  border-radius: 45px;
  margin: 1rem auto;
}

.panel {
  background: white;
  padding: 3rem;
  padding-bottom: 0;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 7rem;
  width: auto;
  border-radius: 45px;
}

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

.logo-container>img {
  max-height: 100px;
  max-width: 220px;
  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;
  margin-bottom: 5px;
}

/* 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-wrap {
  width: 16rem;
  height: 16rem;
  position: relative;
}

.prize-img {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  object-fit: cover;
  border-radius: 50%;
}

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

select {
  appearance: none;
}

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

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

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

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

.span-select, .span-select-2 {
  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: 3.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.55rem);
}

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

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


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

.custom-contol {
  width: 70%;
}

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

/* end of registration */
.outcome-txt {
  max-width: 600px;
}

/* 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;
  max-width: 60rem;
}

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

.prize-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 8px grey;
  opacity: 0;
}

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

.tile {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 8px grey;
}

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

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

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

@media only screen and (width >= 425px) and (width <= 986px) {
  .advent-wrap {
    max-width: 24rem;
  }
}

@media only screen and (width <= 1450px) {
  .prize-box {
    width: 6rem;
    height: 6rem;
  }

  .tile-inner {
    padding: 16px;
  }
}

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

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

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

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

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

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

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

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

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

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

@media screen and (width >= 540px) {
  picture>img {
    height: 560px;
    width: 300px;
  }
}

@media screen and (width <= 768px) {
  .panel {
    padding: 2rem;
    padding-bottom: 0;
    margin-top: 1rem;
    margin-bottom: 8rem;
  }

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

  picture>img {
    height: 560px;
    width: 300px;
  }

  .form-box {
    width: 100%;
  }

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

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

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

  picture>img {
    height: 400px;
    width: 600px;
  }

  .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 (width >= 1024px) {
  picture>img {
    height: 600px;
    width: 1000px;
  }

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

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

@media screen and (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;
  margin: auto;
  padding: 20px 10px;
  text-align: center;
}

.limit-container h2 {
  margin: 0;
}

@media screen and (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"] #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;
}