*,
*:before,
*:after {
  box-sizing: inherit;
  color: #333;
  font-size: inherit;
  background: transparent;
  transition: color 0.3s, background 0.3s;
  font-family: inherit;
}

*:focus,
input[type=radio]:focus + label {
  outline: 2px dashed #dd8800;
  outline-offset: 2px;
}

.sr, #app #swatch-container #dark-mode-toggle input[type=radio] {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  left: -100vh;
  opacity: 0;
}

body {
  margin: 0;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  height:max-content;
  font-family: "Spartan";
  font-size: 18px;
  box-sizing: border-box;
  color: #333;
  /* background: #ddd; */
  text-align: left;
  padding-top:40px;

}

#app {
  width: 100%;
  max-width: 26rem;
  padding: 4rem 1rem;
  border: 2px solid;
  box-shadow: 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.25);
  position: relative;
  background: #f8f8e8;
  margin: 3rem auto 0;
}
#app h1 {
  font-size: 1.8rem;
}
#app #swatch-container #dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
  background: transparent;
}
#app #swatch-container #dark-mode-toggle input[type=radio] + label {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  border-radius: 1.25rem;
  border: 2px solid;
  background: #f8f8e8;
  position: relative;
}
#app #swatch-container #dark-mode-toggle input[type=radio] + label[for=dark] {
  background: #333;
}
#app #swatch-container #dark-mode-toggle input[type=radio] + label:not(:last-child) {
  margin-right: 0.5rem;
}
#app #swatch-container #dark-mode-toggle input[type=radio]:checked + label:after {
  content: "";
  border-radius: 2rem;
  width: calc(1.5rem + 4px);
  height: calc(1.5rem + 4px);
  border: 2px solid;
  display: block;
  background: transparent;
  left: -6px;
  top: -6px;
  position: absolute;
}
#app #swatch {
  width: 8rem;
  height: 8rem;
  border-radius: 8rem;
  border: 2px solid;
  position: absolute;
  top: -4rem;
  left: calc(50% - 4rem);
  background-color: #f8f8e8;
}
#app ul {
  padding: 0;
  list-style-type: none;
}
#app ul li + li {
  margin-top: 0.5rem;
}
#app #app-form {
  margin: auto;
}
#app #app-form input,
#app #app-form button {
  padding: 0.5em;
  border-radius: 0.25em;
  border: 2px solid;
  font-size: 1rem;
}
#app #app-form input,
#app #app-form button {
  font-family: "Fira Code", monospace;
}
#app #app-form button {
  padding: 0.5em 1em;
  font-weight: bold;
}
#app #app-form button:disabled {
  opacity: 0.4;
}
#app #app-form label,
#app #app-form input,
#app #app-form .label {
  display: block;
  width: 100%;
}
#app #app-form input {
  padding: 0.75em;
}
#app #app-form label,
#app #app-form .label {
  margin: 0.25em 0;
  font-weight: bold;
}
#app #app-form #result {
  border: none;
  border-radius: 0;
  padding-left: 0;
  border-bottom: 2px solid;
}
#app #app-form .flex {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
@media (min-width: 440px) {
  #app #app-form .flex {
    flex-wrap: nowrap;
  }
  #app #app-form .flex > *:not(:last-child) {
    margin-right: 1rem;
  }
}
#app #app-form .group {
  margin-top: 3rem;
  text-align: left;
}
#app #app-form .method {
  font-weight: bold;
}
@media (min-width: 440px) {
  #app {
    padding: 4rem 3rem;
  }
}
@media (min-width: 768px) {
  #app {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 3rem;
    max-width: 768px;
    align-items: center;
    text-align: left;
    margin: 0 auto;
  }
  #app #swatch {
    position: relative;
    left: unset;
    top: unset;
    width: 12rem;
    height: 12rem;
    border-radius: 12rem;
  }
  #app #app-form {
    padding: 2rem 0 2rem 3rem;
    border-left: 2px dashed;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.8s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
  transform: translateY(2rem);
}

#dark-mode-switch {
  position: absolute;
  z-index: 3;
  width: 3rem;
  height: 2rem;
  border: 2px solid;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: 3rem;
}

main.dark {
  color: #fff;
  background: #222;
}
main.dark * {
  color: #fff;
}
main.dark #app {
  background: #333;
  box-shadow: 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.7);
}
main.dark #app #swatch-container #dark-mode-toggle input[type=radio]:checked + label:after {
  border: 2px solid #fff;
}
main.dark #app #swatch-container #swatch {
  background-color: #333;
}


.article {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding:5% 15% 1%;
}

a {
  color:blue;
}