title @a[tag=AFK] times 0 60 0 
title @a[tag=AFK] title ["",{"text":"You are ","color":"aqua"},{"text":"AFK","bold":true,"color":"dark_aqua"},{"text":".","color":"aqua"}]
scoreboard players add @a[tag=AFK] AFKTitleTimer 1
function main:lobby/afk/afktitle if @a[tag=AFK,score_AFKTitleTimer_min=1,score_AFKTitleTimer=1]
scoreboard players set @a[tag=AFK,score_AFKTitleTimer_min=60] AFKTitleTimer 0