/* Estiliza o fundo da página e centraliza o conteúdo */
body {
    background: #181818;
    /* Cor de fundo escura */
    color: #fff;
    /* Cor do texto principal */
    font-family: 'Segoe UI', Arial, sans-serif;
    /* Fonte moderna */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Título principal */
h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Bloco do mostrador do tempo */
#cronometro {
    background: #222;
    /* Fundo escuro para o mostrador */
    border-radius: 20px;
    /* Bordas arredondadas */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    /* Sombra para destaque */
    padding: 40px 60px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    font-size: 3.5rem;
    /* Números grandes */
    font-weight: bold;
    letter-spacing: 2px;
}

/* Cada parte do tempo (min, seg, ms) */
#cronometro span {
    min-width: 60px;
    display: inline-block;
    text-align: center;
}

/* Área dos botões */
#botoes {
    display: flex;
    gap: 20px;
    /* Espaço entre os botões */
}

/* Botões de controle do cronômetro */
button {
    background: #ff9800;
    /* Cor de fundo laranja */
    color: #fff;
    /* Texto branco */
    border: none;
    border-radius: 8px;
    /* Bordas arredondadas */
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Sombra leve */
}

/* Efeito ao passar o mouse nos botões */
button:hover {
    background: #e67c00;
    /* Laranja mais escuro */
    transform: scale(1.05);
    /* Leve aumento */
}

/* Responsividade para telas menores */
@media (max-width: 500px) {
    #cronometro-container {
        width: 90vw;
        height: 90vw;
        min-width: 220px;
        min-height: 220px;
        max-width: 98vw;
        max-height: 98vw;
    }

    #cronometro-svg {
        width: 100%;
        height: 100%;
    }

    #cronometro-display {
        font-size: 2.1rem;
    }

    #botoes {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }

    button {
        width: 80vw;
        max-width: 300px;
        padding: 12px 0;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}