*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #5d656e;
}
#time{
    display: flex;
    justify-content: center;
    gap: 40px;
    color: #fff;
}

#time .circle{
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#time .circle svg{
    position: relative;
    width: 150px;
    height: 150px;
    transform: rotate(270deg);
}
#time .circle svg circle{
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: #191919;
    stroke-width: 4;
    transform: translate(5px, 5px);
}
#time .circle svg circle:nth-child(2){
    stroke: var(--clr);
    stroke-dasharray: 440;
}
#time div{
    position: absolute;
    align-items: center;
    font-weight: 500;
    font-size: 1.7em;
}

#time div span{
    margin-top: 0.7rem;
    position: absolute;
    transform: translateY(-10px);
    font-size: 0.25em;
    font-weight: 300;
    letter-spacing: 0.1em;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}
#time .ap{
    position: relative;
    font-size: 1em;
    transform: translateX(-20px);
}

.dots{
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    
}
.dots::before{
    content: '';
    position: absolute;
    top: -3px;
    width: 15px;
    height: 15px;
    background: var(--clr);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--clr), 0 0 60px var(--clr);

}

@media screen and (max-width:768px) {
    #time{
        position: relative;
        flex-direction: column;
        gap: 20px;
        padding-top: 1.5rem;
    }
    #time .ap{
        position: absolute;
        top: 0;
        left:50%;
        transform: translateX(-50%);
    }
    #ampm{
        position: absolute;
        top: 0%;
        left: 50%;
        transform:translate(-50%,-100%);
    }
}