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

a {
  color: black;
}

.container {
  text-align: center;
  max-width: 100vw;
  height: 100%;
  padding: 0;
  margin: 0;
}

header .languages {
  position: absolute;
  right: 10px;
  top: 0;
  color: black;
}

.tagline {
  color: black;
  padding: 5% 0;
  background-color: #efbd47;
  line-height: 100em;
}

.row.secret-link {
  background-color: rgb(219 187 145);
  padding: 2em 0;
}

.secret-link > .column > div {
  padding-bottom: 1em;
  color: white;
}

.container .row.secret-link:not(.reveal) {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.secret-link.reveal {
  max-height: 500px;
}

.container .row.error:not(.reveal) {
  max-height: 0;
  overflow: hidden;
  padding: 0;
}

.container .row.hide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-in;
}

.error {
  display: block;
  padding: 1em 0;
  max-height: 500px;
  background-color: #ef4747;
  color: white;
}

.animate-show {
  transition: max-height 0.25s ease-out;
}

.tagline h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: normal;
}

.tagline h2 {
  padding: 10% 0;
}

.container .row .column {
  padding: 0;
}

.container .row {
  width: 100vw;
  max-height: 1000px;
  margin: 0;
}

.container .row.footer {
  position: absolute;
  bottom: 0;
}

nav a::after,
nav span::after {
  content: " | ";
}

nav a:last-child::after,
nav span:last-child::after {
  content: none;
}

nav a img {
  vertical-align: middle;
}

nav a {
  text-transform: lowercase;
}

/* Leave at least 24px of height per link so it is easy to tap. */
footer nav a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

.tagline h1 a {
  color: inherit;
}

.row.content .column {
  padding: 2em 0;
}

input[type="text"]:active,
input[type="text"]:focus {
  border-color: #efbd47;
}

#secret {
  max-width: 300px;
}

#result-box {
  max-width: 650px;
  color: gray;
  background-color: white;
}

/*
 * Only toggle visibility so the hint keeps its space. Collapsing it on blur
 * would move the content while the copy button is being pressed.
 */
.return-to-copy {
  visibility: hidden;
}

#result-box:focus ~ .return-to-copy {
  visibility: visible;
}

a.button,
button {
  border-color: #efbd47;
  background-color: #efbd47;
  color: black;
}

button:disabled {
  color: #000;
}

a.button.button-outline,
button.button-outline {
  color: #000;
}

/*
 * Keep the header visible above the on-screen keyboard when the secret input
 * gets focused on phones. Match on the device size, not the space left by the
 * keyboard, since mobile browsers keep the layout viewport while it is open.
 */
@media (width <= 400px), (height <= 500px) {
  header.row {
    align-items: center;
    background-color: #efbd47;
  }

  header .languages {
    position: static;
    padding-right: 1rem;
  }

  .tagline {
    padding: 1rem 0;
    line-height: normal;
  }

  .tagline h2 {
    padding: 0 0 0 1rem;
    margin: 0;
    font-size: 2.4rem;
  }

  .row.content .column {
    padding: 1rem 0;
  }
}
