/* ======================================================
   BASE
====================================================== */

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}
html {
    font-size: 16px;
}
body {
    background-color: #222222;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: #d4d4d4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
/* ======================================================
   CONTAINER PRINCIPAL
====================================================== */
.timer-container {
    width: 60%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* ======================================================
   LOGOTIPO
====================================================== */
.logo {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}
/* ======================================================
   DATA ATUAL
   menor texto desktop = 1.1rem
====================================================== */
.digital-date {
    font-size: 1.1rem;
    font-weight: 400;
    color: #d4d4d4;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
/* ======================================================
   HORA ATUAL
   mantém 60px = 3.75rem
====================================================== */
.digital-time {
    font-size: 3.75rem;
    font-weight: 700;
    color: #BE1E2D;
    letter-spacing: 2px;
    line-height: 1;
    margin: 5px 0 12px 0;
}
/* ======================================================
   TÍTULO DO CONTADOR
   mantém 20px = 1.25rem
====================================================== */
.countdown-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.4;
}
/* ======================================================
   ÁREA DO CÍRCULO
====================================================== */
.timer-display-circle {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
/* ======================================================
   SVG
====================================================== */
.progress-ring {
    width: 250px;
    height: 250px;
    transform: rotate(-90deg);
}
/* ======================================================
   CÍRCULO DE FUNDO
====================================================== */
.progress-ring__background {
    stroke: #1b1b1b;
    stroke-width: 25;
    fill: transparent;
}
/* ======================================================
   CÍRCULO DE PROGRESSO
====================================================== */
.progress-ring__circle {
    stroke: #BE1E2D;
    stroke-width: 25;
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
/* ======================================================
   TEXTO DENTRO DO CÍRCULO
====================================================== */
.timer-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f0f0f0;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    white-space: nowrap;
}
/* ======================================================
   DIAS
   mantém 40px = 2.5rem
====================================================== */
.countdown-days {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1;
}
/* ======================================================
   HORAS, MINUTOS E SEGUNDOS
   mantém 40px = 2.5rem
====================================================== */
.countdown-time {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}
/* ======================================================
   INFORMAÇÕES DO EVENTO
====================================================== */
.event-info {
    width: 100%;
    max-width: 900px;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* ======================================================
   "TEMA:"
   mantém 20px = 1.25rem
====================================================== */
.event-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
/* ======================================================
   TÍTULO DO EVENTO
   mantém 25px = 1.5625rem
====================================================== */
.event-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 400;
    color: #d4d4d4;
    line-height: 1.4;
    margin-bottom: 10px;
    max-width: 100%;
}
/* ======================================================
   DATA E HORÁRIO DO EVENTO
   menor texto desktop = 1.1rem
====================================================== */
.event-date {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
}
/* ======================================================
   MENSAGENS DE ERRO
====================================================== */
.message-error {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    background-color: #1b1b1b;
    color: #d4d4d4;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}
/* ======================================================
   TABLETS / SMARTPHONES
====================================================== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .timer-container {
        width: 96%;
        max-width: none;
    }
    .logo {
        width: 130px;
        max-width: 130px;

        margin-bottom: 15px;
    }
    /* menor texto = 1rem */
    .digital-date {
        font-size: 1rem;
    }
    /* mantém destaque da hora */
    .digital-time {
        font-size: 3.125rem;
    }
    /* mantém hierarquia do título */
    .countdown-title {
        font-size: 1.125rem;
        margin-bottom: 18px;
    }
    /* NÃO REDUZIR O SVG */

    .timer-display-circle {
        width: 250px;
        height: 250px;
    }
    .progress-ring {
        width: 250px;
        height: 250px;
    }
    /* contador continua em destaque */
    .countdown-days {
        font-size: 2.125rem;
    }
    .countdown-time {
        font-size: 2.125rem;
    }
    /* Tema continua sendo título */
    .event-label {
        font-size: 1.25rem;
    }
    /* título do evento continua destacado */
    .event-title {
        font-size: 1.30rem;
        padding: 0 10px;
    }


    /* menor texto = 1rem */

    .event-date {
        font-size: 1rem;

        padding: 0 10px;
    }


    .message-error {
        font-size: 1rem;
    }
}


/* ======================================================
   CELULARES PEQUENOS
====================================================== */

@media (max-width: 480px) {

    body {
        padding: 12px;
    }


    .timer-container {
        width: 96%;
        max-width: none;
    }


    .logo {
        width: 115px;
        max-width: 115px;
    }


    /* menor texto = 1rem */

    .digital-date {
        font-size: 1rem;
    }


    /* relógio continua grande */

    .digital-time {
        font-size: 2.75rem;

        margin-bottom: 10px;
    }


    /* título não cai abaixo de 1rem */

    .countdown-title {
        font-size: 1.125rem;

        max-width: 330px;
    }


    /* círculo permanece 250 x 250 */

    .timer-display-circle {
        width: 250px;
        height: 250px;
    }


    .progress-ring {
        width: 250px;
        height: 250px;
    }


    /* contador continua grande */

    .countdown-days {
        font-size: 1.875rem;

        margin-bottom: 7px;
    }


    .countdown-time {
        font-size: 1.875rem;
    }


    .event-info {
        margin-top: 18px;
    }


    /* "Tema:" continua maior */

    .event-label {
        font-size: 1.25rem;
    }


    /* título do evento continua maior */

    .event-title {
        font-size: 1.25rem;

        gap: 8px;
    }


    /* menor texto = 1rem */

    .event-date {
        font-size: 1rem;
    }


    .message-error {
        font-size: 1rem;
    }
}