/* a minimalist set of CSS resets */

/* default to border-box */
html {
  box-sizing: border-box;
  font-size: 16px;
}

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

/* adjust typography defaults */
body {
  margin: 1rem;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* images and videos max out at full width */
img,
video {
  height: auto;
  max-width: 100%;
}

input[type="text"], input[type="number"], select, textarea {
  padding: .5rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font: inherit;
  line-height: inherit;
  width: 100%;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

label > span {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .9rem;
  margin: .9rem 0 .5rem;
  white-space: nowrap;
  user-select: none;
}

label > span a {
  color: #37af67;
  font-size: .9em;
  cursor: pointer;
  border: 1px dashed #ddd;
  padding: .3rem .8rem;
  border-radius: 2rem;
  user-select: none;
  text-decoration: underline;
  background: #f3f3f3;
}

.form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-column-gap: 1.5rem;
}

.buttons {
  grid-column-start: 1;
  grid-column-end: 6;
  display: flex;
  justify-content: space-between;
}

button {
  font: inherit;
  line-height: inherit;
  border: 0;
  user-select: none;
}

button.gen {
  padding: .5rem 1.5rem;
  border-radius: 3px;
  background: #37af67;
  color: #fff;
  margin: .5rem 0;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

button.copy {
  padding: .5rem 1.5rem;
  border-radius: 3px;
  background: #0286c5;
  color: #fff;
  margin: .5rem 0;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

button.save {
  padding: .5rem 1.5rem;
  border-radius: 3px;
  background: #00c4ff;
  color: #fff;
  margin: .5rem 0;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

textarea {
  width: 100%;
  min-height: 500px;
}

@media screen and (max-width: 768px) {
  .form {
    grid-template-columns: 1fr;
  }
  
  .buttons {
    grid-column-start: 1;
    grid-column-end: 2;
    display: flex;
    justify-content: space-between;
  }
}