body, body * {
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

@font-face {
  font-family: AvenirRoman;
  src: url(fonts/AvenirLTStd-Roman.otf);
}

:root {
  --background-color: #FFFFFF;
  --shadow-color: #00000014;
  --text-shadow-color: #00000040;
  --mobile: false;
}

body {
  background-color: var(--background-color);
  font-family: AvenirRoman;
  color: black;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.portrait {
  display: none;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.sketch {
  max-width: 100vw;
  max-height: 100vh;
}

.hidden {
  display: none;
}

.disabled {
  opacity: 0.2;
  filter: grayscale(1);
}

.credits {
  opacity: 0.25;
  position: absolute;
  bottom: 1vh;
  left: 2vw;
  font-size: 2rem;
}

.credits a, .credits a:active, .credits a:visited {
  color: inherit;
}

.credits a:hover {
  font-style: italic;
}

.icons {
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  position: absolute;
  left: 2vw;
  top: 0;
  text-align: center;
  font-size: 2rem;
  text-shadow: 1px 1px 0px var(--text-shadow-color);
}

.icons div {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  border: 2px solid #0000007f;
  background-color: #FFFFFF;
}

.hint, .wait {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  user-select: none;
  text-align: center;
  text-shadow: 6px 6px 10px var(--text-shadow-color);
  text-shadow: 8px 8px 16px var(--text-shadow-color);
}

.hint {
  font-size: 3rem;
  opacity: 0.5;
}

.wait {
  font-size: 1.5rem;
  color: white;
}

@media only screen and (max-width: 480px) {
  :root {
    --mobile: true;
  }

  html, body {
    overflow: hidden;
    height: 100%;
  }

  .icons {
    left: 0;
    top: 2.5vh;
    height: auto;
    width: 100vw;
    flex-direction: row;

  }

  .icons div {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-size: 1.25rem;
    border-radius: 4px;
    border: 2px solid #000000C8;
    text-shadow: 3px 3px 4px var(--text-shadow-color);
    box-shadow: 4px 4px 8px var(--text-shadow-color);
  }

  .credits {
    font-size: 1rem;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (orientation:landscape) and (max-width: 700px) {
  :root {
    --mobile: true;
  }

  .credits {
    left: auto;
    right: 0;
    font-size: 1rem;
  }
}
