html {
  min-height: 100%;
  margin: 0;
  font-family:
    Liberation Sans,
    sans-serif;
  font-weight: 300;
  font-size: 15px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

header {
  width: 100%;
  height: 5vh;
  animation: appear 0.3s;
}

h1,
h2 {
  text-align: center;
  font-weight: 300;
  line-height: 2;
  margin: 0;
}

h3 {
  font-weight: 400;
}

main {
  margin: auto;
  width: 100%;
  height: 95vh;
  max-width: 1250px;
  font-size: 1.1em;
  position: relative;
  text-align: justify;
  transition: 0.1s;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  animation: appear 0.3s ease 0.15s;
}

main > div {
  max-width: 550px;
  min-width: 300px;
  transition: 0.07s;
  flex: 1;
  padding: 15px 30px;
}

#description {
  display: flex;
  flex-direction: column;
}

#description > img {
  max-width: 100%;
  flex: 1;
}

#description .text {
  flex: auto;
}

.wbo-button {
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(#ccdfdf, #abc6c6);
  margin-top: 15px;
  line-height: 60px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  display: block;
  text-align: center;
  color: black;
  transition: 0.1s;
}

a {
  color: black;
}

.wbo-button:hover {
  box-shadow: 0 0 5px #0074d9;
}

.wbo-button:focus,
.wbo-button:active {
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.15);
}
#named-board-form {
  display: flex;
  background: linear-gradient(#ccdfdf, #abc6c6);
  padding: 0 9px;
  border-radius: 4px;
  margin-bottom: 40px;
}
#named-board-form input {
  line-height: 20px;
  border-radius: 2px;
  border: 1px solid #ffffff8f;
  padding: 6px;
  font-size: 1.1em;
  margin: 9px 0;
  background: #ffffff09;
}

#named-board-form input[type="text"] {
  width: 75%;
  border-radius: 3px 0 0 3px;
  background: #ffffffcf;
}
#named-board-form input[type="text"]:focus {
  background: #fff;
}

#named-board-form input[type="submit"] {
  flex: 1;
  border-radius: 0 3px 3px 0;
  background: #fff6;
}
#named-board-form input[type="submit"]:hover {
  background: #fff3;
}

#named-board-form input[type="submit"]:focus,
#named-board-form input[type="submit"]:active {
  box-shadow: inset 0 0 3px white;
}

footer {
  margin-top: 40px;
  text-align: center;
  flex-shrink: 0;
  height: 40px;
}

footer a {
  opacity: 0.3;
}

footer a:hover {
  opacity: 1;
}

.lang-selector {
  top: 0;
  right: 0;
  position: absolute;
  padding: 10px;
  z-index: 10;
}

.lang-selector span {
  padding-top: 9px;
  background-image: url(./label.svg);
  height: 65px;
  width: 70px;
  text-align: center;
  display: block;
  background-repeat: no-repeat;
}

.lang-selector ul {
  box-sizing: border-box;
  padding: 4px 0;
  border: 1px solid #d9dde3;
  border-radius: 2px;
  position: absolute;
  top: 100%;
  right: 0;
  width: 160px;
  max-height: min(320px, calc(100vh - 90px));
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
  margin: 0;
  list-style: none;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  transform: translateY(-4px);
}

.lang-selector:hover ul,
.lang-selector:active ul,
.lang-selector:focus ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-selector li a {
  display: block;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  color: #111827;
  transition: background 0.12s;
}

.lang-selector li a:hover,
.lang-selector li a:focus {
  background: #f2f7f5;
}

#recent-boards {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  border-radius: 4px;
  background: linear-gradient(#ccdfdf, #abc6c6);
  padding: 5px;
}

#recent-boards h3 {
  line-height: 2;
  text-align: center;
  font-size: 15px;
  font-weight: inherit;
  margin: 0;
}

#recent-boards.hidden {
  display: none;
}

#recent-boards ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  background: white;
  padding: 7px;
  border-radius: 3px;
  box-shadow: inset 0 0 1px rgba(16, 24, 40, 0.1);
  max-height: 110px;
  overflow-y: scroll;
}

#recent-boards li {
  flex: auto;
  text-align: center;
  margin: 3px;
  display: inline-block;
  border-radius: 2px;
  padding: 2px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1.5em;
  line-height: 1.5em;
  background: linear-gradient(#ccdfdf, #abc6c6);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  white-space: nowrap;
}

#recent-boards li a {
  text-decoration: none;
}

#recent-boards li a:hover,
#recent-boards li a:focus {
  text-decoration: underline;
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
