I figured this one out in case anyone else on this thread is looking for the solution.
So I’m not sure why the code above doesn’t work but I did find this video: https://screencast-o-matic.com/watch/crelITVcx38 and using the same code the person there used will pass both conditions.
Here it is:
li:first-child {color: #32ed96; font-size: 24px;}
Ive gotta remove this post because it's not what this sub is for, but the other comment hit the nail on the head. You use "for/while/repeat" depending on the situation. This should help