If you haven't read it yet, then you really need to read the bitcoin whitepaper before you ask any more questions. Here's a link to it for you.
https://bitcoin.org/bitcoin.pdfOnce you've read that, let me know if you have any additional questions.
I had already seen it. I get that bitcoin amounts are stored in the blockchain, but then what are wallets used for?
The wallet stores your private keys. Electronic wallets also provide a user friendly way to create, sign, and broadcast transactions that re-assign the value that is associated with the bitcoin addresses that are generated from the private keys. Most wallets also provide a way to keep track of how much value your private keys provide control of.
What does a wallet actually contain?
At a bare minimun, your private keys. Most wallets also contain the bitcoin addresses that are generated from the private keys so that they don't need to be re-generated every time you need to use them. Electronic wallets (and wallet software) generally keep track of all the unspent transaction outputs that provide value that the wallet has the ability to re-assign. Some wallets also provide a way for you to create notes to yourself that can be attached to addresses or transactions to remind you later what they were for.
How can you move bitcoins from a wallet to another?
The typical way is to use the wallet software from the first wallet to create a transaction that assigns the value to an address under the control of the second wallet. The wallet software handles using the private key to generate a digital signature that authorizes the transfer and handles broadcasting that transaction to the network. Eventually the transaction makes it into the blcokchain and the value is then under the control of the second wallet.
Why people say they stored their bitcoins online and they were stolen?
There are services online that will offer to hold the bitcoin for you. Essentially you transfer control of the value to the service, and then you trust them to send it back to you (or to send it anywhere else that you ask them to send it) whenever you request it. Many of these services have turned out to be scams. After the users transfers control of the value to the service, the person that runs the service disappears and keeps control of the bitcoins for themselves.
Can anyone answer those specific questions?
Yes.