/*
xs: (12)  font-size: 0.75rem;
sm: (14)  font-size: 0.875rem;
xl: (24)  font-size: 1.5rem;
*/

html {
  box-sizing: border-box;
  background: #000;
}
*, *:before, *:after {
  box-sizing: inherit;
}

.visually-hidden { /* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

body {
  font-family: 'Space Mono', monospace;
}

main {
  max-width: 48rem;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

header span {
  width: 0px;
  margin-left: 2rem;
  font-size:  0.875rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

section {
  font-size: 0.75rem;
  padding: 2rem;
}

p {
  line-height: 1.125rem;
}

nav {
  text-transform: uppercase;
  padding: 0 2rem;
}
nav ul {
  padding-left: 0;
  margin-left: 0;
}
nav li {
  display: inline;
}
nav li + li {
  margin-left: 1rem;
}
a {
  color: black;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.junkbox {
  background-image: url('graphic.svg');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 80%;
  position: relative;
}
.junkbox p {
  max-width: 36%;
}
.try-or-buy {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.try-or-buy input[type="submit"] {
  background: white;
  color: black;
}
.try-or-buy a {
  text-decoration: underline;
}
.try-or-buy a::after {
  display: inline-block;
  content: '';
  width: 0;
  height: 0;
  transform: translateY(3px);
  margin-left: 0.5rem;
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent #000000;
}

.newsletter-cta {
  border-top: 1px dashed black;
  border-bottom: 1px dashed black;
  text-align: center;
}
.newsletter-cta p {
  max-width: 20rem;
  margin: 0 auto;
}
.newsletter-cta form {
  margin: 1rem auto 0 auto;
  max-width: 16.25rem;
  display: flex;
  flex-direction: column;
}
.newsletter-cta form input + input{
  margin-top: 0.5rem;
}

input {
  height: 1.875rem;
  border: 1px solid black;
  margin: 0;
  color: black;
  background-color: white;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  padding-top:2px;
  color: black;
}
::-moz-placeholder { /* Firefox 19+ */
  padding-top:2px;
  color: black;
}
:-ms-input-placeholder { /* IE 10+ */
  padding-top:2px;
  color: black;
}
:-moz-placeholder { /* Firefox 18- */
  padding-top:2px;
  color: black;
}

input[type="submit"] {
  cursor: pointer;
  background: black;
  color: white;
}

input[type="submit"]:hover {
  background: white;
  color: black;
}

input[type="submit"]:disabled {
  opacity: 0.5;
}

input[type="submit"]:disabled:hover {
  background: white;
  color: black;
}

* {
    font-family: 'Space Mono', monospace;
}

body {
  margin: 20px;
}

input[type=range] {
    -webkit-appearance: none;
    /* Hides the slider so that custom slider can be made */
    width: 100%;
    /* Specific width is required for Firefox. */
    background: transparent;
    /* Otherwise white in Chrome */
    position: relative;
    border: none;
    margin: 10px 0 20px 0;
}

input[type=range]::before {
  content: '';
  border: 2px solid black;
  display: block;
  width: calc(100% - 4px);
  position: absolute;
  top: 10px; bottom: 0;
  height: 10px;
  z-index: -1;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent; 
  border-color: transparent;
  color: transparent;
}

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 10px;
  border-radius: 0px;
  background: #000;
  cursor: pointer;
 /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  height: 30px;
  width: 20px;
  background: #000;
  cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  height: 30px;
  width: 10px;
  background: #000;
  cursor: pointer;
}

.xy-pad-wrap {
  width: 100%;
  padding-top: 33%;
  display: block;
  position: relative;
  margin-bottom: 20px;
}

.xy-pad {
  display: block;
  border: 2px solid #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0; 
  right: 0;
}

.xy-pad .thumb {
  position: absolute;
  left: 0;
  bottom: 0;
  line-height: 1em;
  border: 2px solid #000;
  border-radius: 1em;
  width: 20px;
  height: 20px;
  display: block;
  cursor: pointer;
  overflow: visible;
}

.label {
  margin: 10px;
  position: absolute;
  top: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.7em;
  z-index: -1;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
     -moz-user-select: none; /* Firefox */
      -ms-user-select: none; /* Internet Explorer/Edge */
          user-select: none;
}

.label.side {
  width: 33%;
  transform: translateX(-48%) rotate(-90deg) translateX(-45%);
  z-index: 10;
}

.label.bottom {
  margin: 10px auto;
  width: 100%;
  z-index: 10;
}

.overlay {
  position: absolute;
  left: 0; bottom: 0; right: 0; top: 0;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  color: white;
}

.overlay a {
  color: white;
}

#start-button {
  width: 100px;
  position: absolute;
  top: 150px;
  left: 0; right: 0;
  margin: auto;
  border: 1px solid #fff;
}

.clock {
  color: white;
  font-size: calc(100vh / 6);
  line-height: 0.9em;
}