* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Default body (safe baseline) */
body{
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden;
  color: white;
}

/* links always white */
a:link, a:visited, a:hover, a:active{
  color: white;
}

/* ------------------------- */
/* INDEX PAGE (green screen) */
/* ------------------------- */
body.page-index{
  background-color: #2e7656;
  text-align: left;
  font-weight: 700;
  font-size: 14pt;
  line-height: 1.25;
}


.page-index .copy{
  min-height: 100vh;
  padding-top: calc(44px + env(safe-area-inset-top));
  padding-left: calc(34px + env(safe-area-inset-left));
  padding-right: calc(28px + env(safe-area-inset-right));
  /* padding-bottom: calc(90px + env(safe-area-inset-bottom)); */
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
  max-width: 430px;
}

.page-index .copy p{
  margin: 0 0 26px 0;
}

/* ONLY the index page can scroll */
body.page-index{
  overflow-y: auto;                 /* enable vertical scroll */
  -webkit-overflow-scrolling: touch;/* smooth iOS scroll */
}

/* make sure the scrolling area is the full viewport */
/* .page-index .copy{
  min-height: 100vh;
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
  140px gives extra space so text doesn't hide behind the fixed button
} */

/* -------------------------------- */
/* COMPOSITION (black)              */
/* -------------------------------- */
body.page-composition{
  background-color: black;
  text-align: center;

  user-select: none;
  -webkit-user-select: none;
}

h1 {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.25;
  z-index: 10;
}

/* Score line under title */
.page-composition #score-line{
  position: absolute;
  top: calc(20px + env(safe-area-inset-top) + 62px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 10;
  user-select: none;
  pointer-events: none;
}

/* Touch area full screen */
#touch-area{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* touch images */
.touch-image{
  position: absolute;
  transform-origin: center;
  pointer-events: none;
  object-fit: contain;
  z-index: 5;

  /* dissolve transition */
  transition: opacity 900ms linear;
  opacity: 1;
}
.touch-image.is-fading{
  opacity: 0;
}

/* -------------------------------- */
/* SHARED bottom SVG buttons         */
/* -------------------------------- */

.start-svg-btn,
.corner-svg-btn{
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));

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

  width: 120px;
  height: auto;

  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  text-decoration: none;
  touch-action: manipulation;
  pointer-events: auto;
}

/* right aligned */
.start-svg-btn,
.corner-svg-btn.back-btn{
  right: calc(24px + env(safe-area-inset-right));
}

/* left aligned */
.corner-svg-btn.clear-btn{
  left: calc(24px + env(safe-area-inset-left));
}

.start-svg-btn svg,
.corner-svg-btn svg{
  width: 100%;
  height: auto;
  display: block;
}

.start-svg-btn:active,
.corner-svg-btn:active{
  transform: translate(2px, 2px);
}

/* -------------------------------- */
/* LOADING OVERLAY                  */
/* -------------------------------- */
/* #loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;

  background: black;
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;

  user-select: none;
  -webkit-user-select: none;
}

#loading-overlay.hidden{
  display: none;
} */



/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: #dddcc9;
    font-family: Helvetica, Arial, sans-serif;
    overflow: hidden;
    text-align: center;
}

#title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    letter-spacing: 2px;
    z-index: 10; 
    pointer-events: none; 
}

#touch-area {
    width: 100vw;
    height: 100vh;
    display: block;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
}

#controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 18px;
    letter-spacing: 1px;
    z-index: 10; 

.button {
    cursor: pointer;
    color: #47775d;
    background-color: #dddcc9;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #47775d;
    user-select: none; 
} */