* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-family: "Sans", sans-serif;
  color: #444;
}

.clearfix::after {
  content: "";
  clear: both;
  display: block;
}

a {
  color: #343434;
}

a:hover {
  color: #cb000f;
}

.app-container {
  width: 100%;
  display: block;
  background: white;
  height: 100vh;
}

header {
  background-color: #f7f7f7;
  display: block;
  width: 100%;
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
  text-align: center;
}

header h1 {
  color: #cb000e;
  font-size: 35px;
  font-family: "Open Sans", sans-serif;
  margin: 0;
}

header h1 a {
  color: #cb000e;
  text-decoration: none;
}

header h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 100;
  padding: 0 10px;
  margin: 0;
  color: #606060;
}

nav {
  width: 100%;
  padding: 10px 0 0;
}

nav a {
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: underline;
  font-family: "Open Sans", sans-serif;
  padding: 0 10px 0 0;
  color: #4b4b4b;
}

.content h1, .content h3 {
  padding: 0 10px 0 10px;
}

.content p {
  padding: 10px;
}

.app-content {
  width: 100%;
  margin: 20px auto;
  position: relative;
}

.headline-container {
  width: 100%;
  padding: 10px 10px 0;
  position: relative;
}

.headline-container h2 {
  font-size: 25px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  margin: 0;
}

.card {
  display: block;
  margin-bottom: 30px;
  padding: 10px;
  border: solid 1px gray;
  border-radius: 3px;
  margin: 10px;
}

.card-top-content {
  display: inline-block;
  vertical-align: top;
  width: 75%;
}

.card-date {
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  color: #535054;
}

.book-action {
  text-align: center;
  padding-top: 10px;
  border-top: dashed 1px #8e8e8e;
}

.book-title {
  font-size: 20px;
  font-weight: bold;
  display: block;
}

.book-title a {
  text-decoration: none;
}

.book-title a:hover {
  text-decoration: underline;
  color: #cb000e;
}

.book-author {
  font-size: 20px;
  color: #8e8e8e;
  display: block;
  font-family: "Open Sans", sans-serif;
}

.book-price {
  font-size: 20px;
  font-family: "Open Sans", sans-serif;
}

.book-price .price {
  color: #008d17;
  font-weight: 600;
}

.book-price .slash {
  color: red;
  font-size: 18px;
  line-height: 1em;
  position: relative;
}

.book-price .slash::after {
  border-bottom: 0.125em solid black;
  content: "";
  left: 0;
  margin-top: calc(0.125em / 2 * -1);
  position: absolute;
  right: 0;
  top: 50%;
}

.book-cta-wrap {
  position: relative;
  display: flex;
  height: 45px;
}

.book-cta {
  background: #018617;
  width: 100%;
  text-decoration: none;
  color: white;
  border-radius: 3px;
  box-shadow: 0 1px 4px grey;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cta:hover {
  box-shadow: 0 4px 4px #b5b5b5;
  transition: 0.3s;
  background: #018617;
  color: white;
}

.stores-dropdown-toggle {
  width: 65px;
  display: inline-flex;
  cursor: pointer;
  height: 100%;
  padding: 10px 0;
  top: 0;
  justify-content: center;
  align-items: center;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  background: #135f00;
  border-left: solid 1px;
  box-shadow: 0 1px 4px grey;
  color: white;
}

.store-urls {
  display: none;
}

.store-urls.visible {
  height: 100vh;
  top: 0;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  padding-left: 0;
  box-shadow: 0 3px 4px grey;
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  z-index: 1;
  background: white;
  left: 0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
} 

.store-urls.visible .toggleCloseUrlList {
  position: absolute;
  top: 30px;
  right: 30px;
  list-style: none;
}

.store-urls.visible .toggleCloseUrlList .fa {
  color: #cb000e;
  font-size: 20px;
  cursor: pointer;
}

.store-list-item {
  list-style: none;
  padding: 15px 0;
}

.store-url-link {
  text-decoration: none;
  font-size: 30px;
}

.store-url-link:hover {
  text-decoration: underline;
}

.store-url-link::selection {
  background-color: none;
}

.card-content {
  display: block;
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
}

.book-info {
  display: inline-block;
  width: 75%;
  vertical-align: top;
  margin-left: 10px;
}

.book-item-desc {
  display: block;
  padding: 5px 5px 0;
  white-space: nowrap;
  margin-bottom: 20px;
}

.book-item-desc * {
  white-space: normal;
}

.book-item-desc img {
  display: inline-block;
  height: auto;
  max-width: 25%;
  vertical-align: middle;
  margin-right: 10px;
}

.card-bottom-content #showmore a,
.card-bottom-content #showless a {
  color: gray;
  font-size: 12px;
}

.pagination {
  height: 40px;
  width: 100%;
  list-style-type: none;
  display: block;
  padding: 0;
  text-align: center;
}

.page-item {
  display: inline-block;
  padding: 10px;
  margin-left: 3px;
  font-size: 14px;
  border: solid 1px #f7f7f7;
}

.page-item:hover {
  background: #f7f7f7;
}

.page-item.active, .page-item.active:hover {
  background: #b60009;
}

.page-item:hover a {
  color: #b60009;
}

.page-item.active a {
  color: #f1f1f1;
}

footer {
  width: 100%;
  height: 40px;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

footer ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

footer .nav-item {
  display: inline-block;
}

footer ul li {
  padding: 10px;
  font-weight: lighter;
  color: #4b4b4b;
  font-size: 13px;
}

.disclaimer {
  padding: 10px;
  font-size: 12px;
}

.disclaimer .content-wrap {
  display: block;
  position: relative;
  text-align: left;
}



/* book recommendations */

.book-recommendation-container {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border: 1px solid #dcdcdc;
}

.book-recommendation-container h1 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 24px !important;
  color: #343434;
}

.book-recommendations {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  -webkit-flex-direction: row;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: stretch;
  -webkit-align-items: stretch;
}

.book-recommendations-item {
  font-size: 13px;
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  -webkit-flex-direction: row;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: stretch;
  -webkit-align-items: stretch;
  flex: 0 1 32%;
  -webkit-flex: 0 1 32%;
  border: 1px solid #dcdcdc;
}

.book-recommendation-cover {
  padding: 10px;
  background-color: white;
  flex: 0 1 auto;
  -webkit-flex: 0 1 auto;
  align-self: center;
  -webkit-align-self: center;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  align-items: stretch;
  -webkit-align-items: stretch;
  border-right: 1px solid #dcdcdc;
  height: 100%;
}

.book-recommendation-cover img {
  max-width: 125px;
  max-height: 200px;
}

.book-recommendation-specs {
  padding: 10px;
  background-color: white;
  flex: 1;
  -webkit-flex: 1;
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  justify-content: flex-start;
  -webkit-justify-content: flex-start;
  height: 100%;
}

.book-recommendation-specs ul {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  -webkit-flex: 0 1 auto;
  list-style-type: none;
}

.book-recommendation-specs ul li {
  margin-bottom: 5px;
}

.book-recommendation-specs ul li:last-child {
  margin-bottom: 0;
}

.book-recommendation-btn {
  padding-top: 15px;
  flex: 0 1 auto;
  -webkit-flex: 0 1 auto;
}

.btn-reco {
  padding: 8px 15px;
  displaY: block;
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background-color: #cb000e;
  text-align: center;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-reco:hover {
  background-color: #9c1924;
  color: white;
}

@media (max-width: 1350px) {

  .book-recommendation-cover img {
    max-width: 75px;
    max-height: 100px;

  }
}

@media (min-width: 768px) {

  .app-container>.app-content {
    height: calc(100vh - 320px);
  }
  header {
    padding-top: 40px;
  }
  header h3 {
    padding: 20px 0;
    font-size: 20px;
  }
  header nav a {
    font-size: 16px;
    padding: 0 20px 0 0;
    font-weight: bold;
  }
  .app-content {
    max-width: 1200px;
    width: 90%;
  }
  .card {
    border: none;
    margin: 40px 0;
    padding: 0 0 20px 0;
  }
  .book-item.card:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .card-top-content .card-date {
    float: right;
    margin-left: 20px;
  }
  .card-bottom-content {
    white-space: nowrap;
    width: 75%;
  }
  .book-item-desc img {
    width: 175px;
    float: left;
  }
  .book-item-desc p {
    display: table-cell;
    vertical-align: middle;
    font-size: 16px;
  }
  .app-container h1 {
    font-size: 40px;
  }
  .headline-container {
    padding: 0;
  }
  .headline-container h2 {
    font-size: 35px;
    margin: 20px 0;
  }
  .book-title {
    font-size: 24px;
  }
  .book-author {
    font-size: 18px;
    padding-bottom: 20px;
  }
  .book-action {
    display: inline-block;
    vertical-align: top;
    font-size: 18px;
    width: 30%;
    padding-left: 10px;
    border-top: none;
  }
  .book-item-desc p {
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    width: 70%;
    margin: 0;
  }
  .store-urls.visible {
    opacity: 1;
    transition: .2s;
    display: block;
    position: relative;
    top: -2px;
    background: #135f00;
    width: 100%;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    padding-left: 0;
    box-shadow: 0 3px 4px grey;
    padding-top: 0;
    margin-top: 0;
    height: unset;
  }

  .store-list-item {
    padding: 5px 0;
  }

  .store-url-link {
    text-decoration: none;
    font-size: 18px;
    color: white;
  }

  .store-url-link:hover {
    color: white;
    text-decoration: underline;
  }

  .toggleCloseUrlList {
    display: none;
  }

}

@media (min-width: 992px) {

  .content-wrap {
    display: block;
    left: 200px;
    position: relative;
    width: calc(100% - 200px);
  }
  .card {
    width: 800px;
  }
  .pagination {
    text-align: left;
  }

}

@media (max-width: 768px) {

  .book-recommendation-container {
    margin: 15px;
  }

  .book-recommendations-item {
    margin-bottom: 15px;
  }

  .book-recommendations {
    flex-direction: column;
    -webkit-flex-direction: column;
  }

  .book-recommendation-specs {
    height: auto;
  }

  .book-recommendation-cover img {
    max-width: 110px;
    max-height: 175px;
  }

}
