@font-face {
  font-family: Roboto;
  src: url(fonts/Roboto-Light.ttf);
}

* {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: Roboto;
  font-size: var(--text-size);
  background-color: var(--background-color);
  color: var(--text-color);
}

a {
  user-select: none;
  color: var(--text-color);
}

a:visited,
a:active {
  color: var(--visited-link-color);
}

.container {
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

#sketch {
  height: 80vh;
  width: 80vh;
  aspect-ratio: 1;

  touch-action: none;
}

.controls-line {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: calc(var(--text-size));
  margin-bottom: calc(var(--text-size));
}
.group {
  margin-left: calc(var(--text-size) / 2);
  margin-right: calc(var(--text-size) / 2);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer {
  position: absolute;
  width: 100vw;
  bottom: 1vh;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer * {
  padding-left: 2vw;
  padding-right: 2vw;
}

input,
button {
  font-size: var(--text-size);
  margin-left: calc(var(--text-size) / 2);
  margin-right: calc(var(--text-size) / 2);
}

input[type="range"] {
  background: transparent; /* Otherwise white in Chrome */
}

input[type="range"]:focus,
input[type="text"]:focus {
  outline: none;
}

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;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background-color: var(--visited-link-color);
  cursor: pointer;
  margin-top: 0; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: var(--text-color);
}

button,
input[type="numeric"] {
  cursor: pointer;
  font-size: var(--text-size);
  font-weight: inherit;
  padding-left: calc(var(--text-size) / 2);
  padding-right: calc(var(--text-size) / 2);
  padding-top: calc(var(--text-size) / 2);
  padding-bottom: calc(var(--text-size) / 2);
  border-radius: 5px;
}

input[type="numeric"] {
  background-color: var(--text-color);
  color: var(--background-color);
  border: none;
}

button {
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

@media only screen and (max-width: 600px) {
  #sketch {
    height: 95vw;
    width: 95vw;
  }

  .container {
    justify-content: space-around;
  }

  .footer {
    justify-content: space-around;
  }
}
