body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  color: #202122;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* FLEX */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}
.column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
li {
  list-style: none;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid #a2a9b1;
  padding: 1rem 2rem;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: row;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 1rem;
}

nav {
  width: 180px;
  top: 0;
  padding-right: 1rem;
  border-right: 1px solid #ccc;
  position: sticky;
  height: fit-content;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  margin: 0.5rem 0;
}

nav a {
  text-decoration: none;
  color: #0645ad;
}

nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  padding: 0 1rem;
}

main h2 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  padding: 1rem;
  border-top: 1px solid #ccc;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
    position: initial;
    top: initial;
  }
}
/* hover */
.hide {
  display: none;
}

.hover:hover + .hide {
  display: block;
  color: red;
}


/* tooltip */

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  max-width: calc(100dvw - 300px);
  width: max-content;
  height: auto;
  padding: 4px 8px;
  border-radius: 8px;
  /* max-width: 800px; */
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  font-family: 'headbodyscript';
  visibility: visible;
  background-color: black;
  color: white;
}

.tooltip span{
  position: absolute;
  font-size: smaller;
  bottom: 1px;
  right: 8px;
  color: white;
}

/* TABLE */
.enchantments {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

.enchantments td,
.enchantments th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.enchantments tr:nth-child(even) {
  background-color: #dddddd;
}

.crafting{
  border-collapse: collapse;
}
.crafting td{
  height: 32px; width: 32px;
}
.crafting th{
 border: 1px solid black;
  /* text-align: left; */
  padding: 4px;
  height: 32px; width: 32px;
}
.crafting img{
  height: 32px; width: 32px;
}
.villager{
  border-collapse: collapse;
}
.villager tr{
  width: 200px;
  height: 40px;
  background-image: url(img/button.png);
  background-size: 100% 100%;
}
.villager tr:hover{
    background-image: url(img/button_highlighted.png);
}
.villager th{
  height: 100%;
}
.villager th:nth-child(1){
  padding-left: 12px;
width: 32px;
}
.villager th:nth-child(2){
width: 32px;
}
.villager th:nth-child(3){
width: 140px;
height: 40px !important; 
}
.villager th:nth-child(4){
width: 32px;
padding-right: 8px;
}
/* img sizes */
.item {
  position: relative;
  top: 4px;
  width: 24px;
  height: 24px;
}
.item-rune {
  height: 82px;
  transform: rotate(180deg);
}
.item-1{
  height: 64px; width: 64px;
}
.item-1 img{
  height: 100%; width: 100%;
  overflow: visible;
}
.img-armor-set {
  height: 128px;
}
.bit-64 {
  width: 256px;
  height: 256px;
}
/* MC COLORS */
.tier-dark-blue {
  color: #0000aa;
}
.tier-dark-green {
  color: #00aa00;
}
.tier-dark-aqua {
  color: #00aaaa;
}
.tier-dark-red {
  color: #aa0000;
}
.tier-dark-purple {
  color: #aa00aa;
}
.tier-gold {
  color: #ffaa00;
}
.tier-gray {
  color: #aaaaaa;
}
.tier-dark-gray {
  color: #555555;
}
.tier-blue {
  color: #5555ff;
}
.tier-green {
  color: #55ff55;
}
.tier-aqua {
  color: #55ffff;
}
.tier-red {
  color: #ff5555;
}
.tier-light-purple {
  color: #ff55ff;
}
.tier-yellow {
  color: #ffff55;
}
