:root {
    --car-color: #f73030;
}

.car {
    position: relative;
    width: 160px;
    height: 100px;
    z-index: 10000;
    margin-top: -115px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
}

.car .roof {
    position: relative;
    background-color: var(--car-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.roof .window {
    background-color: #fff;
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

.window .diviser {
    position: absolute;
    background-color: var(--car-color);
    width: 6px;
    height: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.roof .window::after {
    content: '';
    width: 70px;
    height: 40px;
    display: block;
    background-color: var(--car-color);
    margin-top: 30px;
}

.car .bodywork {
    background-color: var(--car-color);
    width: 100%;
    height: 50px;
    margin-top: -45px;
    border-radius: 50px 50px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.car .wheel {
    background-color: #333333;
    width: 40px;
    height: 40px;
    z-index: 1000;
    border-radius: 50%;
    border: 1px solid #000;
    margin: 0 10px -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes rotateWheel {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(240deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.car .wheel .hubcap {
    background-color: #808080;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: var(--car-velocity);
}

.hubcap>div {
    background-color: #333;
    width: 100%;
    height: 2px;
}

.hubcap>div:nth-child(1) {
    transform: rotate(90deg);
}

.hubcap>div:nth-child(1) {
    margin-top: 2px;
}