@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: linear-gradient(45deg, #b91361, #b91361 50%, #fe1b70 50%, #fe1b70); */
    background: linear-gradient(to bottom, #f292ed, #f36364);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* animation: animate 2.5s ease-in-out infinite; */
}

@keyframes animate {
    0%, 100% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
}


.clock_container {
    height: 100px;
    width: 360px;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* background: linear-gradient(135deg, #14ffe9, #ffeb3b, #ff00e0); */
    border-radius: 10px;
    animation: animate 7s ease-in-out infinite;
}

.clock_container .clock_display {
    z-index: 999;
    /* background: #f5f5f5; */
    background: radial-gradient(transparent, rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    height: 90px;
    width: 350px;
    text-align: center;
}

.clock_container .clock_display, 
.clock_container span {
    position: absolute;
    top: 4%;
    left: 1%;
    transform: translate(-50% -50%);
}

.clock_container .clock_display #time {
    line-height: 85px;
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: 2px;
    /* background: linear-gradient(135deg, #14ffe9, #ffeb3b, #ff00e0);
    -webkit-text-fill-color: transparent; */
}

#time {
    animation: time 4s infinite;
}

@keyframes time {
    0% {
        color: rgb(255, 255, 255);
      }
    
      35% {
        color: rgb(20, 255, 233);
      }
    
      70% {
        color: rgb(255, 235, 59);
      }
    
      100% {
        color: rgb(22, 22, 22);
      }
}