﻿@import url(https://fonts.googleapis.com/css?family=Cabin);


/*body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #222a30;
}*/

@media all and (max-width: 768px) {
    .mouse { display: none; }
}

@media all and (min-width: 768px) {

    .mouse {
        background: #4e5559 linear-gradient( transparent 0%, transparent 50%, #ffffff 50%, #ffffff 100% );
        position: relative;
        top:-15px;
        width: 20px;
        height: 34px;
        background-size: 100% 100%;
        border-radius: 100px;
        background-size: 225%;
        animation: colorSlide 6.5s linear infinite, nudgeMouse 6.5s ease-out infinite;
    }

        .mouse:before, .mouse:after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;
        }

        .mouse:before {
            width: calc(20px - 4px);
            height: calc(34px - 4px);
            background-color: #222a30;
            border-radius: 100px;
        }

        .mouse:after {
            background-color: #ffffff;
            width: 3px;
            height: 3px;
            border-radius: 100%;
            animation: trackBallSlide 6.5s linear infinite;
        }

        .mouse + p {
            margin-top: 4px;
            font-family: "Cabin", sans-serif;
            font-size:9px;
            letter-spacing: 8px;
            text-indent: 12px;
            color: #ffffff;
            animation: colorText 6.5s ease-out infinite, nudgeText 6.5s ease-out infinite;
        }
}
    @keyframes colorSlide {
        0% {
            background-position: 0% 100%;
        }

        20% {
            background-position: 0% 0%;
        }

        21% {
            background-color: #4e5559;
        }

        29.99% {
            background-color: #ffffff;
            background-position: 0% 0%;
        }

        30% {
            background-color: #4e5559;
            background-position: 0% 100%;
        }

        50% {
            background-position: 0% 0%;
        }

        51% {
            background-color: #4e5559;
        }

        59.99% {
            background-color: #ffffff;
            background-position: 0% 0%;
        }

        60% {
            background-color: #4e5559;
            background-position: 0% 100%;
        }

        80% {
            background-position: 0% 0%;
        }

        81% {
            background-color: #4e5559;
        }

        89.99%, 100% {
            background-color: #ffffff;
        }
    }

    @keyframes trackBallSlide {
        0% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }

        6% {
            opacity: 1;
            transform: scale(0.9) translateY(20px/4);
        }

        14% {
            opacity: 0;
            transform: scale(0.4) translateY(20px*2);
        }

        15%, 19% {
            opacity: 0;
            transform: scale(0.4) translateY(-11px);
        }

        28%, 29.99% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }

        30% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }

        36% {
            opacity: 1;
            transform: scale(0.9) translateY(20px/4);
        }

        44% {
            opacity: 0;
            transform: scale(0.4) translateY(20px*2);
        }

        45%, 49% {
            opacity: 0;
            transform: scale(0.4) translateY(-11px);
        }

        58%, 59.99% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }

        60% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }

        66% {
            opacity: 1;
            transform: scale(0.9) translateY(20px/4);
        }

        74% {
            opacity: 0;
            transform: scale(0.4) translateY(20px*2);
        }

        75%, 79% {
            opacity: 0;
            transform: scale(0.4) translateY(-11px);
        }

        88%, 100% {
            opacity: 1;
            transform: scale(1) translateY(-11px);
        }
    }

    @keyframes nudgeMouse {
        0% {
            transform: translateY(0);
        }

        20% {
            transform: translateY(8px);
        }

        30% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(8px);
        }

        60% {
            transform: translateY(0);
        }

        80% {
            transform: translateY(8px);
        }

        90% {
            transform: translateY(0);
        }
    }

    @keyframes nudgeText {
        0% {
            transform: translateY(0);
        }

        20% {
            transform: translateY(2px);
        }

        30% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(2px);
        }

        60% {
            transform: translateY(0);
        }

        80% {
            transform: translateY(2px);
        }

        90% {
            transform: translateY(0);
        }
    }

    @keyframes colorText {
        21% {
            color: #4e5559;
        }

        30% {
            color: #ffffff;
        }

        51% {
            color: #4e5559;
        }

        60% {
            color: #ffffff;
        }

        81% {
            color: #4e5559;
        }

        90% {
            color: #ffffff;
        }
    }