/* Estilos globais */
.box-title {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-weight: bolder;
    font-family: serif;
    padding: 15px 0;
    text-align: center; /* Centraliza em telas menores */
}

.box-content {
    display: flex;
    justify-content: center;
    padding: 5px 15px;
    flex-wrap: wrap; /* Permite quebra de linha em telas menores */
}

.fa-solid {
    margin-right: 5px;
    font-size: 1.75rem; /* Tamanho relativo para melhor responsividade */
}

.form-body {
    display: flex;
    flex-wrap: wrap; /* Elementos se ajustam em telas menores */
    justify-content: center; /* Centraliza o conteúdo */
}

.input-group-text { 
    border-radius: 0;
}    

.custom-select {
    margin-right: 10px;
    /* margin-bottom: 10px;  Espaço abaixo em telas pequenas */
    width: 100%;
    max-width: 150px;
}

#livro, #capitulo {
    width: 100%;
    max-width: 180px;
    /* margin-bottom: 10px;  Espaço abaixo em telas pequenas */
}

#capitulo {
    max-width: 180px;
}

.btn-primary, .btn-light {
    height: 40px;
    width: 100%; /* Ocupa a largura total */
    max-width: 150px;
    /* margin-bottom: 10px;  Espaço abaixo em telas pequenas */
}

.btn-light {
    border-color: #6c757d47 !important;
}

.btn-light:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.fa-rotate {
    font-size: 1.5rem;
}

.fa-rotate:hover {
    color: white;
}

.result {
    margin: 0 15px;
}

/* Media Queries para tamanhos de tela menores */
@media (max-width: 768px) {
    .form-body {
        flex-direction: column; /* Alinha os itens verticalmente em telas menores */
        align-items: center; /* Centraliza os itens */
    }

    #livro, #capitulo {
        width: 100%;
        max-width: 100%; /* O mesmo valor de largura para ambos */
        margin-bottom: 10px; /* Espaço entre os campos */
    }
}
