@import url('https://fonts.googleapis.com/css2?family=Gelasio&family=PT+Sans&family=Source+Sans+Pro&display=swap');


html {font-family: 'PT Sans', sans-serif;
            font-weight: 200;
 }
body { padding: 1rem; }

.rightbook{
    float:right;
}

.leftbook{
    float:left;
}

ul {
padding-bottom: 40px;
color: red;
}

.card {
  background-color: grey;
  border: 2px solid red;
  color: white;
  padding: 1rem;
  height: 10rem;
}

.card:hover {
  opacity: 0.4;
}

.cards {
padding-bottom: 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
 /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
}

@media only screen and (min-width: 600px) {
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
}

@media only screen and (max-width: 600px) {
  #cards {
   display: block;
}
p {
font-size: 80%;
}
}

.card img
{
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
}

.card p
{
padding:8px;
display: flex;
justify-content: center;
margin: auto;
text-decoration: none;
}

a:link {
  text-decoration:none;
color: #4361b8;
}

a:visited {
  color: #0b2c8b;
}

.button {
  border: 2px solid red;
  background-color: grey;
  color: yellow;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.button:hover {
 opacity: 0.2;
}



/* This is the pagination code */



.pagination {
padding-top: 18px; 
  font-family: 'PT Sans', sans-serif;
font-size: 17px;
}

.pagination a {
  color: red;
  padding: 5px 10px;
  text-decoration: none;
}

.pagination a.active {
  background-color: #9e9e9e;
border: 1px solid red;
  color: red;
}

.pagination a:hover:not(.active) {background-color: #9e9e9e;}