*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body{
    font-display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #0b456b, #021c37);
    overflow: hidden;
}
.clock{
    width: 500px;
    height: 500px;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 70vh;
    margin-top: 120px;
    background:radial-gradient(circle, #05263c, #000d1a);
}
.clock::before{
    content:"";
    width: 525px;
    height: 525px;
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(#00d9ff, #ee00ff);
    box-shadow: 0 0 15px 15px rgba(0, 0, 0, 0.2);
    z-index: -1;
}
.number{
    transform: rotate(calc(30deg * var(--n)));
    position: absolute;
    inset: 20px;
    text-align: center;
    font-size: 40px;
    color: #00d9ff;
    text-shadow: 0 0 12px #ee00ff;
}
.number b{
    transform: rotate(calc(-30deg * var(--n)));
    display: inline-block;
}
.center-dot{
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #ee00ff;
    border: 6px solid #00d9ff;
    border-radius: 50%;
}
.hour-hand, .minute-hand, .second-hand{
    --rotate: 0;
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%) rotate(calc(var(--rotate) * 1deg));
    transform-origin: bottom;
    border-radius: 30px 30px 0 0;
}
.hour-hand{
    width: 12px;
    height: 130px;
    background: linear-gradient(#00d9ff, #ee00ff);
}
.minute-hand{
    width: 12px;
    height: 190px;
    background: linear-gradient(to top, #00d9ff, #ee00ff);
}
.second-hand{
    width: 6px;
    height: 210px;
    background: linear-gradient(to top, #00d9ff, #ee00ff);
}


/* Media Query for screens smaller than 768px (Tablets & Mobiles) */
@media (max-width: 768px) {
    .clock {
        width: 300px;
        height: 300px;
        margin-left: 0;
        margin-top: 50px;
    }
    .clock::before {
        width: 320px;
        height: 320px;
    }
    .number {
        font-size: 20px;
    }
    .center-dot {
        width: 15px;
        height: 15px;
        border: 4px solid #00d9ff;
    }
    .hour-hand {
        width: 8px;
        height: 80px;
    }
    .minute-hand {
        width: 8px;
        height: 120px;
    }
    .second-hand {
        width: 4px;
        height: 140px;
    }
}

/* Media Query for screens smaller than 480px (Mobile Phones) */
@media (max-width: 480px) {
    .clock {
        width: 250px;
        height: 250px;
    }
    .clock::before {
        width: 270px;
        height: 270px;
    }
    .number {
        font-size: 16px;
    }
    .hour-hand {
        width: 6px;
        height: 70px;
    }
    .minute-hand {
        width: 6px;
        height: 100px;
    }
    .second-hand {
        width: 3px;
        height: 120px;
    }
}
