*, *::after, *::before {
    box-sizing: border-box;
  }

body{
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle, lightblue, lightgreen);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    }

.clock{
    position:relative;
    width: 300px;
    height: 300px;
    background:rgba(255, 255, 255, 0.9);
    border: 2px solid black;
    border-radius: 50%;
}

.number{
    --rotation: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    color: rgba(100, 100, 100, 0.7);
    transform: rotate(var(--rotation));
    z-index: 5;
}

.number1{
    --rotation: 30deg;
}
.number2{
    --rotation: 60deg;
}
.number3{
    --rotation: 90deg;
}
.number4{
    --rotation: 120deg;
}
.number5{
    --rotation: 150deg;
}
.number6{
    --rotation: 180deg;
}
.number7{
    --rotation: 210deg;
}
.number8{
    --rotation: 240deg;
}
.number9{
    --rotation: 270deg;
}
.number10{
    --rotation: 300deg;
}
.number11{
    --rotation: 330deg;
}
.clock::after{
    position: absolute;
    content: "";
    border: 10px solid black;
    border-radius: 50%;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.clock .hand{
    --rotation:0;
    position:absolute;
    bottom: 50%;
    left:50%;
    border: 1px solid whitesmoke;
    border-radius: 25%;
    transform-origin: bottom;
    transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
    z-index: 7;
    
}

.clock .hand.hour{
    background: black;
    width: 10px;
    height: 30%;
}

.clock .hand.minute{
    background: black;
    width: 6px;
    height: 40%;
}

.clock .hand.second{
    width: 4px;
    height: 45%;
    background-color: red;
}

.digi{
    position:relative;
    width: 100%;
    height: 100%;
}

#digital{
    position: absolute;
    top:65%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 0 0.1em;
    color:whitesmoke;
    border:2px solid silver;
    border-radius: .2em;
    font-size: 1.5em;
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    background: gray;
}