.button-fill {
    background-color: #F85628;
    border-radius: 6.25rem;
    color: var(--gray-0);
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    padding: .75rem 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 2.75rem;
    flex-grow: 1;
    transition: 0.4s ease;

    &:disabled {
        opacity: 0.3;
        pointer-events: none;
    }

    &:hover {
        background-color: #C7360D;
    }

    &.icon {
        max-width: fit-content;
        height: 100%;
        aspect-ratio: 1/1;
        padding: .625rem;
    }
}

.button-outline {
    background-color: var(--gray-0);
    border-radius: 6.25rem;
    color: #F85628;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    padding: calc(.75rem - .0625rem) 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
    border: .0625rem solid var(--gray-25);
    cursor: pointer;
    width: 100%;
    height: 2.75rem;
    flex-grow: 1;
    transition-property: border, color;
    transition-duration: .2s;
    transition-timing-function: ease-in-out;

    &:hover {
        border: .0625rem solid #C7360D;
        color: #C7360D;
    }

    &:disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    &.icon {
        width: 2.75rem;
        height: 2.75rem;
        aspect-ratio: 1/1;
        padding: .625rem;
        flex-grow: 0;
    }
}

.exercises-option {
    max-width: 77.875rem;
    margin: 0 auto;
    box-sizing: content-box;


    .task-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;

        .flex-box {
            display: flex;
            gap: 1rem;
        }

        .reading-passage {
            font-size: 1rem;
            color: #2A1C14;
            font-weight: 400;

            ul {
                list-style: none;
                margin-left: .5rem;
                padding-left: .5rem;

                li {
                    position: relative;
                }

                li::before {
                    content: "•";
                    font-size: 1.125rem;
                    position: absolute;
                    left: -0.625rem;
                }
            }

            span {
                font-weight: 600;
            }

            .divider {
                width: 100%;
                height: .0625rem;
                background-color: var(--gray-25);
                margin: 1rem 0;
            }

            .pb-big {
                list-style: none;
                padding-bottom: 1.25rem;
            }

            .pb-small {
                padding-bottom: .25rem;
            }

            .pl-big {
                padding-left: 5rem;
            }

            .chat {
                padding: 2.1875rem 1.5rem 1.5rem;
                border-radius: 1rem;
                background-color: var(--gray-15);
                display: flex;
                flex-direction: column;
                gap: .6875rem;

                .message-text {
                    border-radius: 1rem;
                    padding: 1.5rem;
                    color: #000000;
                    font-size: 1.25rem;
                    font-weight: 400;
                    background-color: var(--gray-25);
                    margin-right: auto;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        top: -0.875rem;
                        left: 2rem;
                        border-right: .75rem solid transparent;
                        border-bottom: 1.125rem solid var(--gray-25);
                    }
                }

                .reply-message-text {
                    border-radius: 1rem;
                    padding: 1.5rem;
                    color: #000000;
                    font-size: 1.25rem;
                    font-weight: 400;
                    margin-left: auto;
                    background-color: #F9ECE9;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        top: -0.875rem;
                        right: 2rem;
                        border-left: .75rem solid transparent;
                        border-bottom: 1.125rem solid #F9ECE9;
                    }
                }
            }
        }

        .task {
            max-width: 45rem;
            height: auto;
            min-height: 20rem;
            max-height: 30rem;
            flex-grow: 1;

            .additional-play-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 13.0625rem;
                background-color: var(--gray-15);
                border-radius: 1rem;
                margin-bottom: 1rem;
                position: relative;
                overflow: hidden;

                [alt="play"] {
                    display: block;
                }

                [alt="stop"] {
                    display: none;
                }

                button {
                    width: 6.25rem;
                    height: 6.25rem;
                    border-radius: 6.25rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: none;
                    background-color: #F85628;
                    cursor: pointer;
                    position: relative;
                    z-index: 1;

                    &.is-playing {
                        [alt="play"] {
                            display: none;
                        }

                        [alt="stop"] {
                            display: block;
                        }
                    }
                }

                .flowers {
                    pointer-events: none;
                    user-select: none;

                    svg {
                        position: absolute;
                    }

                    svg:nth-child(1) {
                        top: 0;
                        left: 0;
                    }

                    svg:nth-child(2) {
                        bottom: 0;
                        right: 2.75rem;
                    }
                }
            }
        }

        .answer {
            max-width: 31.875rem;
            flex-grow: 1;
            height: auto;
            min-height: 20rem;
            max-height: 30rem;
            padding: 0;
            overflow: hidden;
            padding: 1.5rem 1.5rem 1rem;
            position: relative;

            .scroll-container {
                height: 100%;
                overflow: auto;
                padding: 0 .5rem 0;

                &::-webkit-scrollbar {
                    width: .25rem;
                    background-color: transparent;
                    border-radius: .1875rem;
                }

                &::-webkit-scrollbar-thumb {
                    width: .25rem;
                    background-color: var(--gray-100);
                    border-radius: .1875rem;
                }

                .legacy-content {
                    color: var(--gray-500);
                    font-size: 1rem;
                    font-weight: 400;

                    h2,
                    h3 {
                        color: #2A1C14;
                        font-size: 1.25rem;
                        font-weight: 600;
                        margin-bottom: .75rem;
                    }

                    p,
                    li {
                        margin-bottom: 1rem;
                    }

                    strong,
                    b {
                        color: #2A1C14;
                        font-weight: 600;
                    }

                    em,
                    i {
                        color: #2A1C14;
                    }

                    ul,
                    ol {
                        margin: 0 0 1rem 1.25rem;
                        padding: 0;
                    }

                    .box_border {
                        margin-bottom: 1rem;
                    }

                    .mb-10 {
                        margin-bottom: .625rem;
                    }
                }

                .questions {
                    display: flex;
                    flex-direction: column;
                    height: fit-content;
                    flex-shrink: 0;

                    .question-wrapper {
                        margin-bottom: .75rem;

                        .question {
                            display: flex;
                            gap: .5rem;

                            .question-number {
                                background-color: #F85628;
                                border-radius: .875rem;
                                width: 1.75rem;
                                height: 1.75rem;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                color: #FFFFFF;
                                font-size: .875rem;
                                font-weight: 500;
                                flex-shrink: 0;
                            }

                            .question-content {
                                width: 100%;

                                .question-title {
                                    color: #000000;
                                    font-size: 1rem;
                                    font-weight: 500;
                                    margin-bottom: .5rem;
                                }

                                .text {
                                    color: var(--gray-500);
                                    font-size: 1.2rem;
                                    font-weight: 400;
                                }
                            }
                        }
                    }
                }
            }

            .buttons {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                border-top: .0625rem solid var(--gray-25);
                padding: .75rem 1rem 1rem;
                background-color: #FFFFFF;
            }
        }    }

}

@media (max-width: 64rem) {
    .exercises-option {
        .task-wrapper {
            flex-direction: column;
            align-items: center;
            gap: 0;

            .flex-box {
                flex-direction: column;
                align-items: center;
                gap: 1.5rem;
                width: 100%;
            }

            .paper {
                border: none;
                padding: 0;
                height: auto;
                min-height: auto;
                max-height: 100%;
            }

            .reading-passage {
                border-bottom: .0625rem solid var(--gray-25);
                border-radius: 0;
                padding: 0 0 1.5rem;
                margin-bottom: 1.5rem;

                .pl-big {
                    padding-left: 1.5rem;
                }

                .chat {
                    padding: 1.6875rem 1rem 1rem;
                    gap: 1.1875rem;

                    .message-text {
                        padding: 1rem;
                        font-size: 1rem;
                    }

                    .reply-message-text {
                        padding: .75rem;
                        font-size: 1rem;
                    }
                }
            }

            .task {
                position: static;
                max-width: 100vw;
                width: 100vw;
                max-height: fit-content;
                padding: 0rem 1rem;
                border-radius: 0;
                background-color: transparent;

                .additional-play-btn {
                    display: none;
                }
            }

            .answer {
                padding-top: 1.5rem;
                border-top: .0625rem solid var(--gray-25);
                max-width: 100%;
                max-height: fit-content;
                border-radius: 0;

                &::after {
                    display: none;
                }

                .scroll-container {
                    overflow: visible;
                    padding: 0;

                    .questions {
                        padding: 0;
                        gap: 1rem;

                        .question-wrapper {
                            .question {
                                .question-content {
                                    .question-title {
                                        font-size: .875rem;
                                    }
                                }
                            }
                        }
                    }
                }

                .buttons {
                    display: none;
                }
            }
        }
    }
}

