@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
body {
  background: #ececec;
  text-align: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  margin-top: 30px;
}

#generator {
  background: white;
  max-width: 25em;
  animation: fadeIn 1s ease-in-out;
  backface-visibility: hidden;
  transition: all 0.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#title {
  color: #ffffff;
  font-size: 1.2em;
  padding: 1em;
  background: #202A44;
}

#rNum {
  padding: 0.8em;
  font-size: 3em;
  margin: 0;
  color: #212121;
  transition: padding 0.2s;
}

#inputs, #headers {
  display: flex;
  align-content: center;
  flex-flow: row wrap;
  justify-content: space-around;
  color: #212121;
}
#inputs input, #headers input {
  -webkit-appearance: none;
  border: 0;
  font-size: 1.1em;
  width: 20%;
  border-bottom: 5px solid #202A44;
  margin-bottom: 2em;
  background: #f0f0f0;
  padding: 0.4em;
  border-radius: 0;
  -webkit-appearance: none;
  transition: margin 0.2s;
}
#inputs p, #headers p {
  font-size: 1em;
  color: #212121;
  font-weight: 400;
}
#inputs #generate, #headers #generate {
  webkit-appearance: none;
  width: 100%;
  padding: 1em 0;
  color: #ffffff;
  font-size: 1.2em;
  margin: 0;
  display: block;
  background: #202A44;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}
#inputs #generate:hover, #headers #generate:hover {
  background: #B0DBF1;
}

@media screen and (max-height: 30em) {
  #generator #rNum {
    padding: 0;
    padding-top: 0.1em;
  }

  #inputs input {
    margin-bottom: 1em;
  }
}

#article {
  text-align: left;
  padding: 5% 15% 1% 15%;
}