@media (min-width: 601px) {
  body {
    width: 600px;
    margin: 0 auto;
  }
}

/* Navigation */

#nav {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin: 0 0 1em;
  padding: 0;
}

#nav > a {
  display: table-cell;
  text-align: center;
  text-decoration: none;
  padding: 5px 0;
  color: blue;
}

#nav a[class="selected"] {
  background-color: #005bbb;
  color: #ffd500;
}

#nav a:hover {
  background-color: #ffd500;
  color: #005bbb;
}

/* Search */

#search button,
#search input {
  height: 2em;
}

#search button {
  width: 4em;
}

#search form {
  margin-bottom: 1em;
}

/* <input> */
#search form > div > div {
  overflow: hidden;
}

#search form > select {
  margin-bottom: 3px;
}

#search form button {
  float: right;
  margin-left: 3px;
}

#search form input {
  width: 100%;
}

.pagination {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  padding: 0;
}

.pagination a {
  display: table-cell;
  text-align: center;
  text-decoration: none;
  padding: 5px 0;
  border: 1px solid gray;
}

.pagination a:hover {
  background-color: #ffd500;
  color: #005bbb;
}


/* Preferences */

#preferences input {
  width: 100%;
}

/* History */

#history ul {
  padding: 0;
  list-style-type: none;
  font-size: x-large;
}

#history ul a {
  display: block;
  padding: 0.4em 0;
  text-decoration: none;
  border-bottom: 1px solid lightgray;
}

#history ul a:focus,
#history ul a:hover {
  background-color: #ffd500;
  color: #005bbb;
}

/* About */

#about table {
  width: 100%;
  border-collapse: collapse;
}

#about th,
#about td {
  padding: 4px;
  border: 1px solid lightgrey;
}

#about code {
  background-color: #e6e6e6;
}

/* pronounced-words-search */

#forvo_pronounced-words-search__table {
  width: 100%;
  border-collapse: collapse;
}

#forvo_pronounced-words-search__table td {
  word-break: break-word;
}

#forvo_pronounced-words-search__table tr:nth-child(4n+2),
#forvo_pronounced-words-search__table tr:nth-child(4n+4) {
  border-bottom: 1px solid lightgray;
}

/* popular_pronounced_words */

#forvo_popular_pronounced_words__table {
  width: 100%;
  border-collapse: collapse;
}

#forvo_popular_pronounced_words__table th {
  text-align: left;
}

#forvo_popular_pronounced_words__table td {
  border-top: 1px solid lightgray;
}

#forvo_popular_pronounced_words__table td a {
  display: block;
  padding: 0.4em 0;
  font-size: large;
  text-decoration: none;
}

#forvo_popular_pronounced_words__table td a:hover {
  background-color: #ffd500;
  color: #005bbb;
}
