body {
  font-family: helvetica, arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #eee;
}

.button {
  padding: 10px;
  background: rgb(91, 214, 174);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: large;
  font-weight: bold;
  transition: background 0.2s;
  margin: 0 16px;
}

.button:hover {
  background: rgb(36, 142, 108);
}

p {
  margin: 2em 0;
}

.light {
  opacity: 0.5;
}

td {
  padding: 0 4px;
}

[rarity="1"] {
  color: rgb(0, 204, 0);
}

[rarity="2"] {
  color: rgb(0, 0, 204);
}

[rarity="3"] {
  color: rgb(132, 37, 201);
}

[rarity="4"] {
  color: rgb(255, 132, 0);
}

.relic {
  font-weight: bold;
  color: rgb(204, 51, 0);
}

.gold {
  color: rgb(255, 153, 0);
}

.bar {
  position: relative;
  padding: 2px;
  border-radius: 2px;
  min-width: 96px;
}

.barbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 2px;
}

.bartext {
  position: relative;
  color: white;
  text-shadow: 0px 0px 4px #000;
  text-align: center;
  margin: 0 4px;
}

.xpbar {
  border: #101 2px solid;
  background-color: #202;
  width: 250px;
}

.healthbar {
  border: #111 2px solid;
  background-color: #222;
}

.goldbar {
  border: #111 2px solid;
  background-color: #210;
}

#currentparty, #currentrelic {
  display: flex;
  flex-direction: row;
}

.imagecontainer,
.smallimagecontainer {
  flex: none;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 4px;
}

.imagecontainer {
  margin-right: 10px;
  height: 100px;
}

.smallimagecontainer {
  margin-right: 10px;
  height: 50px;
}

.image,
.smallimage {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 100%;
}

.image {
  width: 100px;
  height: 100px;
}

.smallimage {
  width: 50px;
  height: 50px;
}

#monstername {
  font-weight: bolder;
  display: inline-block;
}

#relicname {
    font-weight: bolder;
    display: inline-block;
}

#monsterhealth, #relicprogress {
    margin: 4px 0;
}

#monsterhealth .bar, #relicprogress .bar {
  display: inline-block;
}

#content {
  width: 75%;
}

.charactername {
  font-weight: bold;
  word-break: break-word;
}

.charactertitle {
  color: #444;
}

a {
  color: currentColor;
}

#info {
  position: absolute;
  max-width: 50vw;
  border: 1px solid #000;
  border-radius: 4px;
  background: #fff;
  padding: 8px;
  margin-left: 16px;
  margin-top: -12px;
}

#info:before {
  top: 8px;
  left: -8px;
  bottom: auto;
  border-width: 8px 8px 8px 0;
  border-color: transparent #000;
  content: "";
  position: absolute;
  border-style: solid;
  display: block;
  width: 0;
}

#info:after {
  top: 8px;
  left: -7px;
  bottom: auto;
  border-width: 8px 8px 8px 0;
  border-color: transparent #fff;
  content: "";
  position: absolute;
  border-style: solid;
  display: block;
  width: 0;
}

#info td,
.oldrelic td {
  vertical-align: top;
}

.tooltip{
  position: relative;
}

.tooltip:hover:after{
  pointer-events: none;
  background: rgba(0,0,0,.8);
  border-radius: 4px;
  color: #fff;
  font-weight: normal;
  content: attr(title);
  bottom: 100%;
  left: calc(50%);
  padding: 5px 10px;
  position: absolute;
  z-index: 98;
  width: 150px;
  text-align: center;
  transform: translate(-85px, -8px);
}

.tooltip:hover:before{
  pointer-events: none;
  border: solid;
  border-color: rgba(0,0,0,.8) transparent;
  border-width: 8px 8px 0 8px;
  bottom: 100%;
  content: "";
  left: 50%;
  position: absolute;
  z-index: 99;
  margin-left: -8px;
}

.link {
  text-decoration: underline;
  cursor: pointer;
}

.page-logo {
    padding: 30px;
}

.header {
    font-family: 'Bree Serif', serif;
}

.header1 {
    font-size: 2.75em;
}

.header2 {
    font-size: 1.75em;
}

.header3 {
    font-size: 1.5em;
}

.header4 {
    font-size: 1.25em;
}

.header5 {
    font-size: 1.05em;
}

.footer {
    margin-top: 25px;
}

.inset {
    padding-left: 25px;
    margin-right: 25px;
}

.padTop15 {
    padding-top: 15px;
}

.padLeft10 {
    padding-left: 10px;
}

.padLeft30 {
    padding-left: 30px;
}

.characterTable {
    width: 100%;
}

.playerTooth {
    width: 20px;
}
.environment-banner {
    width: 100%;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background: repeating-linear-gradient(45deg, #b8860b, #b8860b 12px, #8b6508 12px, #8b6508 24px);
}
