@import 'gradient'; #app-container { display: flex; min-height: 100vh; flex-direction: column; @include linear-gradient(#343b59); } main { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: stretch; } header { height: 64px; background: #23273c; color: white; line-height: 64px; padding-left: 10px; } .left, .right { flex: 0 0 12em; margin: 30px; } .center { margin: 30px; padding: 20px; display: flex; min-width: 440px; align-items: stretch; flex-direction: column; background-color: rgba(0,0,0,0.1); } @media(min-width: 768px) { .left, .right { margin: 30px; } main { flex-direction: row; justify-content: center; align-items: flex-start; } .center { margin: 30px; } } footer { background: #23273c; text-align: center; color: white; padding: 10px; }