/* colors */ @media (prefers-color-scheme: light) { :root { --primary: white; --lighter: #f8f8ff; --darker: #f3f3f3; --border: grey; --font-color: black; --font-inverted: white; --link-color: #1d7484; } } @media (prefers-color-scheme: dark) { :root { --primary: #2b2a33; --lighter: #373641; --darker: #1f1e25; --border: black; --font-color: white; --font-inverted: black; --link-color: tomato; } } html { background-color: var(--primary); } html * { color: var(--font-color); } /* fonts */ html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; } @media (max-width: 899px) { html { font-size: 0.8rem; } } /* fix sizing and remove margins and padding */ html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; } body > * { padding: 0 2%; } @media (min-width: 900px) { body > * { padding: 0 10%; } } /* scaffolding */ body { display: flex; flex-direction: column; height: 100vh; } header { text-align: center; } main { display: flex; flex-direction: column; } footer { display: flex; justify-content: space-between; margin-top: auto; outline: 1px solid var(--border); background-color: var(--lighter); } hr { color: var(--border); margin-top: 0.3rem; margin-bottom: 0.3rem; } /* nav */ nav { /* position */ display: flex; justify-content: space-between; align-items: center; /* look */ background-color: var(--darker); outline: 1px solid var(--border); } nav ul { display: flex; margin: 0px; padding: 0px; } nav li { display: flex; align-items: center; margin: 0px; } nav a { padding: 0px 10px 0px 0px; } /* headers & paragraphs */ h1, h2, h3, h4, h5, h6 { margin-top: 1rem; margin-bottom: 1.2rem; overflow-wrap: break-word; word-wrap: break-word; line-height: 1.1; font-weight: bold; } p { margin-top: 0rem; margin-bottom: 1rem; } /* links */ a { text-decoration: none; color: var(--link-color); } a:hover { color: var(--link-color); } a:visited { /* color: #982c61; */ color: var(--link-color); border-bottom: 2px solid var(--link-color); } /* lists & tables */ ul { padding-left: 1.4em; margin-top: 0px; margin-bottom: 2.5rem; } li { margin-bottom: 0.4em; } table { text-align: center; width: 100%; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 5px; background-color: var(--lighter); } td, th { padding: 0.5em; } th { border-bottom: 1px solid var(--border); } /* buttons & input */ button { /* border: var(--border); border-radius: 3px;*/ margin: 0rem 0rem 0.2rem 0rem; padding: 0.1rem 0.3rem 0.2rem 0.3rem; color: black; } label { user-select: none; } input { margin: 0rem 0rem 0.2rem 0rem; color: black; } select { margin: 0rem 0rem 0.2rem 0rem; color: black; } select * { color: black; } /* cards */ .cards { display: flex; flex-flow: row wrap; justify-content: center; gap: 15px; } .cards article { text-align: center; width: 32%; border: 1px solid var(--font-color); border-radius: 5px; /* look */ background-color: var(--lighter); } .cards article * { display: inline-block; text-align: center; } /* apps */ .app { display: flex; flex-flow: row wrap; gap: 30px; } .app article { display: flex; flex-flow: column nowrap; flex-basis: 320px; flex-grow: 1; padding: 10px; border: 1px solid var(--border); border-radius: 5px; background-color: var(--lighter); } .app article > * { display: flex; flex-flow: row nowrap; justify-content: space-between; align-content: flex-start; } .app article input { text-align: center; -moz-appearance: textfield; } .app article select { max-width: 200px; } .app article input[type="number"] { width: 45px; } .app ul { width: 100%; padding: 0; margin: 0; list-style: none; list-style-type: none; } .app li { display: flex; justify-content: space-between; word-wrap: break-word; }