*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.hero{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(45deg, #08001f, #30197d);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.container{
    width: 800px;
    height: 180px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Clock box */
.clock{
    width: 100%;
    height: 100%;
    background: rgba(235, 0, 255, 0.11);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(40px);
}

/* Pink square */
.container::before{
    content: '';
    width: 180px;
    height: 180px;
    background: #f41b75;
    border-radius: 5px;
    position: absolute;
    left: -50px;
    top: -50px;
    z-index: -1;
}

/* Blue circle */
.container::after{
    content: '';
    width: 180px;
    height: 180px;
    background: #419aff;
    border-radius: 50%;
    position: absolute;
    right: -30px;
    bottom: -50px;
    z-index: -1;
}

/* Time text */
.clock span{
    font-size: 80px;
    width: 110px;
    display: inline-block;
    text-align: center;
    position: relative;
}

/* Labels */
.clock span::after{
    font-size: 16px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

#hrs::after{ content: 'HOURS'; }
#min::after{ content: 'MINS'; }
#sec::after{ content: 'SEC'; }

/* ------------------------------- */
/*        RESPONSIVE DESIGN        */
/* ------------------------------- */

/* Tablet */
@media (max-width: 900px){
    .container{
        width: 600px;
        height: 150px;
    }

    .clock span{
        font-size: 60px;
        width: 90px;
    }

    .container::before,
    .container::after{
        width: 140px;
        height: 140px;
    }
}

/* Mobile landscape */
@media (max-width: 600px){
    .container{
        width: 90%;
        height: 130px;
    }

    .clock span{
        font-size: 50px;
        width: 70px;
    }

    .container::before{
        width: 120px;
        height: 120px;
        left: -30px;
        top: -30px;
    }

    .container::after{
        width: 120px;
        height: 120px;
        right: -20px;
        bottom: -30px;
    }
}

/* Mobile portrait */
@media (max-width: 420px){
    .container{
        width: 95%;
        height: 110px;
    }

    .clock span{
        font-size: 40px;
        width: 55px;
    }

    .clock span::after{
        font-size: 12px;
    }

    .container::before{
        width: 90px;
        height: 90px;
        left: -20px;
        top: -20px;
    }

    .container::after{
        width: 90px;
        height: 90px;
        right: -15px;
        bottom: -20px;
    }
}
