main {
  padding-top: 1rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

#top-player-info {
	display: grid;
  position: sticky;
  top: var(--nav-height);
  width: 100%;
	font-size: 250%;
	text-align: center;
  background-color: var(--background);
	align-items: baseline;
  justify-items: center;
  z-index: 15;
}
@media (orientation: landscape) {
  #top-player-info {
    grid-auto-flow: column;
    font-size: clamp(150%, 3vw, 250%);
  }
}
#server-select {
  padding: 0;
  border: none;
  box-shadow: inset 0 -0.1em 0 0 currentColor;
}
#server-select > option {
  font-size: 50%;
}
#charname-seach {
  background: none;
  color: var(--unfocused);
  border: none;
  outline: none;
  box-shadow: inset 0 -0.1em 0 0 currentColor;
}
#charname-seach:focus {
  color: var(--secondary-color);
}
#player-search-label {
  opacity: .5;
  max-width: fit-content;
}
#player-search:checked + #player-search-label,
#player-search:hover + #player-search-label {
  opacity: 1;
}
#player-search:checked ~ .search-input {
  display: block;
}
#player-search:checked ~ .static-info {
  display: none;
}
.search-input {
  display: none;
}
.player-name {
  width: 11em;
  max-width: 11em;
}
#player-name[href]:hover {
  text-shadow:
    0 0 3rem currentColor,
    0 0 1rem currentColor;
}
.player-server {
  width: 12em;
}
#player-overall {
  min-width: max-content;
}
#player-overall-points {
  display: inline-block;
  min-width: 3.2em;
  text-align: right;
}
#player-overall-rank {
  display: inline-block;
  font-size: 33%;
  min-width: 4em;
  text-align: left;
}
#spec-wrap {
  min-width: max-content;
}
#spec-wrap label {
  padding: 0;
  max-height: 1em;
}
#spec-wrap img {
  opacity: .2;
  max-width: 1em;
  min-width: 1em;
  max-height: 1em;
  min-height: 1em;
}
#spec-wrap input:checked + label > img {
  opacity: 1;
}

#points-body tr:nth-child(11) td {
  border-top: .1em solid var(--primary-color);
}
.cell-dps {
  min-width: 4em;
}
.cell-rank,
.cell-points {
  min-width: 3.2em;
}
.cell-dur {
  min-width: 2.6em;
}
.cell-date {
  min-width: 4.1em;
}
.cell-raids {
  min-width: 1.75em;
}


.info {
  font-size: 200%;
}
.error {
  color: crimson;
}

#tooltip-points {
  position: fixed;
  width: fit-content;
  background-color: var(--background);
  padding: .5em;
  border-radius: 6px;
  box-shadow:
    inset 0 0 .25rem .1rem var(--primary-color),
          0 0  .5rem .1rem var(--primary-color);
  z-index: 5;
}
#tooltip-points td {
  text-align: right;
  padding-inline: .25em;
}
#tooltip-points tr.no-decimal td.value {
  padding-right: 1.05em;
}
#tooltip-points tr td:first-child {
  width: 5.5rem;
  min-width: 5.5rem;
}
.td-max,
.td-player {
  width: 3.5rem;
  min-width: 3.5rem;
}
.td-points {
  min-width: 2rem;
}

#wraprwprperweproe {
  --icon-size: 4rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}
#points-body td:not(.sticky-column) {
  text-align: right;
  padding-inline: .25em; 
}
#player-points-wrap {
  position: relative;
  font-size: 200%;
}
.hide-other-bosses tr:nth-child(n+11) {
  display: none;
}
.table-wrap {
  --min-width: 6.5em;
  --width: calc(100vw - 25rem - 25em);
  --max-width: 13em;
  --sticky-column-width: clamp(var(--min-width), var(--width), var(--max-width));
  width: 100%;
  height: unset;
}

#toggle-more-bosses-wrap {
  display: flex;
  justify-content: center;
  margin-top: .5em;
}
#toggle-more-bosses {
  font-size: 150%;
}
@media (orientation: landscape) {
  #wraprwprperweproe {
    flex-direction: row;
  }
  #player-points-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100% - 29rem);
  }
  #loading-points,
  #missing-points {
    max-width: calc(100% - 29rem);
  }
}

#rank-info,
#rank-info-tt {
  position: fixed;
  right: 0;
  bottom: 0;
  padding: .5em;
  background-color: var(--background);
  box-shadow:
    inset 0 0 .25rem .1rem var(--primary-color),
          0 0  .5rem .1rem var(--primary-color);
}
#rank-info {
  padding: .25em;
  z-index: 50;
}
#rank-info:hover #rank-info-tt {
  display: block;
}
#rank-info-tt {
  display: none;
  min-width: max-content;
}
@media (orientation: portrait) {
  #rank-info,
  #rank-info-tt {
    top: var(--margin-top);
    bottom: auto;
  }
  #rank-info-tt {
    min-width: 90vw;
  }
}


.heriloom {color: #ACBD80;}
.legendary {color: #FF8011;}
.epic {color: #A32AB9;}
.rare {color: #0560DD;}
.uncommon {color: #1EFF0B;}
.heroic {color: #1EFF00;}
.hidden {visibility: hidden;}
.enchant {color: #18FF06;}
.missing {color: red;}
.loading {color: gray;}
.color-set-name {color: #DBB402;}

.blank-line {
  visibility: hidden;
}

#gear-block {
  --width: calc(var(--icon-size) * 7);
  --height: calc(var(--icon-size) * 9);
  min-width: var(--width);
  max-width: var(--width);
  min-height: var(--height);
  max-height: var(--height);
}
@media (orientation: portrait) {
  #gear-block {
    place-self: center;
  }
}
#gear-wrap {
  display: grid;
  grid-template-areas: 
  "gear-left gear-info gear-right"
  ". weapons .";
}
#gear-wrap td:first-child {
  text-align: right;
  width: 3em;
  min-width: 3em;
}
#gear-wrap td:last-child {
  padding-left: .25em;
  white-space: nowrap;
}

#gear-info {
  grid-area: gear-info;
  position: relative;
  display: flex;
  height: 100%;
  width: calc(var(--icon-size) * 5);
  font-size: 150%;
  flex-direction: column;
  row-gap: 0;
}
#gear-right {
  grid-area: gear-right;
}
#gear-left {
  grid-area: gear-left;
}
#table-stats-wrap {
  max-height: 13.5em;
  overflow-y: auto;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--background);
}
#table-stats {
  width: 100%;
}
#gear-left,
#gear-right {
  display: grid;
}
#weapons {
  grid-area: weapons;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-evenly;
}
#gear-wrap .slot img {
  position: relative;
  min-width: var(--icon-size);
  min-height: var(--icon-size);
  max-width: var(--icon-size);
  max-height: var(--icon-size);
}
.slot {
  position: relative;
}
.slot::after {
  content: '';
  position: absolute;
  inset: 0 0 0 0;
  box-shadow:
    inset  .1em  .1em .5em var(--background),
    inset -.1em -.1em .5em var(--background);
}
.slot > span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 125%;
  text-shadow:
    -.1em -.1em .1em var(--background),
     .1em -.1em .1em var(--background),
    -.1em  .1em .1em var(--background),
     .1em  .1em .1em var(--background);
  z-index: 1;
}

.item-name {
  font-size: 120%;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#set-wrap {
  font-size: 125%;
  margin-top: auto;
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: end;
}

#tooltip-stats {
  max-width: 19rem;
  font-size: 1rem;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--background);
  padding: .5em;
  border-radius: 6px;
  box-shadow:
    inset 0 0 .25rem .1rem var(--primary-color),
          0 0  .5rem .1rem var(--primary-color);
  z-index: 10;
}
#tooltip-stats span {
  display: inline-block;
  min-width: 2.5em;
  text-align: right;
  padding-right: .25em;
}
.row-spec {
  position: relative;
}
.row-spec .name a {
  position: absolute;
  right: 0;
}
