* {
  box-sizing: border-box;
}
body {
  font: 20px/1.2 'IM Fell English', 'Georgia', serif;
  margin: 0;
  padding: 0;
  position: relative;
}
body:before {
  background-attachment: fixed;
  background-color: #ccae62;
  background-size: cover;
  bottom: 0;
  content: '';
  filter: blur(5px);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -1;
}
/* H1 Heading */
h1.heading {
  color: #fff;
  font-size: 30px;
  margin: 4rem 0 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.5), 1px 1px 2px rgba(0,0,0,0.8);
}
h1.heading span {
  color: #bb0017;
  font-style: italic;
}
/* Main Container */
.main-container {
  background: url("../img/old-paper.jpg");
  background-size: cover;
  border-radius: 5px;
  box-shadow: inset 0 50px 200px rgba(0,0,0,0.8), inset 0 -50px 200px rgba(0,0,0,0.8);
  display: block;
  margin: 2rem auto;
  max-width: 50rem;
  padding: 1rem;
  width: 100%;
}
/* Nav Tabs */
nav {
  position: relative;
}
nav ul {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}
nav ul li {
  display: inline-block;
}
nav ul li a,
nav ul li a:visited {
  background-image: url("../img/old-paper.jpg");
  background-position: left top;
  border-radius: 5px 5px 0 0;
  box-shadow: 2px -1px 5px rgba(0,0,0,0.6);
  color: #bb0017;
  display: block;
  margin: 0;
  padding: 1rem 2rem;
  position: relative;
  text-align: center;
  text-decoration: none;
}
nav ul li a:before,
nav ul li a:visited:before {
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: 0.3s ease all;
  width: 100%;
}
nav ul li a:not(.active),
nav ul li a:visited:not(.active) {
  color: rgba(0,0,0,0.7);
}
nav ul li a:not(.active):before,
nav ul li a:visited:not(.active):before {
  background: rgba(0,0,0,0.1);
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}
nav ul li a:hover:not(.active),
nav ul li a:visited:hover:not(.active) {
  color: #000;
}
nav ul li a:hover:not(.active):before,
nav ul li a:visited:hover:not(.active):before {
  box-shadow: inset 0 0 6px rgba(255,255,255,0.5);
}
/* Table */
table {
  background-image: url("../img/old-paper.jpg");
  background-position: left center;
  border-collapse: collapse;
  border-radius: 5px;
  margin: 0 auto;
  padding: 1rem;
  text-align: left;
  width: 100%;
}
table td {
  padding: 1rem;
}
table td.damaged {
  color: #bb0017;
}
table td:not(.name) {
  text-align: right;
}
table thead td {
  font-size: 16px;
  font-style: italic;
}
table tbody tr:nth-child(odd) {
  background: rgba(0,0,0,0.2);
}
/* Media Queries */
@media (max-width: 960px) {
  body {
    font-size: 16px;
  }
  .main-container {
    border-radius: 0;
    display: flex;
    overflow: scroll;
  }
  nav ul {
    flex-direction: column-reverse;
    width: 150px;
  }
  nav ul li a,
  nav ul li a:visited {
    border-radius: 0;
  }
  nav ul li a:before,
  nav ul li a:visited:before {
    border-radius: 0 !important;
  }
  table {
    align-self: center;
    border-radius: 0;
    width: calc(100% - 150px);
  }
}