* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #ffffffe8;
}

.container {
    text-align: center;
    margin-top: 3vh;
}

input, select {
    padding: 1vh;
    border-radius: 7px;
    border: 1px solid #0000005d;
    outline: none;
    font-size: 16px;
    width: 100%;
    flex: 1;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    height: 100%;
}

.line-form {
    display: flex;
    justify-content: center;
    gap: 1vh;
}

#lista-livros {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 3vh;
}

.item-livro {
    background-color: #fff;
    border: 1px solid #0000005d;
    border-radius: 7px;
    padding: 2vh;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3vh;
}

.informacoes-livro {
    text-align: left;

    h3 {
        font-weight: 500;
    }

    span {
        color: #000000b7;
    }

    p {
        color: rgba(0, 0, 0, 0.993);
        background-color: rgba(128, 128, 128, 0.11);
        border-radius: 5px;
        padding: 3px;
        width: 3.5rem;
        white-space: nowrap;
        text-align: center;
    }

    div {
        display: flex;
        gap: 4vh;
        align-items: center;
    }
}

.funcoes {
    display: flex;
    align-items: center;
    gap: 2vh;
    img:hover {
        transform: translateY(-2px);
    }
}

.btn {
    transition: all 500ms;
}

.tooltip-input {
    position: relative;
    display: inline-block;
    flex: 1;
}

.tooltip-input .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 4px;
    border-radius: 5px;
    position: absolute;
    top: 35px;
    left: 0;
    z-index: 1;
    font-size: 12px;
    transition: opacity 0.3s;
}

.tooltip-input:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.form {
    background-color: #fff;
    display: inline-flex;
    flex-direction: column;
    margin-top: 3vh;
    gap: 1.5vh;
    border: 1px solid #0000005d;
    border-radius: 7px;
    padding: 2vw;

    button {
        background-color: rgb(66, 125, 236);
        color: #fff;
        border-radius: 10px;
        border: none;
        padding: 1vh 0;
        font-size: 1rem;
        font-weight: 500;
    }

    button:hover {
        opacity: 0.9;
    }
}

#campo-edit {
    z-index: 99;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#btns-editar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vh;
    justify-content: center;
}

@media screen and (max-width:900px) {
    .form, .item-livro {
        margin-left: 3vh;
        margin-right: 3vh;
    }
    .item-livro {
        padding: 2vw;
    }
    #campo-edit {
        margin-left: 0;
        margin-right: 0;
        width: 90%;
    }
    h1 {
        font-size: 1.8rem !important;
    }
    .informacoes-livro {
        div {
            gap: 2vh;
        }
    }
    .funcoes img {
        width: 25px;
    }
}

.conteudo-container {
    display: grid;
    justify-content: center;
}