/*
  All styles should be listed alphabetically.
  
  the only exception is for ID tags, which are organized in their own group 
  following the standard tag styles..
*/


@media only screen and (max-width: 60rem) {
  h1 {font-size: 1.5rem;}
  h2 {font-size: 1.3rem;}
  .shrinkable1 {
    max-width: 10rem;
    padding: .1rem;
  }
  .shrinkable2 {
    max-width: 8rem;
    padding: .1rem;
  }
  .shrinkable3 {
    max-width: 12rem;
  }
  .triple-cont {width: 28.5rem;}
  .bk-cont {
    width: 9rem;
    height: 13.5rem;
  }
  .smol {font-size: .7rem;}
  .leftmarg {margin-left: .5rem;}
  .overlay {font-size: .7rem;}
}
@media only screen and (min-width: 60rem) {
  .shrinkable1 {
    max-width: 15rem;
    padding: .5rem;
  }
  .shrinkable2 {
    max-width: 15rem;
    padding: .5rem;
  }
  .shrinkable3 {
    max-width: 20rem;
  }
  .triple-cont {width: 46.5rem;}
  .bk-cont {
    width: 15rem;
    height: 22rem;
  }
  .smol {font-size: 1rem;}
  .leftmarg {margin-left: 3rem;}
  .overlay {font-size: 1rem;}
}


.right {
  float: right;
}


/* -------------- book cards -------------- */
div.triple-cont {
  float: left;
  margin: 0;
  position: relative;
}

div.bk-cont {
  float: left;
  margin: 0.2rem;
  margin-bottom: 2rem;
  position: relative;
}

.bk-cont:hover .overlay {
  opacity: 1;
}

.row {
  box-sizing: border-box;
}
.row::after {
  content: "";
  clear: both;
  display: table;
}

.overlay {
  position: absolute;
  bottom: 0;
  border-radius: .2rem;
  background: rgb(0, 0, 0);
  background: rgba(0, 30, 0, 0.75); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: .1s ease;
  opacity: 0;
  color: white;
  
  font-family: sans-serif;
  text-align: center;
}

.titleoverlay {
  border-radius: .5rem;
  background-color: rgba(255, 230, 200, 0.7);
  position: absolute;
  top: -3rem;
  color: rgb(40, 40, 20);
  font-size: 1rem;
  text-shadow: .1rem .1rem .1rem white;
  text-align: center;
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin: 1rem;
  width: -webkit-calc(100% - 2rem);
  width:    -moz-calc(100% - 2rem);
  width:         calc(100% - 2rem);
}

div.book {
  display: inline-table;
  border-radius: 0.5rem;
  border: solid 0.2rem #eee;
  margin: 0.2rem 0 0.2rem 0;
  padding: 0.5rem;
  width: 18rem;
  height: 30rem;
  background-color: white;
  background-size: contain;
  background-repeat: no-repeat;
  transition-timing-function: linear;
}

img.book {
  display: block;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

div.book:hover {
  background-color: #EBDD4A;
  border-color: #E0D040;
}

h3.book {
  text-align: center;
 }
