@import url('https://fonts.googleapis.com/css?family=Jost');

:root{
    --primary-color : #000;
    --secondary-color : #fff;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

body{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: all .4s ease-in;
}


body.dark{
    --primary-color : #fff;
    --secondary-color : #000;
}

main{
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.btn{
    padding: 1rem 2rem;
    font-size: inherit;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.btn span{
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: absolute;
    transform: translate(-50%, -50%);
    animation:  clickEffect .5s ease;
}

.btn:focus{
    outline: none;
}

.clock-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.clock{
    height: 300px;
    width: 300px;
    position: relative;
}

.hands{
    height: 65px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    transform-origin: bottom;
    transition: all .5s ease-in;
}

.minutes{
    height: 90px;
    width: 7px;
}

.seconds{
    height: 100px;
    width: 5px;
    background-color: olivedrab;
}

.middle-circle{
    height: 12px;
    width: 12px;
    background-color: orangered;
    transform: translate(-50%,-50%);
}

.middle-circle::before{
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 7px;
    width: 7px;
    background-color: olivedrab;
}

.time{
    font-size: 3rem;
    color: var(--primary-color);
}
.date{
    font-size: 1.2rem;
    color: olivedrab;
    letter-spacing: 2px;
}
.date span{
    height: 40px;
    width: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}



@keyframes clickEffect{
    to{
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}