:root {
    --primary-yellow: #fde68a; /* Amarelo suave */
    --secondary-beige: #fef3c7; /* Bege */
    --accent-brown: #854d0e; /* Marrom */
    --text-color: #44403c;
    --background-color: #fffbeb; /* Fundo creme/papel */
    --border-radius: 15px;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--background-color);
    background-image: url('background.png');
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#page-container {
    width: 100%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 3px dashed var(--primary-yellow);
    margin-bottom: 20px;
}

.header-logo {
    width: 80px;
    height: auto;
}

header h1 {
    font-size: 2.5rem;
    color: var(--accent-brown);
    margin: 0;
    font-weight: 700;
}

.speech-bubble-container {
    position: relative;
    width: 200px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speech-bubble-container img {
    width: 120px;
}

.speech-bubble {
    position: relative;
    background: var(--primary-yellow);
    border-radius: .4em;
    padding: 10px 15px;
    margin-top: 10px;
    color: var(--accent-brown);
    font-weight: bold;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: var(--primary-yellow);
    border-top: 0;
    margin-left: -10px;
    margin-top: -10px;
}


#bookshelf {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background-color: #d2b48c; /* Cor de madeira clara */
    border: 10px solid #8B4513; /* Borda de madeira escura */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 0 15px rgba(0,0,0,0.3);
}

.book {
    width: 150px;
    background-color: var(--secondary-beige);
    padding: 10px;
    border-radius: 5px 8px 8px 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--accent-brown);
    position: relative;
    border-left: 3px solid var(--accent-brown);
}

.book.favorite-book {
    border-color: #ffd700;
    box-shadow: 0 0 15px #ffd700, 5px 5px 10px rgba(0,0,0,0.2);
}

.book:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 5px 15px 20px rgba(0,0,0,0.3);
}

.book-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.book-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0 5px;
    color: var(--accent-brown);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-note {
    font-size: 0.8rem;
    color: var(--text-color);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-beige);
    margin: 10% auto;
    padding: 30px;
    border: 5px solid var(--primary-yellow);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    text-align: center;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: var(--accent-brown);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

#modalBookCover {
    width: 180px;
    height: auto;
    float: left;
    margin-right: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#modalBookTitle {
    color: var(--accent-brown);
    text-align: left;
}

#modalBookDescription {
    text-align: left;
    clear: right;
}

#favoriteButton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-yellow);
    border: 2px solid var(--accent-brown);
    color: var(--accent-brown);
    border-radius: 20px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#favoriteButton:hover {
    background-color: var(--accent-brown);
    color: var(--primary-yellow);
}

#favoriteButton .feather-heart {
    transition: fill 0.3s, stroke 0.3s;
}

#favoriteButton.favorited .feather-heart {
    fill: #e11d48;
    stroke: #e11d48;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px dashed var(--primary-yellow);
    position: relative;
}

footer p {
    font-size: 1.2rem;
    color: var(--accent-brown);
    font-weight: bold;
}

.social-links a {
    color: var(--accent-brown);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-yellow);
}

.footer-paw {
    width: 40px;
    margin-top: 10px;
    opacity: 0.7;
}

/* Estrelas decorativas */
body::before, body::after {
    content: '★';
    font-size: 30px;
    color: var(--primary-yellow);
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

body::before {
    top: 10%;
    left: 5%;
}

body::after {
    bottom: 15%;
    right: 8%;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

