@keyframes rotation {
    from { transform: rotate(0deg)}
    to { transform: rotate(360deg)}
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(250, 250, 250);
    overflow: hidden;
}

img {
    object-fit: cover;
    border-radius: 50%;
    animation: rotation 5s linear infinite;
}

@media screen and (orientation:portrait) {
    img {
        width: 50%;
    }
}

@media screen and (orientation:landscape) {
    img {
        height: 50%;
    }
}