Consultas de mídia e orientação do dispositivo mudam

Eu tenho o código abaixo. O que eu gostaria de conseguir é alternar entre os estilos de um dispositivo móvel, alterando a orientação de retrato para paisagem (dispositivos com uma resolução grande, como iPhone 4 ou Galaxy S)

<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <title>KUBIK</title>
    <style>
        #mobile,
        #tablet { display: none; }

        @media screen and (max-width: 767px) {
            body { background-color: #FF0000; }
            #mobile { display: block; }
        }
        @media screen and (min-width: 768px) and (max-width: 1024px) {
            body { background-color: #00FFFF; }
            #tablet { display: block; }
        }       
    </style>

</head>
<body>
    <div id="mobile">MOBILE</div>
    <div id="tablet">TABLET</div>
</body>
</html>

Na paisagem, o iPhone 4 tem uma largura de 960px, então a segunda regra deve aparecer. Como eu conseguiria iss

questionAnswers(2)

yourAnswerToTheQuestion