/* Boilerplate */

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: #fff;
  font-family: 'Source Sans 3 Variable', sans-serif;
  line-height: 1.5;
  margin: 0;

  --first-background-color: #dbe5ea;
  --second-background-color: #0f1c3f;

}

a {
  color: #456bd9;
}

.prose * + * {
  margin-top: 1rem;
}

.box {
  background-color: var(--first-background-color);
  border-radius: 0.5em;
  overflow: hidden;
}

.box-header {
  background: var(--second-background-color);
  color: #fff;
  font-size: 1.25em;
  line-height: 1;
  padding: 1rem;
}

.box-menu {
  list-style: none;
  padding: 0;
}

.box-menu > * + * {
  border-top: 2px solid transparent;
}

.box-menu a {
  background-color: rgba(255, 255, 255, 0.5);
  display: block;
  line-height: 1;
  padding: 1rem;
}

.box-menu a,
header a {
  text-decoration: none;
}

header {
  background: #dbe5ea;
  overflow: hidden;
  nav {
    line-height: 1;
    margin: 1em auto;
    max-width: 64em;
    padding: 0 1.5em;
    display: flex;
    justify-content: space-between;

    span a {
      margin-left: 15px;
    }
  }
}
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
header nav li + li {
  margin-left: 1rem;
}


footer {
  background: var(--second-background-color);

  color: white;
}

footer div {
  margin: 1em auto 0 auto;
  max-width: 64em;
  padding: 1.5em;
}

label {
  display: block;
}

input,
textarea {
  width: 100%;
  border-radius: 0.5em;
  border-width: 0px;
  background-color: var(--first-background-color);
  font-size: 1.25em;
  line-height: 1;
  padding: 1rem;
  font-family: "Source Sans Pro", sans-serif;
}

input[type="submit"] {
  width: 10em;
}

.box .button_to {
  button {
    background-color: rgba(255, 220, 220, 0.5);
    display: block;
    line-height: 1;
    padding: 1rem;
    border-width: 0px;
    color: #456bd9;
    font-size: 16px;
    width: 100%;
    text-align: left;
  }
  button:hover {
    background-color: rgba(249, 132, 132, 0.5);
  }
}

.field_with_errors > input,
.field_with_errors > textarea {
  border: 2px solid red;
  background-color: rgb(254, 177, 177);
}

.field_with_errors > label{
  color: red;
}