* { box-sizing: border-box; margin: 0; padding: 0; } body { background: #eee; display: flex; font-family: sans-serif; } img { width: 100%; } ul { list-style-type: none; } a { text-decoration: none; } a:link, a:visited { color: black; } a:hover { color: #666; } .sidebar { width: 30%; display: flex; flex-direction: column; padding: 80px 80px 0; background: #fff; font-family: sans-serif; border-right: 1px solid #ddd; } h1 { margin-bottom: 8px; font-weight: 500; font-family: 'Verdana'; } h2 { color: #666; margin-bottom: 80px; font-weight: 100; font-size: 1.2em; } .menu p { margin-top: 12px; color: #666; font-weight: 100; font-size: .9em; } .social-icons { display: flex; justify-content: space-between; flex-wrap: wrap; margin: 90px 0 80px; font-size: 1.9em; } .menu li { border-top: 1px solid #ccc; padding: 12px 0; } .menu { border-bottom: 1px solid #ccc; } input { background: #eee; border: 1px solid #ddd; padding: 12px; font-size: 1em; } .main-content { width: 70%; padding: 80px 80px 0; } .post { background: #fff; border: 1px solid #ddd; margin-bottom: 80px; display: flex; flex-direction: column; } .post-footer { background: #F7F7F7; padding: 45px 80px; } .post-footer ul { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; } .post-footer ul li { color: #707070; } /*.post-footer ul li[class^=icon] { margin-right: -25px; }*/ .text { padding: 65px 80px 90px; font-family: 'Georgia'; } h4 { margin-bottom: 60px; font-size: 2.4em; } .text p { font-size: 1.25em; line-height: 1.5; } .footer { background: #fff; border: 1px solid #ddd; padding: 45px 80px 35px; color: #666; font-size: 1em; font-weight: 100; font-family: 'Georgia'; } .icon-list { display: none; } @media (max-width: 950px) { .menu, .social-icons, .sidebar input { display: none; } body { flex-direction: column; } .sidebar, .main-content { width: 100%; } .sidebar { padding: 8%; border-right: none; border-bottom: 1px solid #ccc; justify-content: space-between; flex-direction: row; } h2 { margin: 0; } h1 { margin-top: 20px; } .icon-list { display: initial; font-size: 2em; border: 1px solid #ddd; padding: 10px 10px 2px; align-self: center } } @media screen and (max-width: 600px), (orientation: portrait) { .main-content { padding: 0; } .post { margin-bottom: 0; } .text { padding: 10%; } }