@font-face {
  font-family: 'Futura Round';
  src: url('fonts/futura-round-light.ttf');
  font-weight: 300; /* light */
}  

@font-face {
  font-family: 'Futura Round';
  src: url('fonts/futura-round-regular.ttf');
  font-weight: 400; /* normal */
}  

@font-face {
  font-family: 'Futura Round';
  src: url('fonts/futura-round-medium.ttf');
  font-weight: 500; /* medium */
}  

@font-face {
  font-family: 'Futura Round';
  src: url('fonts/futura-round-demi.ttf');
  font-weight: 600; /* semi bold */
}   

@font-face {
  font-family: 'Futura Round';
  src: url('fonts/futura-round-bold.ttf');
  font-weight: 700; /* bold */
}

* {
  touch-action: manipulation;
}

body, html {
  overflow-y:auto !important; /* allow drag refresh */
  overflow-x:hidden;
  touch-action:pan-y; /* disable zoom, only allow scroll */
  overscroll-behavior: none; /* Prevents rubber band in most browsers */
  height:100%;
}

body {
  text-align:center;
  line-height:1;
  background-color:#90252A;
  background-image:url("/graphics/background-wallpaper.jpg");
  background-size:100% auto;
  color:white;
  font-family: 'Futura Round', sans-serif;
  font-weight:normal;
}

/* shared */

h1 {
  font-size: 7vmin;
  text-transform: uppercase;
  margin: 0 12vmin;
  font-weight: 600;
}

h2 {
  font-size: 5vmin;
  margin: 3vmin 12vmin 0 12vmin;
  font-weight: 600;
}

p {
  font-size: 3.5vmin;
  font-weight: 500;
}

a {
  text-decoration: underline !important;
}

small {
  display:block;
  font-size: 3vmin;
  margin:3vmin 12vmin 0 12vmin;
}

input:not([type=submit]) {
  font-size:3vmin;
  text-transform: uppercase;
  width:80vmin;
  height:10vmin;
  border-radius:5vmin;
  text-align:left;
  padding:0 5vmin;
  background:#F8F5EC;
}

input[type="password"] {
  text-transform: unset;
}

input::placeholder {
  font-style: italic;
  color: rgba(67, 43, 34, 0.2);
}

p.label {
  font-size:3.5vmin;
  font-weight:600;
  text-transform:uppercase;
  text-align:left;
  width:70vmin;
  display:inline-block;
  margin-bottom:3vmin;
}

button, input[type=submit] {
  text-transform: uppercase;
  font-size:4vmin;
  font-weight: 600;
  line-height:0;
  height:12vmin;
  padding:0 6vmin;
  border-radius:6vmin;
  background:#50AA5C;
  color: #F8F5EC;
  margin-top:10vmin;
}
 
/* button:active, */
button:hover,
input[type=submit]:hover {
  background:#4B7F49;
}

button:disabled {
  opacity: 0.5;
}

img.stamp {
  position:fixed;
  left:10vmin;
  z-index:2;
  width:80vmin;
  transition: bottom 1s ease-in-out;
  bottom:-25vmin;
}

img.stamp.shown {
  bottom:0;
}

div.page {
  padding-top:22vmin;
}

/* orienation/mobile only */

div.orientation,
div.mobile-only {
  z-index: 5;
  width:100%;
  height:100%;
  position:absolute;
  left:0;
  top: 0;
  background:#1C3223;
  display:none;
}

div.orientation > img,
div.mobile-only > img {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  height: 80vmin;
}

/* Dialog */

div.dialog {
  position:absolute; left: 0; top: 0; width:100%; height: 100%;
  overflow-y:scroll;
  z-index:4;
  display:none;
  backdrop-filter: blur(0.5vmin) brightness(70%);
}

div.dialog div.container {
  background:#1C3223;
  position:relative;
  /* position:absolute;
  left:0; */
  /* top:50%; */
  width:100%;
  /* transform: translate(0, -50%); */
  padding:15vmin 5vmin;
  border-radius:10vmin;
}

div.dialog h1 {
  text-transform: uppercase;
  font-size:8vmin;
  line-height:1.2;
  margin:0;
}

div.dialog p {
  margin-top:5vmin;
  font-size:5vmin;
  line-height:1.2;
}

div.dialog img.close {
  position:absolute;
  right:0;
  top:0;
  width:20vmin;
}

/* div.dialog img.close:active, */
div.dialog img.close:hover {
  opacity:0.7;
}

div.dialog button {
  text-transform: uppercase;
  font-size:4vmin;
  line-height:0;
  height:12vmin;
  padding:0 8vmin;
  border-radius:6vmin;
  margin:10vmin 1vmin 0 1vmin;
}

div.dialog button.cancel {
  background:#AB4D4D;
}

/* div.dialog button.cancel:active, */
div.dialog button.cancel:hover {
  background:#9c3b3b;
}

div.dialog button.secondary {
  background:#AB7A4D;
}

/* div.dialog button.secondary:active, */
div.dialog button.secondary:hover {
  background:#785B3B;
}

/* Popup */

div.popup {
  /* background:white; */
  position:absolute; left: 0; top: 0; width:100%; height: 100%;
  overflow-y:scroll;
  z-index:3;
  display:none;
  backdrop-filter: blur(0.5vmin) brightness(70%);
}

div.popup div.container {
  background:#1C3223;
  position:relative;
  /* position:absolute;
  left:0; */
  /* top:50%; */
  width:100%;
  /* transform: translate(0, -50%); */
  padding:15vmin 5vmin;
  border-radius:10vmin;
}

div.popup h1 {
  text-transform: uppercase;
  font-size:8vmin;
  line-height:1.2;
  margin:0;
}

div.popup p:not(.label) {
  margin-top:5vmin;
  font-size:5vmin;
  line-height:1.2;
}

div.popup img.close {
  position:absolute;
  right:0;
  top:0;
  width:20vmin;
}

/* div.popup img.close:active, */
div.popup img.close:hover {
  opacity:0.7;
}

div.popup button {
  text-transform: uppercase;
  font-size:4vmin;
  line-height:0;
  height:10vmin;
  padding:0 8vmin;
  border-radius:5vmin;
  /* background:#50AA5C;
  color: #F8F5EC; */
  margin-top:10vmin;
}

div.popup div.gift {
  display:inline-block;
  width:30vmin;
  background-image:url("/graphics/circle.png");
  background-size:100% auto;
  background-repeat:no-repeat;
}

div.popup div.gift.placeholder {
  background:none;
}

div.popup div.gift > img {
  width:30vmin;
  height:30vmin;
}

div.popup div.gift > p {
  margin:0;
}

/* popup - steal */


div.popup[data-name="steal"] p {
  margin-bottom:5vmin;
  overflow:clip;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* popup - empty */

div.popup[data-name="empty"] p {
  text-transform: uppercase;
  font-size:3.5vmin;
}

div.popup[data-name="empty"] button {
  font-size:7vmin;
  height:16vmin;
  border-radius:8vmin;
  padding: 0 8vmin;
}

div.popup[data-name="empty"] button > img {
  height:8vmin;
  margin-left:4vmin;
  vertical-align: sub;
}

/* popup - missing */

div.popup[data-name=missing] p {
  margin-bottom: 5vmin;
}

div.popup[data-name="missing"] button:last-of-type {
  background:#AB7A4D;
  margin-left:5vmin;
}

/* div.popup[data-name="missing"] button:last-of-type:active, */
div.popup[data-name="missing"] button:last-of-type:hover {
  background:#785B3B;
}

/* popup - signin */


div.popup[data-name="signin"] h1 {
  font-size:6.8vmin;
  margin-top:5vmin;
}

div.popup[data-name=signin] p.label {
  margin-top: 8vmin;
}

div.popup[data-name=signin] p.forgot {
  text-align: left;
  font-size:3.5vmin;
  width: 70vmin;
  display: inline-block;
}

div.popup[data-name=signin] p.signup {
  font-size:3.5vmin;
  text-decoration: underline;
}

/* div.popup[data-name="signin"] button:last-of-type {
  background:#AB7A4D;
  margin-left:5vmin;
}

div.popup[data-name="signin"] button:last-of-type:active {
  background:#785B3B;
} */

/* popup - prize */

div.popup[data-name=prize] p:first-of-type {
  text-transform:uppercase;
  font-weight:600;
}

div.popup[data-name=prize] div.gift {
  width: auto;
}

div.popup[data-name=prize] div.gift > img {
  width: 55vmin;
  height: 55vmin;
}

div.popup[data-name=prize] p:last-of-type {
  margin-top:0;
}

div.popup[data-name=prize] p {
  font-size:4vmin;
}

/* top bar */

div.topbar
{
  position:absolute;
  left:0;
  top:0;
  z-index:2;
  width:100%;
}

div.topbar > div
{
  display:inline-block;
  vertical-align: middle;
  height:22vmin;
  width:22vmin;
}

div.topbar > div.left
{
  /* background:blue; */
}

div.topbar > div > img {
  width:100%;
}

/* div.topbar > div > img:active, */
div.topbar > div > img:hover {
  opacity:0.7;
}



div.topbar > div.mid
{
  /* background:green; */
  width:56vmin;
  text-align:center;
  padding-top:7vmin;
}

div.topbar > div.mid > p {
  font-size:3vmin;
  text-transform: uppercase;
}

div.topbar > div.mid > p:last-of-type {
  font-size:4vmin;
}

/* menu */

div.page[data-name="menu"] {
  z-index:3 !important;
  background:#1C3223;
  padding-top:30vmin;
}

div.page[data-name="menu"] > img {
  position:absolute;
  top:0;
  right:0;
  width:20vmin;
}

/* div.page[data-name="menu"] > img:active, */
div.page[data-name="menu"] > img:hover {
  opacity:0.7;
}

div.page[data-name=menu] > div.vcenter {
  position: absolute;
  left: 0;
  top: 0;
  z-index:-1;
}

div.page[data-name="menu"] span {
  font-size:10vmin;
  font-weight:600;
  text-transform: uppercase;
  margin-top:5vmin;
  display:block;
}

div.page[data-name=menu] span:first-of-type {
  margin-top:0;
}

/* div.page[data-name="menu"] span:active, */
div.page[data-name="menu"] span:hover {
  opacity:0.7;
}

div.page[data-name="menu"] > p {
  position:absolute;
  left:0;
  bottom:10vmin;
  width:100%;
  font-size:5vmin;
  text-transform: uppercase;
}

/* div.page[data-name="menu"] > p:active, */
div.page[data-name="menu"] > p:hover {
  opacity:0.7;
}

/* terms */

div.page[data-name="terms"] {
  z-index:3 !important;
  background:#1C3223;
}

div.page[data-name="terms"] > img {
  position:absolute;
  right:6vmin;
  top:6vmin;
  height:13vmin;
}

div.page[data-name="terms"] > h1 {
  margin-bottom:10vmin;
}

div.page[data-name="terms"] > h2 {
  font-size:3.5vmin;
  text-align:left;
  margin-left: 10vmin;
}

div.page[data-name="terms"] > p {
  line-height:1.5;
  margin:5vmin 10vmin;
  text-align:left;
}

div.page[data-name="terms"] li {
  line-height:1.5;
  text-align:left;
  font-size: 3.5vmin;
  margin:5vmin 10vmin;
}

/* start */

div.page[data-name="start"] {
  background-image:url("/graphics/background-start.png");
  background-position:bottom;
  background-size:100% auto;
  background-repeat: no-repeat;
}

div.page[data-name="start"] > img.title {
  width: 85vmin;
  margin-top: 5vmin;
}

div.page[data-name="start"] > h2 {
  font-size:7vmin;
  text-transform: uppercase;
  margin-top:10vmin;
  line-height:1.2;
  text-shadow:0 0 1vmin rgba(0,0,0,0.5);
}

div.page[data-name="start"] > button {
  font-size:7vmin;
  height:16vmin;
  border-radius:8vmin;
  text-transform: uppercase;
  margin-top: 6vmin;
  padding: 0 10vmin;
  /* background:#50AA5C;
  color:#F8F5EC; */
}

div.page[data-name="start"] > button > img {
  height:8vmin;
  margin-left:4vmin;
  vertical-align: sub;
}

div.page[data-name="start"] > img.sticker {
  display: block;
  width: 38vmin;
  margin-left: 4vmin;
  margin-top: 8vmin;
}

div.page[data-name="start"] > p.early {
  font-size: 5.5vmin;
  margin-top: 7vmin;
}

div.page[data-name="start"] > h1.early {
  margin-top: 7vmin;
  font-size: 4.5vmin;
}

div.page[data-name="start"] > h2.early {
  margin-top: 0;
  font-size: 11vmin;
}

div.page[data-name="start"] > h1.late {
  font-size: 10vmin;
  margin-top: 7vmin;
}

div.page[data-name="start"] > p.late {
  font-size: 5vmin;
  margin-top: 5vmin;
  line-height: 1.3;
}

/* game */

div.page[data-name="game"] {
  background-image:url("/graphics/game-background.jpg?v=1");
  background-size:100% auto;
  padding:0;
  overflow:hidden;
}

div.page[data-name="game"] > h2 {
  font-size:6vmin;
  text-transform: uppercase;
  margin-top:calc(50vh - 48vmin);
}

div.page[data-name="game"] > p {
  font-size:4vmin;
  margin-top:5vmin;
  text-transform: uppercase;
  line-height:1.2;
}

div.page[data-name="game"] > button {
  font-size:5vmin;
  padding:5vmin 10vmin;
  border-radius:7.5vmin;
  text-transform: uppercase;
  /* margin-top:45vmin; */
  margin-top:55vmin;
  background:#50AA5C;
  color:white;
}

div.page[data-name="game"] > a-scene {
  position:absolute;
  left:0;
  top:calc((100vh - 100vmin) / 2 - 5vmin);
  z-index:-1;
  width:100vmin;
  height:100vmin;
}

div.page[data-name="game"] > img.top,
div.page[data-name="game"] > img.bottom {
  position:absolute;
  z-index:-1;
  width:100vw;
  transition: left 1s ease-out;
}

div.page[data-name="game"] > img.top {
  left:-100vw;
  top:0;
  transition-duration: 0.75s;
}

div.page[data-name="game"] > img.bottom {
  left:100vw;
  bottom:0;
}

div.page[data-name="game"] > img.top.shown,
div.page[data-name="game"] > img.bottom.shown {
  left:0;
}

/* guide */

div.page[data-name="guide"] {
  padding-bottom:10vmin;
  mask-image: linear-gradient(to bottom, transparent 18vmin, black 32vmin);
}

div.page[data-name="guide"] > h1 {
  margin-top:10vmin;
}

div.page[data-name="guide"] > h2 {
  font-size:6vmin;
  text-transform: uppercase;
}

div.page[data-name="guide"] > p {
  font-size:4.5vmin;
  line-height:1.3;
  margin:3vmin 10vmin 0 10vmin;
}

div.page[data-name="guide"] > img {
  width: 30vmin;
  margin-top:15vmin;
}

/* inventory */

div.page[data-name="inventory"] {
  background-image:url("/graphics/background-desk.jpg");
  background-position:bottom;
  background-size:100% auto;
  background-repeat: no-repeat;
}

div.page[data-name=inventory] > h1 {
  margin-top: 4vmin;
}

div.page[data-name=inventory] > h2 {
  margin-top: 4vmin;
  font-size:8vmin;
  text-transform:uppercase;
  margin-top:20vmin;
}

div.page[data-name="inventory"] > button {
  font-size:3vmin;
  height:10vmin;
  padding:0 5vmin;
  border-radius:5vmin;
  background:#50AA5C;
  color: #F8F5EC;
  display:inline-block;
}

div.page[data-name="inventory"] > button:not(.selected) {
  background: none;
  border: 0.5vmin solid #50AA5C;
}

div.page[data-name="inventory"] > button:last-of-type {
  margin-left:3vmin;
}

div.page[data-name="inventory"] div.gifts {
  width:100vw;
  height:70vmin;
  margin-top:10vmin;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  padding: 0 25vmin;
  /* gap: 5vmin; */
  scroll-behavior: smooth; /* smooth? */

  /* hide scrollbar (cross-browser) */
  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
}

div.page[data-name="inventory"] div.gifts::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

div.page[data-name="inventory"] div.gifts > div {
  background-image:url("/graphics/circle.png");
  background-size:100% auto;
  background-position: top;
  background-repeat:no-repeat;
  flex:0 0 auto;
  /* margin:15vmin 5vmin 0 5vmin; */
}

div.page[data-name="inventory"] div.gifts > div > img {
  width:50vmin;
  height:50vmin;
  /* margin:15vmin 5vmin 0 5vmin; */
}

div.page[data-name="inventory"] div.gifts > div > p {
  line-height:1.5;
  text-transform:uppercase;
}

/* signup */

div.popup[data-name="signup"] h2 {
  margin-left:5vmin;
  margin-right:5vmin;
}

div.popup[data-name="signup"] img.close {
  position:absolute;
  right:0;
  top:0;
  width:20vmin;
}

div.popup[data-name="signup"] button.generate {
  font-size:3vmin;
  text-transform: uppercase;
  height:8vmin;
  border-radius:4vmin;
  padding:0 3vmin;
  float: right;
  margin: 3vmin 5vmin 0 0;
  background:#AB7A4D;
}

/* div.popup[data-name="signup"] button.generate:active, */
div.popup[data-name="signup"] button.generate:hover {
  background:#785B3B;
}

div.popup[data-name="signup"] button.generate > img {
  height:4vmin;
  margin-left:2vmin;
  vertical-align: text-top;
}

div.popup[data-name="signup"] p:nth-of-type(1),
div.popup[data-name="signup"] p:nth-of-type(3),
div.popup[data-name="signup"] p:nth-of-type(4) {
  margin-top:6vmin;
}

div.popup[data-name="signup"] input[type="checkbox"] {
  width:6vmin;
  height:6vmin;
  border-radius:3vmin;
  vertical-align:middle;
  margin-top:4vmin;
  user-select: none;
  appearance: none;
  padding: 0;
  background-color:#F8F5EC;
}

div.popup[data-name="signup"] input[type="checkbox"]:checked {
  background-image: url(/graphics/icon-checked.png);
  background-size: 100% 100%;
}

div.popup[data-name="signup"] p.conditions {
  font-size:3.5vmin;
  text-align:left;
  width:70vmin;
  padding-left:2vmin;
  display:inline-block;
  vertical-align:middle;
  margin-top:4vmin;
}

div.popup[data-name="signup"] p.signin {
  margin-top:6vmin;
  font-size: 3.5vmin;
}

/* profile */

div.page[data-name="profile"] {
  padding-bottom:10vmin;
}

div.page[data-name="profile"] > h2 {
  line-height:1.2;
  font-weight: 500;
}

div.page[data-name="profile"] p {
  margin-top:8vmin;
}

div.page[data-name="profile"] p > slim {
  font-size: 3vmin;
  font-weight:500;
}

div.page[data-name="profile"] p.signout,
div.page[data-name="profile"] p.delete {
  display:inline-block;
  margin-left:2vmin;
  margin-right:2vmin;
}

/* cookie */

div.cookie {
  display:none;
  position:fixed;
  z-index:10;
  left:0;
  top:0;
  width:100%;
  height:100%;
  backdrop-filter: blur(0.5vmin);
}

div.cookie > div {
  position:absolute;
  left:0;
  bottom:-100vh;
  background:#AA5050;
  color:white;
  width:100%;
}

div.cookie > div > img {
  height:46vmin;
  margin-top:-23vmin;
}

div.cookie > div > h3 {
  font-size:5.5vmin;
  text-transform: uppercase;
  margin-top:5vmin;
}

div.cookie > div > p {
  font-size: 4.5vmin;
  padding: 0 15vmin;
  margin-top:3vmin;
  line-height:1.2;
}

div.cookie > div > button {
  font-size:5vmin;
  padding:3vmin 5vmin;
  border-radius:5.5vmin;
  text-transform: uppercase;
  margin:10vmin 1vmin;

  background:#F8F5EC;
  color:#432B22;
}

div.cookie > div > button:last-of-type {
  background:#432B22;
  color:white;
  padding:3vmin 8vmin;
}