/* Scrollr CSS
   Scrollr by Chuck Aligbe
   url: http://chuck.aligbe.com/scrollr
   version: 0.9


/*
======================
  CSS RESET
======================
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/*
======================
  VARIABLES
======================
*/

:root {
  --off-black: #333;
  --cyan: #09f;
  --magenta: #f09;
  --yellow: #fc0;
  --blue: #36f;
  --red: #d20;
  --green: #6c3;
  --gray: #999;
  --light-gray: #ccc;
  --off-white: #eee;
}

/*
======================
  BASICS
======================
*/

html {
  font-size: 16px;
}

body {
  font-family: Inter, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5em;
  color: var(--off-black);
  background: whtie;
}

p {
  margin: 0.5em 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bolder;
  margin: 0.5em 0;
}

h1 {
  font-size: 4.5em;
}

h2 {
  font-size: 4em;
}

h3 {
  font-size: 3em;
}

h4 {
  font-size: 2.5em;
}

h5 {
  font-size: 2em;
}

h6 {
  font-size: 1.5em;
}

a {
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

a:hover,
a:focus {
  opacity: 0.625;
}

label {
  display: block;
}

/*
======================
  CONTENT
======================
*/

#main section {
  width: 100%;
  padding: 0 21px;
}

/*
======================
  SETTINGS
======================
*/

section#settings {
  display: block;
  min-height: 100vh;
  background-color: #fff;
}

#settings > * {
  margin-bottom: 1.5rem;
}

#header {
  position: relative;
}

.title {
  display: inline-block;
  margin-bottom: 0.25em;
}

.byline {
  font-size: 0.875em;
  font-style: italic;
}

.version {
  font-size: 0.75em;
  display: inline-block;
}

.close {
  position: absolute;
  top: 21px;
  right: 0;
  fill: var(--off-black);
  display: none;
}

.botan {
  padding: 0 6px;
  background-color: var(--cyan);
  font-weight: bold;
  color: white;
  border-radius: 5px;
  white-space: nowrap;
}

div#disclaimer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

#disclaimer .icon {
  width: 75px;
  height: 75px;
  opacity: 0.75;
  margin-left: 0.5rem;
}

div#controls {
  margin-bottom: 3rem;
}

#controls label {
  font-weight: bold;
  margin-bottom: 0.5em;
}

#controls form > div {
  margin-bottom: 1rem;
}

#sf-text textarea {
  width: 100%;
  height: 8rem;
  border: none;
  background: var(--off-white);
  border-radius: 5px;
  padding: 3px 8px;
  display: block;
}

#controls input[type="range"] {
  width: 90%;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 5px;
  background: var(--cyan);
  padding: 0;
  vertical-align: middle;
  margin: 16px 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

#controls input[type="range"]:hover {
  opacity: 1;
}

#controls input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  background-color: #fff;
  border: 3px solid #09f;
  border-radius: 50%;
  cursor: pointer;
}

#controls input[type="range"]::-moz-range-thumb{
  width: 19px;
  height: 19px;
  background-color: #fff;
  border: 3px solid #09f;
  border-radius: 50%;
  cursor: pointer;
}

#controls output {
  width: 5%;
  margin-left: 2%;
}

#sf-color {
  margin-bottom: 4rem !important;
}

ul.colors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

ul.colors li {
  margin: 0;
  width: 33.33%;
  height: 0;
  padding-bottom: 33.33%;
  background-color: #ccc;
  position: relative;
  transition: opacity 0.25s ease;
}

ul.colors li::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15%;
  height: 15%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

ul.colors li:hover::after,
ul.colors li.hovered::after {
  opacity: 0.9;
}

ul.colors li:hover {
  opacity: 0.75;
}

ul.colors li.red {
  background-color: var(--red);
}

ul.colors li.yel {
  background-color: var(--yellow);
}

ul.colors li.grn {
  background-color: var(--green);
}

ul.colors li.cya {
  background-color: var(--cyan);
}

ul.colors li.blu {
  background-color: var(--blue);
}

ul.colors li.mag {
  background-color: var(--magenta);
}

ul.colors li.drk {
  background-color: var(--off-black);
}

ul.colors li.gry {
  background-color: var(--gray);
}

ul.colors li.lit {
  background-color: var(--light-gray);
}

#sf-color output {
  display: none;
}

.toggle-group {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

.toggle-group input {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

.toggle-group label {
  margin-bottom: 24px !important;
  width: 100%;
  height: 48px;
  text-align: center;
  font-size: 1.5rem;
  padding: 12px 16px;
  background-color: #f0f0f0;
  border: 1px solid #999;
  border-radius: 24px;
}

.toggle-group label:hover {
  opacity: 0.7;
  cursor: pointer;
}

.toggle-group input:checked + label {
  background-color: #666;
  color: #fff;
  box-shadow: none;
}

button.submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background-color: var(--cyan);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

button.submit:hover,
button.submit:focus {
  opacity: 0.7;
}

.reset {
  text-align: center;
  font-size: 1.1em;
}

#footer {
  text-align: center;
  font-size: 0.75rem;
}

/*
======================
  MARQUEE
======================
*/

section#marquee {
  display: none;
  background-color: #eee;
  padding-top: 21px;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hamburger {
  position: fixed;
  z-index: 99;
}

.banner {
  width: 1000px;
  white-space: nowrap;
  position: absolute;
  top: 50%;
}

.banner span {
  font-weight: bold;
  font-size: 80vh;
  white-space: nowrap;
}

#marquee .reset {
  position: absolute;
  bottom: 21px;
  left: 0;
  width: 100%;
}

/*
======================
  MEDIA QUERIES
======================
*/

@media screen and (min-width: 500px) {
  .toggle-group {
    display: flex;
    overflow: hidden;
    border: 1px solid #999;
    border-radius: 24px;
  }

  .toggle-group label {
    margin-bottom: 0 !important;
    width: 50%;
    border: none;
    border-radius: 0;
  }
}

@media screen and (min-width: 650px) {
  ul.colors li {
    padding-bottom: 0;
    width: 11.11%;
    height: 100px;
  }

  ul.colors li::after {
    width: 25px;
    height: 25px;
  }
}

@media screen and (min-width: 750px) {
  body {
    max-height: 100vh;
    overflow: hidden;
  }

  section#settings {
    width: 600px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: scroll;
    z-index: 999;
    box-shadow: 5px 0 10px rgba(64, 64, 64, 0.2);
  }

  .close {
    display: block;
  }

  section#marquee {
    display: block;
    position: absolute;
  }
}

@media screen and (min-aspect-ratio: 9/10) {
  div#disclaimer {
    display: none;
  }
}
