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

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

a {
  color: blue;
}

html,
body,
#content {
  height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    Fira Sans,
    Droid Sans,
    Helvetica Neue,
    sans-serif;
  font-size: 16px;
}

header,
footer {
  margin: 1rem 0;
}

footer {
  margin-bottom: 0;
  font-size: 0.9rem;
}

#content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 800px;
}

header,
footer {
  flex: 0.01;
}

main {
  flex: 1;
}

table {
  width: 100%;
}

table,
th,
td {
  border-collapse: collapse;
  text-align: left;
}

/*
 * Auto table layout sizes each column to its content, so nothing wraps as long
 * as the row fits. Server names are capped at 25 characters at render time (see
 * the `truncate` helpers), which keeps the Name column from growing unbounded.
 */
th,
td {
  padding: 0.3rem;
  white-space: nowrap;
}

.empty {
  text-align: center;
  padding: 2rem;
}

td.name a {
  vertical-align: middle;
}

img.flag {
  width: 16px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

code {
  background: #eee;
}

@media only screen and (max-width: 600px) {
  #content {
    padding: 10px;
  }

  .ip,
  .map,
  .mode,
  .version {
    display: none;
  }
}

@media only screen and (min-width: 800px) {
  h1 {
    margin-top: 2rem;
  }

  footer {
    margin-bottom: 0.5rem;
  }
}
