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

body {
  font-family: Helvetica, sans-serif;
  color: #333;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #ffffff;
  cursor: url(nat213.cur), auto !important;
  /* cursor: url("/nat942.ani"), url("/nat942.png"), auto !important;  another option */
}

/*  ~ ~ ~ layout: landscape ~ ~ ~  */

aside {
  width: 100vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #faf9f7;
  border-right: 1px dotted #969594;
}

main {
  z-index: 99;
  letter-spacing: 1px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(100vw - 100vh);
  height: 100vh;
  min-width: 31.5rem;  /* TODO set for actual inner content */
}

/*  ~ ~ ~ layout: portrait ~ ~ ~  */

@media all and (orientation:portrait) {
  body {
    flex-flow: column; /* formerly column-reverse */
  }
  aside {
    width: 100vw;
    height: 100vw;
    border-bottom: 1px dotted #969594;
    border-right: none;
  }
  main {
    width: 100vw;
    height: calc(100vh - 100vw);
    min-height: 20rem;
    min-width: 100%;
  }
}

/* ~ ~ ~ text ~ ~ ~ */

h1, p#about, #player { width: 27rem; }

h1 { margin: 1.5rem 0 2rem 0; }

h1, p, span {
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.4;
  text-align: justify;
  text-transform: uppercase;
}

p a {
  text-decoration: none;
  color: #33f;
  border-bottom: 1px solid #33f;
}

#morsels {
  position: fixed;
  bottom: 0.9375rem;
  left: 1.5rem;
  display: block;
  z-index: 99;
}

#morsels img {
  margin: 0 auto;
  padding: 0 0 0 0.25rem;
  width: auto;
  height: 45px;
  opacity: 0.9;
}

/* ~ ~ ~ player / ctrls ~ ~ ~ */

audio { display: none; }

#player {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 4rem 0 1.5rem;
}

button#playpause {
  display: block;
  width: 2rem;
  height: 3rem;
  outline: none;
  background-color: inherit;
  background-repeat: no-repeat;
  background-position: left; /* eek */
  border-radius: 0;
  border: none;
  cursor: pointer;
}

button#playpause.play  { background-image: url('play-l.svg'); }
button#playpause.pause { background-image: url('pause-l.svg'); }

#volume {
  -webkit-appearance: none;
  appearance: none;
  width: 4.5rem;
  height: 0.1rem;
  margin: 0 0 0 0.75rem; /* just to weigh with the optical button space */
  background: #333;
  outline: none;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.625rem;
  height: 0.625rem;
  background: #333;
  border-radius: 100%;
  cursor: pointer;
}

#volume::-moz-range-thumb  {
  width: 0.625rem;
  height: 0.625rem;
  background: #333;
  border-radius: 100%;
  cursor: pointer;
}

/* ~ ~ ~ player / now playing ~ ~ ~ */

#player #marquee {
  margin: 0.125rem 0 0 0;
  overflow: hidden;
  position: relative;
  width: 18rem;
  height: 100%;
}

#np {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 3rem;
  text-align: left;
  -moz-transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -moz-animation: scroll-left 10s linear infinite;
  -webkit-animation: scroll-left 10s linear infinite;
  animation: scroll-left 10s linear infinite;
}

@-moz-keyframes scroll-left {
  0% { -moz-transform: translateX(100%); }
  100% { -moz-transform: translateX(-100%); }
}

@-webkit-keyframes scroll-left {
  0% { -webkit-transform: translateX(100%); }
  100% { -webkit-transform: translateX(-100%); }
}

@keyframes scroll-left {
  0% {
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -moz-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

/* ~ ~ ~ collage ~ ~ ~ */

aside#collage img {
  position: absolute;
  scale: 0.5;
}

/* ~ ~ ~ responsive ~ ~ ~ */

/* phones */
@media only screen and (max-width: 450px) {
  html { font-size: 13px; }
  h1 { margin: 1.5rem 0 1.5rem 0; }
  #collage img { scale: 0.375; }
  #morsels { display: none; }
}

/* pads */
@media only screen and (min-width: 451px) and (max-width: 768px) {
  html { font-size: 14px; }
  #collage img { scale: 0.375; }
  #morsels { display: none; }
}

/* normal 768-1599 default above */

/* bigs */
@media only screen and (min-width: 1600px) and (max-width: 1999px) {
  html { font-size: 18px; }
  #collage img { scale: 0.625; }
}

/* extra bigs */
@media only screen and (min-width: 2000px) {
  html { font-size: 20px; }
  #collage img { scale: 0.75; }
}
