*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #091921;
    transition: background 0.2 linear;

}
.toggle{
    margin:50px auto;

}

body.light {
    background-color:#00CCFF;
} /* #9b#ff9b6 */


body.light h1, body.light {color: #fff;}

.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #ff105e;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {color: #f1c40f;}

.fa-sun {color: #f39c12;}

.checkbox-label .ball {
  background-color: blue;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}










/* clock */
.clock{
    width: 350px;
    height:350px;
    display:flex;
    justify-content: center;
    align-items: center;
    background:url(clock.png);
    border-radius: 50%;
    background-size: cover;
    border:4px solid #091921;
    box-shadow: 0px -15px 15px rgba(255,255,255,0.05),
               inset 0px -15px 15px rgba(255,255,255,0.05),
               0px 15px 15px rgba(0,0,0,0.3) ,
               inset 0px 15px 15px rgba(0,0,0,0.3);
}
.clock:before{
    content: '';
    position:absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #fff;
    z-index: 10000;
}

.clock .hour,
.clock .min,
.clock .sec{
    position: absolute;
}

.clock .hour,.hr{
    width: 160px;
    height: 160px;
}
.clock .min,.mn{
    width: 190px;
    height:190px ;
}
.clock .sec,.sc{
    width: 230px;
    height: 230px;
}
.hr,.mn,.sc{
    display:flex;
    position:  relative;
    justify-content: center;
    border-radius: 50%;
}
.hr:before{
    content:'';
    position:absolute;
    width:8px;
    height: 76px;
    background: #ff105e;
    border-radius: 6px 6px 0 0;
    z-index: 10;
}
.mn:before{
    content:'';
    position:absolute;
    width:4px;
    height: 90px;
    background:grey;
    border-radius: 6px 6px 0 0;
    z-index: 10;
}
.sc:before{
    content:'';
    position:absolute;
    width:2px;
    height: 150px;
    background: blue;
    border-radius: 6px 6px 0 0;
    z-index: 12;
}

