@import url('https://fonts.googleapis.com/css2?family=Alata&family=Great+Vibes&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lobster&family=Overpass:ital,wght@0,100..900;1,100..900&family=Pacifico&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    user-select: none;
}

body{
    min-height: 100vh;
    display: flex;
    justify-self: center;
    align-items: center;
    background-color: #acbaca;
}

.body-dark{
background: #152b4a;
}

.darkthemes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: -6px;
  position: absolute;
  top: 5%;
  right: 8%;
}

.switch {
  display: inline-block;
  width: 60px;
  height: 25px;
  margin: 0 10px;
  position: relative;
}
.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #c9d5e0;
  transition: 0.4s;
  border-radius: 30px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider::before {
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  left: 38px;
  bottom: 3.5px;
  cursor: pointer;
  transition: 0.5s;
}

input:checked + .slider {
  background-image: linear-gradient(
    to right,
    /* #04fc43, */
    #ff2972,#fee800
  );
}

input:checked + .slider::before {
  transform: translateX(-34px);
  background-color: #152b4a;
}


.clock{
    position: relative;
    width: 450px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #c9d5e0;
    border-radius: 50px;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
    box-shadow: 45px 45px 45px -15px rgba(0, 0, 0, 0.15),
    inset 15px 15px 10px rgba(255, 255, 255, 0.75),
    -15px -15px 35px rgba(255, 255, 255, 0.55),
    inset -2px -2px 15px rgba(0, 0, 0, 0.2);
}

.box-shadow{
   /* box-shadow: 0px 3px 100px -52px rgba(255,41,114,1); */
   box-shadow: 0px 3px 100px -44px rgba(255,41,114,1);
   


}
.numbers {
  position: absolute;
  top: 30px;
  width: 390px;
  height: 390px;
  background: #152b4a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 7px 7px 22px #152b4a66, inset 7px 7px 7px rgba(255, 255, 255, 0.55), -9px -9px 15px rgba(255, 255, 255, 1);
  cursor: pointer;
}

.numbers::before{
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #e91e63;
    z-index: 100000;
    box-shadow: 0 0 0 1px #e91e63,
     0 0 0 3px #fff,
     0 0 5px 5px rgba(0, 0, 0, 0.15)
}

.numbers span {
  position: absolute;
  text-align: center;
  color: #fff;
  font-size: 1.25em;
  transform: rotate(calc(30deg * var(--i)));
  transform-origin: top center;
  width: 30px;  /* Adjust width as needed */
  height: 30px;  /* Adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  top: 47%; 
  left: 46%; 
  transform: rotate(calc(30deg * var(--i))) 
            translate(0, -165px) 
            rotate(calc(-30deg * var(--i))); 
}

 .numbers span b{
    /* font-weight: 400; */
    display: inline-block;
    /* transform: rotate(calc(0deg * var(--i))); */


}

.numbers .circle{
position: absolute;
width: 280px;
height: 280px;
border: 1px solid rgba(0, 0, 0, 0.75);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: flex-start;
z-index: 10;
} 

.numbers .circle i{
    position: absolute;
    width: 6px;
    height: 50%;
    background: var(--clr);
    opacity: .75;
    transform-origin: bottom;
    transform: scaleY(.5);
}

.numbers .circle#sec i{
    width: 2px; 
}

.numbers .circle#min i{
    width: 4px; 
}

.numbers .circle#min {
    width: 230px; 
    height: 230px; 
}

.numbers .circle#hrs {
    width: 180px; 
    height: 180px; 
}

.numbers .circle::before{
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--clr);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--clr),
    0 0 60px var(--clr);
}

#time{
    position: absolute;
    bottom: 35px;
    display: flex;
    padding: 10px 20px;
    font-size: 2em;
    font-weight: 600;
    border-radius: 40px;
    background-color: #152b4a;
    box-shadow: 7px 7px 22px #152b4a66, inset 7px 7px 7px rgba(255, 255, 255, 0.55), -9px -9px 15px rgba(255, 255, 255, 1);
}

#time div{
    position: relative;
    width: 60px;
    text-align: center;
    color: var(--clr);
    opacity: .75;
    display: flex;
    justify-content: center;
    align-items:center;
    font-weight: 500;
}

#time div:nth-child(1)::after,
#time div:nth-child(2)::after{
content: ':';
position: absolute;
right: -4px;
}

#time div:nth-child(2)::after{
    animation: animate 1s steps(1) infinite;
}

@keyframes animate {

    0%{
        opacity: 1;
    }

    50%{
        opacity: 0;
    }
    
}

@media screen and (width <= 55em){
    .clock{
    position: relative;
    width: 380px;
    height: 550px;
}

.numbers {
  width: 340px;
  height: 340px;
    box-shadow: 7px 7px 22px #152b4a66, 
    inset 1px 2px 5px rgba(255, 255, 255, 0.55), 
    1px 1px 10px rgba(255, 255, 255, 1);
}

.numbers span {
    top: 45.5%; 
  left: 46%; 
  transform: rotate(calc(30deg * var(--i))) 
            translate(0, -155px) 
            rotate(calc(-30deg * var(--i))); 
}
}