* {
    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;
}
.container {
    position: relative;
    background: #2f363e;
    border-radius: 20px;
    /* min-height: 500px; */
    border-top-right-radius: 225px;
    border-top-left-radius: 225px;
    box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.75),
    10px 10px 70px rgba(0, 0, 0, 0.25);
    inset: 5px 5px 10px rgba(0, 0, 0, 0.5);
    inset: 5px 5px 20px rgba(0, 0, 0, 0.2);
    inset: -5px -5px 15px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.clock {
    position: relative;
    width: 450px;
    height: 450px;
    background: #2f363e;
    border-radius: 50%;
    box-shadow: 10px 50px 70px rgba(0, 0, 0, 0.25);
    inset: 5px 5px 10px rgba(0, 0, 0, 0.5);
    inset: 5px 5px 20px rgba(0, 0, 0, 0.2);
    inset: -5px -5px 15px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2f363e;
    border: 3px solid #ffff;
    border-radius: 50%;
    z-index: 999;
}

.clock span {
    position: absolute;
    inset: 20px;
    color: #fff;
    text-align: center;
    transform: rotate(calc(30deg * var(--i)));
}
.clock span b {
    font-size: 2em;
    opacity: 0.25;
    font-weight: 600;
    display: inline-block;
    transform: rotate(calc(-30deg * var(--i)));
}
.circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10;
}
.circle i {
    position: absolute;
    width: 6px;
    height: 50%;
    background: var(--clr);
    opacity: 0.75;
    transform-origin: bottom;
    transform: scaleY(0.5);
}
.circle:nth-child(1) i {
    width: 2px;
}
.circle:nth-child(2) i {
    width: 6px;
}

.circle2 {
    width: 240px;
    height: 240px;
    z-index: 9;
}

.circle3 {
    width: 180px;
    height: 180px;
    z-index: 8;
}

.circle::before {
    content: '';
    position: absolute;
    top: -8.5px;
    height: 15px;
    width: 15px;
    background: var(--clr);
    box-shadow: 0 0 20px var(--clr),
    0 0 60px var(--clr);
    border-radius: 50%;
}

#time {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    padding: 10px 20px;
    font-size: 2em;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    box-shadow: 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);
}

#time div {
    position: relative;
    width: 60px;
    text-align: center;
    font-weight: 500;
    color: var(--clr);
}
#time div:nth-child(1)::after,
#time div:nth-child(2)::after {
    content: ':';
    position: absolute;
    right: -4px;
}

#time div:last-child {
    font-size: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

#time div:nth-child(2)::after {
    animation: ampmAnim 1s steps(1) infinite;
}
@keyframes ampmAnim {
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
}

@media screen and (max-width: 560px) {
    .clock {
        width: 300px;
        height: 300px;
    }

    .clock span b {
        font-size: 1.5em;
    }

    .circle {
        width: 200px;
        height: 200px;
    }
    .circle2 {
        width: 160px;
        height: 160px;
    }
    .circle3 {
        width: 120px;
        height: 120px;
    }

     #time {
        font-size: 1.5em;
    }

    .container {
        border-top-right-radius: 150px;
        border-top-left-radius: 150px;
    }
    .clock span {
        inset: -5px;
    }
}
@media screen and (max-width: 360px) {
    .clock {
        width: 250px;
        height: 250px;
    }

    .clock span b {
        font-size: 1.3em;
    }

    .circle {
        width: 150px;
        height: 150px;
    }
    .circle2 {
        width: 130px;
        height: 130px;
    }
    .circle3 {
        width: 110px;
        height: 110px;
    }

     #time {
        font-size: 1.3em;
        width: 170px;
    }

    .clock span {
        inset: -5px;
    }
}
@media screen and (max-width: 340px) {
    .clock {
        width: 200px;
        height: 200px;
    }

    .clock span b {
        font-size: 1em;
    }

    .circle {
        width: 130px;
        height: 130px;
    }
    .circle2 {
        width: 110px;
        height: 110px;
    }
    .circle3 {
        width: 90px;
        height: 90px;
    }

    .clock span {
        inset: -8px;
    }
    .circle::before {
        top: -6.5px;
        height: 10px;
        width: 10px;
}
}