.border {
    border-image-slice: 52;
    border-image-width: 10px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-source: url(/assets/img/frame.png);
    border-style: solid;
    box-shadow: 0 1px 4px var(--green);
    padding: 6px;
}

summary:hover {
    cursor: pointer;
}

.sidetable {
    width: 240px;
    min-height: 200px;
    background: var(--blue);
    color: white;
    float: right;
    margin: 8px;
    padding-top: 12px;
}

.sidetable {
    text-align: center;
}

.sidetable img {
    width: 200px;
    height: 200px;
    margin-top: 8px;
    border:2px solid var(--green);
    box-shadow: 0 1px 4px var(--green);
}

.sidetable p {
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

td small {
    font-size: 10px;
}

td br {
    margin-bottom: 4px;
}

td,
th {
    padding: 4px 12px;
    border-bottom: 2px solid var(--green);
    border-top: 2px solid var(--green);
    text-align: left;
}

tr:nth-child(even) {
    background: var(--orange);
}
td:nth-child(even) {
    width: 55%;
    text-align: right;
    border-left: 2px dotted var(--green);
}

.sidetable summary {
    background: var(--green);
    padding: 4px;
}


.character-hr {
    width: 100%;
    margin-left: 0;
    text-align: left;
}

.character-hr:after {
    content: "";
}

.character-hr:before {
    content: "\2388";
    color: black;
    display: inline;
    background-color: var(--yellow);
    padding: 4px;
    margin-left:-2px;
}

.skill-label {
    margin-bottom: 0;
    margin-top: 4px;
    margin-left: 32px;
}

.skill-bar-back {
    width: 80%;
    height: 28px;
    background: var(--green);
    margin: auto;
    padding: 6px;
    border-radius: 4px;
}

.skill-bar-front {
    height: 16px;
    background: var(--orange);
    color: white;
    padding: 2px;
    padding-left: 4px;
    font-size: 12px;
    border-radius: 2px;
}

.relationship-label {
    font-weight: bold;
    margin-bottom: -8px;
    font-size: 17px;
}

.research {
    width:100%;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    gap: 12px;
}

.research-box {
    width: 240px;
    background: var(--orange);
    color: white;
    padding: 16px;
}

.research-box:hover {
    transform: scale(1.05)
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: stretch;
    gap: 8px;
}

.gallery img {
    height: 200px;
}

/*IMAGES ZOOM*/

.image-zoom:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 24px;
    left: 0;
    top: 0;
    width: 100%;
    overflow: auto;
    background: var(--green-transparent);
    color: white;
    height: 100%;
}

.modal-content {
    margin: auto;
    display: block;
    height: fit-content;
    max-width: 700px;
}

.modal-content img {
    width: 100%;
}

#caption {
    margin: auto;
    display: block;
    width: 70%;
    text-align: center;
    padding: 8px 0;
    max-height: 120px;
    font-size: 20px;
}

.close {
    position: absolute;
    top: 16px;
    right: 32px;
    color: var(--orange);
    font-size: 40px;
    font-weight: bold;
}

.close:hover {
    color: var(--yellow);
    text-decoration: none;
    cursor: pointer;
}
