:root {
  --link-fg-color: #0000ee;
  --link-hover-fg-color: #0000ee;
  --text-fg-color: #000;
  --subtext-fg-color: #666;
  --bg-color: #fff;
  --banner-bg-color: #000;
  --banner-fg-color: #fff;
  --separation-line-color: #000;
  --linkbutton-bg-color: #007900;
  --linkbutton-bg-color-hover: #509950;
  --linkbutton-fg-color: #fff;
  --yes-color: #0a0;
  --no-color: #a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link-fg-color: #60a0ff;
    --link-hover-fg-color: #60a0ff;
    --text-fg-color: #fff;
    --subtext-fg-color: #bbb;
    --bg-color: #000;
    --banner-bg-color: #000;
    --banner-fg-color: #fff;
    --separation-line-color: #fff;
    --linkbutton-bg-color: #007900;
    --linkbutton-bg-color-hover: #509950;
    --linkbutton-fg-color: #fff;
    --yes-color: #3e3;
    --no-color: #e33;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

table {
  border-collapse: collapse;
}
table td {
  padding-right: 0.4em;
}

.comparisontable {
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

.comparisontable td {
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.comparisontable .yesnotd {
  text-align: center
}

.yes {
  color: var(--yes-color);
  font-weight: bold;
}

.no {
  color: var(--no-color);
}

a {
  text-decoration: none;
  color: var(--link-fg-color);
  /*
  font-weight: bold;
  */
}
a:visited {
  color: var(--link-fg-color);
}
a:hover {
  text-decoration: underline;
  color: var(--link-hover-fg-color);
}

ul {
  list-style: none;
}

p.normal {
  margin-top: 1em;
}

h2.normal {
  margin-top: 1em;
}

h3.normal {
  margin-top: 1em;
}

ul.normal {
  margin-top: 1em;
}

ul.normal li {
  margin-top: 0.5em;
}



#slippymap {
  /*
  width: 100vw;
  */
  height: 90vh;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - header-height - nav-height - footer-height);
}

html {
  margin: 0 auto;
  padding-top: 0;
  max-width: 50em;
}

body {
  color: var(--text-fg-color);
  background-color: var(--bg-color);
  margin: 0;
  font-family: sans;
  font-size: 1em;
}

header {
  color: var(--banner-fg-color);
  background-color: var(--banner-bg-color);
  height: 3em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-sizing: border-box
}

header img {
  height: 80%;
  width: auto;
  display: block;
  object-fit: cover;
  border-radius: 20%;
  margin-left: 0.25em;
}

header h1 {
  margin: 0;
  line-height: normal;
  text-decoration: none;
}

#headera,
#headera:focus,
#headera:active,
#headera:hover {
  text-decoration: none;
}

nav a.selected { font-weight: bold; }

.nav-extranav ul {
  padding-left: 1em;
}

.nav-breadcrumbs {
  /*
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  */
}

.nav-extranav {
  border-top: 1px solid var(--separation-line-color);
}

nav {
  border-bottom: 1px solid var(--separation-line-color);
  padding-left: 0.2em;
  padding-right: 0.2em;
}

main {
  padding-left: 0.2em;
  padding-right: 0.2em;
}

footer {
  padding-left: 0.2em;
  padding-right: 0.2em;
  margin-top: 1em;
  border-top: 1px solid var(--separation-line-color);
  text-align: center;
}

a.linkbutton {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 1em;
  margin-top: 1em;
  background-color: var(--linkbutton-bg-color);
  color: var(--linkbutton-fg-color);
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

a.linkbutton:hover {
  background-color: var(--linkbutton-bg-color-hover);
}

.pagination {
  text-align: center;
}

/* single event page */
.event-image {
  width: 100%;
  /*
  max-height: 10em;
  */
}

.event-hostimage {
  max-width: 3em;
  max-height: 3em;
}

.event-title {
  text-align: center;
}

.event-tags {
  text-align: center;
}

.event-shortdescr {
  text-align: center;
  font-weight: bold;
}

.event-descr {
  white-space: pre-wrap;
}

.event-buttonsdiv {
  text-align: center;
}

/* single host page */
.host-image {
  max-height: 10em;
  object-fit: cover;
  border-radius: 50%;
}

.host-descr {
  white-space: pre-wrap;
}

.host-buttonsdiv {
  text-align: center;
}

/* listing of events */

.eventcard {
  width: 100%;
  overflow: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  /*
  border: 1px solid var(--separation-line-color);
  */
}

.eventcard .eventcard-title a {
  color: var(--text-fg-color);
}

.eventcard-image {
    height: 5em;
    width: 8em;
    float: left;
    margin-right: 0.5em;
}

.eventcard-content {
  overflow: auto;
}

.eventcard-title {
    font-size: 1.5em;
    font-weight: bold;
}

.eventcard-datetime {
    font-size: 0.9em;
}

.eventcard-address {
    font-size: 0.9em;
}

.eventcard-host {
    font-size: 0.9em;
}

.eventcard-addtocalendar {
    font-size: 0.9em;
}

.hostcard {
  width: 100%;
  overflow: auto;
  margin-top: 1em;
  margin-bottom: 1em;
  /*
  border: 1px solid var(--separation-line-color);
  */
}

.hostcard a {
  /*
    text-decoration: none;
    color: black;
    */
}

.hostcard .hostcard-title a {
    text-decoration: none;
    color: var(--text-fg-color);
}

.hostcard-image {
    float: left;
    margin-right: 1em;

    height: 5em;
    width: 5em;

    object-fit: cover;
    border-radius: 50%;
}

.hostcard-content {
  overflow: auto;
}

.hostcard-title {
    font-size: 1.5em;
    font-weight: bold;
}

.hostcard-address {
    font-size: 0.9em;
    color: var(--subtext-fg-color);
}

.hostcard-eventcount {
    font-size: 0.9em;
    color: var(--subtext-fg-color);
}
