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

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

@media only screen and (max-width: 768px) {
  .privacy-policy {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    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;
}

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

html,
body {
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--olive-green);
  position: relative;
  font-family: "OpenSans-Regular";
}

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

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

.col-12 {
  padding: 0;
}

/* this was necessary so the graphics on the bottom side are visible on all resolutions */
div[data-background] {
  background-position: bottom !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,
.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 */
a {
  text-decoration: none;
  font-weight: bold;
}

:root {
  --olive-green: #434f29;
  --silver: #e6e6e6;
  --white: #ffffff;
}

.header {
  display: flex;
  flex-flow: column nowrap;
  z-index: 6;
}

.footer {
  z-index: 6;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: auto 0 10px 0;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 0 30px 0;
  margin: 0 auto;
}

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

.gm-text {
  margin: 0 auto 20px auto;
  padding: 0 10px;
}

.header-text {
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* styles for cards */
.prize-box {
  position: relative;
  width: 100px;
  height: 86px;
}

.prize-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
}

.prize-wrap img {
  width: 60%;
  height: auto;
  z-index: 3;
}

.tile {
  width: 100%;
  height: 100%;
  z-index: 4;
  position: relative;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.tile-inner {
  width: 95%;
  height: 95%;
  z-index: 5;
  position: relative;
}

.date {
  color: var(--silver);
  font-weight: bold;
  line-height: 100%;
  margin: 0;
  z-index: 6;
  position: relative;
  cursor: default;
  font-size: 24px;
}

/* end of styles for cards */
.calendar-wrap {
  display: flex;
  flex-flow: row wrap;
  gap: 1px;
  width: 302px;
  margin: 0 auto;
}

/* REGISTER PAGE */
.prize-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-text,
.img-row {
  margin: 0 0 30px 0;
}

.submit-container {
  margin-bottom: 30px;
}

.button-col {
  display: flex;
  justify-content: center;
}

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

form {
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  height: auto;
  align-items: center;
}

.form-wrap {
  margin-bottom: 30px;
}

form input,
form select {
  width: 100%;
  border: none;
  border-bottom: 1px solid;
  text-align: center;
}

.form-group {
  margin: 0 auto 10px auto;
  padding: 0;
  width: 90%;
}

input {
  background-color: transparent !important;
}

.form-control {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid;
}

.custom-control-input~.custom-control-label::before {
  background-color: transparent !important;
  border-radius: 0 !important;
  border: var(--olive-green) 1px solid;
}

.custom-checkbox .custom-control-input:checked~[data-color-primary-text-checkbox]::after {
  background-color: var(--olive-green);
  background-size: 50% 50%;
  background-image: none !important;
  position: absolute;
  transform: scale(0.6);
}

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

.checkbox-row {
  margin: 0 auto 20px 0;
}

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

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

/* title salutation hack */
.span-select {
  width: 100%;
  height: 48px;
  background-color: transparent;
  border-radius: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  border: none;
  border-bottom: var(--olive-green) 1px solid;
  vertical-align: bottom;
}

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

#div-select {
  position: relative;
  border: none;
}

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

/* end of register page */
/* outcome page */
.main-outcome,
.main-reg,
.main {
  margin: 0 auto 150px auto;
}

ul {
  width: 100% !important;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

li {
  list-style: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--olive-green);
}

li>a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--silver);
}

li>a>i {
  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;
}

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

/* end of outcome page */
/* Animation */
.tile-animation {
  -webkit-animation: tile-animation 0.5s linear forwards;
  animation: tile-animation 0.5s linear forwards;
}

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

/* end of Animation */
/* Media quarries */
@media screen and (max-width: 319px) {
  .calendar-wrap {
    width: 272px;
  }

  .prize-box {
    width: 90px;
    height: 77px;
  }
}

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

  .prize-box {
    width: 200px;
    height: 172px;
  }
}

@media screen and (max-width: 1024px) {

  /* white gradiant on bg on mobile devices */
  .content {
    background: linear-gradient(0deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 50%);
  }

  .button-col button {
    width: 95%;
  }

  .prize-img {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }

  .element-1-outcome,
  .element-2-reg {
    margin-bottom: 50px;
  }

  ul {
    margin-right: auto;
    margin-left: auto;
  }

  .gm-text {
    text-align: center;
  }
}

/* BUDZ */
@media screen and (width: 1024px) and (height: 768px) {
  .form-wrap>.col-lg-4 {
    width: 30% !important;
  }
}

@media screen and (min-width: 1025px) {

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

  .cta-buttons {
    justify-content: flex-start;
  }

  .prize-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
  }

  .item-4 {
    margin-left: 0;
  }

  .outcome-grid {
    margin-left: 0;
    width: 70%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-column-gap: 50px;
    grid-template-areas:
      "headline pic"
      "prize pic"
      "text pic"
      "cta pic"
      "socials pic";
  }

  .item-1, .item-2, .item-4, .item-5 {
    width: 90%;
  }

  .item-1 {
    grid-area: headline;
  }

  .item-2 {
    grid-area: prize;
  }

  .item-3 {
    grid-area: 1 / pic-start / last-line / end;
    margin-left: auto;
    width: 100%;
  }

  .item-4 {
    grid-area: cta;
  }

  .item-6 {
    grid-area: socials;
  }

  .item-5 {
    grid-area: text;
  }

  ul {
    justify-content: flex-start;
    gap: 36px;
  }

  .element-2-reg {
    margin-left: 0;
  }

  .main-outcome>.element-1>.row {
    margin-left: 0;
    margin-right: auto !important;
  }

  .header-text {
    text-align: left;
    margin: 0 auto 30px 0;
  }

  form select,
  form input {
    text-align: left !important;
    padding-left: 0 !important;
  }

  .span-select {
    display: none;
  }

  select {
    opacity: 1;
    background-color: transparent !important;
  }

  .element-1 {
    margin-right: 150px;
  }

  .element-1,
  .element-2 {
    max-width: 50%;
  }

  .element-1-outcome {
    width: 40%;
    max-width: 470px;
    margin-left: 0;
  }

  .header {
    margin-bottom: 50px;
  }

  ul {
    margin: 50px 0;
  }

  .prize-text {
    align-items: flex-start;
  }

  .button-col {
    justify-content: flex-start;
  }

  .footer {
    justify-content: flex-start;
    padding: 0;
  }

  .content {
    padding: 0;
    min-height: calc(100vh - 50px);
  }

  .calendar-wrap {
    width: 803px;
    margin: 0 auto 0 0;
  }

  .prize-box {
    width: 133px;
    height: 114px;
  }

  .gm-text {
    margin: 0 auto 30px 0;
    padding: 0;
  }

  .content {
    margin: 50px 50px 0 50px;
  }

  .logo-container {
    margin: 0 auto 0 0;
  }

  .main-reg,
  .main-outcome {
    margin: 0 auto 50px 0;
    display: flex;
    flex-flow: row;
  }

  form {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    width: calc(100% + 10px);
  }

  .form-wrap {
    margin: 0 0 40px 0;
  }

  .form-group {
    margin: 0 40px 30px 0;
  }

  button>span {
    padding: 0 30px 0 30px;
  }

  .col-12 {
    padding: 0;
  }
}

@media screen and (min-width: 1280px) {
  .calendar-wrap {
    width: 905px;
  }

  .prize-box {
    width: 150px;
    height: 129px;
  }
}

@media screen and (min-width: 1360px) {
  .calendar-wrap {
    width: 965px;
  }

  .prize-box {
    width: 160px;
    height: 137px;
  }
}

@media screen and (min-width: 1600px) {
  .calendar-wrap {
    width: 1115px;
  }

  .prize-box {
    width: 185px;
    height: 159px;
  }

  form {
    width: calc(100% + 400px);
  }

  .form-group {
    margin: 0 80px 40px 0;
  }
}


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

  100% {
    opacity: 1;
  }
}

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

  100% {
    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: 100%;
  max-width: 600px;
  height: auto;
  margin: auto;
  padding: 20px 10px;
  text-align: center;
}
.limit-container h2 {
  margin: 0;
}
#limit-reached .main {
  margin: auto;
}
@media screen and (min-width: 410px) {
  .limit-container {
    padding: 30px 20px;
  }
}
@media screen and (min-width: 1024px) {
  #limit-reached .main {
      margin: auto auto auto 0;
    }
}