happy medium
US /ˈhæp.i ˈmiː.di.əm/
UK /ˈhæp.i ˈmiː.di.əm/

1.
a satisfactory compromise between two extremes
:
•
We need to find a happy medium between working too much and not working enough.
•
The new policy strikes a happy medium between strict rules and complete freedom.