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

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

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

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

html,
body {
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--white);
}

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

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

body>[data-background] {
  background-position: bottom !important;
  background-size: cover !important;
}

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

.foil-reg {
  pointer-events: none;
}

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

.foil {
  display: none;
  max-height: 100%;
}

.foil-mob {
  max-height: 100%;
  /* height: 450px; */
}

.foil,
.foil-mob {
  position: absolute;
  pointer-events: none;
}

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

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

.main {
  width: 100%;
  height: 700px;
  overflow-x: hidden;
  position: relative;
  /* position: absolute; */
  /* bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end; */
}

.main-register {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

/* background decoration elements */
.bg-decor-1,
.bg-decor-2,
.bg-decor-3 {
  max-width: 70px;
}

.bg-decor-4,
.bg-decor-5,
.bg-decor-6,
.bg-decor-7 {
  max-width: 200px;
}

.bg-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.bg-decor-1 {
  top: 0;
  left: 0;
  margin-left: 5%;
}

.bg-decor-2 {
  top: 0;
  right: 0;
  margin-right: 5%;
}

.bg-decor-3 {
  top: 0;
  right: 0;
  margin-right: 5%;
  display: none;
}

.bg-decor-4 {
  bottom: 0;
  left: 0;
}

.bg-decor-5 {
  bottom: 0;
  right: 0;
  /* flip image */
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.bg-decor-6 {
  bottom: 0;
  left: 0;
}

.bg-decor-7 {
  bottom: 0;
  right: 0;
  /* flip image */
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

/* end of background decoration elements */
/* header main footer sizes */
.header,
.main,
.footer {
  z-index: 2;
}

.header {
  width: 100%;
  display: flex;
}

/* header */
.logo-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.logo-container>img {
  max-height: 120px;
  max-width: 180px;
}

.header-text {
  max-width: 50%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

/* end of header */
/* main */

.chocolate-wrap {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 15px;
}

.prize-box {
  position: relative;
  width: 51px;
  height: 45px;
  flex-grow: 1;
}

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

.prize-wrap>img {
  position: absolute;
  width: 80%;
  max-height: 80%;
  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: 90%;
  height: 90%;
  position: relative;
}

.date-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
}

.date {
  font-size: 24px;
  color: var(--brown-dark);
  font-weight: 800;
  line-height: 100%;
  cursor: default;
  white-space: nowrap;
}

#register {
  display: flex;
  flex-direction: column;
}

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

/* end of positioning classes for date number in chocolate cube */
/* end of main */
/* footer */
.footer {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
}

.footer-wrap {
  z-index: 1;
  margin-bottom: 0.2rem;
}

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

.footer-wrap-register {
  z-index: 1;
  margin-bottom: 1rem;
}

/* end of footer */
/* registration */
.main-reg {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  max-width: 100vw;
  justify-content: center;
}

.main-outcome {
  justify-content: space-evenly;
  overflow-x: hidden;
}

.reg-img-wrap {
  position: relative;
  width: 100%;
  /* height: 300px; */
}

.reg-img-wrap>.foil-reg {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
}

.prize-img {
  max-height: 400px;
}

.prize-img-wrap {
  width: 80%;
  height: 80%;
  position: relative;
  min-height: 130px;
  object-fit: contain;
}

/* form */
#title-input {
  color: var(--white);
}

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

form * {
  background: transparent;
  border: 0;
  outline: 0;
}

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

.form-group {
  margin-bottom: 0;
}

.form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

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

.options {
  text-align: center;
}

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

.form-box input,
.form-box select {
  width: 100%;
  border: var(--brown) 1px solid;
  border-radius: 10px;
  text-align: center;
  padding: 10px 5px;
}

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

button span {
  font-weight: bold;
}

#submit-button {
  background-color: var(--brown-dark);
  padding: 5px 35px;
}

#submit-button span {
  color: var(--white);
}

.main-reg,
.main-outcome {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
}

.custom-contol-label {
  height: fit-content;
}

.custom-control-input {
  margin: 7px;
}

.span-select {
  width: 100%;
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  /* border-bottom: var(--brown) 1px solid; */
  vertical-align: bottom;
  line-height: 100%;
}

.reg-txt {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-width: 600px;
  margin-bottom: 20px;
  margin-top: 20px;
}

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

/* overrided main.css for custm checkboxes */
.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
  background-color: transparent !important;
  border-radius: 0 !important;
}

.custom-control-input:checked~.custom-control-label::before {
  background-color: transparent !important;
  border-radius: 0 !important;
}

.custom-checkbox .custom-control-input~.custom-control-label::before {
  background-color: transparent !important;
  border-radius: 0 !important;
  border: var(--brown-dark) 1px solid;
  width: 16px;
  height: 16px;
}

.custom-control-input~.custom-control-label::before {
  background-color: transparent !important;
  border-radius: 0 !important;
  left: -25px;
}

.custom-checkbox .custom-control-input:checked~[data-color-primary-checkbox]::after {
  background-color: var(--brown-dark);
  background-size: 50% 50%;
  background-image: none !important;
  position: absolute;
  left: -22px;
  width: 10px;
  height: 10px;
}

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

.custom-checkbox .custom-control-label::before {
  top: calc(50% - 8px);
}

.custom-checkbox .custom-control-label::after {
  top: calc(50% - 0.5rem);
  left: -1.55rem;
  background: none !important;
  transform: scale(0.6);
}

.custom-checkbox .custom-control-input:disabled~[data-color-primary-checkbox]::after {
  pointer-events: none;
}

.custom-contol {
  width: 70%;
}

#title-input {
  height: 41px;
}

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

/* end of registration */
/* conformation */
li {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

li>a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

li>a>i {
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

li>a>i:hover {
  opacity: 0.45;
}

ul {
  width: fit-content;
  list-style-type: none;
  padding: 0;
}

.outcome-txt {
  max-width: 600px;
}

/* title salutation hack + theres more on media quaries*/
#div-select {
  position: relative;
  border: none;
  border: 1px solid;
  border-radius: 10px;
  padding-top: 5px;
}

.span-select {
  pointer-events: none;
  position: absolute;
  bottom: 10px;
  width: 100%;
  height: 20px;
  background-color: transparent;
  border: none;
}

select {
  opacity: 0;
  vertical-align: bottom;
}

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

/* animation */
.tile-animation {
  -webkit-animation: tile-animation 4s ease-out;
  animation: tile-animation 4s ease-out;
}

/* keyframes */
@-webkit-keyframes tile-animation {
  0% {
    z-index: 100;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }

  20% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0.7;
  }

  25% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0.5;
  }

  30% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  35% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  40% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  45% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  50% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  55% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  60% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  70% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  80% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  100% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }
}

@keyframes tile-animation {
  0% {
    z-index: 100;
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }

  20% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0.7;
  }

  25% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0.5;
  }

  30% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  35% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  40% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  45% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  50% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  55% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  60% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  70% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  80% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }

  100% {
    z-index: 100;
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    opacity: 0;
  }
}

/* end of animation */
/* media quaries */

@media screen and (max-width: 767px) {
  .header-text {
    max-width: 90%;
  }

  .form-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1[data-text] {
    font-size: 18px !important;
  }

  .main {
    height: 1300px;
  }

  .foil-mob {
    display: block;
  }

  .foil {
    display: none;
  }

  .foil-mob {
    position: absolute;
    display: block;
    width: 550px;
    height: 1130px;
    bottom: 170px;
    left: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 294px;
    left: 105px;
    gap: 10px;
    width: 355px;
  }

  .prize-box {
    flex-basis: 30%;
    height: 110px;
  }
}

@media screen and (max-width: 550px) {
  [data-text] {
    font-size: 16px !important;
  }

  .footer-wrap {
    margin-bottom: 0.2rem;
  }

  h1[data-text] {
    font-size: 18px !important;
  }

  .main {
    height: 1070px;
  }

  .foil-mob {
    display: block;
  }

  .foil {
    display: none;
  }

  .foil-mob {
    position: absolute;
    display: block;
    width: 450px;
    height: 930px;
    bottom: 170px;
    left: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 272px;
    left: 85px;
    gap: 10px;
    width: 291px;
  }

  .prize-box {
    flex-basis: 27%;
    height: 89px;
  }
}

@media screen and (max-width: 450px) {
  [data-text] {
    font-size: 16px !important;
  }

  .footer-wrap {
    margin-bottom: 0.2rem;
    font-size: 14px !important;
  }

  h1[data-text] {
    font-size: 18px !important;
  }

  .main {
    height: 870px;
  }

  .foil-mob {
    display: block;
  }

  .foil {
    display: none;
  }

  .foil-mob {
    position: absolute;
    display: block;
    width: 350px;
    height: 730px;
    bottom: 170px;
    left: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 250px;
    left: 68px;
    gap: 10px;
    width: 223px;
  }

  .prize-box {
    flex-basis: 27%;
    height: 68px;
  }
}

@media screen and (max-width: 365px) {
  h1[data-text] {
    font-size: 18px !important;
  }

  .main {
    height: 650px;
  }

  .foil-mob {
    display: block;
  }

  .foil {
    display: none;
  }

  .foil-mob {
    position: absolute;
    display: block;
    width: 250px;
    height: 500px;
    bottom: 170px;
    left: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 230px;
    left: 53px;
    gap: 7px;
    width: 150px;
  }

  .prize-box {
    flex-basis: 27%;
    height: 45px;
  }
}

@media screen and (min-width: 768px) {
  .main {
    height: 600px;
  }

  .foil-mob {
    display: none;
  }

  .foil {
    display: block;
  }

  .foil {
    position: absolute;
    display: block;
    width: 800px;
    height: 370px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 52px;
    right: 198px;
    gap: 10px;
    width: 475px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 70px;
  }
}

@media screen and (min-width: 900px) {
  .foil {
    position: absolute;
    display: block;
    width: 900px;
    height: 423px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 57px;
    right: 222px;
    gap: 10px;
    width: 535px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 82px;
  }
}

@media screen and (min-width: 1025px) {
  .foil {
    position: absolute;
    display: block;
    width: 1013px;
    height: 470px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 63px;
    right: 245px;
    gap: 10px;
    width: 607px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 91px;
  }
}

@media screen and (min-width: 1100px) {
  .foil {
    position: absolute;
    display: block;
    width: 1100px;
    height: 525px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 68px;
    right: 269px;
    gap: 10px;
    width: 660px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 105px;
  }
}

@media screen and (min-width: 1200px) {
  .main {
    height: 730px;
  }

  .foil {
    position: absolute;
    display: block;
    width: 1200px;
    height: 550px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 71px;
    right: 293px;
    gap: 10px;
    width: 720px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 110px;
  }
}

@media screen and (min-width: 1400px) {
  .foil {
    position: absolute;
    display: block;
    width: 1400px;
    height: 640px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 81px;
    right: 339px;
    gap: 10px;
    width: 845px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 130px;
  }
}

@media screen and (min-width: 1600px) {
  .foil {
    position: absolute;
    display: block;
    width: 1600px;
    height: 733px;
    bottom: 0;
    right: 0;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 97px;
    right: 388px;
    gap: 6px;
    width: 965px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 150px;

  }
}

@media screen and (min-width: 1810px) {
  .main {
    height: 770px;
  }

  .foil {
    position: absolute;
    display: block;
    width: 1690px;
    height: 800px;
    bottom: 0;
    right: 0;
  }

  .tile {
    width: 102%;
    height: 102%;
  }

  .chocolate-wrap {
    display: flex;
    position: absolute;
    bottom: 99px;
    right: 409px;
    gap: 12px;
    width: 1020px;
  }

  .prize-box {
    flex-basis: 14%;
    height: 155px;
  }
}

.prize-animation {
  -webkit-animation: prize-anim 2s ease-out;
  animation: prize-anim 2s ease-out;
  animation-fill-mode: forwards;
}

/* keyframes */
@-webkit-keyframes prize-anim {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes prize-anim {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#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 (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;
}
[dir="rtl"] #privacy_checbox_1,
[dir="rtl"] #privacy_checbox_2,
[dir="rtl"] #privacy_checbox_3 {
  text-align: right !important;
}
/* 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;
}
#social a:hover {
  text-decoration: none;
}