:root {
    font: 13px Trebuchet MS, sans-serif;
    --body-bg: url('bg_maintenance.avif');
    --banner-bg: url('banner2.avif');
    --primary-color: hsl(269, 89%, 36%);
    --dark-color: hsl(0, 0%, 15%);
    --gray-color: hsl(0, 0%, 75%);
    --green-color: hsl(100, 89%, 32%);
    --red-color: hsl(360, 89%, 36%);
    --usrbar-bg: hsla(0, 0%, 100%, 50%);
    --text-color: hsl(0, 0%, 100%);
    --matte: linear-gradient(to bottom, hsla(0, 0%, 100%, 0%) 0%, hsla(0, 0%, 100%, 20%) 50%, hsla(0, 0%, 100%, 0%) 100%);
    --gloss: linear-gradient(to bottom, hsla(0, 0%, 100%, 45%) 0%, hsla(0, 0%, 100%, 10%) 50%, hsla(0, 0%, 100%, 2%) 50%);
    --div-bg: hsl(0, 0%, 92%);
    --border-color: hsla(0, 0%, 0%, 25%);
}

body {
    background: var(--body-bg) #4c4c4c;
    background-repeat: no-repeat;
    background-position: center top;
    font-family: Trebuchet MS, sans-serif;
    margin: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}


button,
input[type="button"],
input[type="submit"] {
    font-family: Trebuchet MS, sans-serif;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: var(--gloss), var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    background: var(--matte), hsl(0, 0%, 100%);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
}

label {
    display: block;
    font-weight: bold;
    color: #444;
    margin-bottom: 3px;
}

input.icon-user {
    background: url('/assets/imgs/icons/Person.png') no-repeat 4px center, var(--matte), hsl(0, 0%, 100%);
    padding-left: 24px !important;
}

input.icon-mail {
    background: url('/assets/imgs/icons/Mail.png') no-repeat 4px center, var(--matte), hsl(0, 0%, 100%);
    padding-left: 24px !important;
}

input.icon-key {
    background: url('/assets/imgs/icons/Key.png') no-repeat 4px center, var(--matte), hsl(0, 0%, 100%);
    padding-left: 24px !important;
}

button.green {
    background: var(--gloss), var(--green-color);
}

button.blue {
    background: var(--gloss), var(--primary-color);
}

button.red {
    background: var(--gloss), var(--red-color);
}

main {
    margin: auto;
    max-width: 1000px;
    border: 1px solid var(--border-color);
}

.MainGradient {
    background: repeating-linear-gradient(45deg,
            #f7f7f7,
            #f7f7f7 10px,
            #eee 10px,
            #eee 20px);
    padding-top: 25px;
    padding-bottom: 25px;
}

main#banner {
    text-align: center;
    position: sticky;
    top: 8px;
    z-index: 100;
}

main#banner div#banner_img {
    height: 100px;
    background-image: var(--banner-bg);
    background-position: center;
    background-size: cover;
    color: var(--text-color);
    font-weight: bold;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    border-bottom: 0;
    height: 150px;
}

div#usrbar {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    padding: 8px;
    background: var(--usrbar-bg);
    color: var(--text-color);
    font-weight: bold;
    text-shadow: 0 0 4px hsl(0, 0%, 0%);
    border: 1px solid var(--border-color);
    border-top-width: 0;
    border-right-width: 0;
    min-height: 20px;
    z-index: 999;
}

div.title {
    padding: 5px 10px;
    background: var(--matte), var(--primary-color);
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

div.title.dark {
    margin-top: 0 !important;
    background: var(--gloss), var(--dark-color);
    font-weight: normal;
    font-size: 14px;
    border-top: 0;
}

div.title.dark ol li a {
    margin-right: 8px;
}

div.title ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    display: inline-block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

li a {
    text-decoration: none;
    color: var(--text-color);
}

div#banner_img a {
    color: var(--red-color);
}

.HomeWrapper,
.PageWrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.TopHeader {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 !important;
}

.WelcomeText {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.AlertInfo {
    flex-grow: 1;
    background: #e3f2fd !important;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.AlertInfo:hover {
    background: #bbdefb !important;
}

.MainGrid {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 0 !important;
}

.LeftCol {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 !important;
}

.MidCol {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 !important;
}

.RightCol {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 !important;
}

.ContainerBox {
    background: #fff !important;
    border: 1px solid #aaa;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.BoxHeader {
    background: var(--matte), var(--primary-color) !important;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.BoxHeader img {
    margin-right: 6px;
    height: 16px;
    width: 16px;
}

.BoxHeader a {
    color: #fff;
}

.BoxContent {
    padding: 10px;
    background: #fff !important;
}

.AvatarDisplay {
    width: 200px;
    height: 220px;
    background: #fff !important;
    border: 1px solid #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.AvatarDisplay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.FeedContainer {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    background: #fff !important;
    padding: 0 !important;
}

.StatusFormArea {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #fcfcfc !important;
}

.StatusInput {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px;
    resize: none;
    height: 40px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 5px;
}

.StatusActions {
    text-align: right;
    padding: 0 !important;
}

.FeedListArea {
    padding: 10px;
    background: #fff !important;
}

.FeedItem {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.FeedItem:last-child {
    border: 0;
    margin: 0;
    padding: 0;
}

.FeedAvatar {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    background: #fff !important;
    flex-shrink: 0;
}

.FeedBody {
    flex-grow: 1;
    padding: 0 !important;
}

.FeedText {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
}

.FeedTime {
    font-size: 10px;
    color: #888;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.FeaturedContainer {
    background: #fff9c4 !important;
    border: 1px solid #fbc02d;
    padding: 10px;
    text-align: center;
}

.FeaturedLabel {
    color: #f57f17;
    font-weight: bold;
    margin-bottom: 5px;
}

.FeaturedImage {
    width: 100%;
    height: 120px;
    border: 1px solid #f9a825;
    background: #fff;
    object-fit: cover;
    margin-bottom: 5px;
}

.GameRow {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 !important;
}

.GameRow:last-child {
    margin-bottom: 0;
}

.GameRowThumb {
    width: 48px;
    height: 48px;
    border: 1px solid #aaa;
    background: #eee !important;
    flex-shrink: 0;
}

.GameRowInfo {
    font-size: 12px;
    padding: 0 !important;
}

.GameRowName {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.GameRowStat {
    font-size: 10px;
    color: #666;
}

.GenericHeader {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.TitleArea {
    display: flex;
    align-items: center;
    gap: 15px;
}

.LargeTitle {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.Badges {
    display: flex;
    gap: 8px;
}

.Badge {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.Badge.Green {
    background: #66BB6A;
}

.Badge.Red {
    background: #EF5350;
}

.Badge.Blue {
    background: #42A5F5;
}

.Badge.Yellow {
    background: #FFEE58;
}

.Blurb {
    font-size: 16px;
    color: #555;
    margin-top: 8px;
    font-style: italic;
}

.Columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.Column {
    display: flex;
    flex-direction: column;
}

.Column.Left {
    width: 320px;
    flex-shrink: 0;
    gap: 15px;
}

.Column.Right {
    flex-grow: 1;
    gap: 0;
}

.AvatarBox {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    background: #fff !important;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

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

.StatRow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.Tabs {
    display: flex;
    border: 1px solid #aaa;
    background: #fff !important;
    margin-bottom: -1px;
    z-index: 10;
    position: relative;
    border-bottom: 0;
}

.Tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--matte), #f1f1f1;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid #aaa;
    text-decoration: none;
    font-size: 14px;
}

.Tab:last-child {
    border-right: 0;
}

.Tab.Active {
    background: #fff;
    color: #333;
    border-bottom: 1px solid #fff;
}

.Tab:hover {
    background: #f9f9f9;
    text-decoration: none;
}

.TabContent {
    background: #fff !important;
    border: 1px solid #aaa;
    min-height: 450px;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.FilterBar {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.Dropdown {
    width: 100%;
    max-width: 250px;
    padding: 5px;
    border: 1px solid var(--border-color);
    background: var(--matte), #fff !important;
    font-family: inherit;
}

.Grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.GridItem {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    background: #fff !important;
}

.GridItemImg {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    margin-bottom: 5px;
    border: 1px solid #eee;
}

.GridItemName {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: var(--primary-color);
}

.HiatusContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 0 20px;
}

.HiatusBox {
    width: 500px;
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.HiatusContent {
    text-align: center;
    padding: 30px;
}

.HiatusLogo {
    height: 64px;
    margin-bottom: 15px;
}

.HiatusTitle {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 24px;
}

.HiatusText {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.HiatusDivider {
    margin: 20px 0;
    padding-top: 20px;
}

.HiatusFooter {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
}

.HiatusButton {
    font-size: 16px;
    padding: 8px 25px;
    font-weight: bold;
}

.HiatusSubText {
    margin-bottom: 15px;
}

.UserSearchTable {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.UserSearchHeader {
    display: table-row;
    background: #aab8c6;
    color: #fff;
    font-weight: bold;
}

.UserSearchRow {
    display: table-row;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.UserSearchCell {
    display: table-cell;
    padding: 10px;
    vertical-align: middle;
}

.UserSearchCell.Center {
    text-align: center;
}

.UserSearchAvatar {
    width: 70px;
    height: 70px;
    background: #fff;
    border: 1px solid #999;
    margin: 0 auto;
}

.CustomizeWrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.AvatarCol {
    width: 300px;
    flex-shrink: 0;
    position: relative;
}

.WardrobeCol {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ControlTooltip {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 4px;
    display: none;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.AvatarViewer:hover .ControlTooltip {
    display: flex;
}

.ControlTooltip::after {
    content: " ";
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.ControlTooltip::before {
    content: " ";
    position: absolute;
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
    z-index: -1;
}

.AvatarViewer {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.BodyRig {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 20px auto;
    width: 100%;
    justify-content: center;
}

.RigRow {
    display: flex;
    gap: 4px;
}

.RigPart {
    border: 2px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.RigPart:hover {
    opacity: 0.8;
}

.RigHead {
    width: 50px;
    height: 50px;
}

.RigTorso {
    width: 100px;
    height: 100px;
}

.RigArm {
    width: 50px;
    height: 100px;
}

.RigLeg {
    width: 48px;
    height: 100px;
}

.InventoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
}

.InvItem {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.InvItem.Wearing {
    border-color: var(--green-color);
    background: #e8f5e9;
}

.InvItemImg {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.InvItemName {
    font-size: 11px;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    color: #333;
}

.WearingList {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.WearingRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.HeroBox {
    background: #fff;
    border: 1px solid #aaa;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.HeroBadge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    z-index: 5;
    transform: rotate(15deg);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.HeroText {
    flex: 1;
}

.HeroTitle {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.HeroSubtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.HeroButton {
    font-size: 20px;
    padding: 10px 30px;
    font-weight: bold;
}

.HeroVisual {
    width: 300px;
    height: 200px;
    background: #fff;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.HeroVisual img {
    max-height: 90%;
    max-width: 90%;
}

.FeatureGrid {
    display: flex;
    gap: 15px;
}

.FeatureItem {
    flex: 1;
    background: #fff;
    border: 1px solid #aaa;
    padding: 15px;
}

.FeatureHeader {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.FeatureIcon {
    font-size: 24px;
    margin-right: 10px;
}

.FeatureTitle {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.FeatureBody {
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

.InfoBar {
    background: #fff;
    border: 1px solid #aaa;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #555;
}

.IconGold {
    color: #fbc02d;
}

.IconBlue {
    color: var(--primary-color);
}

.SearchFilterBar {
    background: transparent;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

.SearchForm {
    display: flex;
    align-items: center;
    gap: 5px;
}

.SearchInput {
    padding: 5px;
    border: 1px solid #aaa;
    height: 28px;
    box-sizing: border-box;
}

.SearchButton {
    height: 28px;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 13px;
    line-height: 26px;
    display: inline-block;
}

.UserStats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #555;
    font-weight: bold;
}

.StatItem {
    display: flex;
    align-items: center;
    gap: 5px;
}

.UserTable {
    width: 100%;
    border-collapse: collapse;
}

.UserTable th {
    background: var(--matte), var(--primary-color) !important;
    color: #fff;
    font-weight: bold;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    text-align: left;
}

.UserTable th.Center,
.UserTable td.Center {
    text-align: center;
}

.UserTable td {
    background: #fff;
    padding: 8px;
    border: 1px solid #ccc;
    vertical-align: top;
}

.UserTable tr:nth-child(even) td {
    background: #f0f0f0;
}

.UserTableAvatar {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
}

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

.UserInfo {
    vertical-align: top;
}

.UserName {
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #0000ff;
}

.UserName:hover {
    text-decoration: underline;
}

.UserDesc {
    font-size: 12px;
    color: #333;
    margin-top: 4px;
    max-width: 450px;
    line-height: 1.3;
}

.StatusOnline {
    color: #333;
}

.StatusOffline {
    color: #888;
}

.Pagination {
    padding: 10px 0 0 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.PageLink {
    display: inline-block;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #ccc;
    color: #0000ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}

.PageLink:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.PageLink.Active {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    cursor: default;
}

#mousetooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 999999;
    pointer-events: none;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mousetooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.TooltipTrigger {
    cursor: help;
}