Reduce text padding

Is it possible to reduce the text padding? See the example below, I need to reduce the empty padding areas where the red arrows are pointing to.

I have tried the following method, but it does not work.

padding_top = 0
st.markdown(
    f"""
    <style>
        .reportview-container .main .block-container{{
            padding-top: {padding_top}rem;
        }}
    </style>""",
    unsafe_allow_html=True,
)