:root {
  --background: gray url('');
  --infobg: white;
  --text: #000;
  --link: blue;
  --border: 1px solid red;
  --highlight: blue;
  
  --button: lightgrey;
  --hover: gray;
  --font: 'ms ui gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

body{
  color: #000;
  background: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font);
}

::selection {
  background: var(--highlight);
}

a,
a:visited {
  color: var(--link);
  text-decoration: underline dotted 1px;
}

a:hover,
a:focus {
  font-weight: bold;
}

.nav{
  padding:5px;
  background: var(--infobg);
  border: var(--border);
  border-style: dashed;
  margin:5px;
  overflow: hidden;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  user-select: none;
}

.nav ul li {
  display: block;
}

.container{
  width: 800px;
  background: var(--infobg);
  padding: 15px;
  border: var(--border);
  border-style: dashed;
  
}

/* Style the tab */
.tab {
  overflow: hidden;
}

/* Style the buttons inside the tab */
.tab button {
  margin: 4px 2px;
  color: var(--text);
  font-size: 1.2em;
  font-family: var(--font);
  background-color: var(--button);
  border: var(--border);
  border-radius: 5px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: var(--hover);
}

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: var(--border);
  text-align: left;
  vertical-align: top;
  padding: 5px;
  list-style: none;
}
th {
  font-size: 1.3em;
  font-family: var(--heading-font);
  text-align: center;
  background-color: var(--table-color);
  border: var(--border);
}
td:nth-child(1) {
  background: var();
  font-weight: bold;
  width: 40%;
}
td .infobox{
  list-style: none;
  text-align: left;
  vertical-align: top;
  padding: 0px;
  margin: auto;
}

.chara-img {
  display: flex;
  justify-content: center;
  height: auto;
}

img {
  width: 65%;
}

.word-box{
  overflow: auto;
  scrollbar-width: thin;
  padding: 5px;
  border: var(--border);
  max-height: 180px;
}

/* relationship boxes */

.column {
  padding: 0px;
  min-height: 0;
  margin-bottom: 30px;
}

.column > img {
	display: inline;
	float: left;
	height: 145px;
	margin-right: 5px;
	border: 2px ridge black;
}

.left-side {
  width: 30%;
}

.right-side {
  width: 100%;
}

.in-depth {
  overflow:auto;
  scrollbar-width: thin;
  height: 125px;
  border: var(--border);
  padding: 5px;
}

h3{
  border-bottom: 1px solid;
  margin-right: 15px;
  margin-bottom: 5px;
}

.footer{
  background: var(--infobg);
  text-align: center;
  margin-top: 5px;
  font-size: 1.2em;
}

@media (max-width: 800px) {
  body{
    max-width: 100%;
    margin: auto;
  }

  .container{
    max-width: 100%;
  }
  
  .charaimg {
    max-width: 100%;
    height: 100%;
  }

  .two-columns{
    max-width: 100%;
  }

  .column > img {
    height: 100px;
  }
}