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

html,
body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(4, 25, 56);
}

.clock {
    width: 500px;
    aspect-ratio: 1;
    background-image: url(clock.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock::before {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    background-color: black;
    z-index: 100;
    border-radius: 50%;
    box-shadow: 1px 1px 30px rgb(0, 0, 0);
}
.second{
    width: 50%;
    height: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.second::before{
    content: "";
    width: 8px;
    height: 90%;
    position: absolute;
    top: -40px;
    background-color: rgb(2, 34, 82);
    border-radius: 10px;
}
.minute{
    width: 50%;
    height: 45%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.minute::before{
    content: "";
    width: 8px;
    z-index: 10;
    height: 90%;
    position: absolute;
    top: -40px;
    background-color: rgb(36, 39, 207);
    border-radius: 10px;
}
.hour{
    width: 50%;
    height: 55%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hour::before{
    content: "";
    width: 8px;
    z-index: 10;
    height: 45%;
    position: absolute;
    top: 20px;
    background-color: rgb(7, 10, 168);
    border-radius: 10px;
}
@media screen and (max-width: 520px) {
    .clock{
        width: 400px;
        aspect-ratio: 1;
    }
}
@media screen and (max-width: 400px) {
    .clock{
        width: 300px;
        aspect-ratio: 1;
    }
    .hour::before{
        content: "";
        width: 4px;
    }
    .minute::before{
        content: "";
    width: 4px;
    }
    .second::before{
        content: "";
        width: 4px;

    }
}