* {
    margin: 0;
    padding: 0;
}

body {
    background: rgba(3, 3, 15, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

.clock {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
    height: 500px;
    width: 700px;
    overflow: hidden;
    border-radius: 10px;
}

.clock::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 900px;
    background-image: conic-gradient(transparent, transparent, transparent, #9D00FF);
    animation: animate 6s linear infinite;
}

.clock::after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 900px;
    background-image: conic-gradient( transparent, transparent, transparent, #FF00FF);
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}

.clock-span {
    position: absolute;
    inset: 5px;
    background: rgba(3, 3, 15);
    border-radius: 10px;
    z-index: 1;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    width: 150px;
    height: 150px;
    z-index: 3;
}

.time {
    position: absolute;
    text-align: center;
    font-size: 30px
}

.circle svg {
    position: relative;
    width: 150px;
    height: 150px;
    transform: rotate(270deg);
}

.circle svg circle {
    stroke: white;
    stroke-width: 3px;
    width: 100%;
    height: 100%;
    fill: transparent;
    transform: translate(4px, 4px);
}

.circle svg circle:nth-child(2) {
    stroke: var(--clr);
    stroke-dasharray: 440;
    box-shadow: 0 0 20px var(--clr);
}

.dots {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.dots::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--clr);
    border-radius: 50%;
    top: -2px;
    box-shadow: 0 0 20px var(--clr);
}

.clock__button {
    position: absolute;
    top: 30px;
    right: 30px;
}

.clock-mode {
    position: relative;
    width: 80px;
    height: 40px;
    background: #FF00FF;
    z-index: 5;
    border-radius: 20px;
    transition: 1s;
    -webkit-appearance: none;
    outline: none;
    box-shadow: inset 0 0 5px(0, 0, 0, .2)
}

.clock-mode::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    transform: scale(1.1);
    box-shadow: inset 0 2 5px(0, 0, 0, .2);
    transition: 1s;
}

.clock-mode:checked {
    background: #9D00FF;
    transition: 1s;
}

.clock-mode:checked::before {
    transition: 2s;
    left: 40px;
}

.time-part {
    position: absolute;
    color: white;
    font-size: 30px;
    text-transform: uppercase;
    right: 30px;
    top: 150px;
    z-index: 6;
}