body {
    background-color: rgb(173, 130, 130);; /* Paper-like color */
    background-image: linear-gradient(rgba(173, 130, 130,0.9), rgba(173, 130, 130,0.9)), url("Background1.png");
    color: #2c2c2c;
    font-family: 'Pixelify Sans', serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    border-color: black;
}

/* Favorite Section Styling */
.favorite-book {
    background: #2c3e50;
    color: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.fav-label {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #f1c40f;
}

.fav-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fav-content img {
    border: 3px solid #fff;
    width: 120px;
}

/* Grid Layout for Entries */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.book-entry {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.2s;
}

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.author {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.score {
    background: #e67e22;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family:"Rubik";
}

.date-read {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #999;
    text-align: right;
}

.top-nav {
    margin-bottom: 20px;
    display: flex;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #c0c0c0;
    text-decoration: none;
    color: black;
    font-size: 12px;
    /* The 3D "Raised" Border */
    box-shadow: inset 1px 1px #ffffff, inset -1px -1px #808080, 1px 1px 0 0 #000;
}

.back-button img {
    width: 16px;
    height: 16px;
}

/* The "Click" Effect */
.back-button:active {
    box-shadow: inset 1px 1px #000, inset -1px -1px #ffffff;
    padding: 5px 7px 3px 9px; /* Shifts text slightly down/right when clicked */
}

.back-button:hover {
    outline: 1px dotted #000;
}