html {
  box-sizing: border-box;
  overflow-x: hidden;
}

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

html,
body {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background-color: #000;
  color: #ffffff;
}

h1 {
  font-size: 22px;
}

section {
  background-color: #282828;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 2em;
}

input[type=text] {
  width: 100%;
  padding: 12px 20px;
  display: inline-block;
  border: 1px solid #282828;
  border-radius: 50px;
  box-sizing: border-box;
  background-color: #121212;
  margin-bottom: 1em;
  color: #fff;
}

input[type=text]:focus {
  outline: none;
  border: 1px solid #5978e2;
}

input[type=text]:invalid {
  border: 1px solid #d94a4a;
}

input[type=submit] {
  background-color: #7086e6;
  border: none;
  color: #282828;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
}

input[type=submit]:disabled {
  background-color: #5e5e65;
  cursor: not-allowed;
}

.input-length {
  font-size: 12px;
  float: right;
  margin-bottom: 0.5em;
}

.alert {
  position: fixed;
  bottom: 1em;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  text-align: center;
  padding: 0.75em;
  border-radius: 50px;
  font-size: 13px;
}

.alert.ok {
  background-color: #9ae8ce;
  color: #000;
}

.alert.error {
  background-color: #d94a4a;
  color: #000;
}
