Hello together

I have a problem with my SD-Card.

I have an Arduino Mega2560 with an ouput voltage of 5V.

I made a level shifter to 3.3v for my SD-Card.

Now, i don’t really understand if the CS, MOSI, MISO or SCK is an output or input.

I think MISO is an input bc of Master slave input and MOSI an output from the Arduino

CS and SCK also an ouput but im not sure.

Can you help me?

SCK - clock - output of master (Mega)
MOSI - master out slave in - output of master
MISO - master in slave out - output od slave (SD), dont't convert the level
CS - slave/client select - output of master

a voltage divider is not good for digital communication level conversion.