:root {

}

:root[color-mode="light"] {
  --rank-backer: rgba(230,230,230, 0.5);
  --all-time-back: rgba(230,230,230, 0.5);
  --all-time-border: 1px solid rgb(230,230,230);
  --container-shadow-grey: var(--std-shadow-thick);
  --container-shadow-grey-thin: var(--std-shadow);
  --container-shadow-rank: var(--std-shadow);

  --liv-bubble: rgba(17,91,91, 0.5);
  --liv-bubble-border: 1px solid rgba(17,91,91, 0.3);

  --range-divider-color: var(--container-color-base);
  --range-divider-border: var(--container-border-base);

  --grad-year-background: rgba(255, 220, 0, 0.2);
  --grad-year-backgroundd: #ffdc004d;
  --grad-year-background-solid: rgba(255, 220, 0, 0.5);

  --fin-shadow: 0px 0px 1px 0px rgba(0,0,0,0.9);
  --event-hover: rgba(255, 220, 0, 0.35);
    --container-shadow-rank: var(--std-shadow);

  --container-color-base-1: rgba(240,240,240, 0.5);
  --container-color-base-2: rgba(240,240,240, 0.1);
}

:root[color-mode="dark"] {
  --rank-backer: rgba(80,80,80, 0.5);
  --all-time-back: rgba(61, 153, 112, 0.15);
  --all-time-border: 1px solid rgba(61, 153, 112, 0.2);
  --container-shadow-grey: var(--std-shadow-thick);
  --container-shadow-grey-thin: var(--std-shadow);
  --container-shadow-rank: var(--std-shadow);

  --liv-bubble: rgba(203, 251, 126, 0.5);
  --liv-bubble-border: 1px solid rgba(203, 251, 126, 0.3);

  --range-divider-color: var(--black-base);
  --range-divider-border: 1px solid var(--black-base);

  --grad-year-background: rgba(61, 153, 112, 0.2);
  --grad-year-backgroundd: rgba(61, 153, 112, 0.35);
  --grad-year-background-solid: rgba(61, 153, 112, 0.5);

  --event-hover: rgba(61, 153, 112, 0.3);

  --container-color-base-1: rgba(35,35,35, 0.5);
  --container-color-base-2: rgba(35,35,35, 0.1);
}

.top-row-v2 {
  overflow: visible;
}

.achieve-square {
  position: relative;
  float: left;
  margin: 1px;
  top: 0.5px;
  height: 10px;
  width: 10px;
  border-radius: 0.5px;
}

.achieve-square-tour, .achieve-img-outer {
  border-radius: 50%;
}

#seuro.achieve-square { border: 1px solid var(--blue); background-color: var(--blue-light); }
#spga.achieve-square { border: 1px solid var(--red); background-color: var(--red-light); }
#sliv.achieve-square {background-color: var(--font-color-faint-2);border: 1px solid var(--font-color-base); }
#skft.achieve-square {background-color: var(--olive-light);border: 1px solid var(--olive); }
#scha.achieve-square { background-color: rgba(40, 167, 69, 0.5); border: 1px solid rgba(40, 167, 69, 1); }
#s14.achieve-square {
  background-color: rgba(7, 102, 82, 0.5);
  border: 1px solid rgba(7, 102, 82, 1);
}

#s26.achieve-square {
  background-color: rgba(224, 0, 64, 0.5);
  border: 1px solid rgb(224, 0, 64, 1);
}

#s33.achieve-square {
  background-color: rgba(41, 63, 104, 0.5);
  border: 1px solid #293f68;
}

#s100.achieve-square {
  background-color: rgba(255, 193, 7, 0.5);
  border: 1px solid #ffc107;
}

#s11.achieve-square {
  background-color: rgba(202, 170, 119, 0.75);
  border: 1px solid rgba(202, 170, 119, 1);
}

#s11.achieve-square {
  border-radius: 50% !important;
}

.h-title-v2 {
  display: flex;
  font: 11px var(--font);
  padding-left: 0px !important;
  font-weight: bold;
  justify-content: left;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 2.5px;
  overflow: visible;
}

.l-update-v2 {
  /* display: flex;
  justify-content: right;
  align-items: center;
  height: 100%;
  padding: 0px; */
  padding-top: 6.5px;
}

.live-tour-dropdown {
  /* border: 1px solid black; */
  position: relative;
  padding: 3px;
  margin-right: 0.5px;
  cursor: pointer;
  overflow: visible;
  z-index: 10;
}

.live-tour-dropdown-dead {
  cursor: unset !important;
  background-color: transparent !important;
}

.live-tour-dropdown:hover {
  background-color: var(--container-color-base);
}

.live-tour-menu {
  position: absolute;
  display: none;
  top: calc(100% + 0px);
  left: -0.25px;
  min-width: 45px;
  border: var(--container-border-base);
  background-color: var(--black-base);
}

.live-tour-option {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 3px;
  padding-left: 5px;
  padding-right: 7.5px;
  font: 11px var(--font);
  color: var(--font-color-base);
}

.live-tour-option > .achieve-square {
  height: 7.5px;
  width: 7.5px;
  margin-left: 0px;
}

.live-tour-linker {
  text-decoration: none !important;
}

.live-tour-option:hover {
  background-color: var(--grad-year-background);
  color: var(--blue);
}

.popover-body {
  /* font-weight: normal; */
  padding: 4px;
  font-size: 9px;
  color: var(--font-color-base);
}

.player-search-container {
  position: absolute;
  top: unset;
  bottom: 22.5px;
  left: 0px;
  height: 23px;
  width: 175px;
  background-color: var(--black-base);
  border: var(--container-border-base);
}

.player-search {
  position: absolute;
  top: 0px;
  bottom: unset;
  left: 0px;
  height: calc(100% - 1px);
  width: calc(100%);
  border: none;
  background-color: var(--black-base);
  padding-left: 5px;
  font-size: 11px;
}

.datarow {
  /* overflow-y: visible; */
}

.header-logo-bg {
  opacity: 0.95;
  width: 27px;
  height: auto;
  position: relative;
  top: -2px;
}

.sub-title-page {
  position: relative;
  font-size: 11px;
  color: var(--font-color-faint-2);
  /* margin-left: 2.5px; */
  top: -1.5px;
}

.top-row {
  border-bottom: var(--container-border-base);
  height: 41px;
}

.l-update {
  font-size: 8px;
}

.explainer {
  position: relative;
  margin-top: 0px;
  margin-left: -15px !important;
  width: calc(100% + 30px);
  padding-top: 5px;
  /* display: none; */
  font: 11px var(--font);
  color: var(--font-color-faint-2);
  font-weight: bold;
  line-height: 1.4;
  /* height: 28px; */
  padding-left: 5px;
  padding-right: 5px;
}

.enhanced {
  color: var(--font-color-base);
  font-weight: bold;
  font-style: italic;
}

.more-info {
  color: var(--blue);
  text-decoration: underline;
  opacity: 0.85;
  cursor: pointer;
}

.misc-row {
  position: relative;
  /* background-color: red; */
  margin-left: -15px;
  width: calc(100% + 30px);
  height: 20px;
}

.contributors {
  position: absolute;
  display: flex;
  justify-content: left;
  align-items: center;
  height: 100%;
  padding: 2.5px;
  font: 10.5px var(--font);
  color: var(--font-color-faint-2);
}

.contributor-notes {
  right: 0px;
}

.contri {
  /* float: right; */
  /* font-weight: bold; */
  text-decoration: underline;
  color: var(--font-color-base);
  cursor: pointer;
}

.proj-table-container {
  position: relative;
  display: block;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: 0px;
  /* background-color: red; */
  /* overflow-x: scroll; */
}

.headers {
  top: 0;
  position: -webkit-sticky;
  position: sticky;
  z-index: 11;
  background-color: var(--black-base);
  border-right: 1px solid var(--font-color-base);
}

.tracks {
  position: relative;
  overflow-x: scroll;
  border-right: 1px solid var(--font-color-base);
}

.scroller {
  overflow-x: scroll;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.tracks,
.scroller {
  display: flex;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tracks {
  overflow: auto;
}

@keyframes --sync {
  to {
    translate: calc(-100% + ((22% + 5.5px) * 2));
  }
}

/* table stuff */
table {
  font-family: sans-serif;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
th, td {
  white-space: nowrap;
  /* padding: 5px 10px; */
  border: var(--container-border-base);
  border-width: 0.5px;
  background: var(--black-base);
  width: 40px;
  font: 11px var(--font);
}

tbody > tr > td {
  height: 25px;
  vertical-align: middle;
  text-align: center;
  padding: 0px;
}

tbody > tr > td.player-namer-td {
  text-align: left;
  padding-left: 5px;
  color: var(--font-color-base);
}

tbody > tr > td.player-namer-tags {
  padding-top: 10px;
}

.player-namer-td > .add-ellipsis >  a {
  color: inherit;
}

.add-ellipsis {
  margin: 0 0px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px;
  font: 10.5px var(--font);
  color: var(--font-color-base);
  font-weight: bold;
  padding-left: 0px;
}

.player-namer-td > .add-ellipsis > img {
  height: 13.5px;
  width: auto;
  margin-top: -2px;
  /* margin-right: 2.5px; */
}

.name-small-small { font-weight: normal; }

.tags {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 5px;
  top: 2px;
  height: 7px;
  /* background-color: red; */
}

.tag {
  position: relative;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background-color: blue;
  margin-right: 2px;
  opacity: 0.75;
  cursor: pointer;
}

.tag:hover {
  opacity: 1;
}

.tag-tour-30 { background-color: rgba(31, 202, 35, 1); }
.tag-tour-50 { background-color: rgba(255, 133, 27, 1); }
.tag-tour-70 { background-color: rgba(177, 13, 201, 1); }
.tag-owgr-50 { background-color: var(--font-color-base); }


td > .flagger {
  position: relative;
  top: -1px;
  height: 14px;
  width: 14px;
}

thead {
  position: sticky !important;
  top: 0px;
}
thead th {
  background-color: var(--black-base);
  font-weight: normal;
  text-align: left;
  position: relative;
}

.sticky-header-left {
  background-color: var(--black-base);
  border: 1px solid transparent;
  border-bottom: var(--container-border-base);
}

#header-starts.sticky-head {
  padding-top: 4px;
}

.sticky-head {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 3px; */
  height: 22.5px;
  bottom: 0px;
  width: 100%;
  font: 10px var(--font);
  color: var(--font-color-faint-2);
  cursor: pointer;
}

.sticky-head > .proj-start-upper {
  position: absolute;
  top: 0px;
  font: 8px var(--font);
  font-weight: bold;
  color: rgba(40, 167, 69, 1)
}

.last-left-stick {
  border-right: var(--container-border-base);
}

th.rotate {
  /* Something you can count on */
  height: 120px;
  white-space: nowrap;
  z-index: -1;
}

th.rotate.players-event {
  background-color: var(--datarow-hover);
}

th.rotate.major-event {
  background-color: rgba(255, 220, 0, 0.3);
}

:root[color-mode="dark"] th.rotate.major-event { background-color: #162119; }

th.rotate > div.event-name-rotate {
  transform:
    /* Magic Numbers */
    translate(-1px, 35px)
    /* 45 is really 360 - 45 */
    rotate(270deg);
   width: 40px;
   padding-left: 2.5px;
   font: 12px var(--font);
   color: var(--font-color-base);
}
th.rotate > div > span {
  /* border-bottom: 1px solid #ccc; */
  /* padding: 5px 10px; */
}

.event-name-field-link {
  color: var(--blue);
  font-size: 8px;
  font-weight: bold;
}

.this-week-active-circle {
  color: var(--red);
  font-size: 7.5px;
}


thead td {
  background-color: #f0f0f0;
}

td:first-child, th:first-child {
  position: sticky;
  left: 0;
  width: 175px;
  z-index: 10;
  border-left: none;
  border-right: none;

}
td:nth-child(2), th:nth-child(2) {
  position: sticky;
  left: 175px;
  /* z-index: 15 */
  border-left: none;
  border-right: none;
  width: 50px;
}

td:nth-child(3), th:nth-child(3) {
  position: sticky;
  left: calc(175px + calc(1 * 50px));
  /* z-index: 15 */
  border-left: none;
  border-right: none;
  width: 50px;
}

td:nth-child(4), th:nth-child(4) {
  position: sticky;
  left: calc(175px + calc(2 * 50px));
  /* z-index: 15 */
  border-left: none;
  border-right: none;
  width: 50px;
}

tbody td:first-child {
  z-index: 10;
}

.tour-td {
  vertical-align: center;
  text-align: center;
}

.tour-div {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: calc(50% - 8.25px);
  left: calc(50% - 15px);
  height: 16.5px;
  width: 30px;
  font: 9px var(--font);
  font-weight: bold;
  color: var(--font-color-base);
  -webkit-box-shadow: var(--std-shadow);
  -moz-box-shadow: var(--std-shadow);
  box-shadow: var(--std-shadow);
}

.pga-30 { background-color: rgba(31, 202, 35, 0.5); }
.pga-50 { background-color: rgba(255, 133, 27, 0.55); }
.pga-70 { background-color: rgba(177, 13, 201, 0.55); }
.pga-125 { background-color: rgba(150,150,150, 0.55); }

.dg-100 { background-color: var(--olive-lighter); }
.dg-30 { background-color: var(--olive-light); }
.dg-10 { background-color: var(--olive); }
.dg-1 { background-color: var(--yellow); color: black; }

.owgr-100 { background-color: var(--container-color-base); }
/* .owgr-30 { background-color: var(--olive-light); } */
.owgr-10 { background-color: rgb(180,180,180); color: black; }
.owgr-1 { background-color: rgba(255, 133, 27, 0.75); color: black; }

/* .player-namer-td {
  display: flex;
  justify-content: left;
  align-items: center;
} */

.player-namer-td > a {
  color: inherit;
}

.event-tag, .event-field-tag {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0px;
  left: 0px;
  width: calc(100%);
  height: 12.5px;
  border-bottom: var(--container-border-base);
  font: 7.5px var(--font);
  font-weight: bold;
}

.event-field-tag {
  border: none;
  top: 13px;
  font-weight: normal;
  font-size: 8.5px;
}

.event-field-tag-bop {
  top: 0px;
}

.event-tag-sig {
  background-color: var(--container-color-base);
  color: var(--red);
}

.event-tag-opp {
  /* background-color: var(--container-color-base); */
  color: var(--red-light);
}

.event-tag-playoffs {
  right: 0px;
  left: unset;
  width: calc(300% + 2px);
  background-color: silver;
  color: black;
  z-index: 25;
}

.event-tag-plyrs {
  background-color: rgba(204, 170, 119, 1);
}

.event-tag-14 {
  background-color: rgba(7, 102, 82, 1);
  color: white;
}

.event-tag-33 {
  background-color: rgba(41, 63, 104, 1);
  color: white;
}

.event-tag-26 {
  background-color: rgb(224, 0, 64, 1);
  color: white;
}

.event-tag-100 {
  background-color: rgba(255, 193, 7, 1);
  color: white;
}

.celler-13 {
  border-right: 1px solid var(--red) !important;
}

.celler-last {
  border-right: 1px solid var(--font-color-base) !important;
}

.thh, .celler-player-name, .tour-td {
  cursor: pointer;
}

.player-namer-td, .tour-td {
  background-color: var(--black-base);
  z-index: 1;
}

.celler-starts {
  color: rgba(40, 167, 69, 1);
  background-color: #eaf6ec;
  font-size: 9px;
  font-weight: bold;
}

:root[color-mode="dark"] .celler-starts { background-color: #162319; }

.header-hovered { background-color: var(--olive) !important; }
.header-hovered > .event-name-rotate { color: white !important; }
.header-hovered > a { color: white !important; }
.header-hovered.celler-starts, .header-hovered.celler-player-name > .add-ellipsis { color: white !important; }
.header-hovered.celler-starts, .header-hovered.celler-player-name > .add-ellipsis > a > span { color: rgba(250,250,250, 0.6) !important; }


.prob-cell {
  font: 8px var(--font);
  color: var(--font-color-faint-2);
  font-weight: bold;
  opacity: 0.65;
}

.prob-cell > .field-check {
  color: var(--yellow);
}

.prob-cell-highlight {
  opacity: 1;
  color: var(--font-color-base);
}

.prob-cell-highlight-single {
  opacity: 1;
  background-color: var(--yellow) !important;
  color: black;
}

.prob-cell-highlight-single > .field-check {
  color: var(--font-color-base);
}

.fa-sort-down, .fa-sort-up { display: none; font-size: 12px; position: relative; top: 1px; }

.sticky-head > .fa-sort-down, .sticky-head > .fa-sort-up { color: var(--font-color-base); font-size: 9px; margin-left: 2px; top: -0.5px; }

.vizzy {
  display: block;
}

.exemptions {
  position: relative;
  width: calc(100% + 30px);
  margin-left: -15px;
  padding: 5px;
  background-color: rgba(255, 220, 0, 0.1);
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

:root[color-mode="dark"] .exemptions { background-color: #162119; }

.exemption-title {
  font: 10px var(--font);
  width: 100%;
  text-align: center;
  color: var(--font-color-base);
  font-weight: bold;
  margin-bottom: 2.5px;
}

.exemption-row {
  position: relative;
  text-align: center;
  padding: 2px;
  padding-left: 10%;;
  padding-right: 10%;
  font: 10px var(--font);
  color: var(--font-color-base);
}

.prior-outer {
  position: absolute;
  right: 2.5px;
  top: calc(50% - 7.5px);
  height: 15px;
  width: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prior-outer > div {
  font-size: 8px;
  height: 90%;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prior-1 { background-color: rgba(31, 202, 35, 0.5); border-radius: 1px; }
.prior-2 { background-color: rgba(177, 13, 201, 0.55); border-radius: 1px; }
.prior-3 { background-color: rgba(150,150,150, 0.55); border-radius: 1px; }
.prior-4 { background-color: var(--blue-light); border-radius: 50%; }
.prior-5 { background-color: var(--olive-light); border-radius: 50%; }
.prior-6 { background-color: var(--red-light); border-radius: 50%; }
.prior-7 { background-color: var(--black-base); border: 1px solid var(--font-color-base); color: var(--red); border-radius: 1px; }
.prior-8 { background-color: var(--container-color-base); border: var(--container-border-base); border-radius: 50%; }

.prob-cell-manual, .prob-cell-manual-note {
  position: relative;
}

.diagonal-half-fill {
  position: absolute;
  height: 6px;
  width: 6px;
  top: 0px;
  right: 0px;
  background: linear-gradient(45deg, transparent 50%, var(--blue) 50%);
}

.leg-half-fill {
  position: relative;
  height: 7px; width: 7px;
}

.prob-cell-manual-note > .diagonal-half-fill {
  background: linear-gradient(45deg, transparent 50%, var(--red) 50%);
}

.leg-half-fill-2 {
  position: relative;
  height: 7px; width: 7px;
  background: linear-gradient(45deg, transparent 50%, var(--red) 50%);
}


.small--only { display: none; }

@media (max-width: 768px) {

  .small--only { display: block; text-decoration: inherit; }
  .big--only { display: none; }

  .exemptions {
    padding: 3px;
  }

  .exemption-title {
    font-size: 9px;
    margin-bottom: 1.5px;
    display: none;
  }

  .exemption-row {
    width: 100%;
    padding: 1.5px;
    padding-left: 10%;;
    padding-right: 10%;
    font-size: 8px;
  }

  .achieve-square {
    height: 8px;
    width: 8px;
  }

  .h-title-v2 {
    font-size: 9.5px;
    padding-top: 3.5px;
    padding-bottom: 1.5px;
  }

  .l-update-v2 {
    padding-top: 5px;
  }

  .live-tour-dropdown {
    padding: 2.5px;
    margin-right: 0.5px;
  }

  .live-tour-menu {
    left: 0px;
  }

  .live-tour-option {
    padding: 2.5px;
    padding-left: 3px;
    padding-right: 5px;
    font-size: 9.5px;
  }

  .live-tour-option > .achieve-square {
    height: 7px;
    width: 7px;
  }

  .top-row {
    height: 35px;
  }

  .last-update-iso {
    font-size: 10px;
  }

  .l-update {
    font-size: 7px;
    padding-top: 5px;
  }

  .proj-table-container {
    /* margin-top: 5px; */
  }

  th, td {
    width: 30px;
    font-size: 9.5px;
  }

  tbody > tr > td {
    height: 23.5px;
  }

  tbody > tr > td.player-namer-td {
    padding-left: 1px;
  }


  .add-ellipsis {
    padding-right: 20px;
    font-size: 9.5px;
  }

  .player-namer-td > .add-ellipsis > img {
    height: 12px;
    margin-top: -1.5px;
  }

  #header-starts.sticky-head {
    padding-top: 4.5px;
  }

  .sticky-head {
    height: 20px;
    font-size: 8.5px;
  }

  .sticky-head > .proj-start-upper {
    font-size: 6.5px;
    top: 0.5px;
  }

  th.rotate {
    height: 90px;

  }

  th.rotate > div.event-name-rotate {
    transform:
      translate(-1px, 27.5px)
      rotate(270deg);
     width: 30px;
     padding-left: 2.5px;
     font-size: 10px;
  }

  .player-search-container {
    top: unset;
    bottom: 20px;
    height: 17px;
    width: 125px;
  }

  .player-search {
    left: 0px;
    width: calc(100%);
    padding-left: 3px;
    font-size: 9px;
  }


  td:first-child, th:first-child {
    width: 125px;

  }

  td:nth-child(2), th:nth-child(2) {
    left: 125px;
    width: 35px;
  }

  td:nth-child(3), th:nth-child(3) {
    display: none;
  }

  td:nth-child(4), th:nth-child(4) {
    left: calc(125px + calc(1 * 35px));
    width: 35px;
  }

  .tour-div {
    top: calc(50% - 7.5px);
    left: calc(50% - 12.5px);
    height: 15px;
    width: 25px;
    font-size: 8px;
  }

  .event-tag, .event-tag-field {
    height: 10px;
    font-size: 7px;
  }

  .event-field-tag {
    top: 10px;
    font-size: 7px;
  }

  .event-field-tag-bop {
    top: 0px;
  }

  .celler-starts {
    font-size: 8px;
  }

  .prob-cell {
    font-size: 7.5px;
  }

  .fa-sort-down, .fa-sort-up { font-size: 9px; position: relative; top: 1px; }
  .sticky-head > .fa-sort-down, .sticky-head > .fa-sort-up {font-size: 7px; margin-left: 1.5px; top: 0px; }

  .vizzy {
    display: block;
  }

  .exemptions {
    position: relative;
    width: calc(100% + 30px);
    margin-left: -15px;
    padding: 5px;
    background-color: rgba(255, 220, 0, 0.1);
    border-top: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
  }

  :root[color-mode="dark"] .exemptions { background-color: #162119; }

  .prior-outer {
    right: 1px;
    top: calc(50% - 6.5px);
    height: 13px;
    width: 13px;
  }

  .prior-outer > div {
    font-size: 7px;
    height: 90%;
    width: 90%;
  }

  .diagonal-half-fill {
    height: 5px;
    width: 5px;
  }

  .misc-row {
    height: 17.5px;
  }

  .contributors {
    padding: 1.5px;
    font-size: 9.5px;
  }

  .leg-half-fill, .leg-half-fill-2 {
    position: relative;
    height: 6px; width: 6px;
  }

}

/* add classes when under sm */
@media (max-width: 576px) {

}
