:root {
    --primary: #2c3e50;
    --accent: #f39c12;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.85);
}

body {
    font-family: 'Lora', serif; /* Fonte literária para o corpo */
    background-color: #fcfcfc;
    color: #333;
    margin: 0;
}

h1, h2, .titulo-livro, .but {
    font-family: 'Montserrat', sans-serif; /* Fonte moderna para destaque */
    font-weight: 700;
}

/* Sidebar Institucional */
.institucional {
    background-color: #1a1a1a;
    color: #eee;
    min-height: 100vh;
}

.profile_pic img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--accent);
    filter: grayscale(20%);
}

.institucional h1 {
    color: var(--accent);
    margin-top: 20px;
    letter-spacing: -1px;
}

.biografia p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: 0.3s;
}

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

/* Grid de Livros e Card Overlay */
.livro-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.livro-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), var(--dark-overlay));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.livro-card:hover .livro-overlay {
    opacity: 1;
}

.titulo-livro {
    color: var(--white);
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Botões no Overlay - Tamanhos Iguais */
.btn-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Espaçamento entre botões */
}

.but {
    width: 85%; /* Todos do mesmo tamanho */
    max-width: 200px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.but-ok { background-color: var(--accent); color: #000; }
.but-cancel { background-color: var(--white); color: #000; }

.but:hover {
    transform: scale(1.05);
    text-decoration: none;
    filter: brightness(1.1);
    color: #000;
}

/* Rodapé - Removendo espaços extras */
.footer {
    background-color: #333;
    color: #000;
    border-top: 1px solid #999;
	font-size: 0.8em;
}

.main-content {
    background-color: #f4f4f4;
}

/* Ajuste mobile */
@media (max-width: 991px) {
    .institucional { min-height: auto; padding-bottom: 40px; }
}