* {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    font-family: Arial, Helvetica, sans-serif;  
}

table, th, td {
    border:1px solid black;
    margin-top: 2%;
}

body {
    color:black;
}

h1, h2, h3 {
    text-align: center;
}

h2#desc {
    padding-top: 10px;
}

input {

}


/* Map */

#popup-body {
    white-space: pre-line;
}

.region.selected, .other.selected {
    stroke: black;
    stroke-width: 0.2;
}

.region.hover {
    stroke: rgba(255, 0, 255, 25);
    stroke-width: 0.2;
}

.region, .other {
    fill: transparent;
    stroke: none;
    cursor: pointer;
}

.connection-source {
    stroke: blue;
    stroke-width: 0.5;
    opacity: 0.7;
}

.connection-dest {
    stroke: green;
    stroke-width: 0.5;
    opacity: 0.7
}

.connection {
    display: none;
}

.connection.active {
    display: inline;
    stroke: blue;
    stroke-width:0.2;
    fill: none;
    stroke-dasharray: 1, 2;
    stroke-linecap: round;
}

#button-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 20%;
    width: 4%;
    height: 40%;
    overflow-y: auto;
    background: rgba(69, 69, 69 ,0.6);
    border: 1px solid #333;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
    gap: 6px;
    font-weight: bold;
}

#button-container-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
}

#button-container-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 50%; 
    left: 6px;
    right: 6px;
}

.side-button {
    width: 100%;
    font-size: 0.7rem;
    padding: 6px 4px;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}

.info-panel {
    position: fixed;
    top: 10%;
    width: 24%;
    height: 70%;
    overflow-y: auto;
    background: rgba(255,255,255,0.95);
    border: 1px solid #333;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    z-index: 10;
}

#left-info {
    left: 20px;
}

#right-info {
    right: 20px;
}

#left-body {
    white-space: pre-wrap;
}

#right-body {
    white-space: pre-wrap;
}

/* End Map */

/* Character Stat */

.scores-table {
    margin-top:0px;
}

.scores-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.num-in {
    width: 5ch;
}

.scores-input {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.scores-input-individual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capitalize {
    text-transform: capitalize;
}

.save-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
}

.scores-table {
}

/* end stat */

/* CHARACTER CREATOR - RACE + NAME */

.half-split-left {
    float:left;
    width:46%;
    margin-left:2%;
    margin-right:2%;
}

.half-split-right {
    float:left;
    width:46%;
    margin-left:2%;
    margin-right:2%;
}

summary {
    text-transform: capitalize;
}

select {
    text-transform: capitalize;
}

.new-char-title, .new-char-name, .new-char-lineage {
    padding-bottom: 10px;
    font-size: large;
    font-weight: bold;
}

.new-char-lineage{
    text-align: center;
}

.lineage-select, .centered-next {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CHARACTER CREATOR - CLASS SELECT */

.choice-select {
    text-transform: capitalize;
}

.option-select {
    text-transform: capitalize;
}

.feature-title {
    padding-left: 0px;
    text-transform: capitalize;
    font-weight: bold;
    font-size: large;
}

.feature-desc-br {
}

.feature-desc-block {
    font-size: medium;
    padding-left: 10px;
}

.feature-desc-list {
    padding-left: 30px;
}

.feature-desc {
    display: block;
    padding: 5px
}

.feature {
    padding-top: 15px;
}

.hidden {
    display: none;
}


/* END CHARACTER CREATOR */

.global-nav {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end;
    height: 40px;                   
    border-bottom: 1px solid black; 
    font-size: large;
    font-weight: bold;
    background-color: white;
    z-index: 11;
}

.left-nav {
}

.middle-nav {
}

.right-nav {
    padding-right: 5px;
}

.navlink {
    padding-left: 10px;
    color: black;
}

.navlink-middle {
    color: black;
    padding-left: 0px;
}

.desc_image {
    position: absolute;
    left: 80%;
    top: 55px;
}

.desc-edit {

}

.mid-break {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.desclink {
    color: black;
    
}

.wrapper {
    margin-left: 7%;
    width: 86%;
}

.wrapper-small {
    margin-left: 20%;
    width: 60%;
}

#login {
    font-size: large;
    font-weight: bold;
    text-align: center;
}

.tablediv-no-newdiv {
    
}


.displaydiv {
    width: 58%;
    float: left;
}

.visual-stash {
    margin-top: 3%;
    margin-left: 2%;
    display: flex;
    flex-wrap: wrap;
    gap: 25px 0px;
}

.visual-item { 
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 80px;
    width: calc(60px + ((var(--count))) * 30px);
    position: relative;
    cursor: pointer;
}

.visual-item-tooltip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    visibility: hidden; 
    width: calc(80px + ((var(--count)) - 1) * 30px);
    height: auto;
    margin-top: 81px;
    padding-left: 2%;
    padding-right: 2%;
    background-color: black;
    opacity: 0.8;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    z-index: 100;
    align-items: center;
}

.visual-item:hover .visual-item-tooltip {
    visibility: visible;
}

.inv-image {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(var(--i) * 30px), 0);
  z-index: calc(var(--count) + 1 - var(--i));
}
.shelf-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(var(--i) * 20px), 0);
  z-index: -1;
}

.funds {
    margin-top: 20px;
}

.tablediv {
    width: 40%;
    float: left;
}

.newitemdiv {
    width: 60%;
    float: left;
}

.error {
    color: red;
    font-size: 20px;
}

.listnavwrapper {
    width: 100%;
}

.listnavneg {
    width: 25%;
    float: left;
    justify-content: center;
    align-items: center;
}

.listnavdesc {
    width: 50%;
    float: left;
    text-align: center;
}

.listnavpos {
    width: 25%;
    float: left;
    position: center;
}

.addformdiv {
    width: 50%;
    margin-left: 23%;
    float: left;
}

.itemlistdiv {
    margin-left: 3%;
    margin-top: 7%;
    width: 20%;
    float: left;
}

.invfilter {
    display: flex;
    justify-content: center;
    margin-top: 2%;
    align-items: center;
    gap: 5px;
}

.itemlist {
    display: flex;
    justify-content: center;
}
.table {
    width: 100%;
    text-align: center;
}   

.thead {
    width: 100%;
    padding: 5px;
}

.tbody {
    width: 100%;
}
