body > header {
  padding-bottom: 3px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.button {
  text-align: center;
}

nav a:hover,
a.button:hover {
  text-decoration: none;
}


#flashed_messages {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 15em;
  height: 0px;
  overflow: visible;
}

.vanish_messages > div {
  animation: fade 15s linear forwards;
  background-color: #555;
  border-radius: .5rem;
  font-size: 90%;
  line-height: 1;
  text-align: center;
}

@keyframes fade {
    0%, 80% {
      opacity: 1;
      max-height: 10rem;
      padding: .5rem;
      margin: 2px 0px;
    }
    95% {
      opacity: 0;
      max-height: 10rem;
      padding: .5rem;
      margin: 2px 0px;
    }
    100% {
      opacity: 0;
      max-height: 0rem;
      padding: 0rem;
      margin: 0px 0px;
    }
}

figure {
  width: 100%;
}

figure > table {
  min-width: 100%;
}

.box_list {
  width: 10em;
  float: left;
}

.pagination {
  width: 100%;
  text-align: center;
  clear: both;
  padding-top: 2em;
}

.pagination a {
  border-style: solid;
  border-width: var(--border-width);
  border-color: var(--border);
  border-radius: var(--standard-border-radius);
  padding: .5em;
}

.pagination a:hover {
  color: red;
  text-decoration: none;
}


/*
 * Responsive Table
 */

table .currency_symbol {
  float: left;
  margin-right: .5em;
}

table .currency_value {
  float: right;
}

@media (max-width: 720px) {
  .may_omit {
    font-size: 70%;
  }

  thead {
    font-size: 70%
  }
}

@media (max-width: 600px) {
  .may_omit {
    display: none;
  }

  table .currency_symbol {
    float: none;
  }

  table .currency_value {
    float: none;
  }

  thead {
    display: none
  }

  tbody, tbody tr, tbody td {
    display: block;
    left: 0;
    right: 0;
  }

  tbody tr {
    margin-bottom: 15px
  }

  tbody td {
    padding-left: 30%;
    text-align: left !important;
    position:relative;
  }

  tbody td::before{
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 30%;
    padding-right: 15px;
    font-weight: bold;
    text-align: right;
    font-size: 75%;
  }

  tfoot, tfoot tr {
    display: block;
  }
}
