@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*, *::after, *::before {
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, hsl(0, 0%, 0%), 
    grey);
    background-size: cover;
    background-position: center center;
    font-family: 'IBM Plex Serif', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    flex-wrap: wrap;
}

.clock {
    width: 65vh;
    height: 65vh;
    background-color: rosybrown;
    border-radius: 50%;
    border: 2px solid rosybrown;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.digitalClock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.big-text {
    font-weight: bold;
    font-size: 7vh;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin: 1.5rem 0.5rem;
    color: grey;
}

.clock .number {
    --rotation: 0;
    position: absolute;
    width: 100%;
    font-size: 1.5rem;
    color: white;
    height: 100%;
    text-align: center;
    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: 11;
    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%;
    border: 1px solid white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: black;
    z-index: 10;
    transform-origin: bottom;
    transform: translateX(-50%) rotate(calc(var(--rotation) * 1deg));
}

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

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

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

