.total-popup-window {
    background-color: #677c8faa;
    overflow: hidden;
    left: 0;
    top: 0;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    z-index: 9;
}

.total-popup-window button {
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.total-popup-window .top-left {
    background-color: #8fc7faaa;
}

.total-popup-window .top-left.resize:hover {
    cursor: nwse-resize;
}

.total-popup-window .top {
    background-color: #669ac9aa;
}

.total-popup-window .top.resize:hover {
    cursor: ns-resize;
}

.total-popup-window .top-right {
    background-color: #8fc7faaa;
}

.total-popup-window .top-right.resize:hover {
    cursor: nesw-resize;
}

.total-popup-window .left {
    background-color: #669ac9aa;
}

.total-popup-window .left.resize:hover {
    cursor: ew-resize;
}

.total-popup-window .right {
    background-color: #669ac9aa;
}

.total-popup-window .right.resize:hover {
    cursor: ew-resize;
}

.total-popup-window .bottom-left {
    background-color: #8fc7faaa;
}

.total-popup-window .bottom-left.resize:hover {
    cursor: nesw-resize;
}

.total-popup-window .bottom {
    background-color: #669ac9aa;
}

.total-popup-window .bottom.resize:hover {
    cursor: ns-resize;
}

.total-popup-window .bottom-right {
    background-color: #8fc7faaa;
}

.total-popup-window .bottom-right.resize:hover {
    cursor: nwse-resize;
}

.total-popup-window .titlebar {
    background-color: #526372aa;
    padding: 2px;
}

.total-popup-window .window-button {
    text-align: center;
    width: 17px;
    height: 17px;
    margin: 0 1px;
}

.total-popup-window .titlebar .window-button:hover {
    background: white;
}

.total-popup-window .content {
    color: white;
    font-size: 30px;
    text-shadow: 2px 3px black;
}

.total-popup-window .content p {
    margin: 15px;
}

.total-popup-window .content.scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

.total-popup-window .content.scroll::-webkit-scrollbar {
    width: 10px;
}

.total-popup-window .content.scroll::-webkit-scrollbar-track {
    background: transparent;
}

.total-popup-window .content.scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.total-popup-window .content.scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.total-popup-window .titlebar .title {
    width: calc(100% - 2px);
    color: white;
    margin-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.total-popup-window .titlebar .minimize {
    background-color: #cbcbcb;
}

.total-popup-window .titlebar .maximize {
    background-color: #cbcbcb;
}

.total-popup-window .titlebar .close {
    background-color: #cbcbcb;
}

.tabs {
    width: 100%;
    height: 100%;
}

.tabs .tabbar {
    background-color: #313b44;
}

.tabs .tab {
    color: black;
    background-color: #5c7a7f;
    transition: background-color 0.5s;
    text-align: center;
    border-radius: 12px 12px 0 0;
    justify-content: center;
    align-items: center;
}

.tabs .tab .animated {
    transition: left 0.5s;
}

.tabs .tab:hover {
    background-color: rgb(255,0,0, 0.5);
    transition: background-color 0.5s;
}

.tabs .tab.active {
    background: white;
    border: 1px solid white;
}

.tabs .tab .close {
    position: absolute;
    right: 10px;
}

.tabs .content {
    margin: 15px;
}

.total-popup-miniature {
    background-color: #677c8f;
    justify-content: center;
    align-items: center;
    font-size: 34px;
}

.total-popup-window .prompt-name {
    margin: 15px;
    text-align: center;
}

.total-popup-window .prompt-name input {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 24px;
    color: white;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    padding: 5px;
    outline: none;
}

.total-popup-window .prompt-name button {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 24px;
    text-shadow: 2px 3px black;
}

.total-popup-window .message-box {
    margin: 0 15px;
}

.total-popup-window .message-box input {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 24px;
    color: white;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    padding: 5px;
    outline: none;
    width: calc(100% - 10px);
}

/*** Pixelart filters ***/

.pixelart {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    background-repeat: no-repeat;
    background-color: transparent;
}

/*** Content styling ***/

.total-popup-window hr {
    border: none;
    height: 2px;
    background-color: #526372;
    margin: 8px;
}

.total-popup-window .prompt-box {
    padding: 4px 4px 12px 4px;
}

.total-popup-window .prompt-box .prompt-line {
    font-size: 16px;
    padding: 6px 10px;
}

.total-popup-window .prompt-box .prompt-line:hover {
    color: #ff0;
    cursor: pointer;
}

.total-popup-window .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin: 6px 8px;
}

.total-popup-window .progressbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin: 8px;
}

.total-popup-window .progressbar .bg {
    width: 100%;
    height: 10px;
    background-color: #526372;
}

.total-popup-window .progressbar .name {
    margin-right: 8px;
}

.total-popup-window .progressbar .bar {
    height: 10px;
    background-color: white;
}

/*** Inventory ***/

.total-popup-window .inventory-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
}

.total-popup-window .inventory-item {
    width: calc(16px * 3);
    height: calc(16px * 3);
    border: 2px solid #526372;
    padding: 4px;
    position: relative;
}

.total-popup-window .inventory-item .inventory-image {
    width: 48px;
    height: 48px;
}

.total-popup-window .inventory-item .inventory-number {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
    margin: 2px 5px;
}

/* Quest Tracker Window */

.total-popup-window .quest-container {
    padding-bottom: 10px;
    border-bottom: 1px solid white;
}

.total-popup-window .quest-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin: 6px 8px;
}

.total-popup-window .quest-log {
    font-size: 13px;
    font-weight: 600;
    margin: 6px 8px;
}

/* System Window */

.total-popup-window .system-window {
    padding: 20px;
}

.total-popup-window .system-window .system-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.total-popup-window .system-window .system-header img {
    width: 128px;
    height: 128px;
}

.total-popup-window .system-window h1 {
    font-size: 30px;
    margin: 15px 0;
}

.total-popup-window .system-window p {
    font-size: 16px;
    margin: 6px 0;
}

/* Trade Window */

.total-popup-window.trade .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.total-popup-window .trade-list {
    width: 100%;
    border: none;
}

.total-popup-window .trade-row {
    font-size: 16px;
    color: #fff;
}

.total-popup-window .trade-row:hover {
    color: #ff0;
    cursor: pointer;
}

.total-popup-window .trade-row.selected {
    color: #f40;
}

.total-popup-window .trade-icon {
    width: 48px;
    height: 48px;
    margin: 5px;
}

.total-popup-window .trade-desc {
    white-space: pre-line;
    word-break: break-word;
}

.total-popup-window .trade-price {
    text-align: center;
}

.total-popup-window .trade-total {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #526372aa;
    padding: 10px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.total-popup-window .trade-total button.change {
    width: 20px;
    padding: 4px;
    margin: 0 5px;
    font-size: 16px;
}

.total-popup-window .trade-total button.buy {
    padding: 6px 10px;
    font-size: 18px;
    margin: 0 5px;
}

.total-popup-window .trade-total button:hover {
    cursor: pointer;
}
