.details-navigace {
    display: flex;
    align-items: center;
    gap: 10em;
    position: sticky;
    height: 33dvh;
    background-color: white;
    left: 0;
    bottom: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 1em 1em 0 0;
    z-index: 2;

    .wrap {
        overflow-y: auto;
        border-radius: 1em 1em 0 0;
        display: flex;
        height: 100%;
        align-items: center;
        background-color: white;
        width: 100%;

        .wrap-2 {
            display: flex;
            gap: 2em;
        } 
    }

    .button {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 50%;
        background-color: var(--background);
        height: 40px;
        width: 40px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

        span {
            font-size: 2em;
            transform: rotate(-90deg);
            transition: transform 0.3s ease;
        }
    }

    #text-k-vybrani-lektora {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(-40%, -150%);
        background-color: white;
        padding: 0.2em 2em 0.2em 0.5em;
        border-radius: 1em;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .select-lektor {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        background-color: #969696;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        transform: translate(-50%, -100%);
        border-radius: 50%;
        padding: 0.3em;
        z-index: 5;
        cursor: pointer;
    }

    .selected-lektor-button {
        background-color: var(--green) !important;
    }
}

.move {
    display: none !important;
}

.hide-nav {
    transform: translate(0, 90%);

    .button {
        span {
            transform: rotate(90deg);
        }
    }
} 

.go-back {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--background);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    cursor: pointer;
    font-size: 2em;
    transform: translate(-50%, 150%) rotate(45deg); 
    z-index: 5;
}

.down {
    color: var(--dark-blue);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.go-back-to-details {
    align-self: flex-end;
    background-color: var(--background);
    border-radius: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    cursor: pointer;
    font-size: 1em;
    z-index: 5;
    /* font-weight: 700; */
    width: min-content;
    white-space: nowrap;
    padding: 0.3em 1em;
    color: rgb(34, 34, 34);
}

.zpet-na-vyber {
    background-color: var(--background);
    border-radius: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    cursor: pointer;
    font-size: 1em;
    z-index: 5;
    /* font-weight: 700; */
    width: min-content;
    white-space: nowrap;
    padding: 0.3em 1em;
    color: rgb(34, 34, 34);
}

.lektor {
    width: 100px !important;
    height: 150px !important;
    padding: 8px !important;
    font-size: 0.8em !important;
    gap: 0.1em !important;
    justify-content: center !important;

    img {
        height: 90px !important;
        width: 68 !important;        
    }
    .i {
        display: none;
    }
}

.lektor:first-of-type {
    margin-left: 1em;
}
.lektor:last-of-type {
    margin-right: 1em;
}

.lektor-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2em;
    padding-bottom: 3em;
    display: none;

    .column {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        padding: 0 1em;

        img {
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            border-radius: 1em;
            width: 200px;
            aspect-ratio: 3/4;
            object-fit: cover;
        }

        .bundle {
            width: 100%;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 0.5em;

            .title {
                text-decoration: underline;
                font-weight: 700;
                margin-top: 2em;
            }

            .text {
                text-align: justify;
            }

            .mini-title {
                margin-top: 1em;
            }

            .predmet {
                display: flex;
                gap: 1em;

                .box {
                    color: white;
                    width: 30px;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }

            

            .recenze-divider {
                width: 70%;
                height: 10px;
                /* background-color: black; */
                align-self: center;
               
            }
        }

        .recenze {

            .title {
                margin-top: 0 !important;
            }

            .wrap {
                margin: 1.5em 1em;
                display: flex;
                flex-direction: column;
                gap: 1em;
            }
            
            height: 400px;
            overflow-y: auto;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            border-radius: 1em;

            .one-recenze {
                text-align: justify;
            }
        }

        .one-recenze {
            display: flex;
            flex-direction: column;
            text-align: justify;
            gap: 1em;
        }

        .rec-part {
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }
    }
}

.highlight_medailon {
    box-shadow: 0 0 5px 3px var(--green) !important;
}

.predmet {
    align-items: center;
    justify-content: start;
}

.predmet-image {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.3em !important;
    height: 2em !important;
    width: 2em !important;
    object-fit: contain !important;
}


@media (min-width: 768px) {

    .lektor-detail {
        gap: 0;
        border-radius: 1em;
        flex-direction: row;
        align-items: center;
        background-color: var(--background);
        font-size: 0.8em;
        padding: 2em;
        margin: 2em;

        .profilovka {
            width: 100px !important;
        }

        .column {
            overflow-y: auto;
            width: 50%;

            .profilovka {
                height: 170px;
                width: 112px !important;
            }

            height: 300px;
            background-color: white;
            border-radius: 0em;
        }

        .column:first-of-type {
            justify-content: center;
            border-radius: 1em 0 0 1em;
        }

        .column:last-of-type {
            border-radius: 0 1em 1em 0;
        }
    }

    .details-navigace {
        position: relative;
        transition: transform 0.3s ease;
        

        .button {
            display: none;
        }

        /* .select-lektor {
            left: 50%;
            transform: translate(-50%, -50%);
        } */

        .wrap {
            overflow-x: hidden !important;

            .wrap-2 {
                transition: transform 0.3s ease;
            }
        }
    }

    .profile-variant {
        /* background-color: var(--background); */
        height: 100%;
        width: 100% !important;
        /* background-color: red; */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body {
        /* background-color: aqua; */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .move {
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: var(--background);
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 5px 1px #666;
        cursor: pointer;
    }

    .move_hide {
        display: none !important;
    
    }

    .next-button {
        right: 0;
        transform: translate(-50%, 0) rotate(180deg);
    }

    .prev-button {
        transform: translate(50%, 0)
    }
}