I know this question has been asked many times before but I don't seem to get my example right. How can I make the purple div fill the remaining height of the window?
<!DOCTYPE html>
<html>
<head>
    <style>
        body {
            height: 100%;
            margin: 0;
        }
        .container {
            display: flex;
            flex-flow: column;
            height: 100%;
        }
        .topbox {
            background-color: red;
            flex: 0 1 40px;
        }
        .bottombox {
            background-color: purple;
            flex: 1 1 auto;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="topbox"></div>
        <div class="bottombox"></div>
    </div>
</body>
</html> 
    