#app.onboarding {
    #onboarding {
        display: flex;
    }

    #main * {
        transition: none !important;
    }

    #film-overlay {
        transition: none !important;
        opacity: 0.05;
        visibility: visible;
    }
}

#onboarding {
    display: none;
    color: white;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    .walkthrough.first-load * {
        transition: initial !important;
        transition-delay: initial !important;
    }

    .walkthrough {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.23), 0 10px 40px rgba(0, 0, 0, 0.19);
        background: linear-gradient(
                        to right bottom,
                        $secondary-color,
                        $primary-color
        );
        display: none;
        flex-direction: column;
        flex: 0 0 auto;
        font-size: 14px;
        height: 640px;
        max-height: 85vh;
        overflow: hidden;
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        width: 320px;
        z-index: 1000;
        border-radius: 10px;

        &.show {
            display: flex;
            opacity: 0;
            transform: translateY(72px);
        }

        &.reveal {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .walkthrough-body {
        align-items: center;
        display: flex;
        flex: 1;
        text-align: center;

        .screens {
            flex: 1;
            align-self: stretch;
            position: relative;
            padding: 0;
            order: 2;

            .screen {
                min-width: 246px;
                position: absolute;
                list-style-type: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 100%;

                z-index: -1;

                .buttons {
                    padding: 20px 0;
                    display: flex;
                    gap: 0 12px;
                }

                .button {
                    width: fit-content;
                    height: fit-content;
                    background-color: darken($primary-color, 5%);
                    color: white;
                    border-radius: 10px;
                    font-size: 16px;
                    cursor: pointer;
                    padding: 7px 20px;
                    font-weight: 400;
                }
            }
        }

        .media {
            background: rgba(255, 255, 255, 0.25);
            border-radius: 132px;
            height: 132px;
            margin: 32px auto;
            width: 132px;
        }

        h3 {
            font-size: 20px;
            font-weight: 400;
            letter-spacing: 0.15em;
            margin: auto;
            text-align: center;
            padding: 0 30px;
        }

        p {
            line-height: 33px;
            font-size: 22px;
            margin-top: 16px;
            padding-top: 0;
            text-align: left;
            color: rgba(255, 255, 255, 0.8);
        }
    }

    .walkthrough-footer {
        display: flex;
        flex: 0 0 auto;
        justify-content: space-around;
        padding: 0;
        z-index: 200;
        transition: transform 0.2s;

        height: 40px;

        transform: translateY(0);

        &.hidden {
            transform: translateY(40px);
        }

        button {
            height: 40px;
            border: 0;
            background: darken($yes, 10%);
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            border-radius: 0;
            color: white;
            flex: 1;
            font-size: 12px;
            margin: 0;
            outline: 0;
            padding: 12px;
            transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
            background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: pointer;

            &.yes {
                background: $yes;
            }

            &:hover {
                background: darken($yes, 20%);
            }

            &:active {
                background: $primary-color;
            }

            &:disabled {
                cursor: pointer;
            }
        }
    }

    .screens {
        margin: 0;

        .media {
            svg {
                margin-top: 20px;
                opacity: 0;
                transform: translateY(-60px);
                transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                width: 80px;
            }

            .icon {
                position: absolute;
                opacity: 0;
                transform: translateY(-30px);
                transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                width: 132px;
                left: 48px;
                top: 32px;
            }
        }

        .screen {
            opacity: 0;
            position: absolute;
            transform: translateX(-72px);
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

            &.active {
                opacity: 1;
                transform: translateX(0) scale(1);
                transition-delay: 0.4s;
                z-index: 3 !important;

                .media {
                    svg {
                        opacity: 0.8;
                        transform: translateY(0);
                        transition-delay: 0.6s;
                    }
                }
            }
        }
    }

    .access-location {
        svg.folders {
            padding-top: 12px;
            padding-left: 4px;
        }

        .selected-folders {
            overflow-y: scroll;
            text-align: left;
            padding: 0 30px;
        }

        .folder {
            font-size: 16px;
            overflow-x: scroll;
            white-space: nowrap;
            max-width: 240px;
            //text-overflow: ellipsis;
        }

        .button {
            background-color: $color-gray !important;

            &.active {
                background-color: $primary-color !important;
            }
        }
    }
}