@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,700');

* {
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------------------
   Responsive breakpoint tiers. The whole layout snaps between four
   "formats" as the viewport width crosses 768 / 1024 / 1440. Every
   tier-dependent size lives here as a custom property so the formats are
   defined in one place; individual rules just reference var(--…).
   Mobile-first: :root is the phone tier, each min-width query steps up.
   ---------------------------------------------------------------------- */
:root {
  /* phone  (< 768px) */
  --nav-title: 22px;
  /* badges/caption/about-text keep the original viewport-scaled sizing so
     they match the pre-breakpoint look (phone = old portrait, tablet+ = old
     landscape) */
  --about-text: 2.8vw;
  --badge-w: 40vw;
  --collect-text: 4vw;
  --social-size: 20px;
  --footer-title: 16px;
}

/* Small phones in landscape show the wide (desktop) hero/about art, so the
   overlay badges, caption, and about text use the landscape sizing instead of
   the taller portrait-phone scaling — otherwise 40vw badges become huge against
   the now-short landscape section. Mirrors the orientation-based art swap. */
@media (max-width: 767px) and (orientation: landscape) {
  :root {
    --about-text: 1.8vw;
    --badge-w: 20vw;
    --collect-text: 1.7vw;
  }
}

@media (min-width: 768px) { /* tablet */
  :root {
    --nav-title: 26px;
    --about-text: 1.8vw;
    --badge-w: 20vw;
    --collect-text: 1.7vw;
    --social-size: 22px;
    --footer-title: 20px;
  }
}

@media (min-width: 1024px) { /* desktop */
  :root {
    --nav-title: 32px;
    --about-text: 1.8vw;
    --badge-w: 20vw;
    --collect-text: 1.7vw;
    --social-size: 26px;
    --footer-title: 24px;
  }
}

@media (min-width: 1440px) { /* wide */
  :root {
    --nav-title: 36px;
    --about-text: 1.8vw;
    --badge-w: 20vw;
    --collect-text: 1.7vw;
    --social-size: 28px;
    --footer-title: 26px;
  }
}

body{
  /*background-color:rgb(20,20,20);*/
  background-color: black;
  color:black;
  /* full-width: the single column fills the viewport at every size */
  margin: auto;
}

body h1{
  font-family: 'Oswald', sans-serif;
}

canvas {
  background-color: black;
}

img {
    user-select: none;
}

.visible-mobile {
  display: none !important;
}

/* Use the mobile (taller) art only on narrow viewports that are also in
   portrait. In landscape — including small phones under 768px — the desktop
   (wide) art stays, so the section matches the short landscape viewport instead
   of stretching tall. Mirrors the coinsim art-swap rule (width<768 && portrait). */
@media (max-width: 767px) and (orientation: portrait) {
  .visible-mobile {
    display: inline !important;
  }

  .hidden-mobile {
    display: none !important;
  }
}

/*Navbar*************/

#navBar {
  display: flex;
  justify-content: space-between;
  vertical-align: top;

  position: fixed; /* Make it stick/fixed */
  top: 0;          /* pin to the viewport top (otherwise auto-top lets a
                      following element's collapsed margin push it down) */
  left: 0;
  width: 100%; /* Full width */
  box-sizing: border-box; /* keep the 15px padding inside the 100% width */
  margin: auto;
  background-color: rgba(0,0,0, 0);
  transition: height 0.25s ease-in, background-color .2s;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  /*letter-spacing: .08rem;*/
  padding: 5px 15px;
  z-index: 10;
}

#navBar.solid{

  background-color: rgba(0,0,0, 1);
  /* hairline so the black bar reads against the black page body */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

header h1{
  font-size: var(--nav-title);
  color: white;
  margin-block-start;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

header a{
  color: white;
  text-decoration: none;
}

header ul{
  list-style: none;
  text-align: center;
}

header ul a{
  font-size: 40;
  color: white;
  text-decoration: none;
  display: block;
  color: #f2f2f2;
  text-align: center;
}

header li{
  float left;
  display: inline-block;
  margin-left: 2em;
}



/*Footer*************/

#social{
  color: white;
}

#social a{
  color: white;
  display: inline-block;
  padding: 5px;
  font-size: var(--social-size);
}

footer{
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: black;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  box-sizing: border-box;
  color: white;
  /* hairline so the black footer reads against the black page body */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  /*transition: height 1.25s ease-in, background-color 1.5s;*/
}

footer h1{
  margin: 0;
}

@media (min-width: 768px){
  #social a{
    padding: 8px;
  }
}


/*Games**************/


#coinSim {
/*  background-image: url("../img/coinsim_gp_promo.png");
  background-size: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;*/
  width: 100%;
  /*height: 35em;*/
  /*height: 85vh;*/
  position: relative;
  height: auto;
  min-height: 359px;
}

@media only screen and (min-width: 768px) {
  #coinSim {
  /*  background-image: url("../img/coinsim_gp_promo.png");
    background-size: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;*/
    width: 100%;
    /*height: 80vh;*/
    /*height: 54em;*/
  }
}
#coinSimCanvas canvas{
/*  background-image: url("../img/coinsim_gp_promo.png");
  background-size: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;*/
  width: 100%;
  height: 100%;
}


#scripto{
  color: white;
/*  background-image: url("../img/scripto_bg_test_mobile.png");
  overflow: hidden;
  background-size: cover;
  background-position: center;*/
  position: relative;

}

#scripto p{
  font-family: "Myriad Pro", Myriad, "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  filter: drop-shadow(4px 4px 5px #000000);
  font-size: var(--about-text);
  z-index: 5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}


#scripto img {
    width: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}


.center {
/*  height: 100%; 
  width:100%;
  display:flex;
  align-items: center;
  justify-content: center;*/
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  /*font-family: 'Oswald', sans-serif;*/
}

/*
#coinSim h1{
  position: absolute;
  bottom: 8px;
  left: 16px;
}

#coinSim h2{
  position: absolute;
  color: blue;
}

#coinSim h3{
  position: absolute;
}*/

.game {
    width: 100%;
    text-align: center;
    height: 40em;
    display: absolute;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game img {
    width: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.topGame {
    width: 100%;
    height:  auto;
    /*max-height:54em;*/
   /* justify-content: center;
    align-items: center;*/
    overflow: hidden;
    animation-name: fadeIn;
    animation-duration: 0.5s;
    position: relative;
}

.gameBG  {
    width: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.gameButton {
/*    user-select: none;
    position: absolute;*/
}

#coinSimAppButtonHolder
{
  position: absolute;
  bottom: 8%;
  right: 7.4%;
  left: auto;
  display: flex;
  /*column-gap: 20px;*/
}

#coinSimAppButtonHolder p
{
  color: white;
  font-size: var(--collect-text);
  font-family: "Myriad Pro", Myriad, "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  filter: drop-shadow(4px 4px 4px #000000);
  text-align: center;
  width: 100%;
  position: absolute;
  left: 0;
  /* sit directly above the badges with a small gap; anchoring to the top of
     the holder (rather than a % offset) means it can never overlap them */
  bottom: 100%;
  margin-bottom: 8px;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: none;
}

#GooglePlayCoinSim
{
  /*width: 20%;*/
/*  bottom: 3%;
  left: 5%;*/
  /*
  bottom: 3%;
  left: 5%;*/
  /*position: relative;*/
  opacity: 1.0;
}

#GooglePlayCoinSim
{
  filter: brightness(1.0);
  transform: scale(1.0);
  transition: transform .15s ease, filter .15s ease;
}

#GooglePlayCoinSim.isActive:hover
{
  transform: scale(1.05);
}

#GooglePlayCoinSim.isActive:active
{
  filter: brightness(0.7);
  transform: scale(0.96);
  transition: all .1s linear;
}

#AppStoreCoinSim
{
  /*width: 20%;*/
/*  bottom: 3%;
  left: 25%;*/
  /*position: relative;*/
  opacity: 1.0;
}

#AppStoreCoinSim
{
  filter: brightness(1.0);
  transform: scale(1.0);
  transition: transform .15s ease, filter .15s ease;
}

#AppStoreCoinSim.isActive:hover
{
  transform: scale(1.05);
}

#AppStoreCoinSim.isActive:active
{
  filter: brightness(0.7);
  transform: scale(0.96);
  transition: all .1s linear;
}

#GooglePlayCoinSim
{
  width: var(--badge-w);
}

#AppStoreCoinSim
{
  width: var(--badge-w);
}

#coinSimAppButtonHolder a
{
  width: auto;
  height: auto;
}

@media (min-width: 768px){

  /* tablet and up: float the store badges to the bottom-right of the hero */
  #coinSimAppButtonHolder
  {
    position: absolute;
    bottom: 3%;
    right: 7.4%;
    left: auto;
  }

}

#logoAndSocial{
  display: flex;
  justify-content: space-between;
  color: white;
}

#logoAndSocial h1{
  font-size: var(--footer-title);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

#privacy{
  font-family: "Myriad Pro", Myriad, "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  /*opacity: 0.5;*/
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#privacy a{
  color: grey;
}

/* Separator only appears on the widest layout (see 1440px block below) */
.footer-sep{
  display: none;
  color: grey;
}

/* Desktop and wider: collapse the footer into a single row —
   title left, privacy/contact centered, social icons right. */
@media (min-width: 1024px){
  footer{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    /* baseline alignment leaves descender space below the text,
       so trim the bottom padding to keep the gap even */
    padding-bottom: 4px;
  }
  #logoAndSocial{
    display: contents;
  }
  #logoAndSocial h1{
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  #social{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  #privacy{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    column-gap: 8px;
  }
  .footer-sep{
    display: inline;
  }
}

.page {
    width: 100%;
    text-align: center;
    height:40em;
    display: absolute;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation-name: fadeIn;
    animation-duration: 0.5s;
}

#signUp {
    width: 100%;
    height: auto;
    background-color: black;
    position: relative;
}

#signup canvas {
    width: 100%;
    height: 100%;
}

/* Browser autofill paints the email field with a light box + dark text, which
   clashes with the transparent CRT terminal look. Keep it transparent with the
   light terminal text: the huge background-color transition stops the autofill
   background from ever painting, and -webkit-text-fill-color fixes the text. */
#signUpEmailInput:-webkit-autofill,
#signUpEmailInput:-webkit-autofill:hover,
#signUpEmailInput:-webkit-autofill:focus,
#signUpEmailInput:-webkit-autofill:active {
    -webkit-text-fill-color: #e8e8e8;
    caret-color: #e8e8e8;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
}

form {
  display: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #000;
    opacity: 1;
/*    -webkit-transition: opacity 0.4s ease-in-out;
    -moz-transition: opacity 0.4s ease-in-out;
    -ms-transition: opacity 0.4s ease-in-out;
    -o-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4 ease-in-out;*/
}

#preloader.fade {
  opacity:0;
  pointer-events: none;
}

/* Loading spinner shown on the black preloader overlay. The wrapper handles the
   fade-in (.show) and the fade-out-while-scaling-out (.hide); the inner <img>
   spins continuously so the rotate transform never clashes with the scale. */
#preloaderSpinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

#preloaderSpinner.show {
  opacity: 1;
  transform: scale(1);
}

#preloaderSpinner.hide {
  opacity: 0;
  transform: scale(2);
}

#preloaderSpinner img {
  display: block;
  width: 100%;
  height: 100%;
  animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
  from { transform: rotate(90deg); }
  to   { transform: rotate(450deg); }
}

/* Privacy policy: a centered "document card" floating on the black body.
   Readable column width + generous line-height fix the cramped feel; the
   near-black surface lifts the card off the page without leaving the dark
   theme. Gold accent on links ties into the Coin Simulator branding. */
#privacyPolicy
{
  max-width: 760px;
  margin: 90px auto 64px;
  background-color: #1b1b1b;
  color: #d6d6d6;
  font-family: "Myriad Pro", Myriad, "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  padding: 40px 48px 48px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

#privacyPolicy a{
  color: #f0b429;
  text-decoration: none;
}
#privacyPolicy a:hover{
  text-decoration: underline;
}

#privacyPolicy p{
  margin-bottom: 18px;
}

/* "Last updated" line, set in <em> directly under the title */
#privacyPolicy > p:first-of-type{
  color: #9a9a9a;
  margin-top: -4px;
  margin-bottom: 28px;
}

#privacyPolicy h2{
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(240, 180, 41, 0.5);
}

#privacyPolicy h3{
  color: #ffffff;
  font-size: 20px;
  margin-top: 34px;
  margin-bottom: 8px;
}

#privacyPolicy ul{
  margin: 0 0 18px;
  padding-left: 24px;
}

#privacyPolicy li{
  margin-bottom: 10px;
}

@media (max-width: 800px){
  #privacyPolicy{
    margin: 92px 16px 40px;
    padding: 28px 24px 32px;
    font-size: 16px;
  }
  #privacyPolicy h2{
    font-size: 26px;
  }
}
/*#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 110px);
    left: calc(50% - 200px);
    width: 460px;
    height: 220px;
    background-image: url(../img/spinnertest.png);
    background-size: contain;
    background-repeat: no-repeat;
}*/
/*a.unity-logo{
  width:84px;
  height:30px;
  display:block;
  float:left;
  top:22px;
  left:30px;
  margin:22px 0;
  margin-right:10px !important;
  background:url(/themes/contrib/unity_base/images/ui/unity-logo-white.svg) 0 0 no-repeat;background-size:100% 100%;
}*/

@keyframes gameIn {
  0%   {margin-top:50px;}
  100% {margin-top:0px;}

}

@keyframes fadeIn {
  /*0%   {opacity:0%;}
  50%   {opacity:0%;}
  100% {opacity:100%;}*/
}