* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 70px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

main {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.titulo-livros {
    color: green;
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitulo-livros {
    margin-bottom: 30px;
}

.livros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.livro {
    text-decoration: none;
    color: black;
    max-width: 300px;
}

.livro img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


.livro p {
    font-size: 14px;
    text-align: justify;
}

footer {
    background: #05A16A;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

/* Responsividade */
@media (max-width: 550px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 550px) and (max-width: 1100px) {
    .livros {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .livros {
        grid-template-columns: repeat(3, 1fr);
    }
}
