@charset "UTF-8";
:root {
  font-size: 70%;
  --gutters: 10px;
  --bg: rgb(0,0,0);
  --card: rgb(35, 49, 54);
  --card2: rgb(230, 230, 230);
  --bg2: rgb(248, 248, 242);
  --text: white;
  --text2: black;
  --key2: rgb(30, 30, 70);
  --trimColor:orange;
}

body {
  transition: background-color 0.5s linear;
  cursor: grab;
  font-family: "Marcellus", cursive;
  color: var(--text);
  background-color: var(--bg);
  font-size: clamp(1em, 2vmin, 1.5em);
}
body #lightMode {
  z-index: 100;
  position: fixed;
  font-size: 150%;
  text-align: left;
  margin-bottom: 5px;
}
body #lightMode span {
  padding: 5px;
}
body #lightMode span.disabled {
  filter: grayscale(100%);
}
body #lightMode span:hover {
  background-color: var(--highlight);
  cursor: pointer;
}
body a {
  text-decoration: none;
  color: var(--trimColor);
  font-size: 105%;
}
body select {
  background-color: var(--bg);
  color: var(--text);
  font-size: inherit;
}

.periodicTable div.row1 {
  grid-row: 1/2;
}
.periodicTable div.row2 {
  grid-row: 2/3;
}
.periodicTable div.row3 {
  grid-row: 3/4;
}
.periodicTable div.row4 {
  grid-row: 4/5;
}
.periodicTable div.row5 {
  grid-row: 5/6;
}
.periodicTable div.row6 {
  grid-row: 6/7;
}
.periodicTable div.row7 {
  grid-row: 7/8;
}
.periodicTable div.row8 {
  grid-row: 8/9;
}
.periodicTable div.row9 {
  grid-row: 9/10;
}
.periodicTable div.row10 {
  grid-row: 10/11;
}
.periodicTable div.row11 {
  grid-row: 11/12;
}
.periodicTable div.col1 {
  grid-column: 1/2;
}
.periodicTable div.col2 {
  grid-column: 2/3;
}
.periodicTable div.col3 {
  grid-column: 3/4;
}
.periodicTable div.col4 {
  grid-column: 4/5;
}
.periodicTable div.col5 {
  grid-column: 5/6;
}
.periodicTable div.col6 {
  grid-column: 6/7;
}
.periodicTable div.col7 {
  grid-column: 7/8;
}
.periodicTable div.col8 {
  grid-column: 8/9;
}
.periodicTable div.col9 {
  grid-column: 9/10;
}
.periodicTable div.col10 {
  grid-column: 10/11;
}
.periodicTable div.col11 {
  grid-column: 11/12;
}
.periodicTable div.col12 {
  grid-column: 12/13;
}
.periodicTable div.col13 {
  grid-column: 13/14;
}
.periodicTable div.col14 {
  grid-column: 14/15;
}
.periodicTable div.col15 {
  grid-column: 15/16;
}
.periodicTable div.col16 {
  grid-column: 16/17;
}
.periodicTable div.col17 {
  grid-column: 17/18;
}
.periodicTable div.col18 {
  grid-column: 18/19;
}
.periodicTable div.col19 {
  grid-column: 19/20;
}

#theTable {
  display: grid;
  grid-gap: var(--gutters);
  background-color: var(--bg);
  transition: background-color 0.5s linear;
  /*  GRID MARKERS  */
  /*GRID layout*/
}
#theTable #connector {
  text-align: center;
  display: grid;
  place-items: center center;
}
#theTable #connector #lanth_connector {
  color: #f6c0d8;
}
#theTable #connector #act_connector {
  color: #fce0ed;
}
#theTable #connector div {
  font-size: 220%;
}
#theTable #banner1 {
  font-family: "Press Start 2P", cursive;
  font-size: 12em;
  font-weight: boldest;
  text-align: center;
  padding: 150px;
  display: grid;
  place-items: center center;
}
#theTable div#summary {
  display: none;
  font-size: 4em;
  align-items: center;
}
#theTable div#summary p:first-letter {
  padding: 10px;
  font-size: 200%;
}
#theTable > span {
  padding: 5px;
}
#theTable div.header_group, #theTable div.header_period {
  display: grid;
  font-size: 300%;
}
#theTable div.header_period {
  place-items: center end;
}
#theTable div.header_group {
  place-items: end center;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) {
  column-count: 3;
  column-gap: 3px;
  padding: 10px;
  border: 5px solid var(--text);
  box-shadow: -var(--gutters) 0 0 0 var(--border-color), 0 var(--gutters) 0 0 var(--border-color), var(--gutters) var(--gutters) 0 0 var(--border-color), var(--gutters) 0 0 0 var(--border-color), 0 var(--gutters) 0 0 var(--border-color);
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span {
  display: block;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) div {
  /*each subection: ex: Boil*/
  text-align: left;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) div.keyValuePair {
  break-inside: avoid;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.key {
  color: var(--key);
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.units {
  font-style: italic;
  font-size: 90%;
  margin-left: 0.25em;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.value {
  margin-left: 10px;
  font-family: monospace;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.nested span,
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.units {
  display: inline;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.cpk {
  display: grid;
  place-items: center center;
}
#theTable > div:not([class~=header_group]):not([class~=header_period]):not([id^=banner]):not([id=connector]):not([id=summary]) span.cpk span {
  filter: invert(1) grayscale(0.9) contrast(50);
}
#theTable .card {
  position: relative;
  padding: 10px;
  break-inside: avoid-column;
}
#theTable .card .radioactive:after {
  content: "☢️";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 35%;
  text-shadow: none;
}
#theTable .card span {
  margin: 5px;
}
#theTable .card > span:nth-child(1) {
  /*ELEMENT NUMBER*/
  font-size: 125%;
  font-weight: bold;
}
#theTable .card span:nth-child(2) {
  /*ELEMENT SYMBOL*/
  font-size: 500%;
  font-family: "Press Start 2P", cursive;
}
#theTable .card span:nth-child(3) {
  /*ELEMENT IMAGE*/
  text-align: center;
}
#theTable .card span.category {
  padding: 0;
  text-align: center;
}
#theTable .card span.category span {
  padding: 0;
  filter: invert(1) grayscale(1) contrast(50);
}
#theTable div#Uue .card span:nth-child(2) {
  font-size: 350%;
}
#theTable div#summary {
  /*main chunk of text at the top of the table*/
  grid-row: 3/4;
  grid-column: 5/13;
}
#theTable div#banner1 {
  grid-row: 1/3;
  grid-column: 5/13;
}
#theTable div#connector {
  grid-row: 7/10;
  grid-column: 4/5;
}

#controls {
  z-index: 100;
  pointer-events: none;
  width: calc(100% - 15px);
  height: 100vh;
  position: fixed;
}
#controls #miniTable {
  grid-template-columns: 0fr repeat(18, minmax(0px, 1fr));
  background-color: black;
  pointer-events: auto;
  outline: 1px solid var(--trimColor);
  z-index: 100;
  position: absolute;
  font-size: clamp(1.5vmin, .8em, 20px);
  padding: 0;
  display: grid;
  top: 0;
  right: 0;
}
#controls #miniTable div#banner1 {
  grid-row: 2/5;
  grid-column: 4/14;
  border: none;
}
#controls #miniTable:hover {
  cursor: move;
}
#controls #miniTable > div {
  text-align: center;
  margin: 0.2vw;
  border: clamp(.1vw, 1px, .3vw) solid var(--trimColor);
  margin-bottom: 0.2vw;
}
#controls #miniTable > div:hover:not(#banner1) {
  cursor: pointer;
}
#controls #miniTable > div:hover:not(#banner1) {
  background-color: chartreuse;
  color: black;
}
#controls a {
  z-index: 101;
}

/*LIGHT MODE*/
body.light {
  color: var(--text2);
  background-color: var(--bg2);
}
body.light a {
  color: blue;
}
body.light #theTable {
  background-color: var(--bg2);
}
body.light #theTable .card {
  background-color: var(--card2);
}
body.light #theTable > :not([class~=header_period]):not([class~=header_group]):not([id^=banner]):not([id=connector]):not([id=summary]) {
  border-color: var(--text2);
}
body.light #theTable > :not([class~=header_period]):not([class~=header_group]):not([id^=banner]):not([id=connector]):not([id=summary]) span.key {
  color: var(--key2);
  border-color: var(--text2);
}
body.light #theTable #connector #lanth_connector, body.light #theTable #connector #act_connector {
  color: black;
}
body.light #controls #miniTable {
  color: var(--text2);
  background-color: var(--bg2);
}