body {
  font-family: sans-serif;
  background-image: url("/img/bg-checkerboard.png");
  background-repeat: repeat;
}

#main-container {
  max-width: 980px;
  margin: auto;
  color: black;
  font-size: 14px;
  text-transform: lowercase;
  display: flex;
}

header {
  text-align: center;
}

nav, main {
  font-size: 18px;
}

main {
  padding: 10px 30px 20px 30px;
}

.sticky-col {
  height: fit-content;
  position: sticky;
  top: 10px;
  overflow-y: hidden;
}
  
#left-col {
  width: 170px;
  order: 0;
}

#center-col {
  max-width: 620px;
  border: 1px solid black;
  border-bottom: 3px solid black;
  border-right: 3px solid black;
  box-sizing: border-box;
  margin-left: 10px;
  margin-right: 10px;
  order: 5;
  background-color: #fff;
}

#right-col {
  width: 170px;
  order: 10;
}

.bar-item {
  width: 100%;
  border: 1px solid black;
  border-right: 3px solid black;
  border-bottom: 3px solid black;
  box-sizing: border-box;
  margin-bottom: 10px;
  background-color: #fff;
  user-select: none;
}

.bar-header {
  width: 100%;
  display: block;
  border-bottom: 1px solid black;
  color: black;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  align-items: center;
}

.bar-organizer {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

#mobile-nav-row {
  font-size: 18px;
  margin-bottom: 10px;
  width: 100%;
  display: none;
  align-items: center;
}

#mobile-nav-row .bar-item {
  padding: 5px;
  margin-bottom: 0px;
}

.spacer {
  flex-grow: 1;
  text-align: center;
}

#mobile-nav-outside {
  text-align: center;
}

#mobile-nav-inside {
  text-align: center;
}

#left-col .bar-organizer {
  text-align: right;
  padding-right: 3px;
}

#right-col .bar-organizer {
  text-align: left;
  padding-left: 1px;
}

a.bar-header {
}

a.bar-header:hover {
  background-color: #eee;
}

.bar-header img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  margin-left: 5px;
}

.bar-content {
  padding: 5px;
}

.bar-content p {
  width: 100%;
  margin: 0px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.bar-content a {
  color: black;
}

.bar-content a:hover {
  background-color: #eee;
}

h1 {
  font-size: 20px;
}

img {
  max-width: 100%;
}

hr {
  border: none;
  border-top: 1px solid black;
}

.image-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 10px;
  padding: 0px;
}

figure {
  margin: 0px;
}

figcaption {
  text-align: center;
}

.image-container {
  width: 100%;
  height: 14rem;
}

.image-container img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 10rem;
}

/* when links are 2 to a row */
@media(max-width:586px) {
}

/* when both sidebars do not fit */
@media(max-width:950px) {
  #main-container {
    flex-direction: column;
    max-width: 640px;
  }

  #mobile-nav-row {
    display: flex;
  }

  #mobile-nav-inside:hover {
    background-color: #eee;
  }

  #mobile-nav-outside:hover {
    background-color: #eee;
  }

  .sticky-col {
    height: unset;
    position: unset;
    top: unset;
    overflow-y: unset;
  }

  .bar-item {
    max-width: max(150px, min(calc(50% - 20px), 170px));
    margin-left: 10px;
    margin-right: 10px;
  }

  #center-col {
  }

  .bar-organizer {
    display: none;
  }

  #left-col {
    display: none;
    grid-auto-columns: auto;
    flex-wrap: wrap;
    width: 100%;
  }

  #right-col {
    order: 1;
    display: none;
    grid-template-columns: repeat(auto-fill, 1fr);
    flex-wrap: wrap;
    width: 100%;
  }
}
