@import url('https://fonts.googleapis.com/css?family=Heebo:300&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Heebo',sans-serif;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    height: 100vh;  /*  this height works only when we give justify-content: center;  */
    overflow: hidden;
    margin: 0;
}
html{
    transition: all 0.5s ease-in;
}
:root{
    --primary-color: black;   /* primary color means for 'text' color  */
    --secondary-color: white;   /* secondary color means for 'background' color  */
}

html.dark{
    --primary-color: white;
    --secondary-color: black;
}
html.dark{
    background-color: #111;
    color: white;
}
.toggle{
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    position: absolute;
    top: 100px;
}
.toggle:focus{
    outline: none;
}

.clock-container{
    text-align: center;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; */
}
.clock{
    background-color: blanchedalmond;
    border-radius: 100%;
    position: relative;
    /* margin: auto; */
    width: 200px;
    height: 200px;
}
.needle{
    background-color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
}

.needle.hour{
    height: 50px;
    width: 2%;
    border-radius: 10px;
    opacity: 0.8;
    transform: translate(-50%,-100%) rotate(0deg);
    background-color: blue;
}
.needle.minute{
    transform: translate(-50%,-100%) rotate(0deg);
    background-color: rgb(253, 16, 16);
    height: 78px;
    width: 1.5%;
    border-radius: 10px;
    opacity: 0.8;

}
.needle.second{
    transform: translate(-50%,-100%) rotate(0deg);
    background-color: rgb(49, 117, 69);
    height: 95px;
    width: 1%;
    border-radius: 10px;
    opacity: 0.8;
}
.center-point{
    background-color: teal;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.center-point::after{
    content: '';
    background-color: black ;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.time{
    font-size: 60px;
}
.date{
    color: #aaa;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.date .circle{
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    height: 28px;
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;
    transition: all 0.5s ease-in;
    font-size: 12px;
}