
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;

}

body, .main, .time, .left-side,.right-side, .right-top, 
.right-down{
    display: flex;
    justify-content: center;
    align-items: center;
}
body{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(./lake.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}
.clock, .time,.right-side, .right-top, 
.right-down{
    position: relative;
}
.clock{
    color: #fff;
    background: #2d2f38;
    width: 460px;
    padding: 10px 40px;
    /* box-shadow: 0 5px 25px rgba(14, 21, 37, 0.8); */
    border-radius: 10px;
}
#hours{
    font-size: 8em;
    font-weight: 600;
    line-height: 125px;
    padding: 0 10px;
    background: -webkit-linear-gradient(90deg, blue, white);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;

}
.right-side{
    flex-direction: column;
}
#dots{
    font-size: 4em;
    transform: translateY(-3px);
    color: gray;

}
#minutes{
    font-size: 5em;
    font-weight: 500;
    margin-left: 10px;
    transform: translateY(10px);
    background: -webkit-linear-gradient(90deg, orchid, white);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.right-down{
    margin-left: 10px;
    transform: translateY(-25px);
}
#period, #seconds{
    font-size: 1.8em;
    font-weight: 500;
    margin-left: 10px;

}
#period{
    color: orange;
}
#seconds{
    color: bisque;
}

.clock::before{
    content: '';
    position: absolute;
    background: linear-gradient(-45deg, rgb(245, 242, 244), rgb(228, 3, 213), rgb(248, 248, 3), rgb(4, 29, 248));
    background-size: 200% 200%;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    z-index: -1;
    filter: blur(20px);
    animation: glowing 5s ease infinite;
}

.date-day{
    width: 100%;
    border-top: 1px solid #1c2137;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8em;
    font-weight: 500;
}

#day{
    color: #fd05f5;
    background: -webkit-linear-gradient(-90deg, rgb(255, 2, 213), rgb(255, 255, 255));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
#date, #month{
    color: #fd05f5;
    background: -webkit-linear-gradient(90deg, rgba(243, 172, 6, 0.984), rgb(251, 251, 251));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.label{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #838282;
    position: relative;
}
#d{
    position: absolute;
    left: 6%;
}
#dt{
    position: absolute;
    left: 29%;
}
#m{
    
    position: absolute;
    left: 54%;
}
#y{
    position: absolute;
    left: 87%;
}

.title{
    font-size: 1.5em;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    letter-spacing: 2px;
    background: -webkit-linear-gradient(45deg, rgba(6, 243, 168, 0.984), rgb(255, 255, 255), rgb(5, 65, 246));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.name{
    font-size: 1em;
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    color: #5b5b5d;
}


@keyframes glowing {
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

@media (max-width:600px) {
    body{
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(./lake.jpg) no-repeat;
        background-size: cover;
        background-position: center;
    }
    .clock{
        width: 300px;
        padding: 10px 20px;
        border-radius: 20px;
    }
}

