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

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

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

[data-email] {
  position: relative;
  min-height: 100vh;
  background-color: black;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
}

:root {
  --yellow: #f7ce1b;
  --grey: #1c1c1c;
  --white: #fff;
}

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

html,
body {
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--grey);
  position: relative;
  font-family: Popins-Regular, sans-serif;
}

h1,
h2,
h4,
h5,
h6 {
  margin-bottom: 24px;
}

p {
  margin-bottom: 18px;
}

.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.col-12 {
  padding: 0;
}

.row {
  margin: 0;
}

/* this was necessary so the graphics on the bottom side are visible on all resolutions */
div[data-background] {
  background-position: bottom center !important;
}

/* 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 {
  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 */
a {
  text-decoration: none;
}

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

.main {
  width: 90%;
  display: flex;
  flex-direction: column;
  place-content: center space-between;
  align-items: center;
  justify-content: space-between;
}

.logo-container img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}

.text,
.footer {
  text-align: center;
  display: flex;
  justify-content: center;
}

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

.footer > span,
.footer > a {
  font-size: 14px !important;
}

.header {
  margin: 10px auto 50px;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CALENDAR STYLES */
.calendar-wrap {
  width: 218px;
  height: auto;
  margin-bottom: 30px;
}

.small-tiles {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  gap: 15px;
}

.big-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 218px;
  height: 218px;
}

.prize-box {
  position: relative;
}

.small-tiles .prize-box {
  width: 101px;
  height: 101px;
}

.prize-wrap {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0;
}

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

.tile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.tile-inner {
  width: 70%;
  height: 70%;
}

.prize-box p {
  margin: 0;
  line-height: 1;
}

.big-tile .prize-box {
  flex-basis: 100%;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 320px) {
  .big-tile {
    width: 258px;
    height: 258px;
  }

  .small-tiles .prize-box {
    width: 121px;
    height: 121px;
  }

  .calendar-wrap {
    width: 258px;
    height: auto;
  }
}

@media screen and (min-width: 360px) {
  .big-tile {
    width: 298px;
    height: 298px;
  }

  .small-tiles .prize-box {
    width: 141px;
    height: 141px;
  }

  .calendar-wrap {
    width: 298px;
    height: auto;
  }
}

@media screen and (min-width: 480px) {
  .big-tile {
    width: 418px;
    height: 418px;
  }

  .small-tiles .prize-box {
    width: 201px;
    height: 201px;
  }

  .calendar-wrap {
    width: 418px;
    height: auto;
  }
}

@media screen and (min-width: 600px) {
  .big-tile {
    width: 548px;
    height: 548px;
  }

  .small-tiles .prize-box {
    width: 261px;
    height: 261px;
  }

  .calendar-wrap {
    width: 548px;
    height: auto;
  }
}

@media screen and (max-width: 1024px) {
  .main {
    min-height: 100vh;
  }
}

@media screen and (min-width: 1025px) {
  .main {
    max-width: 67%;
    width: fit-content;
    height: auto;
    margin: auto 0 auto auto;
    padding: 10px 50px;
  }

  .calendar-wrap {
    width: 100%;
    height: auto;
    justify-content: center;
    margin: 50px auto;
  }

  .small-tiles {
    height: auto;
    width: 351px;
  }

  .big-tile {
    height: auto;
    height: 234px;
    width: 234px;
  }

  .small-tiles .prize-box {
    width: 100px;
    height: 100px;
  }
}

@media screen and (min-width: 1280px) {
  .main {
    padding: 10px 80px;
  }

  .calendar-wrap {
    width: 738px;
    height: auto;
  }

  .small-tiles {
    width: 442px;
  }

  .small-tiles > .prize-box {
    width: 135px;
    height: 135px;
  }

  .big-tile {
    width: 296px;
    height: 296px;
  }
}

/* END OF CALENDAR STYLES */

/* REGISTER PAGE */

.form-row {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
}

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

select {
  appearance: none;
}

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

.checkbox-box label span,
.checkbox-box label a {
  font-size: 14px !important;
}

#submit-button {
  max-width: 100%;
  min-width: 250px;
  padding: 10px 20px;
}

#submit-button span {
  white-space: normal;
}

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

div[input-group] {
  width: 100%;
  max-width: 400px;
}

.check-row {
  margin-bottom: 10px;
}

.check-row,
.custom-checkbox,
.custom-checkbox label {
  min-height: 27px;
  vertical-align: middle;
}

label > span,
label > a {
  line-height: 2;
}

input:focus,
select:focus {
  outline: none;
}

.custom-control-label::before {
  border: var(--grey) 1px solid;
  background-color: var(--white);
  border-radius: 0 !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--white);
}

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

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

/* social icons */

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

[data-social] {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  margin: 10px 5px 0;
  transition: transform .3s ease-out, opacity .4s 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;
}


@media screen and (min-width: 767px) {
  div[input-group] {
    flex-basis: 47%;
  }

  .form-row {
    max-width: 825px;
  }

  .checkbox-box {
    width: 95%;
  }
}

/* OUTCOME */
#outcome-image {
  border-radius: 50%;
  margin-bottom: 50px;
  width: 250px;
  height: 250px;
  max-width: 100%;
}

/* 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 {
  animation: tile-animation 0.5s linear forwards;
}

.prize-animation {
  animation: prize-animation 0.5s 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;
  }
}

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

#outcome-image, 
.prize-wrap > img {
  object-fit: cover;
}

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

@media screen and (min-width: 1024px) {
  .limit-container {
    margin: 100px auto 150px;
  }
}

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

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

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

[dir="rtl"] .custom-control-label {
  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;
}