@font-face {
    font-family: "flexi_ibm";
    src: url('/static/resources/fonts/flexi_ibm.ttf') format('woff2');
}

@font-face {
    font-family: "flexi_ibm_437";
    src: url('/static/resources/fonts/flexi_ibm_437.ttf') format('woff2');
}

:root {
    --vdoc-bg: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgb(34, 34, 34) 100%);
    --border-light: #fff #B4B9BF #B4B9BF #fff;
    --border-dark: rgba(255, 255, 255, 0.35) rgba(20, 20, 20, 0.35) rgba(19, 19, 19, 0.5) rgba(255, 255, 255, 0.15);
    --border-dark-inset: rgba(0, 0, 0, 0.15) rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.33) rgba(0, 0, 0, 0.15);
    --border-dark-inset-bg: #181818;
    --border-dark-bg: #2b2b2b;
    --kiragrad: linear-gradient(180deg, rgb(70, 2, 83) 0%, rgb(65, 15, 145) 37%, rgb(38, 0, 46) 100%);
    --systemgrad: linear-gradient(180deg, rgb(87, 87, 87) 0%, rgb(138, 138, 138) 37%, rgb(46, 46, 46) 100%);
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: monospace, monospace;
    font-size: 16px;
    background-color: black;
    color: gainsboro;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

h1 {
    font-family: "flexi_ibm", monospace;
    font-size: 32px;
}

h2,
h3 {
    color: white;
    font-family: monospace, monospace;
}

a:link {
    color: #dfdfdf;
}

a:visited {
    color: #9e9e9e;
}

p {
    color: gainsboro;
}

header {
    position: relative;
    padding: 0;
    margin: 0;
    background: linear-gradient(180deg, rgb(41, 41, 41) 0%, rgb(80, 80, 80) 100%);
    border-bottom: 1px solid white;
}

.headermain {
    display: flex;
    flex-direction: row;
    align-content: space-between;
}

.headerleft {
    padding-left: 15px;
    width: 800px;
    background: linear-gradient(180deg, rgba(25, 77, 209, 1) 0%, rgba(9, 27, 61, 1) 100%);
}

.headerright {
    width: 100%;
}

.headerrightcontent {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.headerrightheader {
    position: relative;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid white;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(23, 23, 23, 1) 33%, rgba(0, 0, 0, 1) 100%);
    height: 35px;
}

.headerrightheader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 1.0) 25%, rgba(0, 0, 0, 1.0) 50%, rgba(0, 0, 0, 1.0) 75%, rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
}

main {
    flex: 1;
    padding: 0;
    margin: 0;
    background-color: black;
}

footer {
    border-top: 1px solid white;
    padding: 5px 10px;
    margin: 0;
    background-color: #111;
    text-align: center;
    color: white;
}

.footercontent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 5px;
}

.wisdom {
    font-style: italic;
}

.texturebrowser {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.texturebrowsercontent {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.search {
    width: 300px;
    padding: 10px;
    background: var(--vdoc-bg)
}

.uploader {
    width: 200px;
    padding: 10px;
    background: var(--vdoc-bg)
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 5px;
}

.search-input-wrapper input.tag-search {
    flex: 1;
    padding: 4px 8px;
    background-color: #111;
    border: 1px solid #444;
    color: white;
    margin: 0;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: calc(100% - 12px);
    max-height: 200px;
    overflow-y: auto;
    background-color: #333;
    border: 1px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.suggested-tag {
    padding: 3px 8px;
    background-color: #555;
    color: #eee;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.suggested-tag:hover {
    background-color: #007bff;
}

.search-button {
    background-color: #222;
    border: 1px solid #666;
    cursor: pointer;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    height: 26px;
    width: 26px;
}

.search-button-img {
    height: 26px;
    width: 26px;
}

.search-button:hover {
    background-color: #555;
    border-color: white;
}

.search-button img {
    width: 16px;
    height: 16px;
}

.browse {
    position: relative;
    flex: 1;
    padding: 10px;
    overflow: visible;
}

.preview {
    border-left: 1px solid white;
    width: 400px;
    padding: 10px;
}

.browsercontentheader {
    position: relative;
    border: 1px solid white;
    border-left: 0;
    border-right: 0;
    background: linear-gradient(180deg, rgb(41, 41, 41) 0%, rgb(105, 105, 105) 20%, rgb(41, 41, 41) 100%);
    padding: 0px;
    height: 33px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.headerrightcontentinternal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.popular-tags {
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 0px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.tag-search {
    flex-grow: 1;
    padding: 8px 10px;
    border: 1px solid #555;
    background-color: #222;
    color: white;
    font-size: 14px;
}

.tag-item {
    background-color: #222;
    border: 1px solid #666;
    padding: 2px 6px;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    color: white;
    transition: all 0.2s;
}

.tag-item:hover {
    background-color: #555;
    border-color: white;
}

.toggle-button {
    background: none;
    border: 1px solid white;
    border-top: 0;
    border-bottom: 0;
    color: white;
    padding: 4px 8px;
    margin-right: 8px;
    cursor: pointer;
    font-family: monospace, monospace;
    transition: all 0.2s;
    height: 100%;
}

.toggle-button:hover {
    background-color: white;
    color: black;
}

.texture-list {
    width: 100%;
    padding: 10px;
    padding-left: 0px;
    padding-right: 0px;
}

.texture-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.texture-entry {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #333;
    padding: 6px;
    cursor: pointer;
    justify-content: space-between;
}

.texture-entry,
.texture-card {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.texture-card {
    position: relative;
}

.texture-card a {
    width: 100%;
    height: 100%;
    display: flex;
}

.texture-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.texture-entry-left {
    display: flex;
    flex-direction: row;
}

.texture-entry-left-companion {
    color: rgb(216, 216, 216);
    margin-left: 12px;
}

.texture-entry:hover {
    background-color: #111;
}

.texture-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.texture-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border: 2px solid;
    border-color: var(--border-dark);
    background-color: #111;
    transition: transform 0.15s ease, background-color 0.2s;
    cursor: pointer;
    overflow: hidden;
    height: 128px;
    width: 128px;
}


.texture-card:hover {
    background-color: #222;
    transform: scale(1.03);
}

.texture-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.texture-card-title {
    padding: 5px 0;
    text-align: center;
    font-size: 0.9em;
    color: white;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid #333;
}

.bundle-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffc107;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

.bundle-inline-tag {
    background: #ffc107;
    color: #000;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
    font-weight: bold;
}

.texture-entry.is-bundle {
    background-color: rgba(255, 193, 7, 0.05);
}

.texture-preview img {
    max-width: 100%;
    display: block;
    margin-top: 10px;
    border: 1px solid white;
}

.styletext {
    margin-left: 10px;
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.333),
        -1px -1px 0px rgba(0, 0, 0, 0.333),
        1px -1px 0px rgba(0, 0, 0, 0.333),
        -1px 1px 0px rgba(0, 0, 0, 0.333);
    font-family: monospace, monospace;
}

.hover-preview {
    position: fixed;
    display: none;
    pointer-events: none;
    border: 1px solid white;
    background-color: black;
    z-index: 9999;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.hover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    user-select: none;
}

.page-btn {
    margin-left: 6px;
    margin-right: 6px;
    cursor: pointer;
    user-select: none;
    color: #c2c2c2;
}

.page-btn.active {
    font-weight: bold;
    color: #ffffff;
}

.page-btn-arrow {
    font-weight: bold;
    color: #ffffff;
}

.navbarbutton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
    border: 1px rgb(27, 27, 27) solid;
    border-bottom: 2px solid #000000;
    border-top: 2px rgb(58, 58, 58) solid;
    min-width: 80px;
    background: linear-gradient(180deg, rgb(24, 24, 24) 10%, rgb(45, 45, 45) 100%);
    height: 25px;
}

.navbarbutton.active {
    text-decoration: none;
    background: radial-gradient(circle at -20% 400%, rgb(11, 11, 11) 92%, rgb(99, 99, 99) 100%);
    border: 1px rgb(9, 9, 9) solid;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(9, 9, 9);
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: rgb(9, 9, 9);
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: rgb(9, 9, 9);
    border-left: 1px rgb(87, 87, 87) solid;
    border-right: 1px rgb(109, 109, 109) solid;
    border-top: 2px rgb(153, 153, 153) solid;
    box-shadow: 0px 0px 2px rgb(8, 8, 8);
    box-shadow: 0px 0px 2px rgb(8, 8, 8);
    box-shadow: 0px 0px 2px rgb(8, 8, 8);
    color: white;
    height: 25px;
    text-shadow: 1px 1px 1px black;
}

.navbarbuttoncontent {
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 1px black;
    margin-left: 10px;
    margin-right: 10px;
}

.pagediv {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px;
    border-top-style: none;
    border-top-color: currentcolor;
    border-right-style: none;
    border-right-color: currentcolor;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-left-style: none;
    border-left-color: currentcolor;
    border-style: dotted;
    border-color: rgb(80, 80, 80);
}

.dottedline {
    width: 100%;
    height: 0px;
    border: 1px;
    border-top-style: none;
    border-top-color: currentcolor;
    border-right-style: none;
    border-right-color: currentcolor;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-left-style: none;
    border-left-color: currentcolor;
    border-style: dotted;
    border-color: rgb(80, 80, 80);
}

.vdoc-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(3, 15, 77, 1) 18%, rgba(0, 0, 0, 1) 100%);
}

.vdoc-page {
    position: relative;
    width: 928px;
    max-width: 928px;
    background-color: #111;
    padding: 15px;
    font-size: 16px;
    flex: 1;
    min-height: 0;
    background: var(--vdoc-bg)
}

.vdoc-page h1,
.vdoc-page h2,
.vdoc-page h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: white;
}

.vdoc-page a {
    color: #66b3ff;
    text-decoration: underline;
}

.vdoc-page a:hover {
    color: #99ccff;
}

.rim {
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 20px;

    background-image: url("/static/resources/rim.png");
    background-repeat: repeat-x;
    background-size: 128px 20px;
    z-index: 10;
    pointer-events: none;
}

.pillar {
    position: absolute;
    top: 0px;
    left: -8px;
    height: 100%;
    width: 16px;

    background-color: #333;

    background-image: url("/static/resources/pillar.png");
    background-repeat: repeat-y;
    background-size: 16px 16px;
    z-index: 8;
    pointer-events: none;
}

.pillar.left {
    left: -8px;
}

.pillar.right {
    right: -8px;
}

.vdoc-pillar {
    position: absolute;
    top: 0;
    width: 16px;
    height: 100%;
    background-image: url("/static/resources/pillar.png");
    background-repeat: repeat-y;
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}

.vdoc-pillar.left {
    left: -16px;
}

.vdoc-pillar.right {
    right: -16px;
}

.browsercontentbody {
    position: relative;
    background: var(--vdoc-bg)
}

.textureview-upper-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    min-height: 300px;
    gap: 12px;
    background-color: #0a0a0a;
    border: 1px solid #333;
    padding: 8px;
    box-sizing: border-box;
}

.textureview-upper-item {
    background-color: #111;
    border: 1px solid #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    box-sizing: border-box;
}

.textureview-upper-item.left {
    flex: 1;
    align-items: center;
    justify-content: center;
}

.texture-preview-img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border: 1px solid #555;
    background-color: #000;
}

.textureview-upper-item.middle {
    flex: 1.2;
    overflow-y: auto;
    justify-content: flex-start;
}

.texture-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px black;
}

.texture-description {
    font-size: 0.95em;
    margin-bottom: 12px;
    color: #ddd;
    line-height: 1.4em;
}

.texture-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.texture-tags .tag-item {
    background-color: #222;
    border: 1px solid #555;
    padding: 2px 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.texture-tags .tag-item:hover {
    background-color: #555;
}

.textureview-upper-item.right {
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.texture-tiling-preview {
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: 64px 64px;
    border: 1px solid #333;
    image-rendering: pixelated;
}

.texture-tiling-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.similar-textures-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.similar-texture {
    width: 250px;
    height: 250px;
    border: 1px solid #333;
    background-color: #111;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s;
}

.similar-texture:hover {
    transform: scale(1.05);
    border-color: white;
}

.texture-preview-square {
    width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.texture-preview-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-header-title {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    border: 2px solid black;
    border-color: var(--border-dark);
    background: var(--kiragrad);
    padding-left: 5px;
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, 0.999),
        -1px -1px 1px rgba(0, 0, 0, 0.999),
        1px -1px 1px rgba(0, 0, 0, 0.999),
        -1px 1px 1px rgba(0, 0, 0, 0.999);
    color: white;
}

.system-header-title {
    background: var(--systemgrad)
}

.profile-header-title::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    height: 25px; 
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    
    pointer-events: none; 
    z-index: 1;
}

.profile-info {
    display: block;
    width: 100%;
    max-width: 100%;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.profile-info-grid .texture-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.profile-header {
    display: flex;
    flex-direction: row;
    border: 2px solid;
    border-color: var(--border-dark-inset);
    background-color: var(--border-dark-inset-bg);
    /*background: linear-gradient(180deg,#181818 0%, rgb(37, 37, 37) 100%);*/
    padding: 10px;
    margin-bottom: 15px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.description-text {
    max-height: 100px; 
    overflow-y: auto;
    overflow-wrap: break-word; 
    word-wrap: break-word;
    word-break: break-all; 
    max-width: 100%; 
}

.flexrow {
    flex-direction: row;
}

.profile-page {
    display: flex;
    padding: 5px;
    padding-top: 10px;
    flex-direction: column;
}

.profile-picture {
    width: 128px;
    height: 128px;
    min-width: 128px;
    min-height: 128px;
    object-fit: cover;
    border: 2px solid;
    border-color: var(--border-dark);
    margin-right: 10px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form input[type="text"] {
    background: #222;
    color: #eee;
    border: 2px solid;
    border-color: var(--border-dark);
    padding: 8px;
    border-radius: 8px;
}

.edit-borderarea{
    background: #222;
    color: #eee;
    border: 2px solid;
    border-color: var(--border-dark);
    padding: 8px;
    border-radius: 8px;
    resize: none;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    font-family: monospace, monospace;
}

.uploader-pfp {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #444;
}

.uploader-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.uplader-stats {
    color: #ccc;
}

.ue {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 1px;
    padding-bottom: 1px;
}

.ue-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ue:hover {
    background-color: rgba(235, 235, 235, 0.02);
}

.uebg:hover {
    background-color: rgba(235, 235, 235, 0.08);
}

.ue:hover .ue-left-contents {
    transform: translateX(8px);
    transition: transform 0.1s ease-in;
}

.ue-left {
    display: flex;
    flex-direction: row;
}

.ue-left-profile {
    display: flex;
    flex-direction: row;
    text-decoration: none !important; 
}

.ue-date {
    color: #888;
}

.ue-title {
    text-decoration: none;
    color: white;
    margin-left: 5px;
}

.ue-left-contents {
    display: flex;
    flex-direction: row;
    transition: transform 1.2s ease-out;
}

.ue-title-dono {
    color: #dddddd;
    margin-left: 5px;
}

.ue-title-oldnews {
    color: #dddddd;
    text-decoration: none;
    margin-left: 5px;
}

a.ue-title:visited {
    color: white;
}

.ue-title:hover {
    text-decoration: underline;
}

.ue-note {
    margin-left: auto;
    text-align: right;
    color: #ccc;
    white-space: nowrap;
}

.uebg {
    background-color: rgba(235, 235, 235, 0.045);
}

@keyframes pulsate-gold {
    0% {
        text-shadow: 0 0 10px #FFD700, 0 0 20px #ffd900dd;
        left: 0;
    }

    50% {
        text-shadow: 0 0 20px #FFCC00, 0 0 30px #ffcc00e1;
        left: 0.5px;
    }

    100% {
        text-shadow: 0 0 10px #FFD700, 0 0 20px #ffd900d2;
        left: 0;
    }
}

@keyframes pulsate-silver {
    0% {
        color: #c1cdde;
        text-shadow: 0 0 5px #ffffff20, 0 0 10px #ffffffac;
    }

    50% {
        color: #c7d2e0;
        text-shadow: 0 0 10px #ffffff20, 0 0 20px #ffffff50;
    }

    100% {
        color: #c1cdde;
        text-shadow: 0 0 5px #ffffff20, 0 0 10px #ffffffb4;
    }
}

@keyframes shine {
    0% {
        background-position: -100%;
    }

    100% {
        background-position: 100%;
    }
}

.social-distance {
    margin-top: 30px;
}

.social-fancy {
    font-family: monospace, monospace;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.0) 0%,
            rgba(44, 44, 44, 0.2) 20%,
            rgba(227, 227, 227, 0.489) 80%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-align: center;
    border: 1px solid;
    border-top-color: #979797;
    border-left-color: #323232;
    border-right-color: #323232;
    border-bottom-color: #181818;
    border-radius: 3px;
    padding: 3px;
    padding-left: 16px;
    padding-right: 16px;
    margin-right: 10px;
    margin-left: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.5s ease;
    text-shadow:
        2px 2px 2px rgba(0, 0, 0, 0.999),
        -2px -2px 2px rgba(0, 0, 0, 0.999),
        2px -2px 2px rgba(0, 0, 0, 0.999),
        -2px 2px 2px rgba(0, 0, 0, 0.999);
    background-size: 100% 100%;
    box-shadow: 0px 3px 2px black;
}

button.social-fancy {
    min-width: 150px;
    white-space: nowrap;
}


.social-fancy-header {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 1.0) 0%,
            rgb(21, 21, 21) 60%,
            rgb(39, 39, 39) 80%);
    background-size: 100% 100%;
    box-shadow: 0px 3px 2px black;
    transform: translateY(12px);
}


.social-fancy:visited {
    color: white;
}

.social-fancy:hover {
    filter: brightness(1.2);
    padding-left: 20px;
    padding-right: 20px;
    background-size: 100% 150%;
    box-shadow: 0px 3px 3px black;
}

.social-fancy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 80%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%) rotate(25deg);
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.social-fancy.download {
    background: linear-gradient(180deg, rgb(4, 43, 4) 0%, rgb(82, 151, 36) 100%);
    text-shadow:
        1px 1px 2px rgba(1, 22, 5, 1.0),
        -1px -1px 2px rgba(1, 22, 5, 1.0),
        1px -1px 2px rgba(1, 22, 5, 1.0),
        -1px 1px 2px rgba(1, 22, 5, 1.0);
}

.social-fancy:hover::after {
    animation: sheen 0.5s forwards;
}

.bannerbuttonholder {
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@keyframes sheen {
    0% {
        transform: translateX(-100%) rotate(25deg);
        opacity: 0;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        transform: translateX(200%) scaleX(-200%) rotate(25deg);
        opacity: 0;
    }
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-group .styletext {
    margin-left: 0;
    margin-right: 4px;
    font-weight: bold;
}

.sort-option {
    background-color: #222;
    border: 1px solid #666;
    padding: 2px 6px;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    color: white;
    transition: all 0.2s;
    font-size: 0.85em;
}

.sort-option:hover {
    background-color: #555;
    border-color: white;
}

.sort-option.active {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: bold;
}

#save_changes_btn:disabled,
#save_changes_btn:disabled:hover,
#save_changes_btn:disabled:focus {
    background: linear-gradient(180deg, #666666 0%, #888888 100%) !important; 
    box-shadow: none !important; 
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    filter: none !important;
    transform: none !important;
    padding-left: 16px !important; 
    padding-right: 16px !important;
    animation: none !important; 
}

.flashed-messages {
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.admin-name {
    color: rgb(226, 13, 13);
    font-weight: bold;
    text-shadow: rgb(0, 0, 0) 1px 1px;
}

.mod-name {
    color: rgb(226, 176, 13);
    font-weight: bold;
    text-shadow: rgb(0, 0, 0) 1px 1px;
}

.system-message {
    font-weight: bold;
    text-shadow: 1px 1px 1px black;
}

.system-message-success {
    color: rgb(120, 255, 120);
}

.system-message-danger,
.system-message-error {
    color: rgb(226, 13, 13);
}

.system-message-warning {
    color: rgb(226, 176, 13);
}

.add-more-slot {
        width: 110px;
        height: 140px;
        border: 2px dashed #444;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color 0.2s;
        color: #666;
        font-size: 24px;
        background: #1a1a1a;
    }

    .add-more-slot:hover {
        border-color: #007bff;
        color: #007bff;
    }

    .sortable-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin: 20px 0;
        background: #111;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #333;
    }

    .sort-item {
        position: relative;
        cursor: grab;
        padding: 5px;
        border: 1px solid #444;
        background: #222;
        border-radius: 6px;
        text-align: center;
        width: 110px;
    }

    .sort-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 4px;
    }

    .sort-item.dragging {
        opacity: 0.4;
        border: 1px dashed #fff;
    }

    .delete-btn {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        cursor: pointer;
        font-weight: bold;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        z-index: 5;
    }

    #tag-suggestions {
        position: absolute;
        background: #222;
        border: 1px solid #444;
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        z-index: 100;
        border-radius: 4px;
        margin-top: 2px;
    }

    .tag-item {
        padding: 8px 12px;
        cursor: pointer;
        color: #ddd;
    }

    .tag-item:hover {
        background: #007bff;
        color: white;
    }
