body {
    background: linear-gradient(135deg, #ffffff, #fefefe);
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    border: 20px solid #ab0000;
    box-sizing: border-box;
    padding: 15px;
}

h1.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

h1.logo-header .home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    font-family: Copperplate, Fantasy;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

h1.logo-header .contra {
    color: #c70000;
}

h1.logo-header .corrente {
    color: black;
}

h1.logo-header .logo {
    height: 50px;
    width: auto;
    display: block;
    border: none !important;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: -10px;
}

.container h3 {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: gray;
    font-weight: bold;
    line-height: 1;
}

p {
    margin-bottom: 1em;
}

h2 {
    font-family: Verdana, sans-serif;
    font-size: 34px;
    color: black;
    text-align: center;
    line-height: 1.2;
}

h3 {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    color: black;
    font-weight: bold;
    line-height: 1;
}

h4 {
    margin-top: -10px;
    font-size: 18px;
}

.home-link {
    text-decoration: none;
    color: inherit;
}

.contra {
    color: #c70000;
    font-weight: bold;
}

.corrente {
    color: black;
    font-weight: bold;
}

img {
    width: 281px;
    height: 188px;
    display: block;
    margin: 0 auto;
    border: 1px solid black;
}

h1.logo-header .logo {
    height: 50px;
    width: auto;
    display: block;
    border: none !important;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: black;
    border-radius: 4px;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.top-nav li {
    margin: 0 15px;
}

.top-nav a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    transition: color 0.3s, transform 0.3s, box-shadow 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
}

.top-nav a:hover,
.top-nav a:focus {
    color: #ccc;
    background-color: #333;
    transform: scale(1.1);
    border-radius: 5px;
}

.search-form {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.search-form input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-style: italic;
}

.search-form button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #fff;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #f0f0f0;
}

.sinopse {
    margin-bottom: 1em;
}

.paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 10px 0;
}

.paginacao a,
.paginacao strong {
    padding: 8px 16px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.paginacao a:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}

.paginacao strong {
    background-color: #eee;
    border-color: #999;
    cursor: default;
    font-weight: bold;
    font-style: italic;
}

.ver-mais {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.ver-mais:hover {
    color: #555;
    font-style: italic;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #333;
}

footer {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: -15px;
}

footer a:hover {
    opacity: 0.7;
}

.tempo-entrega li {
    font-size: 1.1em;
    padding: 10px;
}

.filtro-btn {
    color: black;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease, text-decoration 0.3s ease;
}

.filtro-btn:hover {
    color: #a50000;
}

.filtro-btn.active {
    color: #a50000;
    font-weight: bold;
    cursor: default;
}

.titulo-livro {
    color: black;
    text-decoration: none;
}

@media (max-width: 767px) {
    body {
        padding: 10px;
        border-width: 10px;
    }
    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
        margin-top: 0;
    }
    h1 {
        font-size: 28px;
        text-align: center;
    }

    h1.logo-header {
        flex-direction: column;
    }
    h1.logo-header .logo {
        height: 40px;
        margin-top: 10px;
    }
    h2 {
        font-size: 24px;
        padding: 0 10px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 16px;
    }
    .top-nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }
    .top-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: center;
    }
    .top-nav li {
        margin: 0;
    }
    .search-form {
        width: 100%;
        margin-top: 10px;
    }
    .search-form input[type="text"] {
        width: 70%;
        font-size: 14px;
        padding: 8px;
    }
    .search-form button {
        width: 25%;
        padding: 8px;
        font-size: 14px;
    }
    img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 15px 0;
        display: block;
    }
    .livro > div {
        flex-direction: column;
        align-items: center;
    }
    .sinopse {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .video-player iframe {
        width: 100%;
        height: auto;
    }
    .paginacao {
        flex-direction: column;
        align-items: center;
    }
    .paginacao a,
    .paginacao strong {
        padding: 8px 12px;
        font-size: 14px;
        margin: 5px 0;
    }
    footer {
        font-size: 1em;
    }
    footer div {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}