@use '../../../styles/tools/functions';
@use '../../../styles/settings/colours';

.ColumnContainer {
    flex-wrap: nowrap;
}

.Button {
    display: flex;
    flex-direction: column;
    gap: functions.pxRem(10) functions.pxRem(20);
    text-decoration: none;
    letter-spacing: 0.05em;

    @media all and (min-width: functions.em(520)) {
        align-items: center;
    }

    &:hover .ButtonText:after {
        width: calc(100% - 0em);
        opacity: 1;
        transition: width 0.3s, opacity 0.3s, background-color 0.3s;
    }

    &--Prev {
        @media all and (min-width: functions.em(520)) {
            flex-direction: row;
        }

        .ButtonText:after {
            margin-right: auto;
        }
    }

    &--Next {
        margin-left: auto;
        text-align: right;

        @media all and (min-width: functions.em(520)) {
            flex-direction: row-reverse;
        }

        .ButtonText:after {
            margin-left: auto;
        }

        svg {
            margin-left: auto;
        }
    }

    svg {
        fill: inherit;
    }
}

.ButtonText {
    @media all and (min-width: functions.em(520)) {
        padding-top: 0.2em;
    }

    &:after {
        content: '';
        width: calc(100% - 1em);
        display: block;
        opacity: 0;
        border-bottom: functions.pxRem(2) solid;
        transition: width 0s 0.3s, opacity 0.3s;

        @media (prefers-reduced-motion) {
            width: calc(100% - 0em);
        }
    }
}
