/* UNIVERSAL */

@font-face {
  font-family: 'Averta';
  src: url('/fonts/Averta-Extrabold.woff2') format('woff2'),
    url('/fonts/Averta-Extrabold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Averta';
  src: url('/fonts/AvertaStd-Thin.woff2') format('woff2'),
    url('/fonts/AvertaStd-Thin.woff') format('woff');
  font-weight: thin;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  height: 100%;
  /*overflow: hidden;*/
  background-color: #161616;
  font-family: 'Averta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-weight: thin;
  color: #161616;
  touch-action: pan-y;
}

.bossfont,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Averta', Arial;
  font-weight: bold;
  font-style: normal;
}

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: grid;
  grid: auto-flow 1fr 3fr 1fr / auto;
  height: 100%;
}

.fullpage {
  width: 100vw;
  height: 100%;
  //position: fixed;
}

.top,
.bottom {
  background: #666;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  line-height: 1em;
  text-align: center;
  font-size: 4em;
  background-color: #161616;
  cursor: pointer;
}
.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 */

/* --- 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: 6rem;
  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;
  height: fill-available;
  display: grid;
  grid: auto-flow 1fr 1fr 1fr / 1fr 1fr;
  gap: 1rem;
  background-color: #fff;

  padding: 1rem;

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

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

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

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

.termsbox{
  padding: 3rem;
}

.close-modal {
  align-self: center;
  justify-self: end;
  padding: 1rem;
  position: absolute;
  top: 0px;
  right:0px;
}

#won-voucher .timestamp {
  margin: auto;
}
#won-voucher .timestamp h4 {
  font-size: 4rem;
}
#won-voucher .timestamp .city {
  font-size: 6rem;
}

/* --- END WON SCREEN */

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

#TuCScreen{
  background-color:#000;
  color:#FFF;
  font-size:10px;
  text-align:left;
  height:100%;
}
#TuCScreen h1{
  text-align: right;
  margin-right:60px;
}
#TuCScreen h3{
  padding-bottom: 30px;
}

#TuCScreen .slide{
  overflow:scroll;
  font-size: 12px;
  text-align:left;
  height:90%;
  width:90%;
  padding-left: 30px;
  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 {
  display: grid;
  grid: auto-flow 1fr / 1fr 1fr;
  gap: 2px;
  background-color: white;
  margin-top: 2px;
  margin-bottom: 2px;
}

#left,
#right {
  float: left;
  text-align: center;

  border-top: 2px solid white;
  border-bottom: 2px solid white;

  display: flex;
  justify-content: center;
  align-items: center;

  transition-duration: 100ms;
  transition-property: background-color;
}

#left {
  background-color: #161616;
  color: #92724d;
  /* border-right: 2px solid white; */
}
#left:active {
  background-color: rgb(43, 43, 43);
}

#right {
  background-color: #92724d;
  color: white;
}
#right:active {
  background-color: #725a3e;
}

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

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

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

  .timestamp .city {
    font-size: 2.5rem;
  }
}
/* 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: 2.5rem;
  }
}

@media (min-width: 600px){
  #won2 .container {
    height: 100%;
    height: -moz-available;          /* WebKit-based browsers will ignore this. */
    height: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    height: fill-available;

    display: grid;
    grid: auto-flow 1fr 1fr / 1fr 1fr 1fr;
    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
}
audio{
  display:none;
}