html, body { width: 100%; height: 100%; margin: 0; padding: 0; } body { display: flex; flex-direction: column; font-family: "Inter", sans-serif; font-size: 13pt; font-weight: 300; } header { height: 60px; margin-top: 30px; margin-bottom: 60px; } header > .container { display: flex; align-items: center; } #header-buttons { flex: 1; text-align: right; } #header-buttons a { text-decoration: none; color: black; margin-left: 10px; } #header-buttons a:hover { text-decoration: underline; } #header-logo { height: 100%; padding: 10px; padding-left: 0; box-sizing: border-box; } #header-logo img { height: 100%; } #contents-button { display: none; } main { flex: 1; } main > .container { display: flex; } #sidebar { display: flex; flex-direction: column; padding: 50px 10px; background: #2185d0; color: white; font-weight: 400; } #sidebar nav { width: 350px; box-sizing: border-box; flex: 1; } #sidebar nav .fas { width: 30px; text-align: center; } #sidebar nav a { text-decoration: none; color: white; } #sidebar nav ul { list-style-type: none; padding: 0; margin: 0; } #sidebar .nav-section a { display: block; padding: 7px 10px; margin: 0 -10px 5px; background: #4595d3; font-size: 14pt; } #sidebar .nav-section a:hover, #sidebar .nav-section.active a { background: #27628f; margin-left: -15px; padding-left: 15px; margin-right: -15px; } #sidebar .nav-second-level ul { margin-left: 15px; padding: 7px 0; } #sidebar .nav-second-level li { margin-bottom: 10px; } #sidebar .nav-second-level a:hover, #sidebar .nav-second-level a.active { text-decoration: underline; } #sidebar .sidebar-close-button { display: none; position: relative; text-align: right; top: -35px; } #sidebar .sidebar-close-button a:hover { color: red; } article { flex: 99; padding: 50px 0; margin-left: 150px; max-width: 100%; } article p { hyphens: auto; } article :first-child { margin-top: 0; } article h1 { font-size: 34pt; } article h2 { font-size: 26pt; } article h3 { font-size: 20pt; } article h4 { font-size: 16pt; } article h5 { font-size: 14pt; } article h6 { font-size: 12pt; } article blockquote, pre { background: #eee; padding: 30px; margin: 0; border-left: 5px solid #2185d0; overflow: auto; } article blockquote p:last-of-type { margin-bottom: 0; } article blockquote blockquote { background: #ddd; } article code { background: #eee; border-radius: 5px; padding: 1px 3px; } article pre code { background: none; border-radius: none; padding: 0; } article img { border: 5px solid #eee; max-width: 100%; } article table { border-collapse: collapse; } article td, th { padding: 15px; } article th { background: #ddd; } article tr:nth-of-type(2) { background: #eee; } article hr { width: 80%; border: 1px solid #eee; } .contribution-invitation hr { margin-top: 70px; margin-bottom: 30px; } footer { background: #f5f5f5; text-align: center; font-size: 8pt; padding: 15px; margin-top: 60px; } .container { max-width: 1300px; margin: auto; height: 100%; } .fas { font-family: "Font Awesome 5 Free Solid"; } @media screen and (max-width: 1400px) { #sidebar { display: block; position: absolute; left: 0; top: 0; height: 100%; transform: translateX(-400px); } #sidebar .sidebar-close-button { display: block; } article { margin-left: 0; margin-right: 0; } .container { max-width: 780px; padding: 0 50px; } #contents-button { display: inline-block; background: #eee; border-radius: 5px; padding: 5px; width: 20px; height: 20px; text-align: center; } #contents-button:hover { background: #ccc; } } @media screen and (max-width: 600px) { .container { padding: 0 20px; } article p { text-align: left; } header { margin-top: 15px; margin-bottom: 30px; } header .container { flex-direction: column; align-items: normal; } #header-logo { margin-bottom: 15px; } h1 { font-size: 24pt; } } @keyframes slideSidebar { from { transform: translateX(-400px); } to { transform: translateX(0); } }