/* large screen */
@media only screen and (min-width: 992px) {
    /* animation */
    @keyframes computer {
        from {transform: translateX(-100vw);}
        to {transform: translateX(0);}
    }
    img {
        display: block;
        margin: auto;
        width: 50%;
        animation: computer 5s linear forwards;
    }
    body {
        background-image: url("../images/nightcity.jpg");
        background-color: #000000;
    }
}

/* tablet */
@media only screen and (max-width: 992px) {
    /* animation */
    @keyframes tablet {
        from {transform: rotate(0deg);}
        to {transform: rotate(359deg);}
    }
    img {
        display: block;
        margin: auto;
        width: 50%;
        animation: tablet 2s infinite linear;
    }
    body {
        background-image: url("../images/nightcity.jpg");
        background-color: #000000;
    }
}

/* mobile */
@media only screen and (max-width: 600px) {
    /* animation */
    @keyframes mobile {
        0% {background-color: teal;}
        10% {background-color: navy;}
        20% {background-color: green;}
        30%{background-color: lime;;}
        40% {background-color: yellow;}
        50% {background-color: orange;}
        60% {background-color: maroon;}
        70% {background-color: red;}
        80% {background-color: pink;}
        90% {background-color: fuchsia;}
        100% {background-color: purple;}
    }
    img {
        position: relative;
        animation: mobile 5s infinite linear;
    }
    body {
        background-image: url("../images/afterlife.jpg");
        background-color: #000000;
    }
}