html,body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #008B8B;
  font-family: Arial Unicode MS, Lucida Sans Unicode, sans-serif;
}

h1,h2,h3,h4,h5,h6 {
  color: #1A6868;
  text-align: center;
}

a {
  text-decoration: none;
  color: #1A6868;
}

p {
  text-align: justify;
}

input[type=text], select {
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 5px;
  width: 100%;
  height: 2.5em;
  line-height: 2.5em;
  font-size: 1em;
  border: 1px solid #BBB;
  border-radius: 5px;
}

input[type=text]:focus,select:focus {
  outline: none;
  border: 1px solid #1A6868;
}

select {
  background: white;
}

input[type=submit] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 2.5em;
  font-weight: bold;
  font-size: 1em;
  background: #1A6868;
  color: #FFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button {
  box-sizing: border-box;
  height: 2.5em;
  font-weight: bold;
  font-size: 1em;
  background: #1A6868;
  color: #FFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

ol.results {
  padding: 0;
}

li.result {
  list-style-type: none;
  padding: 10px 0;
}

.outer {
  height: 100%;
  display: flex;
  display: -webkit-flex;
  overflow-y: auto;
}

.inner {
  margin: auto;
  padding: 10px 0;
}

.wrapped {
  margin: 5px;
  padding: 5px 10px;
  background: #FFF;
  border-radius: 5px;
}

.field {
  margin: .2em 0;
}

.captcha img {
  display: block;
  margin: auto;
}

.results-header h1 {
  margin-bottom: 0px;
  padding: 0px;
}

.result {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  -webkit-flex-direction: row;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: flex-start;
  -webkit-align-items: flex-start;
  border-top: 1px solid #ddd;
}

.result-text {
  word-wrap: break-word;
}

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

.result-actions button {
  width: 48%;
  max-width: 100px;
}

.result-lang {
  font-size: .8em;
  color: #666666;
}

.links {
  padding: 0 10px;
  margin-bottom: 5px;
  font-size: .8em;
  color: #1A6868;
}

/* experiment */
.links a, .links span {
  color: white;
}

.unhappyMessage {
  font-size: .8em;
  color: #F00;
}

/** announcement **/
.announcement {
  font-size: 14px;
  background: #F5F5F5;
  border-radius: 8px;
  color: black;
  padding: 1rem;
}

.announcement__title {
  text-align: left;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: black;
}

.announcement div {
  margin-bottom: 0.5rem;
}

.announcement div:last-child {
  margin-bottom: 0;
}

@media (max-width: 400px) {
  .result-content {
    width: 45%;
  }

  .result-actions {
    width: 50%;
  }
}

@media (min-width: 401px) {
  .result-content {
    width: 55%;
  }

  .result-actions {
    width: 40%;
  }
}

@media (max-width: 650px) {
  input[type=submit] {
    margin: .5em 0;
  }
}

@media (min-width: 651px) {
  .wrapped {
    width: 600px;
  }

  .content form {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    width: 100%;
  }

  .captcha form {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    width: 100%;
  }

  .content .field:nth-child(1) {
    width: 53%;
  }

  .content .field:nth-child(2) {
    width: 25%;
  }

  .content .field:nth-child(3) {
    width: 20%;
  }

  .captcha form > div {
    width: 35%;
  }

  .field {
    margin: 1em 0;
  }

  .field label {
    display: none;
  }
}