/* UNIVERSAL */

@font-face {
  font-family: "Gilroy";
  src: url("/fonts/Gilroy-Heavy.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/fonts/Gilroy-Medium.otf") format("opentype");
  font-weight: thin;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Calika";
  src: url("/fonts/CSCalika-Regular.otf") format("opentype");
  font-weight: thin;
  font-style: normal;
  font-display: swap;
}

* {
  /* disable on touch highlights of html elements, especially on mobile! */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@property --main-color {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(252, 244, 200, 1);
}

@property --secondary-color {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(235, 0, 18, 1);

}


html.won2 {
  background-color: #fff;
}

html,
body {
  touch-action: none;
  /* touch-action: manipulation; */
  margin: 0;
  height: 100%;
  overflow: hidden;
  background-color: var(--main-color);
  font-family: "Calika", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-weight: thin;
  color: #161616;
  /* touch-action: pan-y; */
  cursor: pointer;
  overscroll-behavior: none;
}

* {
  touch-action: none;
}

.bossfont,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Calika", Arial;
  font-weight: bold;
  font-style: normal;
  color: var(--secondary-color);
}

h3 {
  margin: 0px;
  padding: 0px;
  font-size: 4rem;
  line-height: 60px;
}

h5 {
  font-size: 1.5rem;
}

section {
  height: 100vh;
  width: 100vw;
}

/* LAYOUTS GENERAL */

.grid {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fullpage {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.background-pattern {
  background-image: url("/images/bg-pattern.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.background-frame-top,
.background-frame-bottom {
  width: 100vw;
  height: 3vh;
  position: absolute;
  background-color: var(--secondary-color);
  background-image: url('../images/frame.svg');
  background-repeat: repeat-x;
  background-size: contain;
  animation: frame 500s linear infinite;

}

@keyframes frame {
  0% {
    background-position: 0;
  }

  100% {
    background-position: -10000px;
  }
}

.background-frame-top {

  top: 0;

}

.default-content {
  position: absolute;
  pointer-events: none;
}


.background-frame-bottom {

  bottom: 0;
  animation-direction: reverse;
}

.header-img,
.frog-img,
.start-img,
.instruction-img,
.arrow-right-img,
.arrow-left-img,
.company-img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-img {
  margin: 3% 0 0 0;
  background-image: url("/images/logo.svg");
}

.frog-img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  /* bottom: -10vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.company-img {
  background-image: url("/images/company.svg");
  width: 90%;
  height: 5%;
  position: absolute;
  bottom: 3vh;
  left: 5%;
  right: 5%;
}

#green-frog {
  background-image: url("/images/characters/green-frog.svg");
}

#red-frog {
  background-image: url("/images/characters/red-frog.svg");
}

.frog-img.green,
.frog-img.red {
  background-size: 70%;
  pointer-events: none;
}

.frog-img.green {
  background-image: url("/images/characters/green-frog-without-card.svg");

}

.frog-img.red {
  background-image: url("/images/characters/red-frog-without-card.svg");
}


.green-instruction-img,
.red-instruction-img {
  width: 90%;
  height: 90%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  top: -3vh;
}

.green-instruction-img {

  background-image: url("/images/characters/green-car.svg");

}

.red-instruction-img {
  background-image: url("/images/characters/red-car.svg");

}

.instruction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
  height: 90% !important;
  bottom: 10vh;
}

.start-img,
.submit-img,
.skip-img {
  /* background-image: url("/images/start-text.svg");
  background-position: bottom !important; */
  position: absolute;
  width: 100%;
  height: 40%;
  background-color: var(--secondary-color);
  border-radius: 100px;
  font-size: 8vw;
  align-content: center;
  color: var(--main-color);
}

.instruction-img {
  /* background-image: url("/images/arrow-instructions.png"); */
}

.arrow-left-img {
  background-image: url("/images/left.png");
  background-position-x: left;
}

.arrow-right-img {
  background-image: url("/images/right-btn.svg");
  background-position-x: right;
}

.bubble-1,
.bubble-2,
.bubble-3 {
  position: absolute;
  height: 20%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

}

.bubble-1-red,
.bubble-1-green {
  width: 50%;
  background-image: url('../images/bubble1-text.svg');
}

.bubble-1-green {
  transform: translateX(-20%);
}

.bubble-1-red {  transform: translate(-30%, 40%);}

.bubble-2-red,
.bubble-2-green {
  width: 50%;
  background-image: url('../images/bubble2-text.svg');
}

.bubble-2-green {
  top: 20%;
}

.bubble-2-red {
  top: 20%;
  left: -13%;
}

.bubble-3-green,
.bubble-3-red {
  width: 50%;
  background-image: url('../images/bubble3.svg');
}

.bubble-3-green {
  top: 1vw;
  align-self: center;
}

.bubble-3-red {
  top: 2%;
}

.btn {
  touch-action: manipulation !important;
}

#startbtn,
#submitBtn,
#skipBtn {
  width: 60%;
  height: 20%;
  bottom: 5vh;
  position: absolute;
  left: 0;
  right: 0;
}

#skip {
  /* width: 40%; */
  font-size: 1.5rem;
  width: 180px;
  height: 70px;
}




#skipBtn {
  /* position: absolute;
  width: 50%;
  height: 10%;
  background-color: var(--secondary-color);
  border: 10px solid rgba(0, 0, 0, 0.3);
  border-radius: 100px;
  background-image: url('../images/skip-icon.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 45%; */

}

.skip-img {
  /* background-color: var(--secondary-color);
   */
  border-radius: 100px;

  --offset: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 2rem auto;
  /* background: conic-gradient( var(--secondary-color) calc(var(--offset) * 2), 
    transparent calc(var(--offset) * 2)) border-box; */
    background: conic-gradient( rgb(0,0,0) var(--progress, 0), 
    transparent 0%);
}

.skip-img::after{
  content: '';
  background-color: var(--secondary-color);
  border-radius: inherit;
  width: calc(100% - var(--offset)*2);
  aspect-ratio: 20/7;
  display: grid;
  background-image: url('../images/skip-icon.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 45%;
}

.instruction .text {
  position: absolute;
  bottom: 1vh;
}

.text {
  width: 100%;
  height: auto;
  color: var(--secondary-color);
  font-size: 3vh;
  line-height: 3vh;
}

.top,
.bottom,
.middle {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  line-height: 1em;
  text-align: center;
  font-size: 4em;
  cursor: pointer;
  position: relative;
  height: 25%;
}

.flex-colume-end {
  display: flex;
  flex-direction: column;
  gap: 10%;

}

.flex-colume-end {
  justify-content: flex-end;
}


.bottom-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
  height: 25%;
  left: 5%;
  right: 5%;
}

.middle {
  height: 100%;
}

.middle-container {
  height: 70%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.middle-translate-top {
  top: 25vh;
}

/* .top {
  top: 0px;
}
.bottom {
  top: 75%;
} */

#content {
  top: 25%;
  height: 50%;
  width: 100vw;
  position: absolute;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

.main {
  width: 100vw;
  height: 100%;
  line-height: 0.5em;
  cursor: pointer;
  text-align: center;
  font-size: 3em;
  overflow: hidden;
}

/* DISCLAIMER SCREEN */

#disclaimer {
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  width: 100%;
  background-color: #161616;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  -webkit-overflow-scrolling: touch;
  overflow: scroll;
  height: 100%;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  /* TODO styled scrollbar */
}

#disclaimer::-webkit-scrollbar {
  display: none;
}

#disclaimer p {
  margin: 40px;
  text-align: justify;
}

#busy {
  background-color: #fff;
}

#disclaimer h3 {
  font-size: 24px;
}

#disclaimer p {
  color: #ccc;
  font-size: 14px;
}

/* --- END DISCLAIMER SCREEN */

/* --- INTRO SCREEN --- */
.input-field {
  width: 70%;
  height: 15%;
  border-radius: 30px;
  background-color: white;
  box-shadow: 0px 10px black;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  top: 5vh;
  position: absolute;
}

input[type=text],
input::placeholder {
  text-align: center;
  color: black;
  background-color: transparent;
  border: none;
  font-weight: bold;
  font-size: 4vh;
  width: 100%;
  height: 100%;
}

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

.input-instruction {
  position: absolute;
  font-family: "Gilroy";
  font-weight: normal;
  text-align: center;
  font-size: 2vh;
  color: var(--secondary-color);
  top: 1vh;
}

/* --- WON SCREEN */

#endScreen {
  background-color: #fff;
}

#won1 {
  color: #b0886a;
  display: grid;
  grid: auto-flow 1fr 25% 1fr / 1fr;
  height: 100%;
  align-items: center;
  justify-items: center;
}

#won1 h2 {
  font-size: 5rem;
  line-height: 6rem;
  margin: 2rem;
  text-align: center;
}

#won1 .top-imgs,
#won1 .bottom-imgs {
  position: relative;
  width: 100%;
  height: 100%;
}

#won1 img {
  object-fit: contain;
  position: absolute;
}

#won1 .img1 {
  margin-left: auto;
}

#won1 .img2 {
  margin-right: auto;
}

#won1,
#won2,
#won-share {
  height: 100%;
  /*overflow: hidden;*/
  /* position: absolute;*/
  width: 100%;
  background-color: #fff;
}

#won2 .container {
  /*height: -webkit-fill-available;*/

  display: grid;
  grid: auto-flow 33% 33% 33% / 1fr 1fr;
  /*gap: 1rem;*/
  background-color: #fff;
  /*padding: 1rem;*/
  /* margin-bottom: 100px;*/
  display: overlay;
}

a,
a:visited {
  color: #fff;
}

#won2 .container .bg-contain {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0.5rem;
}

#won2 .container .bg-cover {
  background-color: black;
  overflow: hidden;
  position: relative;
}

#won2 video {
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  /*transform: translateX(calc((100% - 100vw) / 2));*/
}

#won2 .container #cap {
  height: 100%;
  display: grid;
  grid: auto-flow auto 50px / auto;
}

#won2 .container p {
  font-size: 14px;
}

#won2 .timestamp {
  color: #fff;
  /* padding: 0 0 0 10%; */
  margin-top: 2rem;
  margin: auto;
}

#won-voucher .timestamp {
  /*padding: 0 0 0 5%;*/
}

.timestamp h4 {
  margin: 0;
  font-size: 2rem;
  word-break: break-word;
}

.timestamp .city {
  font-size: 3rem;
}

.bg-brown {
  background-color: #92724d;
  color: #fff;
}

.bg-black {
  background-color: #161616;
  color: #fff;
}

.text-brown {
  color: #92724d;
}

/* .header-img {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
} */

#won-voucher {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #9f7b57;
  color: white;
  display: grid;
  grid: auto-flow 1fr 0% 1fr / 1fr;
  align-items: center;
  justify-items: center;
}

#won-voucher .thinfont {
  font-size: 2em;
  text-transform: uppercase;
}

.termsbox {
  padding: 3rem;
  min-height: 125px;
}

.small-logo {
  padding: 0 0 0 10%;
  position: absolute;
  top: -8px;
  left: 0px;
  font-size: 20px;
  font-weight: bold;
}

.big-logo {
  font-size: 3rem;
  text-align: center;
}

.close-modal {
  align-self: center;
  justify-self: end;
  padding: 1rem;
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 32px;
  font-weight: bold;
  margin-right: 6px;
}

#won-voucher .timestamp {
  /* margin: auto; */
}

#won-voucher .timestamp h4 {
  font-size: 4rem;
}

#won-voucher .timestamp .city {
  font-size: 5rem;
}

ol {
  text-align: left;
}

ol li {
  line-height: 24px;
}

/* --- END WON SCREEN */

#terms {
  color: #161616;
  margin-top: 1rem;
  padding: 1rem;
  right: 0px;
}

#TuCScreen {
  color: #fff;
  font-size: 10px;
  text-align: left;
  height: 100%;
  text-transform: uppercase;
}

#TuCScreen h1 {
  text-align: right;
  margin-right: 60px;
}

#TuCScreen h3 {
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 2rem;
}

#TuCScreen .slide {
  overflow-y: scroll;
  overflow-x: hidden;
  font-size: 12px;
  text-align: left;
  height: 90%;
  width: 80%;
  padding-left: 10%;
  padding-top: 40px;
}

.square {
  margin: auto;
  max-width: 100%;
  aspect-ratio: auto 1 / 1;
}

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

video {
  width: 40%;
}

/* PLAY CONTROL SCREEN */

#controls {
  height: 100%;
  display: grid;
  grid: auto-flow 1fr / 1fr 1fr;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */

  align-items: center;
}

.controls-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

#left,
#right {
  float: left;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: 100ms;
  transition-property: background-color;
  background-color: transparent;
  border: none;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  height: 40%;
}


#left {}

#left:focus {
  /* background-image: url("/images/left-btn-pressed.svg"); */
}

#left:active {
  /* background-image: url("/images/left-btn-pressed.svg"); */
}

#right {}

#right:focus {
  /* background-image: url("/images/right-btn-pressed.svg"); */
}

#right:active {
  /* background-image: url("/images/right-btn-pressed.svg"); */
}


/* END PLAY CONTROL SCREEN */

/* --- UTILITY */

.flex-down {
  display: flex;
  flex-direction: column;
  /*height: 100%;*/
  justify-content: space-between;
}

header {
  color: white;
  line-height: 0.5em;
  text-align: center;
  font-size: 4em;
}

#lost {
  /*background-color:#000;*/
  color: #92724d;
  align-items: center;
  justify-items: center;
  display: grid;
  grid: auto-flow 1fr 25% 1fr / 1fr;
  height: 100%;
  align-items: center;
  justify-items: center;
}

#lost h2 {
  align-items: center;
  justify-items: center;
  font-size: 6rem;
  line-height: 6rem;
  text-transform: uppercase;
  text-align: left;
  color: #92724d;
}

.trans30 {
  opacity: 0.2;
}

#video_container {
  position: relative;
  height: 70%;
}

#debug {
  position: fixed;
  bottom: 0px;
  left: 0px;
  height: 50px;
  width: 100%;
  color: #ffffff;
  font-family: Courier;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

/**
DEBUG 
**/

#debugControls {
  position: absolute;
  bottom: 150px;
  left: 50%;
  height: 100px;
  width: 320px;
  transition-duration: 500ms;
  transition-property: left;
  color: #ffffff;
  margin-left: -160px;
  font-size: 30px;
}

#qrcode {
  position: absolute;
  top: 100px;
  left: 50%;
  margin-left: -160px;
}

#link {
  position: absolute;
  bottom: 60px;
  width: 100%;
  text-align: center;
}

#busy {
  height: 100%;
  align-items: center;
  justify-items: center;
  display: grid;
  grid: auto-flow 1fr 25% 1fr / 1fr;
  height: 100%;
  align-items: center;
  justify-items: center;
}

#busy h2 {
  align-items: center;
  justify-items: center;
  font-size: 2rem;
  line-height: 3rem;
  text-align: center;
  color: #92724d;
  text-transform: uppercase;
}

.noselect {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  height: 100%;
  margin-bottom: 20px;
}

/* --- MEDIA QUERIES */
@media (max-width: 450px) {
  h3 {
    font-size: 4rem;
    line-height: 3.5rem;
  }

  /* h5 {
    font-size: 1rem;
    line-height: 1rem;
  } */

  .timestamp .city {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  #won2 .container {
    height: 700px;
  }
}

/* same as above */
@media (max-height: 450px) {
  h3 {
    font-size: 3rem;
    line-height: 3rem;
  }

  /* h5 {
    font-size: 1rem;
    line-height: 1rem;
  } */

  .timestamp .city {
    font-size: 2rem;
  }
}

@media (min-width: 500px) {
  #won2 .container {
    display: grid;
    grid: auto-flow 50% 50% / 33% 33% 33%;

    /*gap: 1rem;*/
    /*margin: 1rem;*/
  }

  #won2 .container .bg-cover {
    grid-column: 3;
    grid-row: 1;
  }
}

.hide {
  transition-duration: 500ms;
  transition-property: visibility, opacity;
  transition-delay: 0;
  opacity: 0;
  visibility: hidden;
  display: none !important;
}

.btn-hide {
  transition-duration: 500ms;
  transition-property: visibility, opacity;
  transition-delay: 0;
  opacity: 0;
  visibility: hidden;
}

audio {
  display: none;
}

.container>div {
  margin: 10px;
  min-height: 170px;
}