@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');



.header {
    text-align: center;
    font-family: "Arimo", sans-serif;
    grid-column: span 3;
    grid-row: 1;
    padding:85px;
    font-size: 2vw;
    border-bottom: ridge 15px #080010 ;
    background-position: right;
    background-image: url("website_header_bg_1.png");
}

hr {
    border-color: black;
}

body {background: #17004d;
background: radial-gradient(circle,rgba(0, 30, 70, 1) 0%, rgba(0, 97, 145, 1) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: aliceblue;
    font-family: "Electrolize";
    display: grid;
    grid-auto-columns: 25% 50% 25%;
    grid-auto-rows: auto auto auto;
    margin: 0;
    padding: 0;
   
}

nav {
    grid-row: 2;
    padding-bottom: 10px;
    grid-column: span 3;
    justify-content: center;
    display: inline-flex;
}

nav ul {
    display: inline-flex;
    width: 100%;
    margin-top: 0;
    justify-content: center;
    text-align: center;
    padding: 10px;
    float: left;
    border-top: solid 2px black;
}

ul li { 
    list-style: none;
}

li a {
    background-color: #090021;
    padding: 20px;
    color: white;
    text-decoration: none;
    border: ridge black;
}

#searchForm {
    display: grid;
}

#searchForm input {
    color: white;
    background-color: black;
}

#searchForm button {
    background-color: black;
    color: white;
}
.blog-list {
    float: left;
    width: fit-content;
}
.content {
    grid-column:2;
    width: auto;
    border: ridge black;
    background-color: #090021
}

.post-list {
    display: grid;
}


.main-blog {

    padding: 16px;
    border: 4px ridge black;
    text-align: center;
    background-color: #090021;
    grid-row: 4;
    grid-column: 2;
}

.book-listing {
    grid-column: 2;
        background-color: #090021;
    padding: 20px;
    border: ridge black;
}

.aboutpage {
        padding: 16px;
    border: 4px ridge black;
    text-align: left;
    background-color: #090021;
    grid-row: 4;
    grid-column: 2;
}

.left-div {
    background-color: black;
    grid-column: 1;
    grid-row: span 4;
    border-right: solid 2px black;
}

footer {
    text-align: center;
    grid-column: 2;
    grid-row: 5;
}

.post-list {
    grid-column: 2;
    grid-row: 2;
}

.blog-post {
    grid-column: 2;
        background-color: #090021;
    padding: 20px;
    border: ridge black;
}

.post-title a {
    color: white;
    text-decoration: none;
}

.post-meta a {
    color: pink
}



a:hover {
     color: pink;
  color: #fff;
  text-align: center;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

a {
    color: pink;
}

.glow {
 
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
  }
}

.book-grid {
    display: flex;
    flex-wrap: wrap;          /* Allow books to wrap to next line if needed */
    justify-content: center;  /* Center the books horizontally */
    gap: 140px;               /* Space between each book */
    margin-top: 20px;
    padding: 20px 0;
}

/* Individual book container - holds the image and title */
.book-item {
    display: flex;
    flex-direction: column;   /* Stack image above title */
    align-items: center;     /* Center everything in the container */
    text-align: center;
    max-width: 350px;        /* Prevent books from getting too wide */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Hover effect - makes books slightly bigger when you hover */
.book-item:hover {
    transform: scale(1.05);
}

/* The actual book cover images */
.book-cover {
    max-width: 350px;            /* Fixed width for consistency */
    max-height: 350px;           /* Typical book cover ratio (2:3) */ 
    object-fit: cover;       /* Crop image to fit if needed */
    border-radius: 8px;      /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Nice shadow effect */
    transition: box-shadow 0.3s ease; /* Smooth shadow transition */
}

/* Enhanced shadow on hover */
.book-cover:hover {
    box-shadow: 0 8px 25px rgba(224, 0, 115, 0.4); /* Pink glow to match your theme */
}

/* Book titles under the covers */
.book-title {
    margin-top: 10px;
    font-size: 18px;
    color: aliceblue;
    font-weight: normal;
}

/* Remove underlines from book links */
.book-item a {
    text-decoration: none;
    color: inherit;
}

/* Make sure the glow effect works on the book items too */
.book-item a:hover .book-title {
    color: pink;
    animation: glow 1s ease-in-out infinite alternate;
}

/* ==== RESPONSIVE DESIGN ==== */

/* For tablets and smaller screens */
@media (max-width: 768px) {
    .book-grid {
        gap: 20px;           /* Less space on smaller screens */
    }
    
    .book-cover {
        max-width: 150px;        /* Smaller books on mobile */
        max-height: 150px;
    }
    
    .book-item {
        max-width: 150px;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    .book-grid {
        flex-direction: column; /* Stack books vertically on very small screens */
        align-items: center;
    }
}
