.bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: -1;
    overflow: hidden;
    background: #fafafa;
}

.main {
    line-height: 1.8;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95vh;
    width: 100%;
    text-align: center;
}

.card {
    width: min(90vw, 420px);
    max-width: 420px;
    min-height: 180px;
    padding: 35px 25px 45px;
    color: #541e1e;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    background-color: #f0f0f0;
    border-radius: 20px;
    box-shadow: 16px 16px 20px #b0b0b0,
        -16px -16px 20px #ffffff;

    outline: none;
    overflow-y: auto;

    font-family: "Domine", serif;
    font-size: 15px;
    line-height: 22px;
    text-align: justify;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.quotes-random {
    margin: 5%;
    padding: 30px 35px 35px 45px;
    text-align: center;
}

.quotes-random p {
    margin: 0;
}

.quote_inicial,
.quote_final {
    position: absolute;
    width: 32px;
    height: 32px;
}

.quote_inicial {
    top: 10px;
    left: 10px;
}

.quote_final {
    right: 10px;
    bottom: 10px;
}

figcaption {
    text-align: center;
    margin-top: -35px;
}

.botão {
    display: flex;
    justify-content: center;
}

button {
    margin-top: 12px;
    border: none;
    background: transparent;
    cursor: default;

    transition: filter 0.8s ease, transform 0.2s ease;
    position: relative;
}

@keyframes hover-shine {
    from {
        transform: translateX(-120%) skewX(-20deg);
    }

    to {
        transform: translateX(220%) skewX(-20deg);
    }
}

button::before {
    content: "";
    position: absolute;
    inset: 0;
}

button:hover,
button:focus-visible {
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.3));
}

@media (prefers-reduced-motion: no-preference) {

    button:hover::before,
    button:focus-visible::before {
        animation: hover-shine 0.8s ease 1;
    }
}

button:active {
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.2));
    transform: translateY(3px);
    transition: filter 0.1s ease, transform 0.1s ease;
}

.card:hover,
.card:focus-visible {
    box-shadow:
        inset 6px 6px 12px #b0b0b0,
        inset -6px -6px 12px #ffffff;
    background-color: #f0f0f0;
}

footer {
    font-family: "Domine", serif;
    color: #541e1e;
    line-height: 1;
    font-size: 0.7em;
    position: fixed;
    bottom: 0;
    height: 30px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}


.botao-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.botao-flutuante .lista {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.botao-flutuante .lista.aberto {
    display: flex;
}

.icon {
    color: #541e1e;
}

.item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    background-color: rgba(242, 242, 242, 0.95);
    box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
    padding: 12px 15px;
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: #541e1e;
    font-family: "Domine", serif;
}

.botao {
    display: flex;
}

button {
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background: #f2f2f2;
    box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
    transition: filter 0.8s ease, transform 0.2s ease;
    position: relative;
    padding: 5px;
}

button .icon {
    padding: 3px;
    display: flex;
    align-items: center;
}

#butao:active {
    box-shadow: inset -5px -5px 10px white, inset 5px 5px 10px rgba(163, 177, 198, .35);
}