* {margin: 0; padding: 0; font-size: 100%; font: inherit} i, em {font-style: italic} b, strong {font-weight: bold} table {border: none; border-collapse: collapse; border-spacing: 0} /* * Font styles */ body {font-family: sans-serif; line-height: 1.5} h1 {font-size: 2em; line-height: 2; margin-bottom: 1em} h2 {font-size: 1.5em; line-height: 1.5; margin-bottom: 1em} h3 {font-size: 1.25em; line-height: 1.5; margin-bottom: 1em} h4, h5, h6 {font-size: 1em; line-height: 1.3; margin-bottom: 1em} p, a {font-size: 1em; line-height: 1.3; margin-bottom: 1em} /* * Misc styles */ hr {margin: 2em 0} ol {/*list-style: none;*/ margin: 0 0 1em 3em} ul {/*list-style: none;*/ margin: 0 0 1em 3em} li {line-height: 2em} /* * Sizing/placement for mobile device screens */ body { margin: 0 50vh 0 0; padding: 0; width: 100%; } main { margin: 1em; padding: 0; } nav { padding: 1em; background-color: #f1f1f1; border-bottom: double; } nav button { width: 100%; border: 0 none; border-radius: 1rem; background-color: #e1e1e1; } nav button:hover, nav button:focus { background-color: #d1d1d1; } nav button p { margin: 0; line-height: 2; } nav ul#list-navi { margin: 0; } nav ul#list-navi.hide { display: none; } nav ul#list-navi li { border-radius: 1rem; background-color: #e1e1e1; list-style: none; text-align: center; } nav ul#list-navi li:hover, nav ul#list-navi li:focus { background-color: #d1d1d1; } nav ul#list-navi li a { display: block; margin: .25rem; line-height: 2; border-radius: 1rem; } /* * Sizing/placement for 'normal' screens * * NOTE: 500px is roughly the width of the nav bar. */ @media screen and (min-width: 500px) { /*body {padding: 0}*/ body { margin: 0; max-width: 720px; } /*main {margin: 1em; padding: 0}*/ nav { margin: 1em; padding: 0; background-color: transparent; border: unset; } nav button {display: none} /*nav ul#list-navi {margin: 0}*/ nav ul#list-navi, nav ul#list-navi.hide { display: flex; flex-direction: row; } /*nav ul#list-navi li {list-style: none}*/ nav ul#list-navi li { margin: 0 0.5rem; background-color: transparent; } nav ul#list-navi li:first-child { margin: 0 0.5rem 0 0; } nav ul#list-navi li:last-child { margin: 0 0 0 0.5rem; } nav ul#list-navi li:hover, nav ul#list-navi li:focus { background-color: transparent; } /*nav ul#list-navi li a {line-height: 2}*/ nav ul#list-navi li a { display: inline; margin: 0; border-radius: unset; } } /* * Sizing/placement for wide screens */ @media screen and (min-width: 800px) { /*body {padding: 0}*/ body { margin: 0 auto; width: 720px; } /*main {margin: 1em; padding: 0}*/ /*nav {margin: 1em; padding: 0; background-color: transparent; border: unset}*/ /*nav button {display: none}*/ /*nav ul#list-navi, nav ul#list-navi.hide {margin: 0; display: flex; flex-direction: row}*/ /*nav ul#list-navi li {margin: 0 0.5rem; list-style: none; background-color: transparent}*/ /*nav ul#list-navi li:first-child {margin: 0 0.5rem 0 0}*/ /*nav ul#list-navi li:last-child {margin: 0 0 0 0.5rem}*/ /*nav ul#list-navi li:hover, nav ul#list-navi li:focus {background-color: transparent}*/ /*nav ul#list-navi li a {display: inline; margin: 0; line-height: 2; border-radius: unset}*/ } /* * Generic footer styles */ footer { margin: 1em; color: #777; font-style: italic; } footer a { color: #777; }