:root {
  --f-base: 18px;
  --f-h1: 32px; /* ~180% */
  --f-h2: 24px; /* ~120% */
  --f-small: 15px; /* ~60% */
  
  --c-ash: #442f2f;
  --c-earth: #a8622a;
  --c-terra: #eab54b;
  --c-sand: #f4dba1;
  --c-paper: #fef8e0;
  
  --c-sky: #aee6d1;
  --c-sea: #52acc7;
  --c-space: #101a23;
  --c-deep: #64578e;
  --c-shell: #ed96b0;
  
  --c-agsea: #d2f7f3;
  --c-agshell: #f9ece8;
  
  
  --space: url(space.png);
}
@font-face {
  font-family: Fontstuck;
  src: url(fonts/fontstuck.ttf);
}



/* FONTS */



@font-face {
  font-family: 'linja pona';
  src: url(/fonts/linja-pona.otf);
}
.pona {
  font-family: 'linja pona', Helvetica;
  font-size: 150%;
}



/* COMMON ELEMENTS */



body {
  margin: auto;
  
  background-color: var(--c-space);
  background-image: var(--space);
  color: var(--c-ash);
  
  font-size: var(--f-base);
  font-family: Helvetica;
}
body.anim {
  background-image: url(space.gif);
}
a {
  font-weight: bold;
  color: var(--c-sea);
}
a:visited {
  color: var(--c-terra);
}
a:not(.link-noform)[target="_blank"]:after {
  content: "⤴";
  display: inline-block;
  position: relative;
    top: -0.2em;
    left: -0.2em;
  font-size: 90%;
}
li {
  margin-top: 8px;
  margin-bottom: 8px;
}
p {
  margin: 0.3em;
}
p:first-child {
  margin-top: 0;
}
.wrap {
  --ppaddin: 28px;
  
  box-sizing: border-box;
  width: 70%;
  
  margin: 50px auto;
  padding: var(--ppaddin);
  border: 14px double var(--c-earth);
  border-radius: var(--ppaddin);
  
  background-color: var(--c-terra);
}
.wrap > div:not(:last-child) {
  margin-bottom: 12px;
}

.backdrop {
  width: 100%;
  min-width: inherit;
  position: absolute;
  z-index: -1;
  
  background-size: 1600px;
  background-position: 0 -100px;
  mask-image: linear-gradient(to bottom, #000000ff, #00000000);
  -webkit-mask-image: linear-gradient(to bottom, #000000ff, #00000000);
}

.row {
  display: flex;
}
.column {
  box-sizing: border-box;
}
.column:not(:last-child) {
  margin-right: 4px;
}
.sidebar-holder {
  flex-basis: 200px;
}
.sidebar {
  box-sizing: border-box;
  color: white;
  background-color: var(--c-space);
}

@keyframes agg-flash {
  0%  {background-color: white;}
  50% {background-color: var(--bolor);}
  100%{background-color: white;}
}
a.aggrieve {
  --color: var(--c-terra);
  --bolor: var(--c-paper);
  
  display: block;
  opacity: 0;
  box-sizing: border-box;
  max-width: 190px;
  
  font-size: var(--f-small);
  font-family: Fontstuck, "Courier New";
  font-weight: normal;
  text-decoration: none;
  
  border: 4px solid var(--color);
  padding: 6px;
  padding-bottom: 4px;
  
  color: var(--color);
  background-color: white;
}
a.aggrieve.js-loaded {
  opacity: 1;
}
a.aggrieve:hover {
  animation: agg-flash 0.6s infinite;
}
.nav-return a.aggrieve {
  display: inline-block;
}

.nav-return {
  margin-bottom: 10px;
}
.js-separator {
  border-bottom: 2px solid var(--c-terra);
}


/* GENERIC CLASSES */



.textbox {
  padding: 20px;
  background-color: var(--c-paper);
}
.p-textbox,
.notify {
  box-sizing: border-box;
  max-width: 500px;
  margin: 12px 0;
}

.abs-holder {
  position: relative;
}
.abs-held {
  position: absolute;
}
.abs-shrunk {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.crusty {
  image-rendering: pixelated;
}



/* EMOTES */



.js-emote {
  position: relative;
  margin-right: 1em;
}
.js-emote > img {
  position: absolute;
    top: 0.1em;
  width: 1em;
}
.e-derg {
  content:url(emotes/derg.png);
}
.e-derse {
  content: url(emotes/derse.png);
}



/* HEADINGS & TEXTBOXES */



p {
  margin-top: 12px;
  margin-bottom: 12px;
}

h1, h2 {
  padding-left: 6px;
  font-family: "Courier New";
}
h1 {
  font-size: var(--f-h1);
  color: white;
  text-shadow: 2px 3px var(--c-earth);
  
  background-color: var(--c-terra);
}
h2 {
  font-size: var(--f-h2);
  background-color: var(--c-sand);
}
h1:first-child,
h2:first-child {
  margin-top: 0;
}

.notify {
  box-sizing: border-box;
  border: 2px solid var(--c-sea);
  border-radius: 10px;
  
  background-color: var(--c-sky);
}
.chumhandle {
  font-family: 'Courier New';
  font-weight: bold;
  background-color: white;
  color: var(--c-terra);
}
.chumbox {
  box-sizing: border-box;
  border: 2px dotted gray;
  padding: 5px;
  
  font-family: 'Courier New';
  font-weight: bold;
  background-color: white;
}
.chumbox span {
  margin: 0px auto;
}


/* HOMEPAGE/GENERAL ELEMENTS */



@keyframes logo-blink {
  0%    {opacity: 1;}
  50%   {opacity: 0.9;}
  100%  {opacity: 1;}
}
.logobox {
  height: 180px;
  margin: auto;
}
.logo {
  position: relative;
    top: 10px;
  animation: logo-blink 3s infinite;
}
.header {
  height: 8em;
  
  border: 4px solid white;
  
  color: white;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%),
    url(glass.png),
    var(--space);
  background-color: black;
}
.header-icon {
  flex: 1;
  display: block;
  float: left;
  margin: 0px;
  text-align: center;
  opacity: 0.6;
  
  transition-property: opacity;
  transition-duration: 0.4s;
}
.header-icon:hover {
  opacity: 1;
}
.sidebar {
  padding: 5px;
}
.sidebar a.aggrieve {
  margin-bottom: 9px;
}

#littleguy {
  float: right;
}
#smallfella {
  max-width: 100%;
  min-width: 150px;
}
#year {
 margin-top: 16px;
 font-family: "Courier New";
 font-weight: bold;
 background-color: #000a;
 color: var(--c-terra);
 text-shadow: 5px 5px black;
}



/* INTERESTS ELEMENTS */



#interests {
  min-width: 600px;
}
.int-header {
  color: var(--c-terra);
  margin: 20px auto;
}
.int-header *{
  margin: 4px auto; 
}
.int-table {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  
  border-collapse: collapse;
  
  font-size: var(--f-h2);
}
.int-table td {
  width: 50%;
  padding: 20px;
  vertical-align: top;
}
.int-table td:not(:last-child) {
  border-right: 2px solid var(--c-earth);
}
.int-note {
  display: inline-block;
  font-size: var(--f-base);
}



/* HOARD ELEMENTS */



#hoard {
  background-image: url(hoard/gold.png);
  background-size: 100vw;
}
#hoard .textbox {
  background-color: var(--c-space);
  color: var(--c-sand);
  text-shadow: 0 0 10px var(--c-earth);
}
#hoard h2 {
  background-color: var(--c-earth);
}
#hoard a.aggrieve {
  text-shadow: none;
}

#hor-seeker {
  margin-bottom: 24px;
}
#hor-seeker h1 {
  user-select: none;
  margin: 0;
}

@keyframes result-blink {
  0%    {text-shadow: 0 0 5px var(--c-sand), 0 0 5px var(--c-terra);}
  100%  {text-shadow: none;}
}
#hor-result.js-result {
  color: white;
  animation: result-blink 2s;
}

#hor-percheck {
  margin: 0;
}
#hor-pertable {
  height: 400px;
}
#hor-items,
#hor-statblock {
  border: 2px solid var(--c-earth);
  margin: 0;
  padding: 5px;
}
#hor-statblock > div {
  margin: 0;
  padding: 5px;
}
.hor-item {
  margin: 0;
  padding: 5px;
  border-bottom: 1px solid var(--c-earth);
  
  font-weight: bold;
}
.hor-item:hover {
  background-color: var(--c-earth);
}
.hor-item.js-visited {
  color: var(--c-terra);
}
.hor-title {
  font-size: var(--f-h1);
  font-weight: bold;
  
  min-height: 1em;
}
.hor-title p {
  margin: 5px;
}
.hor-desc p:first-child {
  padding-top: 0;
}
.hor-realname {
  font-style: italic;
  font-weight: normal;
  font-size: var(--f-small);
  color: var(--c-earth);
  text-shadow: none;
}
#hor-statblock > .hor-desc {
  height: auto;
  margin-bottom: 80px;
}
.hor-img {
  max-height: 200px;
  max-width: 80%;
}
.hor-floaty {
  width: 200px;
  right: -100px;
  bottom: -100px;
}



/* INSANITY ELEMENTS */



#insanity .wrap {
  max-width: 900px;
}
.classpect {
  --color: #444;
  --bolor: #aaa;
  padding: 2px 5px;
  font-family: 'Courier New';
  font-weight: bold;
  
  color: var(--color);
  background-color: var(--bolor);
}

.madness {
  height: 0;
  overflow-y: scroll;
  
  transition-property: height, padding;
    transition-duration: 0.2s;
}
.classpect:not(:hover) + .madness:not(:hover) {
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.classpect:hover + .madness,
.madness:hover {
  height: 10em;
}



/* IMPORTANT FORMATTING */



a.link-noform {
  font-weight: inherit;
  color: inherit;
}