*,*::after, *::before {
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    background:linear-gradient(to right, hsl(200, 45%, 20%), hsl(175, 90%, 23%));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.clock {
    width: 300px;
    height: 300px;
    background-color: rgba(116, 172, 182, 0.8);
    border-radius: 50%;
    border: 2px solid black;
    position: relative;
}
.clock .number {
    --rotation:0;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.5rem;
    /* background-color: royalblue; */
    transform: rotate(var(--rotation));
}

.clock .number1 {--rotation:30deg;}
.clock .number2 {--rotation:60deg;}
.clock .number3 {--rotation:90deg;}
.clock .number4 {--rotation:120deg;}
.clock .number5 {--rotation:150deg;}
.clock .number6 {--rotation:180deg;}
.clock .number7 {--rotation:210deg;}
.clock .number8 {--rotation:240deg;}
.clock .number9 {--rotation:270deg;}
.clock .number10 {--rotation:300deg;}
.clock .number11 {--rotation:330deg;}

.clock::after {
    content: '';
    position: absolute;
    background-color: black;
    z-index: 10;
    width: 15px;
    height: 15px;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    border-radius: 50%;
}

.clock .hand {
    --rotation:0;
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 10px;
    height: 40%;
    opacity: 0.6;
    background-color: black;
    border: 0.5px solid whitesmoke;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transform-origin: bottom;
    z-index: 9;
    transform: translateX(-50%) rotate(calc(var(--rotation)* 1deg)); 
    /* 50% of its width backwards */
}

.clock .hand.second {
    width:3px;
    height:45%;
    background-color: tomato;
}

.clock .hand.minute {
    width: 7px;
    height: 40%;
    background-color: black;
}

.clock .hand.hour {
    width: 10px;
    height: 35%;
    background-color: #491313 ;
}




@keyframes spin {
    0% {
        transform: rotate(-180deg)
    }
    100% {
        transform: rotate(180deg)
    }
}
