body {
    background-color: #F8F8F8;
    font-family: Arial, Gadget, sans-serif;
    font-size: 16pt;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

button, select, input {
    font-family: Arial, Gadget, sans-serif;
	font-size: 1em;
}

header h1 {
    font-family: Impact, Charcoal, sans-serif;
    font-size: min(21vw, 63pt);
    margin: 0;
    padding: 0;
    text-align: center;
}
header h2 {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: min(3.5vw, 10.5pt);
    margin: max(-4.67vw, -14px) 0 0;
    padding: 0;
    text-align: center;
}

main h1 {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 24pt;
    margin: 10px 0 0;
    padding: 0;
    text-align: center;
}
main h2 {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 18pt;
    margin: 10px 0 -10px;
    padding: 0;
    text-align: center;
}

section h2 {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 18pt;
    margin: 10px 0 -10px;
    padding: 0;
    text-align: center;
}

main p {
	margin-left: auto;
	margin-right: auto;
	max-width: 670px;
}

nav {
    font-size: 24pt;
	margin-top: 20px;
    text-align: center;
}

nav a {
    display: block;
}

nav hr {
    width: 10%;
}

footer {
    font-size: 10pt;
	margin-bottom: 10px;
	margin-top: auto;
}
.txtImg {
    height: 10pt;
    vertical-align: bottom;
}

.lindemanBox:nth-child(2n+1) {
    background-color: #E0E0E0;
}
.lindemanBox:nth-child(2n) {
    background-color: #E8E8E8;
}
.lindemanBox:hover {
    background-color: #f0f0f0;
}

.lindemanBox > span {
	display: inline-block;
	overflow: hidden;
	padding: 2px 3px;
	text-overflow: ellipsis;
    vertical-align: text-top;
}

.lindemanBox.header {
    background-color: black;
    border-right: 1px solid #CCC;
    color: white;
    cursor: pointer;
    padding: 3px 5px;
    position: sticky;
    top: 0;
    user-select: none;
}

.lindemanBox {
	white-space: nowrap;
}
.lindemanBox.expanded {
	white-space: normal;
}
.albumItem {
	margin-left: 30px;
	text-indent: -15px;
}

/* List layout */

.lindemanBox > .mark  { width:  2%; }
.lindemanBox > .title { width: 16%; }
.lindemanBox > .name  { width: 16%; }
.lindemanBox > .show  { width: 21%; }
.lindemanBox > .album { width: 22%; }
.lindemanBox > .length{ width:  5%; }
.lindemanBox > .icons { width: 15%; white-space: wrap; }
.lindemanBox > .nameTitle { display: none; }
.lindemanBox > .expand{ display: none; float: right; padding: 0; text-align: right; }
.lindemanBox.expanded > .mark  { display: none; }
.lindemanBox.expanded > .nameTitle  { width: 94%; }

@media only screen and (max-width: 1400px) {
	.lindemanBox > .mark  { width:  2%; }
	.lindemanBox > .title { width: 20%; }
	.lindemanBox > .name  { width: 20%; }
	.lindemanBox > .show  { width: 27%; }
	.lindemanBox > .album { display: none; }
	.lindemanBox > .length{ width:  5%; }
	.lindemanBox > .icons { width: 25%; white-space: nowrap; }
}

@media only screen and (max-width: 1130px) {
	.lindemanBox > .mark  { width:  2%; }
	.lindemanBox > .title { width: 28%; }
	.lindemanBox > .name  { width: 28%; }
	.lindemanBox > .show  { width: 28%; }
	.lindemanBox > .album { display: none; }
	.lindemanBox > .length{ width:  6%; }
	.lindemanBox > .icons { display: none; }
	.lindemanBox > .expand{ display: block; }
	.lindemanBox.expanded > .nameTitle  { width: 92%; }
	.lindemanBox.expanded > .nameTitle  {
		padding-right: 27px; /* 4 extra columns */
	}
}

@media only screen and (max-width: 780px) {
	.lindemanBox > .mark  { display: none; }
	.lindemanBox > .title { width: 46%; }
	.lindemanBox > .name  { width: 46%; }
	.lindemanBox > .show  { display: none; }
	.lindemanBox > .album { display: none; }
	.lindemanBox > .length{ display: none; }
	.lindemanBox > .icons { display: none; }
	.lindemanBox.expanded > .nameTitle  { width: 92%; }
	.lindemanBox.expanded > .nameTitle  {
		padding-right: 9px; /* 1 extra column */
	}
}

@media only screen and (max-width: 550px) {
	.lindemanBox > .title { display: none; }
	.lindemanBox > .name  { display: none; }
	.lindemanBox > .nameTitle  {
		width: 92%;
		display: inline-block;
	}
	.lindemanBox.expanded > .nameTitle  { width: 92%; }
	.lindemanBox.expanded > .nameTitle  {
		padding-left: 3px;
		padding-right: 3px;
	}
}

.lindemanBox.expanded span {
	display: inline-block;
	width: unset;
}	

.lindemanBox.expanded .labled, .lindemanBox.expanded .icons {
	display: block;
	margin-left: 10px;
}

.icons img, .calInfoItem img {
	height: 21px;
}

/* Larger icons on details pages. */
.urls img, .iconLink img {
	height: 42px;
}

/* Expandable areas for filtering and sorting */

.expandableArea {
	display: inline-block;
}

.expandableArea .areaExpand {
	display: inline-block;
    vertical-align: middle;
}

.expandableArea .areaContents, .expandableArea .areaCollapse {
	display: none;
}

.expandableArea.expanded .areaExpand {
	display: none;
}

.expandableArea .modal {
	background-color: white;
	display: none;
	position: fixed;
	height: 100%;
	left: 0;
	opacity: 0.9;
	top: 0;
	width: 100%;
	z-index: 1102;
}

.expandableArea.expanded .modal {
	display: block;
}

.expandableArea.expanded .areaContents {
	display: block;
	opacity: 1;
	padding: 10px;
	position: absolute;
	margin: auto;
	z-index: 1104;
}

.expandableArea.expanded .areaCollapse {
	display: inline-block;
}

.expandableArea label, .expandableArea button {
	display: inline-block;
	margin: 3px 10px 10px 0;
}

#sortingArea label {
    white-space: nowrap;
	width: auto;
}

#filterArea label {
	width: 60px;
}

.expandableArea.expanded .areaContents, .expandableArea .areaHeader {
    background-color: white;
    border: 1px solid #CCC;
}
.expandableArea .areaHeader {
	display: inline-block;
	padding: 5px;
	position: relative;
}
.expandableArea.expanded .areaContents {
	margin-top: -2px;
}

@media only screen and (max-width: 500px) {
    .areaContents label {
        display: block;
		margin: 10px 0 5px;
    }
    .areaContents button {
        margin-top: 20px;
    }
}

#filterResult {
    color: gray;
    white-space: nowrap;
}

/* Calendar layout */

table {
    border-collapse: collapse;
    width: 100%;
}
#kalender-table {
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    break-inside: avoid;
    position: sticky;
    top: 0;
    user-select: none;
    z-index: 5;
}

table td, table th {
    border: 1px solid #CCC;
    color: black;
    padding: 2px 5px;
    vertical-align: text-top;
    white-space: nowrap;
}
#kalender-table td {
    border-right: 0;
    border-top: 0;
}
table tr td:first-child {
    border-left: 0;
}
table tr:last-child td {
    border-bottom: 0;
}
table tr td:last-child {
    border-right: 0;
    white-space: normal;
}
img {
    margin: 0;
    padding: 2px 3px 0 3px;
}
a {
    color: black;
    text-decoration: none;
}
a:hover, .yearInfo:hover {
    text-decoration: underline;
}
h1 a:hover, h2 a:hover, .expand a:hover {
    text-decoration: none;
}
.comment, .textIcon, .yearInfo {
    cursor: pointer;
}

#kalender-div {
/*    column-count: 3;*/
}
.calMonthYear, .monthCalendarHeader {
	background: rgba(255, 255, 255, 0.8);
    font-family: "Arial", Gadget, sans-serif;
    font-size: 20pt;
    font-weight: normal;
    padding-top: 5px;
}

@media only screen and (max-width: 520px) {
	.calShowName {
		display: none;
	}
}

.calDateDay {
    cursor: default;
    font-family: "Arial", Gadget, sans-serif;
    font-weight: normal;
    width: 55px;
}
.calDate {
    float: right;
    font-size: 32pt;
    margin-left: 0;
}
.calDay {
    clear: both;
    float: right;
    font-size: 10pt;
    font-variant: small-caps;
}
.calInfo {
    vertical-align: top;
}
.calSunday {
    color: darkred;
}
.calNumberOfShows0 {
    background-image: linear-gradient(to bottom right,  transparent calc(50% - 1px), gray, transparent calc(50% + 1px));
}
.calInfoItem {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid #CCC;
    float: left;
    margin: 5px 3px;
    min-width: 250px;
    padding: 2px;
    text-align: center;
}
.unsureDate {
    opacity: 0.5;
}

/* Button for scrolling to top of page */

.floatButton {
    opacity: 0.8;
    background-color: black;
    color: white;
    border-radius: 22px;
    cursor: pointer;
    float: right;
    font-size: 30pt;
    margin-right: 21px;
    margin-top: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

#topButton {
    padding: 0 4px;
}


html:not([data-scroll='0']) #topButton {
  display: block;
}

.moon {
    float: left;
    height: 15px;
    margin: 4px 0 0 -8px;
    padding: 0;
    width: 15px;
}

#tooltipDiv {
    background-color: lightyellow;
    color: black;
    padding: 2px 4px;
    position: absolute;
}
#diagram-table {
    table-layout: fixed;
}

.allYears {
	margin: 20px auto 0;
    text-align: center;
}

.monthCalendarHeader {
    font-size: 20pt;
    text-align: center;
}

.monthCalendarHeader a:hover, .staticLink:hover, .calMonthYear a:hover {
    text-decoration: none;
}

.calNumberHeader > div {
	margin-top: 50px;
    transform: translate(0, 150px) rotate(-90deg);
}

.calNumberHeader > div > span {
    padding: 10px;
    white-space: nowrap;
}

.calNumberRow, .calYearRow, .calMonthRow {
    text-align: center;
}

.calYearBarWrapper {
	display: block;
}

.calYearBarAligner {
	display: inline;
	vertical-align: text-top;
}
.calYearBar {
    background-color: darkseagreen;
}

.calNumberRow td {
    padding: 2px 0;
}

.calNumberHeader {
    max-width: 25px;
	overflow: hidden;
	vertical-align: top;
    width: 25px;
}

.calMonthHeader {
    max-width: 25px;
    overflow: hidden;
    width: 25px;
}

.calMonthItem {
    overflow: hidden;
}

.calBarRow td {
    vertical-align: bottom;
}

.greyed {
    opacity: 0.5;
}

#settings {
    z-index: 20;
}
#details {
    position: relative;
}
.popupOuter h1 {
    font-family: Arial, Gadget, sans-serif;
    font-size: 20pt;
    margin: 0 25px 20px 40px;
}
.popupOuter h2 {
    font-family: Arial, Gadget, sans-serif;
    font-size: 15pt;
    margin: 0 25px;
}
#details label {
    font-weight: bold;
}
#details .sum p.urls {
    margin-top: 0px;
}
#details a {
    background-color: #eef;
}
#details p.urls a, #details a.iconLink {
    background-color: unset;
}

.noselect {
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.speaker0 { color: darkgreen; }
.speaker1 { color: darkviolet; }
.speaker2 { color: darkblue; }
.speaker3 { color: darkred; }

@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
    }
	.lindemanBox:nth-child(2n+1), table tr:nth-child(2n+1) td {
        background-color: #202020;
    }
	.lindemanBox:nth-child(2n), table tr:nth-child(2n) td, table th {
        background-color: #282828;
    }
	.lindemanBox:hover, table tr:hover td {
        background-color: #111;
    }
    #lindeman-table th {
        background-color: #888;
        border-right: 1px solid #444;
        color: black;
    }
    table td, table th {
        border: 1px solid #888;
    }
    body, h1, h2, p, a, table td, table th, #filterArea, select, input, button, li {
        color: lightgray;
    }
    #filterArea {
        background-color: #222;
        border: 1px solid #888;
    }
    .grayText {
        color: darkgray;
    }
    select, input, button {
        background-color: black;
        border: 1px solid #888;
    }
    .calSunday {
        color: lightcoral;
    }
    .floatButton {
        background-color: white;
        color: black;
    }
    .moon {
        filter: invert(1);
    }
    .button {
        color: white;
    }
    .button:hover {
        background-color: #202020;
        border: 1px solid #888;
    }
    .txtImg {
        filter: invert(1);
    }
    .calInfoItem {
        background: rgba(255, 255, 255, 0.1);
    }
    .popupOuter {
        background-color: black;
        border: 1px solid white;
    }
    #details a {
        background-color: #003;
    }
	.calMonthYear, .monthCalendarHeader {
		background: rgba(0, 0, 0, 0.8);
    }
	.expandableArea .modal {
		background-color: #333;
    }
	.expandableArea.expanded .areaContents, .expandableArea .areaHeader {
		background-color: black;
		border: 1px solid #444;
	}
    .speaker0 { color: palegreen; }
    .speaker1 { color: plum; }
    .speaker2 { color: lightblue; }
    .speaker3 { color: lightred; }
}

@media print {
    #sortingArea, #filterArea, .floatButton, .buttonActive, .qDiv, .moon {
        display: none !important;
    }
}

@media only screen and (max-width: 1439px) {
    .mark-header, .title-header, .name-header, .album-header, .show-header, .length-header {
        column-width: auto;
    }
    table td {
        white-space: normal;
    }
}

@media only screen and (max-width: 800px) {
    .calYearRow {
		text-align: left;
	}

    .calYearItem {
        height: 50px;
        width: 10px;
        max-width: 10px;
    }

    .calYearItem > div {
		margin-top: 20px;
        transform: rotate(-90deg);
    }

    .calYearItem > div > span {
      padding: 5px;
    }
}

@media only screen and (max-width: 1000px) {
    .calMonthRow {
		text-align: left;
	}

    .calMonthItem {
        height: 100px;
        width: 10px;
        max-width: 10px;
    }

    .calMonthItem > div {
		margin-top: 17px;
        transform: rotate(90deg);
    }

    .calMonthItem > div > span {
      padding: 5px;
    }

    .calMonthHeader {
        height: 100px;
        width: 10px;
        max-width: 10px;
    }

    .calMonthHeader > div {
        transform: rotate(90deg);
    }

    .calMonthHeader > div > span {
      padding: 5px;
    }
}
@media only screen and (max-width: 900px) {
    .calMonthItem > div {
		margin-top: 13px;
    }
}
@media only screen and (max-width: 800px) {
    .calMonthItem > div {
		margin-top: 9px;
    }
}
@media only screen and (max-width: 700px) {
    .calYearItem > div {
		margin-top: 24px;
    }
    .calMonthItem > div {
		margin-top: 5px;
    }
}
@media only screen and (max-width: 600px) {
    .calYearItem > div {
		margin-top: 28px;
    }
    .calMonthItem > div {
		margin-top: 1px;
    }
}
@media only screen and (max-width: 500px) {
    .calYearItem > div {
		margin-top: 32px;
    }
    .calMonthItem > div {
		margin-top: -3px;
    }
}
@media only screen and (max-width: 400px) {
    .calYearItem > div {
		margin-top: 36px;
    }
    .calMonthItem > div {
		margin-top: -7px;
    }
}
