/*
Setback Visualizer - CSS 
Lotvis - chuck.aligbe.com/lotvis

version: 1.0

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
img,
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;
  }
}
/*
----------
  BASICS
----------
*/
/* Colors */
/* Fonts */
/* Dims */
/* Mixins */
html {
  font-size: 16px;
}

body {
  height: 100%;
  font-family: Inter, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5em;
  color: #333;
  background: white;
}

p {
  margin: 0.5em 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin: 0.25em 0;
  line-height: 1.1em;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 1rem;
}

a {
  font-weight: 600;
  color: #09f;
  text-decoration: none;
  -webkit-transition: opacity 0.25s ease;
  -moz-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

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

a > img {
  -webkit-transition: opacity 0.25s ease;
  -moz-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

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

label {
  display: block;
  font-size: 0.875rem;
}

input {
  margin: 0.25rem 0 16px;
  display: block;
  width: 20rem;
  height: 2.5rem;
  border: 2px solid #333;
  border-radius: 0;
  padding: 0.5rem;
}
input:focus {
  border-style: dashed;
}

button {
  margin: 0;
  padding: 0 1rem;
  height: 3rem;
  border: 2px solid #333;
  background-color: #fff;
  font-size: 1.125rem;
  font-weight: bold;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  transition: all 0.25s ease;
  cursor: pointer;
}
button img {
  display: inline;
  vertical-align: middle;
  margin-right: 0.25rem;
}

button:hover,
button:focus {
  background-color: #eee;
}

button:active,
button.active {
  background-color: #333;
  color: white;
}
button:active img,
button.active img {
  filter: invert(1);
}

*:focus {
  outline: none;
}

.screen-reader-text {
  font-size: 1px;
  overflow: hidden;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
}
.btn-icon img {
  width: 100%;
  height: 100%;
}

/*
-----------
  CONTENT
-----------
*/
#container {
  position: relative;
  display: grid;
  grid-template-columns: 25rem 1fr;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#settings {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: white;
}
#settings > div {
  margin-top: 2rem;
}
#settings .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  margin: 0;
}

#buttons button {
  margin-bottom: 0.5rem;
}
#buttons .btn-secondary {
  border: none;
  color: #09f;
}
#buttons .btn-secondary:hover, #buttons .btn-secondary:focus {
  background-color: #eee;
}

.subsection {
  display: block;
  position: relative;
}
.subsection h3 {
  font-size: 1.5rem;
}
.subsection input, .subsection button {
  width: 100%;
}
.subsection .input-group {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-gap: 0.5rem;
}
.subsection .input-group div[class*=icon] {
  display: grid;
  place-items: center;
}

#display {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: hidden;
  background: #eee;
}
#display .menu {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
#display #area-out {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  bottom: 0;
  right: 0;
  width: 16rem;
  height: 6rem;
  padding: 0 1.5rem;
  background-color: white;
  font-weight: bold;
}
#display #area-out p {
  margin: 0.5rem 0;
}
#display #area-out #build-out {
  color: #f09;
}
#display #area-out span.screen-reader-text {
  position: absolute;
}

#footer {
  font-size: 0.875rem;
  text-align: center;
  margin: 2rem 0;
}

/*
-----------------
  MEDIA QUERIES
-----------------
*/
@media screen and (max-width: 35rem) {
  #container {
    display: block;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
  }

  #settings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  #settings #btn-drawer {
    position: fixed;
    width: calc(100% - 3rem);
  }
  #settings h1 {
    margin-right: 5rem;
  }

  #display {
    grid-template-rows: 1fr 6.5rem;
    overflow: scroll;
  }
  #display #area-out {
    position: relative;
    height: 6.5rem;
    justify-content: start;
    padding-top: 0.75rem;
  }
}
@media screen and (max-width: 45rem) {
  #display #area-out {
    width: 100%;
  }
}
@media screen and (max-width: 60rem) {
  #container {
    grid-template-columns: 20rem 1fr;
  }
}
@media print {
  #container {
    display: block;
  }
  #container #settings {
    height: auto;
  }
  #container #settings > :not(h1) {
    display: none;
  }
  #container #display {
    height: 100vw;
  }
  #container #display #area-out {
    position: relative;
    width: 100%;
    height: auto;
  }
}

/*# sourceMappingURL=global.css.map */
