@import url('https://fonts.cdnfonts.com/css/poppins');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', cursive, sans-serif;
}

body {
    background: linear-gradient(45deg, #08001f, #30197d);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    /* Ajuste para ser responsivo */
    max-width: 800px;
    /* Limite a largura máxima para não esticar demais em telas grandes */
    height: auto;
    /* Altura automática para se adaptar ao conteúdo */
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.clock, .Date {
    width: 100%;
    background: rgba(235, 0, 255, 0.11);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(40px);
    margin-bottom: 1rem;
    padding: 1rem;
}

.container::before {
    content: '';
    width: 180px;
    height: 180px;
    background: #f41b75;
    border-radius: 5px;
    position: absolute;
    left: -50px;
    top: -50px;
    z-index: -1;
}

.container::after {
    content: '';
    width: 180px;
    height: 180px;
    background: #419aff;
    border-radius: 50%;
    position: absolute;
    right: -30px;
    bottom: -50px;
    z-index: -1;
}

.clock span {
    font-size: 5rem;
    /* Ajuste para uma unidade responsiva */
    width: 100px;
    /* Ajuste para ter largura fixa, para manter o alinhamento */
    display: inline-block;
    text-align: center;
    position: relative;
}

.clock span::after {
    font-size: 1rem;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

#hrs::after {
    content: 'HORAS';
}

#min::after {
    content: 'MIN';
}

#sec::after {
    content: 'SEG';
}

/*
  Media Query para Telas Menores
*/
@media (max-width: 600px) {
    .container {
        width: 95%;
        /* Ocupa quase toda a largura em telas pequenas */
        padding: 1rem;
    }

    .clock span {
        font-size: 3rem;
        /* Diminui a fonte para caber na tela */
        width: 60px;
    }

    .clock span::after {
        font-size: 0.7rem;
    }

    .Date {
        flex-wrap: wrap;
        /* Permite que a data quebre a linha se necessário */
    }

    .Date span {
        font-size: 1rem;
        margin: 0.2rem;
    }

    .container::before, .container::after {
        width: 100px;
        height: 100px;
        left: -20px;
        top: -20px;
    }

    .container::after {
        right: -10px;
        bottom: -20px;
    }
}