@font-face {
  font-family: "Karla";
  src: url('/Karla.ttf') format('truetype');
}

html {
  font-smooth: always;
}

:root {
  --typeface: 'Fira Code', sans-serif;
  --typeface-post: 'EB Garamond', serif;
  --typeface-alt2: 'Lexend Deca';
  --emphasis-color-dark: #b3ffd9;
  --font-color-dark: #ffffff;
  --bg-color-dark: #3d3d3d;
  --emphasis-color-light: #b674c6;
  --font-color-light: #000000;
  --bg-color-light: #f1f1f1;
  --card-bg-color: #e0e0e0;
  --card-text-color: #202020;
  --card-text-size: 22px;
  /* change these to modify -> should refer to above*/
  --font-color: var(--font-color-light);
  --bg-color: var(--bg-color-light);
  --emphasis-color: var(--emphasis-color-light);
  --font: var(--typeface);
  --top-size: 20.5px;
  --font-size: 20px;
  --font-size-note: 22px;
  --column-size: 1100px;
  --top-weight: 400;
  --font-weight: 400;
  --heavy-font-weight: 600;
}

p {
   
}

it {
    font-style: italic;
}

hv {
    font-weight: var(--heavy-font-weight);
}

halfbg {
   background: url(media/homebg.jpg);
   width: 60%;
   position: absolute;
   top: -50px;
   right: 0px;
   clip: rect(0px, 1333px, 2000px, 200px);
   height: 100%;
}

main {
  max-width: 38rem;
  padding: 1.5rem;
  margin: auto;
}

logo {
  /* margin-left: -45px; */
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: Karla, bold;
  font-size: 27.5px;
  font-weight: var(--top-weight);
  letter-spacing: 0.05em;
  max-width: var(--column-size);
  text-decoration: underline solid #000 1px;
  text-rendering: optimizeLegibility;
}

logo:after {
  visibility: visible;
  /* content: '\a\a';
  white-space: pre; */
}

front {
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: Karla;
  font-size: 27px;
  font-weight: var(--font-weight);
  max-width: var(--column-size);
  line-height: 1.25em;
  text-rendering: optimizeLegibility;
}

top {
  /* margin-left: -45px; */
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: var(--font);
  font-size: var(--top-size);
  font-weight: var(--top-weight);
  max-width: var(--column-size);
  text-decoration: underline solid #000 1px;
  text-rendering: optimizeLegibility;
}

sup {
  font-size: 14px;
}

a:link {
  color: var(--font-color);
  background-color: transparent;
  padding-bottom: 0.05em;
  border-bottom: 0em solid rgba(127, 127, 127, 0.2);
  text-decoration: underline dashed #000 1px;
}

a:visited {
  color: var(--font-color);
  background-color: transparent;
  padding-bottom: 0.05em;
  border-bottom: 0em solid rgba(127, 127, 127, 0.2);
  text-decoration: underline dashed #666 1px;
}

a:hover {
  color: var(--font-color);
  background-color: transparent;
  padding-bottom: 0.05em;
  border-bottom: 0em solid rgba(127, 127, 127, 0.2);
  text-decoration: underline solid #000 1px;
}

a:active {
  color: var(--font-color);
  background-color: transparent;
  text-decoration: none;
}

::-moz-selection { /* Code for Firefox */
  color: #84529d;
  background: #e6f1ee;
}

::selection {
  color: #84529d;
  background: #e6f1ee;
}

/* ---------- ^^^ PROBABLY FINE ^^^ --------- */

body {
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: var(--font);
  font-size: var(--font-size);
  padding-top: 50px;
  padding-right: 100px;
  padding-bottom: 50px;
  padding-left: 100px;
  /* font-weight: var(--font-weight); */b
  max-width: var(--column-size);
  line-height: 1.25em;
  text-rendering: optimizeLegibility;
}

t1 {
  width: 800px;
  text-align: left;
  border: 0px solid #666;
  font-size: var(--font-size);
  position: relative;
  font-weight: var(--heavy-font-weight);
  font-family: var(--font);
}

t1::after {
  content: "\a\a";
  white-space: pre;
}

n1 {
  font-size: inherit;
}

n1:after {
  visibility: visible;
  content: '\a\a';
  white-space: pre;
}

longform {
  font-size: 20;
  font-family: 'EB Garamond', serif;
}

longform:after {
  visibility: visible;
  content: '\a\a';
  white-space: pre;
}

fn {
  font-size: 12;
  font-family: 'EB Garamond', serif;
}

fn:before {
  visibility: visible;
  content: '\a\a';
  white-space: pre;
}

fn:after {
  visibility: visible;
  content: '\a\a';
  white-space: pre;
}

n2 {
  width: 800px;
  text-align: left;
  border: 0px solid #666;
  font-size: inherit;
  position: relative;
  left: 1.5em;
}

n2::after {
  content: "\a\a";
  white-space: pre;
}

n3 {
  width: 800px;
  text-align: left;
  border: 0px solid #666;
  font-size: inherit;
  position: relative;
  left: 3em;
}

n3::after {
  content: "\a\a";
  white-space: pre;
}

n4 {
  width: 800px;
  text-align: left;
  border: 0px solid #666;
  font-size: inherit;
  position: relative;
  left: 4.5em;
}

n4::after {
  content: "\a\a";
  white-space: pre;
}

capt {
  background-color: var(--bg-color);
  color: var(--font-color);
  font-family: var(--font);
  font-size: 16px;
  padding-top: -10px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  font-weight: 300;
  font-style: italic;
  max-width: 640px;
}

capt::after {
    content: "\a";
    white-space: pre;
}

img {
display: block;
}
/*
img::after {
    content: "\a\a";
    white-space: pre;
}
*/

post::after {
    content: "\a\a";
    white-space: pre;
}

post:target::before {
  offset-anchor: top -100px;
  margin-left: -1.8em;
  color: var(--emphasis-color);
  font-size: var(--font-size);
  content:'|> ';
}

date {
  max-width: 100px;
}

date::after {
  content: "\a";
  white-space: pre;
}

date:hover {
  color: transparent;
}

date:hover::before {
  color: var(--font-color-light);
  content:'YYMMDD[HHMM]/UID:TYPE';
  visibility: visible;
}

box {
  border: 1px;
  border-style: solid;
  border-color:#FFFFFF;
  padding: 1em;
} 

margin {
  position: relative;
  float: right;
  display: block;
  margin-right: -1250px;
  width: var(--column-size);
  text-align: left;
  /* margin: -100 45px; */
  border: 0px solid #666;
  /* padding: 10px; */
  font-size: var(--font-size);
}

margin:after {
  visibility: visible;
  content: '\a\a';
}

q1 {
  margin: 0 -0.4em;
  padding: 0.2em 0.2em -1em;
  border-radius: 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(20, 40, 220, 0.1),
    rgba(20, 40, 220, 0.1) 5%,
    rgba(20, 40, 220, 0.1)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

q1::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

q2 {
  margin: 0 -0.4em;
  padding: 0.2em 0.2em -1em;
  border-radius: 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(150, 50, 150, 0.1),
    rgba(150, 50, 150, 0.1) 5%,
    rgba(150, 50, 150, 0.1)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

q2::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

q3 {
  margin: 0 -0.4em;
  padding: 0.2em 0.2em -1em;
  border-radius: 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(250, 50, 60, 0.1),
    rgba(250, 50, 60, 0.1) 5%,
    rgba(250, 50, 60, 0.1)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

q3::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

q4 {
  margin: 0 -0.4em;
  padding: 0.2em 0.2em -1em;
  border-radius: 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(20, 250, 40, 0.1),
    rgba(20, 250, 40, 0.1) 5%,
    rgba(20, 250, 40, 0.1)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

q4::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

hl1 {
  margin: -0.05em -0.2em;
  padding: 0.05em 0.2em;
  border-radius: 0.2em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(20, 160, 120, 0.05),
    rgba(20, 160, 120, 0.05) 5%,
    rgba(20, 160, 120, 0.05)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

codebox {
  border:1px solid black;
  background-color:#EEEEFF;
  white-space: pre;
  padding:10px;
  font-size:0.9em;
  display: inline-block;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

codebox::before {
  content: "\a";
  white-space: pre;
  visibility: hidden;
}


codebox::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

codebox code {
  /* Styles in here affect the text of the codebox */
  font-size:1em;
}

refs::before {
  content: "references|related:";
  white-space: pre;
  visibility: visible;
}

refs::after {
  content: "\a\a";
  white-space: pre;
  visibility: hidden;
}

math {
  font-family: 'Times New Roman'; 
}

ul {
  list-style: none; /* Remove default bullets */
}

ul::before {
  content: "\FE0F"; 
  color: #000000;
  display: inline-block;
  /*
  width: 0.5em;
  margin-left: -1em;
  */
}

li::before {
  content: '\2022 \0020'; 
  color: #000000;
  display: inline-block;
  width: 0em;
  margin-left: -2.4em;
}

/* ----------- CARDS --------- */
* {
  box-sizing: border-box;
  font-weight: normal;
}

card {
  position: relative;
}
card > front,
card > back {
  display: block;
  transition-property: transform, opacity;
}
card > back {
  position: absolute;
  opacity: 0;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}
card:hover > back {
  opacity: 1;
}

card {
  position: relative;
  display: inline-block;
  margin-right: 2px;
  margin-bottom: 1em;
  width: 400px;
}
card > front,
card > back {
  display: block;
  font-family: var(--typeface-alt2);
  color: var(--card-text-color);
  font-size: var(--card-text-size);
  font-weight: 500;
  text-align: center;
  width: inherit;
  background-size: cover !important;
  background-position: center !important;
  height: 150px;
  padding: 1em 2em;
  background: var(--card-bg-color);
  border-radius: 5px;
}
card > front p,
card > back p {
/* if needed, a separate tag for text can go in here */
}

card::after {
  content: "\a";
  white-space: pre;
  visibility: hidden;
}

/* ----------- LEGACY ----------- */

pr1 { 
  color: #2069e7;
}

sidenote {
  position: relative;
  float: right;
  display: block;
  margin-right: -850px;
  width: var(--column-size);
  text-align: left;
  /* margin: -100 45px; */
  border: 0px solid #666;
  /* padding: 10px; */
  font-size: var(--font-size);
}

sidenote:after {
  visibility: visible;
  content: '\a';
}

.collapsibleList li > input + * {
  display: none;
 }
  
 .collapsibleList li > input:checked + * {
  display: block;
 }
 
 .collapsibleList li > input {
  display: none;
 }
 
 .collapsibleList label {
  cursor: pointer;
 }

input:checked+label+sidenote {
  display: none;
}

input:checked+label+note {
  display: none;
}

input+label:after {
  content: " \2039";
}

input:checked+label:after {
  content: "";
}

label {
  display: inline-block;
  cursor: pointer;
  color: var(--font-color);
  background-color: transparent;
  text-decoration: underline #aaaaaa;
}

label:hover {
  color: var(--font-color);
  background-color: transparent;
  text-decoration-line: underline;
  text-decoration-color: var(--emphasis-color);
  text-decoration-style: dashed;
}

label:target:before {
  offset-anchor: top -100px;
  margin-left: 2em;
  color: var(--emphasis-color);
  font-size: var(--font-size);
  content: "|> ";
}

label:target:after {
  offset-anchor: top -100px;
  margin-left: 2em;
  color: var(--emphasis-color);
  font-size: var(--font-size);
  content: "";
}

/* Tooltip container */
tooltip {
  /* position: relative; */
  /* display: inline-block; */
  border-bottom: 1px dotted #559273; 
}

/* Tooltip text */
tooltip tooltiptext {
  visibility: hidden;
  float: left;
  width: var(--column-size);
  background-color: rgba(0, 0, 0, 0);
  color: var(--font-color);
  text-align: left;
  padding: 0 0 0 var(--column-size);
  border-radius: 0px;
}

tooltiptext {
  position: relative;
  padding: 0px 10px;
  z-index: 1;
  float: left;
  margin-right: 0px;
  margin-top: 0px;
}

tooltip:hover {
/* Show the tooltip text when you mouse over the tooltip container */
color: var(--font-color);
background-color: transparent;
border-bottom: 2px solid #559273;
}

tooltip:hover tooltiptext {
  visibility: visible;
}

tooltip:hover tooltiptext::before {
  content: " --> ";
}

html {
  scroll-behavior: smooth;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 50%;
  background-color: var(--bg-color-light);
  color: var(--font-color-light);
  text-align: left;
}

footer::after {
  content: '<a href="/contact.html">contact</a>';
  white-space: pre;
}

/* https://www.color-hex.com/color-palette/97312 */
/* https://lospec.com/palette-list/aubrey-32 */
