* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #081b29;
    overflow: hidden;
}

.wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: colorful 10s infinite;
}

@keyframes colorful {
    0%   { filter: hue-rotate(0deg); }
    25%  { filter: hue-rotate(90deg); }  
    50%  { filter: hue-rotate(180deg); }  
    75%  { filter: hue-rotate(270deg); } 
    100% { filter: hue-rotate(360deg); } 
}

.number-hours,
.bar-seconds {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;             
    justify-content: center;  
    align-items: center;  
}

.bar-seconds span {
    position: absolute;
    transform: rotate(calc(var(--index) * 6deg));
    inset: -20px;
    text-align: center;
}

.bar-seconds span p {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: #0ef;
    border-radius: 2px;
    box-shadow: 0 0 10px #0ef;
}

.bar-seconds span:nth-child(5n) p {
    width: 6px;
    height: 18px;
    transform: translateY(1px);
}

.number-hours span {
    position: absolute;
    transform: rotate(calc(var(--index) * 30deg));
    inset: 6px;
    text-align: center;
}

.number-hours span p {
    font-size: 52px;
    color: #0ef;
    text-shadow: 0 0 10px #0ef;
    transform: rotate(calc(var(--index) * -30deg));
} 

.hands-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hands-box .hand {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
}

.hands-box .hand i {
    display: inline-block;
    transform-origin: bottom;
    border-radius: 50%;
    box-shadow: 0 0 10px #0ef;
}

.hands-box .hours {
    width: 320px;
    height: 320px;
}
.hands-box .hours i {
    width: 8px;
    height: 160px;
    background-color: #0ef;
}

.hands-box .minuts {
    width: 450px;
    height: 425px;
}
.hands-box .minuts::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: #0ef;
    border-radius: 50%;
    box-shadow: 0 0 5px #0ef;
}
.hands-box .minuts i {
    width: 8px;
    height: 225px;
    background: #0ef;
}

.hands-box .secends {
    width: 480px;
    height: 480px;
}
.hands-box .secends::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, .55);
}
.hands-box .secends i {
    width: 4px;
    height: 310px;
    background: white;
    box-shadow: none;
}

@media (max-width: 768px) {
    .wrapper {
        width: 350px;
        height: 350px;
    }
    .hands-box .hours {
        width: 220px;
        height: 220px;
    }
    .hands-box .minuts {
        width: 300px;
        height: 300px;
    }
    .hands-box .secends {
        width: 330px;
        height: 330px;
    }
    .number-hours span p {
        font-size: 30px;
    }
    .hands-box .hours i {
    height: 120px;
    }
    .hands-box .minuts i {
        height: 160px;
    }
    .hands-box .secends i{
        height: 213px;
    }
}


@media (max-width: 480px) {
    .wrapper {
        width: 250px;
        height: 250px;
    }

    .hands-box .hours {
        width: 160px;
        height: 160px;
    }
    .hands-box .minuts {
        width: 220px;
        height: 220px;
    }
    .hands-box .secends {
        width: 240px;
        height: 240px;
    }
    .number-hours span p {
        font-size: 20px;
    }
    .hands-box .hours i {
        width: 5px;
        height: 92px;
    }
    .hands-box .minuts i {
        width: 5px;
        height: 117px;
    }
    .hands-box .secends i{
        height: 155px;
    }
}
