html {
    background-image: linear-gradient(red, rgb(233, 118, 118));
    text-align: center;
    font-size: 20px;
}

body {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 100vh;
    font-size: 20px;
}

.clock {
    width: 300px;
    height: 300px;
    border: 20px solid white;
    border-radius: 50%;
    position: relative;
    margin: 128px auto;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), inset 0 0 0 3px #EFEFEF, inset 0 0 10px black, 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.bgIndex {
    height: 300px;
    width: 300px;
    position: absolute;
    display: flex;
    opacity: 0.4;
    border-radius: 50%;
}

.face {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translate(-3px);
}

.hands {
    width: 50%;
    height: 6px;
    background: black;
    position: absolute;
    transform: rotate(90deg);
    top: 50%;
    transform-origin: 100%;
    transition: all 0.5s;
}


/*Writting media quaries for different frames*/

@media screen and (max-width: 410px) {
    .clock {
        width: 200px;
        height: 200px;
        border: 10px solid white;
        padding: 12px;
    }
    .bgIndex {
        width: 200px;
        height: 200px;
    }
    .hands {
        width: 50%;
        height: 3px;
    }
}

@media screen and (max-width: 290px) {
    .clock {
        width: 100px;
        height: 100px;
        border: 5px solid white;
        padding: 8px;
    }
    .bgIndex {
        width: 100px;
        height: 100px;
    }
    .hands {
        width: 50%;
        height: 2px;
    }
}

@media screen and (max-width: 150px) {
    .clock {
        width: 50px;
        height: 50px;
        border: 2px solid white;
        padding: 4px;
    }
    .bgIndex {
        width: 50px;
        height: 50px;
    }
    .hands {
        width: 50%;
        height: 0.5px;
    }
}