/* Kiss Bands Tree */
/* kissbandstree.com/style.css */

/* VARIABLES */

:root {
  --color1: #0080ff;
  --color2: #ff00ff;
  --color3: #ff0;
  --grey1: #222;
  --grey2: #444;
  --white: #fff;
  --black: #000;
  --font-size: 22px;
  --maxwidth: 4096px;
}

/* TAGS */

/* GENERAL */

* {
  box-sizing: border-box;
  /* border: 1px solid var(--color1); */
}

html {
  background-color: var(--black);
  font-size: var(--font-size);
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: Arial, Verdana, sans-serif;
  font-size: var(--font-size);
  font-weight: normal;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-size: 26px;
  font-weight: bold;
  margin: 0px;
}

img {
  vertical-align: bottom;
}

span {
  white-space: nowrap;
}

footer {
  padding: 16px;
}

/* TABLE */

table {
  border-collapse: collapse;
  margin: 0px auto;
  table-layout: fixed;
  width: 100%;
}

thead {
  background-color: var(--black);
}

td,
th {
  border: 1px solid var(--grey2);
  overflow: hidden;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--black);
}

/* LINKS */

a {
  text-decoration: none;
  color: var(--color1);
}

a:not(:has(img, svg)):hover {
  background: var(--white);
}

a:visited {
  color: var(--color2);
}

/* FORM */

textarea {
  background-color: var(--grey1);
  border: none;
  color: var(--white);
  font-family: Arial, Verdana, sans-serif;
  font-size: 18px;
  max-width: 1018px;
  outline: none;
  padding: 10px;
  width: 100%;
}

select,
input[type="text"],
input[type="number"],
input[type="select"] {
  background-color: var(--black);
  border: 1px solid var(--grey2);
  color: var(--white);
  font-size: 18px;
  height: 30px;
  margin: 0px;
  padding: 6px;
  width: 200px;
}

button {
  background: var(--grey1);
  border: none;
  color: var(--white);
  cursor: pointer;
  flex: 1;
  font-size: 18px;
  height: 50px;
  margin-bottom: 7px;
  padding: 10px 10px;
  width: 100px;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border: 1px solid var(--grey2);
  border-radius: 0;
  cursor: pointer;
  margin-right: 8px;
}

::selection {
  background-color: var(--color1);
  color: var(--white);
}

/* Apply focus styles on devices with hover capability (e.g., desktop) */
@media (hover: hover) {
  :focus {
    outline: 1px solid var(--color1);
    outline-offset: -1px;
  }
}

/* Apply focus styles on devices without hover capability (e.g., phones) */
@media (hover: none) {
  :focus {
    outline: none;
  }
}

/* CLASSES */

/* GENERAL */

.icons {
  height: 32px;
  width: 32px;
  fill: var(--white);
  display: block;
  margin: 0 auto;
}

.no-margin {
  margin: 0;
}

.show-pointer {
  cursor: pointer;
}

.standard {
  margin: 20px auto 0;
  max-width: var(--maxwidth);
  padding: 10px;
  text-align: center;
  width: 100%;
}

.small-top-margin {
  margin: 1px auto 0;
}

.image-container {
  margin: 20px auto 0;
  max-width: var(--maxwidth);
  text-align: center;
  width: 100%;
}

.left-top {
  text-align: left;
  vertical-align: top;
}

.justify {
  text-align: justify;
}

.colored {
  background-color: var(--grey1);
}

.tight {
  line-height: 0;
}

.not-wrap {
  white-space: nowrap;
}

.list {
  text-align: center;
}

.grid-container {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  line-height: 0;
  margin: 20px auto;
  max-width: var(--maxwidth);
  width: 100%;
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-item a {
  display: block;
  /* ensures a full-size, focusable hit area */
}

.grid-item img {
  display: block;
  /* keep this to avoid baseline gaps */
  width: 100%;
  height: auto;
}

.grid-container-artist {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  line-height: 0;
  margin: 20px auto;
  max-width: var(--maxwidth);
  width: 100%;
}

.full {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 1018px;
  width: 100%;
}

.small-toc {
  height: 32px;
  vertical-align: bottom;
  width: auto;
}

.heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxwidth);
  padding: 10px;
  position: relative;
}

.less-padding {
  padding: 2px;
}

.footer {
  display: block;
  height: auto;
  margin: 20px auto 0;
  max-width: var(--maxwidth);
}

.logo {
  background: var(--grey1);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: var(--maxwidth);
  position: relative;
  width: 100%;
}

/* Table of contents */

.toc-container {
  background-color: var(--grey1);
  border: 0px;
  display: none;
  height: calc(100vh);
  left: 0px;
  right: 0;
  bottom: 0;
  padding: 0px;
  position: absolute;
  top: 55px;
  width: 100%;
  z-index: 999;
  overflow-y: auto;

}

.toc-container ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.toc-container ul li {
  color: var(--white);
  padding: 0px 10px;
  text-decoration: none;
}

.toc-open {
  display: block;
}

/* Members and Last modified on front page */

.top-line {
  align-items: center;
  background: var(--grey1);
  border-bottom: 2px solid var(--black);
  display: flex;
  position: relative;
  justify-content: center;
  margin: 20px auto 0;
  max-width: var(--maxwidth);
  padding: 10px;
  height: 64px;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: center;
  /* centers the h2 block */
}

.top-line .icons {
  /* kill global centering on icons here */
  margin: 0;
}

.top-line h2 {
  flex: 1;
  /* h2 takes center lane */
  margin: 0;
  text-align: center;
  position: relative;
}

.top-line h2 .icons {
  /* index.php: icon inside the h2, pin left INSIDE h2 */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.top-line> :last-child {
  /* rightmost flex item (svg or a) hugs the right */
  margin-left: auto;
}

.top-line>svg.icons {
  /* bands_grid.php: left svg stays at the left edge */
  flex: 0 0 auto;
}

.last-container {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxwidth);
  width: 100%;
}

.band-item {
  align-items: flex-start;
  flex-basis: calc(50% - 20px);
  margin: 0 auto;
  max-width: 1018px;
  padding: 10px;
}

@media (min-width: 768px) {
  .band-item {
    flex-basis: calc(25% - 20px);
  }
}

.member-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxwidth);
  overflow: hidden;
  padding: 10px;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxwidth);
  overflow: hidden;
  padding: 10px;
}

.artist-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--maxwidth);
  overflow: hidden;
  padding: 10px;
}

.collapsed {
  display: none;
}

.artist-item {
  align-items: flex-start;
  flex-basis: calc(50% - 20px);
  margin: 0 auto;
  padding: 10px;
}

.artist-item img {
  width: 64px;
  height: 64px;
}

@media (min-width: 1024px) {
  .artist-item {
    flex-basis: calc(20% - 20px);
  }
}

.skip-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  /* space between icons */
}

.skip-button {
  margin: 0;
  /* margin handled by gap now */
}

/* TABLE */

@media (max-width: 768px) {
  .hide-on-small-screen {
    display: none;
  }
}

.table-container {
  margin: 20px auto 0;
  max-width: var(--maxwidth);
  padding: 0px;
  text-align: center;
  width: 100%;
}

.table-container tr {
  height: 50px;
}

.table-container tr td img {
  max-height: 16px;
  overflow: hidden;
  vertical-align: middle;
}

/* Dark and light mode toggle */

.invert-colors {
  filter: invert(1) hue-rotate(180deg);
}

.invert-colors .bitmap {
  filter: invert(1) hue-rotate(180deg);
}

.wrapper {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 20px auto 0;
  max-width: var(--maxwidth);
  padding-left: 0px;
  padding-right: 0px;
}

@media (min-width: 2048px) {
  .center-on-medium-screen {
    text-align: center;
  }
}

.artist-name.artist-hover:not(:has(img)) {
  background-color: var(--white);
  cursor: pointer;
}

.band-photo {
  width: 32px;
  height: auto;
  object-fit: cover;
}

.band-photo-wrap {
  display: inline-block;
  line-height: 0;
  vertical-align: -9px;
  margin-right: 8px;
}

.artist-photo {
  height: 32px;
  width: auto;
  display: block;
}

.artist-photo-wrap {
  display: inline-block;
  vertical-align: -4px;
  margin-right: 2px;
}

h2 .artist-photo-wrap {
  margin-right: 16px;
}

/* hide checkbox but keep it accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* spacing and pointer */
.artist-toggle {
  display: inline-block;
  margin: 0;
  cursor: pointer;
}

.filter-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 auto 0;
  max-width: var(--maxwidth);
  padding: 10px 0;
}

/* keep the no-shift highlight, now not tied to .top-line */
input[name="member"]:checked+.artist-toggle .artist-photo-wrap {
  box-shadow: 0 0 0 2px var(--color3);
}

.rounded {
  border-radius: 50%;
}

.toc-container .icons {
  margin-right: 8px;
}

h1 .icons {
  display: inline-block;
  position: relative;
  margin: 0 .35em 0 0;
  vertical-align: middle;
  top: -4px;
  width: 32px;
  height: 32px;
}

.capture {
  width: 1024px;
  max-width: 90%;
}

/* Any anchor that contains an .icons SVG */
a:has(> svg.icons) {
  display: inline-block;
}

/* Stop the global centering margin on icons when inside links */
a:has(> svg.icons) .icons {
  margin: 0;
}

/* CALENDAR */

/* Calendar spacing between months */
.grid-container.calendar {
  line-height: 1.45;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
  /* was 320px */
  gap: 16px 16px;
}

@media (max-width: 600px) {
  .grid-container.calendar {
    grid-template-columns: 1fr;
  }
}

/* keep photos inline */
.calendar .grid-item a {
  display: inline-block;
}

/* month grid stays the same */
.calendar .month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar .daycell {
  position: relative;
  background: var(--grey1);
  padding: 4px;
  min-height: 72px;
  height: 72px;
}

/* BIG background date (no selection/click) */
.calendar .daynum {
  position: absolute;
  inset: 0;
  /* fill the cell */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  /* tweak if you want larger */
  color: var(--black);
  /* as requested */
  user-select: none;
  pointer-events: none;
  z-index: 0;
  /* behind photos */
}

/* photos sit above the number */
.calendar .faces {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.calendar .artist-photo {
  height: 24px;
  width: auto;
}

.calendar .artist-photo-wrap {
  line-height: 0;
  margin-right: 0px;
}

/* highlight today's cell */
.calendar .daycell.today {
  background: var(--color1);
  border-color: var(--color1);
}

.calendar .daycell:hover {
  background: var(--grey2);
}

/* END OF FILE */