* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: white;
    border-bottom: 1px solid #ddd;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-weight: bold;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.container {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 1100px;
    flex-wrap: wrap;
}

.livro-img img {
    max-width: 250px;
    height: auto;
}

.livro-texto {
    max-width: 500px;
}

.livro-texto h1 {
    color: #008C5F;
    font-size: 2rem;
}

.livro-texto p {
    margin-top: 15px;
    text-align: justify;
}

footer {
    background-color: #008C5F;
    color: white;
    text-align: center;
    padding: 15px;
}

@media (max-width: 550px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .livro-texto p {
        text-align: center;
    }
}

@media (min-width: 550px) and (max-width: 1100px) {
    .container {
        flex-direction: column;
        text-align: center;
    }
}
