:root {
    --book-background-color: #FFFFEF;
}
body {
    background-color: var(--book-background-color);
}
.main {
    margin-left: 320px; /* Same as the width of the sidebar */
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    font-family: "arial";
    font-size: 16px;
}
.section {
    display: flex;
    flex-direction: column;
}
.spacing {
    padding: 10px;
}
.hidden {
    display: none;
}

/* Tables */
table {
    width: fit-content;
    border: 1px solid black;
    border-collapse: collapse;
    background-color: #E2EFD9;
    margin: 5px;
}
th, td {
    font-family: "arial";
    font-size: 13px;
    padding-left: 7px;
    padding-right: 7px;
    border: 1px solid black;
    text-align: left;
}
th {
    font-weight: bold;
    font-size: 14px
}
/*td:nth-of-type(1) {
    text-align: center;
}*/
table .centertext td,
table .centertext th {
    text-align: center;
}
table .centertext {
    text-align: center;
}

/* Lists */
ul {
    margin: 0px;
}

/* Headings */
.h1, .h2, .h3, .h4, .h5 {
    font-family: "arial";
    font-weight: bold;
}
.h1 {
    font-size: 40px;
}
.h2 {
    font-size: 35px;
}
.h3 {
    font-size: 30px;
}
.h4 {
    font-size: 25px;
}
.h5 {
    font-size: 20px;
}

/* Text */
span {
    -webkit-text-stroke: 2px var(--book-background-color);
    paint-order: stroke fill;
}
.creature span {
    -webkit-text-stroke: 0px var(--book-background-color);
    paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 2px var(--book-background-color)) {
    .span {
      text-shadow:
        2px 0 var(--book-background-color),
       -2px 0 var(--book-background-color),
        0 2px var(--book-background-color),
        0 -2px var(--book-background-color);
    }
  }
.bold {
    font-size: bold;
}
b-m {
    /* Bold with margins, for abilities within text, if text is bold and has a "." after it, it needs this tag */
    font-weight: bold;
    margin-left: 10px;
}
.calculation {
    font-weight: bold;
    margin: 10px;
    margin-left: 50px;
}

/* Features & Upgrades */
.feature {
    display: flex;
    flex-direction: column;
}
.upgrade {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}
.feature .cost,
.feature .requirements  {
    font-style: italic;
    font-weight: bold;
    font-size: 12px;
}
.feature .tag  {
    font-weight: bold;
    font-size: 12px;
}


/* Archetypes */
.archetype_container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-shrink: unset;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 20px;
}
.archetype {
    width: 400px;
}
.archetype table {
    width: 100%;
}
.archetype .title {
    font-size: 20px;
    font-weight: bold;
}
.archetype table tr:nth-of-type(1) td {
    font-size: 12px;
}
.archetype table tr:nth-of-type(4) td,
.archetype table tr:nth-of-type(5) td {
    font-style: italic;
    font-size: 12px;
}
.archetype .archetype_alternate table tr td {
    font-style: italic;
    font-size: 12px;
}

/* Stat Block */
.creature_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px
}
.creature {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: fit-content;
    border: 1px solid black;
    padding: 5px;
    background-color: white;
}
.creature .size-type-alignment {
    font-style: italic;
    font-size: 12px;
}
.creature table {
    background-color: transparent;
    border: none;
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}
.creature table td,
.creature table th {
    border: none;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    width: calc(100% / 6);
}

/* Maneuvers */
.maneuver_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
.maneuver {
    width: 350px;
}
.maneuver table {
    width: 100%;
}
.maneuver table td,
.maneuver table th {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    border-left: none;
    border-right: none;
}
.maneuver table tr:nth-of-type(1) th {
    font-weight: bold;
    font-size: 16px;
    background-color: #7F7F7F;
}
.maneuver table tr:nth-of-type(1) th:nth-of-type(2) {
    text-align: right;
}
.maneuver table tr:nth-of-type(2) td,
.maneuver table tr:nth-of-type(3) td,
.maneuver table tr:nth-of-type(4) td {
    font-size: 13px;
    background-color: #D0CECE;
}
.maneuver table tr td {
    font-size: 14px;
    background-color: #F2F2F2;
}


/* Images */
.background-image {
    position: fixed;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}
.background-image img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .background-image {
      display: none;
    }
}

/* Sidebar Menu */
.sidenav {
    height: 100%; /* Full-height: remove this if you want "auto" height */
    width: 320px; /* Set the width of the sidebar */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #111; /* Black */
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 20px;
}
.sidenav a, .dropdown-btn {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    outline: none;
}
.sidenav a:hover,
.dropdown-btn:hover,
.dropdown-btn:hover + a {
    color: #f1f1f1;
}
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
.sidenav .category-container {
    position: relative;
}
.dropdown-btn {
    height: 40px;
    padding: 0px;
    position: absolute;
    right: 14px;
    top: 0px;
}
.dropdown-btn i {
    padding-left: 290px;
}
.active {
    color: white;
}
.dropdown-container {
    display: none;
    background-color: #262626;
    padding-left: 8px;
}
.dropdown-container a {
    font-size: 20px;
}
.dropdown-container .dropdown-container a {
    font-size: 15px;
}
.dropdown-container .dropdown-btn {
    height: 35px;
}