:root { /* Set sans-serif & mono fonts */ --sans-font: "fira_sansregular", -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif; --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; /* Body font size. By default, effectively 18.4px, based on 16px as 'root em' */ --base-fontsize: 1.15rem; /* Major third scale progression - see https://type-scale.com/ */ --header-scale: 1.25; /* Line height is set to the "Golden ratio" for optimal legibility */ --line-height: 1.618; /* Default (light) theme */ /* inverted both becase I prefer dark theme by default */ --bg: #212121; --bg-transparent: #2f2f2f41; --bg-album-transparent: #2f2f2fe5; --bg-genres: #0d517e; --accent-bg: #2B2B2B; --text: #000000; --text-light: #ABABAB; --border: #666; --accent: #0099ff; --accent-light: #FFECB3; --code: #F06292; --preformatted: #CCC; --disabled: #111; --link-genres: #fff; --link-color: #0d517e; } /* main body */ html { /* Set the font globally */ font-family: var(--sans-font); font-size: var(--base-fontsize); } /* Reset some default styles */ body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; } /* Basic styling */ body { font-family: Arial, sans-serif; } header { background-color: #333; color: #fff; text-align: center; padding: 10px; } nav ul { list-style-type: none; } nav li { display: inline; margin-right: 20px; } nav a { text-decoration: none; color: #fff; } main { padding: 1rem; margin-left: 5rem; margin-right: 5rem; } /* On screens that are 992px wide or less, go from four columns to two columns */ @media screen and (max-width: 992px) { main { margin-left: 0.2rem; margin-right: 0.2rem; } } /* On screens that are 600px wide or less, make the columns stack on top of each other instead of next to each other */ @media screen and (max-width: 600px) { main { margin-left: 0.1rem; margin-right: 0.1rem; } } /* common */ a.genres:link, a.genres:visited { text-decoration: none; padding: 0.3rem; background-color: var(--bg-genres); color: var(--link-genres); transition: all 0.3s ease; display: inline-block; margin: 0.1rem; } a.genres:hover { background-color: var(--accent); } a.album-info:link, a.album-info:visited { text-decoration: none; padding: 0.3rem; border: 1px solid var(--bg-genres); border-radius: 5px; color: var(--bg-genres); transition: all 0.3s ease; display: inline-block; font-size: smaller; } a.album-info:hover { color: var(--accent); border-color: var(--accent); } ul > li { list-style-type: none; margin: 0.1rem; } /* album list page */ main.album-list { display: flex; flex-wrap: wrap; justify-content: space-between; } /* Create four equal columns */ .album-card { flex: 25%; /* border: 1px solid black; */ min-height: 250px; margin: 1rem; background-repeat: no-repeat; background-position: left; background-size: 250px; padding-left: 255px; } /* On screens that are 992px wide or less, go from four columns to two columns */ @media screen and (max-width: 992px) { .album-card { flex: 50%; } } /* On screens that are 600px wide or less, make the columns stack on top of each other instead of next to each other */ @media screen and (max-width: 600px) { .row { flex-direction: column; } .album-card { background-position: top; padding-left: 0; padding-top: 255px; min-height: auto; } } a.album-band:link, a.album-band:visited { text-decoration: none; font-size: large; font-weight: bold; transition: color 0.3s ease; display: block; border-bottom: 1px solid black; text-transform: uppercase; color: var(--link-color); } a.album-band:hover { color: var(--accent) } a.album-title:link, a.album-title:visited { text-decoration: none; font-size: x-large; font-weight: bold; transition: color 0.3s ease; display: block; color: var(--link-color); } a.album-title:hover { color: var(--accent) } p.album-genres { font-size: smaller; margin: 0.5rem; } /* album display page */ section.record { display: flex; flex-direction: row; flex-wrap: wrap; } section.record > div { flex: 25%; margin: 1rem; /* border: 1px solid black; */ } section.record > div > p { margin-top: 1rem; margin-bottom: 1rem; } section.record > div > ul > li { list-style-type: none; } section.record > div > h1 { border-bottom: 1px solid var(--link-color); margin-bottom: 1rem; } section.record-pictures { flex: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 5px; } section.record-pictures summary { margin-bottom: 1rem; font-size: larger; } section.record-pictures img { max-width: 250px; } section.content { flex: 100%; padding: 1rem; border: 1px solid var(--border); } a.record-band:link, a.record-band:visited { text-decoration: none; font-size: large; font-weight: bold; transition: color 0.3s ease; text-transform: uppercase; color: var(--link-color); } a.record-band:hover { color: var(--accent) } /* footer */ footer { background-color: #333; color: #fff; padding: 2rem; font-size: smaller; }