body {
  background: #DCDCDC;
  margin-left: 2%;
  margin-right: 2%;
  font-family: Roboto, Arial, sans-serif;
}

/* NAVIGATION BAR starts here */
nav {
  display: flex;
  background-color: #064420;
  width: 100%;
  justify-content: space-between;
  border-radius: 5px;
  z-index: 2; /* Ensures the header stays on top */
}

.nav-bar {
  font-size: 1.1rem;
  font-weight: regular;
}

.logo {
  display: inline-block;
  color: #daa520;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: regular;
  padding: 10px;
}

/* END of NAVIGATION BAR */

h1 {
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
  text-align: center;
}

/* Container starts here */
.container {
  min-height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.books {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.book {
  width: 400px;
  box-sizing: border-box;
  background-color: #FFFFF0;
  border: 2px solid darkgreen;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 5px 5px 5px gray;
}

.cover {
  width: 150px;
  margin: 15px;
  float: left;
  border: 2px solid darkgreen;
}

h2 {
  font-weight: bold;
  font-size: 1.1rem;
  color: black;
  text-align: left;
}

h3 {
  font-size: 0.9rem;
}

p,
li {
  font-weight: normal;
  font-size: 1rem;
  color: black;
  text-align: left;
}

ul {
  margin-left: 150px;
}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media screen and (max-width: 880px) {
  nav a:not(:first-child) {
    display: none;
  }

  nav a.hamburger {
    float: right;
    display: block;
  }

  .dropdown-menu {
    display: none;
    float: center;
  }
  nav.openNav a.hamburger {
    position: relative;
  }
  nav.openNav a {
    float: none;
    display: block;
    text-align: center;
  }

  /* Force table to not be like tables anymore */
  table,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 40%;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }

  /*
	Label the data
	*/
  td:nth-of-type(1):before {
    content: "Rank";
  }
  td:nth-of-type(2):before {
    content: "Word";
  }
  td:nth-of-type(3):before {
    content: "Pronunciation";
  }
  td:nth-of-type(4):before {
    content: "PoS";
  }
  td:nth-of-type(5):before {
    content: "Definition";
  }
}
