/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #fff;
  /*background-image: url('../images/bg_diamond.png');*/
	background-position: top;
  font-size: 18px;
  font-family: "Domine", serif;
  margin: 0;
}

p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

hr {
  border: solid #c7b591;
  border-width: 2px 0 0 0;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

a:hover { 
  background-color: #fff6e6;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, serif;
  color: #000;
}

h1 {
  font-size: 1.5em;
}

blockquote {
 background-color: #bcdfcf;
 background-color: rgba(188,223,207,0.5); 
 padding: 0.75em;
}

/*#CONTAINER is the rectangle that contains everything but the background!*/
#container {
  margin: 0 auto;
  width: 96%;
	max-width: 833px;
	background-color: #fff;
  color: #000; 
  /*outline-color: #a9a9a9;*/
  /*outline-style: ridge;*/
  /*outline-width: 4px;*/
  outline-offset: 0;
}

#content {
  padding: 5px 5% 20px 5%;
  border-left: 5px solid #bcdfcf;
  margin-top: 10px;
}

.compass {
  border: 1px solid black;
  background-image: url('../images/eyes.png');
  
  .wrapper {
    background: rgba(255, 255, 255, 0.75);
    padding: 1em;
    
    h1 {
      margin: 0;
      padding: 0;
      font-size: 1.35rem;
    }
    
    p {
      margin-bottom: 0;
      padding-bottom: 0;
    }
  }
}


/*HEADER IMAGE STYLE*/

#header-image {
 width: 100%;
 max-width: 833px;
 height: 300px;
 background-image: url('../images/ghost-mcguffin.png');
 background-size: cover;
 background-repeat: no-repeat;
 background-position: left top;
 display: block;
 
 @media screen and (min-width: 600px){
   background-position: center top;
 }
}

#header-image-404 {
 width: 100%;
 max-width: 833px;
 height: 300px;
 background-image: url('../images/ghost-mcguffin-404.png');
 background-size: cover;
 background-repeat: no-repeat;
 background-position: left top;
 display: block;
 
 @media screen and (min-width: 600px){
   background-position: center top;
 }
}

.top-area {
  position: relative;
}

/*HEADER TITLE*/
.header-area {
  display: flex;
  position: absolute;
  top: 13em;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255,0.75);
  
  /*@media screen and (min-width: 600px){*/
  /*  position: absolute;*/
  /*  top: 13em;*/
  /*  left: 0;*/
  /*}*/
}

#header-title {
 width: 35%;
 display: inline-block;
 /*padding: 0 5%;*/
 padding: 0.2em 5%;
 font-size: 1.8em;
 /*font-weight: bold;*/
  font-family: "Bangers", system-ui;
  /*font-weight: bold;*/
  font-style: normal;
  
  @media screen and (max-width: 600px) {
    font-size: 1.4em;
  }
}

/*HEADER STYLE*/
#header {
  /*padding: 0 5%;*/
  width: 65%;
  display: flex;
  justify-content: flex-end;
}

#header ul {
  list-style-type: none;
  padding: 0.35em 0 0;
  margin: 0;
}

#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
  
  @media screen and (max-width: 600px) {
    font-size: 0.9em;
  }
}

#header li a {
  color: black;
  text-decoration: none;
  background-color: inherit;
}
#header li a:hover {
  text-decoration: underline;
}

/*POST LIST STYLE*/

#recentpostlistdiv {
  
  h2 {
    font-size: 0.9em;
  }
  
  li {
    /*border: 10px solid black;*/
  }
  
  a {
    background: rgba(188, 223, 207, 0.5);
    padding: 0.75rem;
    width: 100%;
    display: block;
    text-decoration: none;
    color: #000;
    border-left: 5px solid #a66434;
    margin-bottom: 0.25em;
    
    &:hover {
      background: #a66434;
      color: #fff;
      border-left: 5px solid #bcdfcf;
    }
  }
}

#postlistdiv ul {
  font-size: 0.8em;
  padding: 0;
  list-style-type: none;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}

.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}

#bottom-image {
 width: 100%;
 max-width: 833px;
 height: 127px;
 background-image: url('../images/shelf_bottom.png');
 background-size: cover;
 background-repeat: no-repeat;
 background-position: center top;
 display: block;
}

.grid {
  display: flex;
  align-items: flex-start;
}

.book-image {
  margin-right: 0.5em;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: black;
  width: 100%;
  max-width: 50%;

    
  img {
    /*height: 200px;*/
    width: 100%;
  }
  
  small {
    margin: 0.5em 0.25em;
    
  }
}


.grid-container {
  display: grid; /* Enables grid layout */
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal-width columns */
  grid-template-rows: auto; /* Rows will automatically adjust height */
  gap: 10px; /* Adds 10px gap between grid items */
  padding: 20px; /* Adds padding around the grid */
  border: 1px solid #ccc; /* Border for visualization */
}

.grid-item {
  background-color: lightblue; /* Background color for grid items */
  border: 1px solid steelblue; /* Border for grid items */
  padding: 15px; /* Padding within grid items */
  text-align: center; /* Center align text */
}