/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
 */

@import '../variables';

.start-stop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: $white;
    border-color: $gray-200;

    img {
        height: 20px;
        width: 20px;
        margin-right: 8px;
    }

    &.active-animation {
        overflow: hidden;
        position: relative;

        &::after {
            content: '';
            background: $gray-700;
            height: 2px;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            animation: snake 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        }
    }
}

@keyframes snake {
    0% {
        transform: translate(-100%);
    }
    100% {
        transform: translate(100%);
    }
}
