header,
article,
aside,
footer {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

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

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(50px, auto);
  grid-template-columns: 1fr;
  grid-template-areas: "head" "main" "foot";
  font-size: 62.5%;
  color: #24292e;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(45deg, #00aeff, #a68eff);
}

a {
  text-decoration: none;
  color: #f6f8fa;
}

a.lnk {
  border-bottom: 1px dashed #f6f8fa;
}

hr {
  background-color: #f6f8fa;
  border: 0;
  height: 0.25em;
  margin: 24px 0;
  padding: 0;
}

pre {
  overflow: auto;
  padding: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #24292e;
  border-radius: 0.35rem;
  background-color: #f6f8fa;
}

code {
  margin: 0;
  padding: 0.2em 0.4em;
  color: #24292e;
  border-radius: 3px;
  background-color: #fff;
}

kbd {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 0.8em;
  user-select: none;
  border: 1px solid #f6f8fa;
  border-radius: 2px;
  box-shadow: 0 2px 8px 0 rgba(50, 50, 50, 0.08);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  border-top-right-radius: 0.35rem;
  border-bottom-right-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb {
  border-top-right-radius: 0.35rem;
  border-bottom-right-radius: 0.35rem;
  background-color: #fff;
}

h1 {
  font-size: 2.25rem;
  text-transform: uppercase;
}

h2 {
  font-size: 1.875rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
  font-weight: 700;
}

section {
  display: flex;
  flex-flow: column wrap;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.anchorjs-link {
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

.btn {
  position: relative;
  margin: 0.25rem 0.5rem;
  padding: 1rem 1.752rem;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.5rem;
  transform: scale(0.8);
  cursor: pointer;
  color: #f6f8fa;
  transition: all 0.3s ease-out;
  border: 0;
  border-radius: 0.35rem;
  background: linear-gradient(15deg, #00aeff, #a68eff);
}

.btn:hover {
  transform: scale(1);
}

header {
  grid-area: head;
  padding: 1rem 2rem;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  color: #fff;
}

header .github-logo {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 80px;
  height: 80px;
}

header .github-logo svg {
  width: 80px;
  fill: #fff;
}

header .github-logo svg path:nth-child(n + 2) {
  fill: #a68eff;
}

header .github-logo:hover .arm {
  transform-origin: 130px 106px;
  animation: octocat-wave 560ms ease-in-out;
}

header .heading {
  display: flex;
  align-items: center;
}

header .heading svg {
  margin-right: 0.5rem;
  width: 48px;
  fill: #fff;
  border-radius: 8px;
  box-shadow: inset 0 4px 7px 1px rgba(250, 250, 250, 0.13), inset 0 -5px 20px rgba(173, 186, 204, 0.05);
}

header h1 {
  margin: 0;
}

header h1 sup {
  position: relative;
  top: -0.5rem;
  display: inline-block;
  font-size: 1rem;
}

header .description {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

main {
  grid-area: main;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-template-areas: "art art art aside";
}

main article {
  grid-area: art;
  margin-left: 1rem;
  height: 76vh;
  overflow-x: hidden;
  color: #fff;
  border-top-left-radius: 0.35rem;
  border-bottom-left-radius: 0.35rem;
}

.container {
  padding: 1rem 2rem;
}

.container h2 {
  margin: auto;
}

.cards {
  margin-bottom: 1rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
}

.cards .block {
  margin: 1rem auto;
  display: flex;
  width: 180px;
  height: 180px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #47c9e5;
  border-radius: 0.25rem;
  background-color: #fff;
}

.flex {
  display: grid;
  width: 100%;
  grid-gap: 2rem;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  margin: 0.5rem auto;
  grid-template-areas: "sel card";
  justify-content: space-between;
  align-items: flex-start;
}

.gen_blocks {
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.gen_blocks .block {
  position: relative;
  margin: 0 1rem 2rem;
  display: flex;
  width: 28px;
  height: 28px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #47c9e5;
  border-radius: 0.15rem;
  background-color: #fff;
}

.card__content {
  grid-area: card;
  position: relative;
  width: 100%;
  height: 100%;
  transition: 0.2s ease-in-out;
  border-radius: 0.25rem;
  background: #fff;
}

.card__content::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: attr(data-title);
  color: #a68eff;
  opacity: 0.2;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
}

.card__content .result {
  padding: 0.5rem;
  width: 100%;
  height: 100%;
  resize: none;
  cursor: default;
  color: #738291;
  border: 1px solid #e6ebf1;
  border-radius: inherit;
  overflow-y: scroll;
}

.text-options {
  position: relative;
  font-size: 1.25rem;
}

.text-options:hover::after {
  position: absolute;
  left: 120px;
  z-index: 1;
  content: "Change name?";
  padding: 0.25rem;
  font-size: 1rem;
  color: inherit;
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.3);
}

.text-options input[type="text"] {
  max-width: 157px;
  text-align: right;
  color: inherit;
  font-size: inherit;
  cursor: help;
  border: 0;
  border-bottom: 2px solid #fff;
  background: transparent;
}

.text-options input[type="text"]:focus {
  outline: none;
  cursor: text;
}

.gen_selector {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}

.gen_selector .gen_table {
  min-width: 30%;
  font-size: 1rem;
}

.gen_selector .gen_table .gen {
  display: inline-block;
  color: inherit;
  min-width: 30px;
}

.gen_selector input[type="range"] {
  margin: 0 0 15px;
  width: 200px;
  height: 1.7rem;
  -webkit-appearance: none;
  background: none;
}

.gen_selector input[type="range"]:focus {
  outline: none;
}

.gen_selector input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -0.7rem;
  height: 1.7rem;
  width: 1.7rem;
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  border-radius: 50%;
  background: #47c9e5;
  box-shadow: 0 5px 15px 0 rgba(37, 44, 97, 0.15), 0 2px 4px 0 rgba(93, 100, 148, 0.2);
}

.gen_selector input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.gen_selector input[type="range"]::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: linear-gradient(to right, #47c9e5, #5468ff);
  border-radius: 0.15rem;
}

.genshadow {
  margin: 5rem auto 6rem;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-around;
  align-items: center;
}

.genshadow textarea {
  padding: 0.5rem;
  margin: 1rem auto 2rem;
  width: 100%;
  min-height: 250px;
  resize: none;
  color: #738291;
  border: 1px solid #e6ebf1;
  border-radius: 0.35rem;
  overflow-y: scroll;
}

aside {
  grid-area: aside;
  position: relative;
  padding: 1rem;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  align-content: center;
  color: #fff;
}

h3 {
  white-space: nowrap;
}

.changes {
  position: relative;
  padding: 0 1rem;
}

.changes label {
  display: block;
}

.changes input {
  margin: 0.35rem auto;
  height: 2rem;
  padding-left: 0.25rem;
  color: #fff;
  font-size: 1rem;
  border: rgba(255, 255, 255, 0.7);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 9px 16px 0 rgba(28, 121, 192, 0.35);
}

.changes button {
  width: 2rem;
  height: 2rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.25rem;
  background-image: linear-gradient(15deg, #00aeff, #a68eff);
  box-shadow: 0 9px 16px 0 rgba(28, 121, 192, 0.35);
}

.changes button.reset {
  width: auto;
  height: auto;
  padding: 0.5rem 1.5rem;
}

.changes input:focus,
.changes button:focus {
  outline: none;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

ul li {
  position: relative;
  margin: 0.5rem;
  padding-right: 1.5rem;
}

ul li::after {
  position: absolute;
  right: 0;
  padding: 0.5rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.4);
}

ul li a {
  white-space: nowrap;
  color: #fff;
}

ul li:hover::after, ul li.active::after {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.9);
}

footer {
  grid-area: foot;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0.5rem 0;
  line-height: 1;
  color: #fff;
}

footer p.issue {
  display: flex;
  align-items: center;
}

footer p.issue #add_issue {
  width: 28px;
  height: 28px;
  cursor: pointer;
  fill: #f6f8fa;
  margin-left: 5px;
}

@media (max-width: 991px) {
  .cards .block {
    width: 120px;
    height: 120px;
    font-size: 0.8rem;
  }
  .card__content {
    height: 250px;
  }
  .flex {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr auto;
    grid-template-areas: "sel" "card";
    grid-gap: 0;
  }
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 0;
  }
  body {
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    grid-template-areas: "head" "main" "foot";
    background-image: linear-gradient(45deg, #4954de, #00aeff);
  }
  header {
    padding: 1rem;
  }
  header .github-logo svg path:nth-child(n + 2) {
    fill: #00aeff;
  }
  header .heading {
    align-items: flex-start;
  }
  header .heading sup {
    display: block;
  }
  main {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr auto;
    grid-template-areas: "aside" "art";
  }
  main article {
    padding: 1rem;
    margin: 0;
    height: auto;
  }
  main article .container {
    padding: 1rem;
    border-radius: 0.33333rem;
  }
  .changes {
    padding: 0;
  }
  .genshadow {
    margin: 1rem 0;
  }
  .genshadow textarea {
    width: 70%;
  }
  .cards .block {
    width: 80px;
    height: 80px;
    font-size: 0.66667rem;
  }
  aside .changes::after {
    display: none;
  }
  aside .changes h3 {
    width: 100%;
    text-align: center;
  }
  aside .changes p {
    text-align: center;
  }
  footer {
    justify-content: center;
  }
  footer p {
    text-align: center;
  }
  .ribbon {
    display: none;
  }
}

@media (max-width: 320px) {
  header .heading {
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
  }
  header h1 {
    margin: auto;
    font-size: 1.75rem;
  }
}
