* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2f363e;
}
#clock {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 80px;
    flex-wrap: wrap;
    padding: 50px;
}
#hrDots, #minDots, #secDots {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    rotate: 90deg;
}
#hrDots::before, #minDots::before, #secDots::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.25),
    10px 10px 70px rgba(0, 0, 0, 0.25), 
    inset 5px 5px 10px rgba(0, 0, 0, 0.5),
    inset 5px 5px 20px rgba(255, 255, 255, 0.2),
    inset -5px -5px 15px rgba(0, 0, 0, 0.75);
}
#hrDots h2, #minDots h2, #secDots h2 {
    position: absolute;
    text-align: center;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr);
    flex-direction: column;
    font-size: 4em;
    font-weight: 500;
    transform: rotate(-90deg);
}
#hrDots h2 span, #minDots h2 span, #secDots h2 span {
    position: absolute;
    font-size: 0.25em;
    font-weight: 500;
    bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
#secDots b {
    position: absolute;
    color: #fff;
    display: inline-flex;
    transform: rotate(-90deg) translate(-30px,90px);
}
#secDots .dot, #minDots .dot, #hrDots .dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 3px;
    background: var(--clr);
    transform-origin: 100px;
}
#secDots .active.dot, #minDots .active.dot, #hrDots .active.dot {
    background: var(--clr);
    box-shadow: 0 0 10px var(--clr),
    0 0 20px var(--clr),
    0 0 30px var(--clr);
}
#secDots .active.dot ~ .dot, #minDots .active.dot ~ .dot , #hrDots .active.dot ~ .dot{
    background: #555;
}
#secDots .dot:nth-child(5n+5), #minDots .dot:nth-child(5n+5) {
    width: 20px;
}
#hrDots .dot {
    width: 20px;
}
#hrDots .dot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: var(--clr);
    box-shadow: 1.5px 9px var(--clr), 4px 18px var(--clr),
    7px 27px var(--clr);
}
#hrDots .dot.active ~ .dot::before {
    background: #555;
    box-shadow: 1.5px 9px #555, 4px 18px #555,
    7px 27px #555;
}
#minSec {
    display: flex;
    gap: 80px;
}

/* media query */
@media (max-width: 535px) {
    #clock {
        gap: 50px;
    }
    #minSec {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 50px;              
    }
    #minDots {
        width: 150px;
        height: 150px;
    }
    #minDots .dot {
        transform-origin: 75px; 
    }
    #minDots h2 {
        font-size: 2em;
    }
    #minDots h2 span {
        font-size: 0.30em;
        bottom: 43px;
    }
    #secDots {
        width: 120px;
        height: 120px;
    }
    #secDots .dot {
        transform-origin: 58px; 
    }
    #secDots h2 {
        font-size: 1.5em;
    }
    #secDots h2 span {
        bottom: 35px;
        font-size: 0.15em;
    }
    #secDots b {
        transform: rotate(-90deg) translate(-27px,55px);
        font-size: 0.5em;
    }
}
