:root {
    --bezier: cubic-bezier(0.13, 0.14, 0.21, 1.02);
}
*{
    transition: 500ms all var(--bezier);
}
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #477e82 0%, #8e5f3a 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    margin: 0;
}
h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    margin: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    backdrop-filter: blur(20px);
    border: #7a6969 solid 2px;
    padding: 1em;
    border-radius: 25px;
    gap: 0.3em;
    padding: 0 20px;
    width: min(100%, 500px);

    * {
        border-radius: 25px;
        padding: 0.3em;
        height: 20px;
    }

    button {
        background-color: #ff9a9e;
        background-image: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
        color: white;
        border: none;
        border-radius: 25px;
        font-weight: bold;
        cursor: pointer;
        font-size: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: 30px;
    }

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    select {
        border: none;
        border-radius: 25px;
        outline: none;
        margin-right: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-size: 1rem;
        width: 300px;
        height: 33px;
    }
}

.result-card.closed {
    width: 0px;
    height: 0px;
    padding: 0;
}
.result-card.loading {
    width: 100px;
    height: 100px;
    border-radius: 70px;
    background-color: white;
}
.result-card {
    width: 932px;
    height: 600px;
    background-color: rgb(213, 213, 213);
    border-radius: 25px;
    padding: 0.8em;
    overflow: scroll;
    position: sticky;
    gap: 0px;
    display: flex;
    align-content: center;
    justify-content: flex-start;

    filter: blur(0px);
    opacity: 1;

    .content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 1em;
        min-width: 932px;
        min-height: 600px;

        .onebook {
            display: flex;
            flex-direction: row;
            width: 300px;
            height: fit-content;
            gap: 0.4em;
            img {
                height: 200px;
                width: 120px;
                border-radius: 1em;
            }

            .infos {
                display: flex;
                flex-direction: column;
                width: fit-content;
                height: fit-content;
                a.author,
                a.name {
                    max-width: 225.4px;
                    overflow: hidden;
                    white-space: wrap;
                    text-overflow: ellipsis;
                }
            }
        }
    }
    .hidden {
        height: 0;
        width: 0;
        overflow: hidden;
        filter: blur(20px);
        opacity: 0;
    }
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
}

.loader {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(0deg, #ffffff 50%, #ff5c35 100%);
    animation: spin 1s linear infinite;
}

.inner-circle {
    width: 90%;
    height: 90%;
    background-color: white;
    border-radius: 50%;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}
