/* Native Elements */
body  {
  margin: 0;
  background-color: hsl(48, 49%, 85%);
  font-family: "Merriweather";
}

a {
  text-decoration: none;
}

header  {
  position: sticky;
  top: 0px;
  filter: drop-shadow(0px 3px 6px);
  margin-bottom: 12px;
}

nav {
  display: flex;
  width: 100%;
  height: 35px;
  background-color: hsl(48, 49%, 80%);
  padding: 6px;
}

nav img{
  height: 90%;
  width: auto;
  padding-right: 10px;
}

nav ul  {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li  {
  display: inline-flex;
  background-color: hsl(48, 49%, 65%);
}

nav a {
  padding: 8px;
  vertical-align: center;
}

h2  {
  margin: 0px;
}

.imgwrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  gap: 10px;
}

.thumbs  {
  display: block;
  height: 150px;
  border: 0px solid black;
}

/* Main Layout */

/* Defining the 1st level grid */ 
.gridtemplate {
  display: grid;
  grid-template: auto / 2fr auto;
}

/* Populating the two 2nd level columns */
.gridleftsection  {
  display:grid;
  grid-auto-rows: max-content;
}

.gridrightsection {
  display: grid;
  grid-auto-rows: max-content
}

.gridheadertemplate {
  display: grid;
  grid-template: auto / 2fr auto;
}

.mainleftsection  {
  padding: 5px;
  margin: 5px;
  border: 1px solid hsl(48, 49%, 50%);
  background-color: hsl(48, 49%, 95%);
}

.titleleftsection  {
  align-content: center;
  padding: 5px;
  margin: -5px;
  border-bottom: 1px solid hsl(48, 49%, 50%);
  background-color: hsl(48, 49%, 90%);
}

.title  {
  font-size: 22px;
  font-weight: bold;
}

.author {
  text-align: right;
}

.mainrightsection  {
  padding: 5px;
  margin: 5px;
  border: 1px solid hsl(48, 49%, 50%);
  background-color: hsl(48, 49%, 95%);
}

button.pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transition: opacity 0.3s ease;
}

button.pagination {
  padding: 8px 16px;
  margin: 6px;
  font-size: 16px;
  background-color: hsl(48, 49%, 70%);
  color: #333;
  border: 1px solid hsl(48, 49%, 50%);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

footer  {
  text-align: center;
  padding: 10px;
}

/* Miscellaneous */

@media only screen and (max-width: 800px)  {
  .gridrightsection {
    display: none;
  }
  .mainrightsection{
    display: none;
  }
}