* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    background-color: #000715;
    height: 100vh;
    width: 100%;
}

#clock-body,#clock-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 10;
}

#clock-body {
    width: 512px;
    border: 3px solid rgba(255, 255, 255, 0.87);
    padding: 20px;
}

#clock-dot {
    height: 14px;
    width: 14px;
    background-color: white;
}

main, #clock, #clock-h, #clock-m, #clock-s{
    display: flex;
    justify-content: center;
    align-items: center;
}

#clock-s,#clock-m,#clock-h {
    transition: all ease-out .3s;
    transform: rotate(0deg)
}
#clock-s::before, #clock-m::before, #clock-h::before {
    content: '';
    position: absolute;
    border-radius: 40px;
}

#clock-s::before {
    background-color: #790000;
    top: -190px;
    height: 190px;
    width: 3px;
}

#clock-m::before {
    background-color: #00afaf;
    top: -170px;
    height: 170px;
    width: 8px;
}

#clock-h::before {
    background-color: #0962B3;
    height: 130px;
    top: -130px;
    width: 12px;
}

footer {
    color: rgba(255, 255, 255, 0.56);
    z-index: 1000;
    position: absolute;
    bottom: 0;
    padding: 16px;
    font-size: 12px;
}

@media (max-width: 700px) {
    #clock-body {
        width: 320px;
        padding: 5px;
    } 
    #clock-s::before {
        top: -125px;
        height: 125px;
        width: 2px;
    }

    #clock-m::before {
        top: -110px;
        height: 110px;
        width: 6px;
    }

    #clock-h::before {
        height: 80px;
        top: -80px;
        width: 8px;
    }
}
