* {
	padding: 0;
	margin: 0;
}
.guild-menu{
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 80vh;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;

}
.guild-menu-left,
.guild-menu-center,
.guild-menu-right {
	padding: 10px;
	position: relative;
}
.guild-menu-left {
	width: 20%;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.guild-menu-center {
	width: 60%;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.guild-menu-right {
	width: 20%;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Wrapper adjustments for XP bar */
wrapper {
    padding-bottom: 50px; /* Account for fixed XP bar at bottom */
    min-height: calc(100vh - 50px);
}

/* Auction page specific wrapper */
.auction-page wrapper {
    padding-bottom: 0;
    min-height: auto;
}

/* Auction House Tabs */
.ah-tabs-bar {
    display: flex;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-bottom: 2px solid #DAA520;
    height: 45px;
    flex-shrink: 0;
}

.ah-tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    color: #CCCCCC;
    font-family: 'MedievalSharp', serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(30,30,30,0.7), rgba(50,50,50,0.5));
    border-right: 1px solid #8B4513;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.ah-tab:last-child {
    border-right: none;
}

.ah-tab:hover {
    background: linear-gradient(145deg, rgba(50,50,50,0.8), rgba(70,70,70,0.6));
    color: #FFD700;
}

.ah-tab.selected {
    background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
    color: #FFD700;
    border-bottom: 3px solid #FFD700;
    margin-bottom: -2px;
}

/* Modern Login Page Styles */
.modern-login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    min-height: 70vh;
}

.login-card {
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(139, 69, 19, 0.5),
        inset 0 2px 10px rgba(218, 165, 32, 0.1);
    width: 400px;
    color: #FFF;
    font-family: 'MedievalSharp', serif;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.login-header h2 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 1.1em;
    color: #CCCCCC;
    margin: 0;
    font-style: italic;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFD700;
    font-size: 1.1em;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #8B4513;
    border-radius: 8px;
    color: #FFF;
    font-family: 'MedievalSharp', serif;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.input-group input:focus {
    outline: none;
    border-color: #DAA520;
    background: rgba(0,0,0,0.8);
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.5),
        0 0 15px rgba(218, 165, 32, 0.3);
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.login-error {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(180, 0, 0, 0.8));
    color: #FFD700;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #8B0000;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    animation: errorGlow 2s ease-in-out;
}

@keyframes errorGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(139, 0, 0, 0.8); }
}

.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border: 2px solid #DAA520;
    border-radius: 10px;
    color: #FFD700;
    font-family: 'MedievalSharp', serif;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: 
        0 6px 20px rgba(139, 69, 19, 0.4),
        inset 0 2px 10px rgba(218, 165, 32, 0.1);
}

.login-button:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(139, 69, 19, 0.6),
        inset 0 2px 10px rgba(218, 165, 32, 0.2);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(139, 69, 19, 0.4),
        inset 0 2px 10px rgba(218, 165, 32, 0.1);
}

.login-links {
    margin-top: 25px;
    text-align: center;
}

.login-links a {
    display: block;
    margin: 10px 0;
    color: #CCCCCC;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 5px;
}

.login-links a:hover {
    color: #FFD700;
    background: rgba(139, 69, 19, 0.2);
}

.register-link {
    font-weight: bold !important;
}

.login-features {
    background: linear-gradient(135deg, rgba(30,30,30,0.9), rgba(50,50,50,0.8));
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 30px;
    width: 350px;
    color: #FFF;
    font-family: 'MedievalSharp', serif;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 25px rgba(139, 69, 19, 0.3),
        inset 0 2px 10px rgba(218, 165, 32, 0.05);
}

.login-features h3 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    padding: 12px 0;
    font-size: 1.2em;
    color: #CCCCCC;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.login-features li:last-child {
    border-bottom: none;
}

.login-features li:hover {
    color: #FFD700;
    padding-left: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-login-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 15px;
    }
    
    .login-card,
    .login-features {
        width: 100%;
        max-width: 400px;
    }
    
    .login-header h2 {
        font-size: 1.8em;
    }
}

/* Hub Page Styles */
.hub-container {
    width: 90%;
    max-width: 1600px;
    margin: 20px auto;
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(139, 69, 19, 0.5),
        inset 0 2px 10px rgba(218, 165, 32, 0.1);
    margin-bottom: 60px; /* Extra space for XP bar */
}

/* Global Modifiers Bar */
.hub-global-modifiers {
    background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(50,50,50,0.7));
    border: 2px solid #DAA520;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hub-modifiers-header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #DAA520;
}

.hub-modifiers-header:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
}

.hub-modifiers-header h3 {
    color: #FFF;
    font-family: 'MedievalSharp', serif;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hub-modifiers-header .icon {
    margin-right: 10px;
    font-size: 22px;
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hub-modifiers-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(20,20,20,0.7);
}

.hub-main-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    min-height: 600px;
}

.hub-character-panel {
    flex: 1;
    background: linear-gradient(145deg, rgba(30,30,30,0.95), rgba(50,50,50,0.85));
    border: 2px solid #DAA520;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hub-character-info h2 {
    color: #FFD700;
    font-family: 'MedievalSharp', serif;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 2px solid #8B4513;
    padding-bottom: 8px;
}

.hub-character-info h4 {
    color: #DAA520;
    font-family: 'MedievalSharp', serif;
    font-size: 16px;
    margin: 15px 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 1px solid #8B4513;
    padding-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15,15,15,0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #8B4513;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(25,25,25,0.95);
    border-color: #DAA520;
    transform: translateY(-2px);
}

.stat-label {
    color: #FFD700;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.stat-value {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.stat-value.health { color: #ff4444; }
.stat-value.mana { color: #4444ff; }
.stat-value.gold { color: #ffd700; }

.hub-activity-panel {
    flex: 2;
    background: linear-gradient(145deg, rgba(30,30,30,0.95), rgba(50,50,50,0.85));
    border: 2px solid #DAA520;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.hub-activity-panel h3 {
    color: #FFD700;
    font-family: 'MedievalSharp', serif;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 2px solid #8B4513;
    padding-bottom: 8px;
}

.hub-battle-feed {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    max-height: none;
}

.hub-battle-item {
    background: rgba(15,15,15,0.9);
    border: 1px solid #8B4513;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.hub-battle-item:hover {
    background: rgba(30,30,30,0.8);
    border-color: #DAA520;
}

.hub-battle-item.victory {
    border-left: 4px solid #4CAF50;
}

.hub-battle-item.defeat {
    border-left: 4px solid #f44336;
}

.hub-battle-item .result {
    font-weight: bold;
    margin-bottom: 5px;
}

.hub-battle-item .result.victory {
    color: #4CAF50;
}

.hub-battle-item .result.defeat {
    color: #f44336;
}

.hub-battle-item .details {
    color: #DDDDDD;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hub-side-panel {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hub-panel-section {
    background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
    border: 2px solid #DAA520;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hub-panel-section h4 {
    color: #FFD700;
    font-family: 'MedievalSharp', serif;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 1px solid #8B4513;
    padding-bottom: 8px;
}

.hub-modifier-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15,15,15,0.9);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #8B4513;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.hub-modifier-item:hover {
    background: rgba(30,30,30,0.8);
    border-color: #DAA520;
}

.hub-modifier-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.hub-modifier-item .text {
    flex: 1;
    color: #FFFFFF;
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15,15,15,0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #8B4513;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.social-link:hover {
    background: rgba(30,30,30,0.8);
    border-color: #DAA520;
    transform: translateY(-2px);
    color: #DAA520;
}

.social-link .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.hub-admin-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-admin-btn {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    border: 1px solid #DAA520;
    border-radius: 8px;
    padding: 12px;
    color: #FFF;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
}

.hub-admin-btn:hover {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.5);
    color: #FFD700;
}

/* Hub Text Color Overrides */
.hub-container * {
    color: inherit;
}

.hub-container p,
.hub-container div,
.hub-container span:not(.stat-label):not(.stat-value):not(.icon) {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hub-container h1,
.hub-container h2,
.hub-container h3,
.hub-container h4,
.hub-container h5,
.hub-container h6 {
    color: #FFD700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Hub Responsive Design */
@media (max-width: 1024px) {
    .hub-main-content {
        flex-direction: column;
    }
    
    .hub-side-panel {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .hub-panel-section {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .hub-container {
        margin: 10px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-side-panel {
        flex-direction: column;
    }
    
    .hub-panel-section {
        min-width: auto;
    }
}

/* Guild Discovery Page Styles */
.guild-discovery-container {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(40,40,40,0.95));
	border: 2px solid #8B4513;
	border-radius: 15px;
	box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
	color: #fff;
}

.guild-discovery-container h1 {
	text-align: center;
	color: #DAA520;
	font-size: 2.5em;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
	margin-bottom: 30px;
	font-family: 'MedievalSharp', serif;
}

/* Action Buttons */
.guild-actions-bar {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.guild-actions-bar button,
.guild-actions-bar .btn {
	background: linear-gradient(135deg, #8B4513, #A0522D);
	color: white;
	border: 2px solid #DAA520;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	font-size: 14px;
}

.guild-actions-bar button:hover,
.guild-actions-bar .btn:hover {
	background: linear-gradient(135deg, #A0522D, #CD853F);
	box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
	transform: translateY(-2px);
}

.badge {
	background: #dc3545;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 12px;
	margin-left: 5px;
	display: none;
}

/* Search and Filters */
.guild-search-filters {
	background: rgba(0,0,0,0.7);
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #8B4513;
	margin-bottom: 30px;
}

.search-bar {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	justify-content: center;
}

.search-bar input {
	flex: 1;
	max-width: 300px;
	padding: 10px;
	border: 2px solid #8B4513;
	border-radius: 5px;
	background: rgba(255,255,255,0.9);
	color: #333;
}

.search-bar button {
	background: linear-gradient(135deg, #DAA520, #B8860B);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

.filters {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.filters select {
	padding: 8px 12px;
	border: 2px solid #8B4513;
	border-radius: 5px;
	background: rgba(255,255,255,0.9);
	color: #333;
	min-width: 150px;
}

.filters button {
	background: linear-gradient(135deg, #666, #888);
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 5px;
	cursor: pointer;
}

/* Guild List */
.guild-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.guild-card {
	background: linear-gradient(135deg, rgba(40,40,40,0.95), rgba(60,60,60,0.9));
	border: 2px solid #8B4513;
	border-radius: 12px;
	padding: 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.guild-card:hover {
	border-color: #DAA520;
	box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
	transform: translateY(-5px);
}

.guild-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	border-bottom: 1px solid #8B4513;
	padding-bottom: 10px;
}

.guild-header h3 {
	color: #DAA520;
	margin: 0;
	font-size: 1.3em;
	font-family: 'MedievalSharp', serif;
}

.guild-level {
	background: linear-gradient(135deg, #4CAF50, #45a049);
	color: white;
	padding: 4px 8px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: bold;
}

.guild-description {
	color: #ccc;
	margin-bottom: 15px;
	line-height: 1.4;
	min-height: 40px;
}

.guild-stats {
	display: flex;
	gap: 15px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.guild-stats span {
	background: rgba(0,0,0,0.5);
	padding: 5px 8px;
	border-radius: 5px;
	font-size: 13px;
	border: 1px solid #8B4513;
}

.guild-requirements {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.guild-requirements span {
	padding: 3px 6px;
	border-radius: 3px;
	font-size: 12px;
}

.recruiting {
	background: #4CAF50;
	color: white;
}

.not-recruiting {
	background: #f44336;
	color: white;
}

.guild-actions {
	text-align: center;
}

.guild-actions button {
	background: linear-gradient(135deg, #4CAF50, #45a049);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	width: 100%;
}

.guild-actions button:hover {
	background: linear-gradient(135deg, #45a049, #4CAF50);
}

.already-member {
	color: #4CAF50;
	font-weight: bold;
}

.pending {
	color: #ff9800;
	font-weight: bold;
}

.cannot-join {
	color: #f44336;
	font-weight: bold;
}

.no-guilds {
	text-align: center;
	color: #ccc;
	font-size: 1.2em;
	padding: 40px;
	background: rgba(0,0,0,0.5);
	border-radius: 10px;
	border: 1px solid #8B4513;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.pagination button {
	background: linear-gradient(135deg, #8B4513, #A0522D);
	color: white;
	border: 2px solid #DAA520;
	padding: 8px 15px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

.pagination button:hover {
	background: linear-gradient(135deg, #A0522D, #CD853F);
}

.pagination button.active {
	background: linear-gradient(135deg, #DAA520, #B8860B);
}

/* Modal Styles */
.modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background: linear-gradient(135deg, rgba(40,40,40,0.98), rgba(60,60,60,0.95));
	margin: auto;
	padding: 30px;
	border: 3px solid #8B4513;
	border-radius: 15px;
	width: 90%;
	max-width: 500px;
	color: white;
	position: relative;
	box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.modal-content h2 {
	color: #DAA520;
	text-align: center;
	margin-bottom: 20px;
	font-family: 'MedievalSharp', serif;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	right: 15px;
	top: 10px;
	cursor: pointer;
}

.close:hover {
	color: #DAA520;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	color: #DAA520;
	font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 2px solid #8B4513;
	border-radius: 5px;
	background: rgba(255,255,255,0.9);
	color: #333;
	box-sizing: border-box;
}

.form-cost {
	background: rgba(218, 165, 32, 0.2);
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #DAA520;
	margin-bottom: 15px;
	text-align: center;
}

.form-group button,
.modal-content button[type="submit"] {
	background: linear-gradient(135deg, #4CAF50, #45a049);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	width: 100%;
	font-size: 16px;
}

.form-group button:hover,
.modal-content button[type="submit"]:hover {
	background: linear-gradient(135deg, #45a049, #4CAF50);
}

/* Request/Invite Items */
.request-item,
.invite-item {
	background: rgba(0,0,0,0.5);
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #8B4513;
	margin-bottom: 15px;
}

.request-info h4,
.invite-info h4 {
	color: #DAA520;
	margin-bottom: 10px;
}

.status-pending {
	color: #ff9800;
	font-weight: bold;
}

.status-approved {
	color: #4CAF50;
	font-weight: bold;
}

.status-rejected {
	color: #f44336;
	font-weight: bold;
}

.invite-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.invite-actions button {
	flex: 1;
	padding: 8px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

.invite-actions button:first-child {
	background: #4CAF50;
	color: white;
}

.invite-actions button:last-child {
	background: #f44336;
	color: white;
}
#popups {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 25%;
	min-width: 300px;
	min-height: 40px;
	max-height: 100px;
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 15px;
	padding: 10px;
	z-index: 1000;
	overflow-y: auto;
	text-align: center;
}

.chat-flash {
  animation: chatFlashAnim 1s linear 0s infinite;
}
@keyframes chatFlashAnim {
  0% { box-shadow: 0 0 0 0 #ffb700, 0 0 0 0 #fff; }
  30% { box-shadow: 0 0 8px 4px#ffb700, 0 0 24px 8px #fff; }
  60% { box-shadow: 0 0 8px 4px #ffb700, 0 0 24px 8px #fff; }
  100% { box-shadow: 0 0 0 0 #ffb700, 0 0 0 0 #fff; }
}
.chat-hide-btn {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 5px 10px;
	cursor: pointer;
}
.chat-container {
	position: absolute;
	bottom: calc(10% + 6px);
	left: 25px;
	width: 100%;
	max-width: 500px;
	height: 250px;
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	z-index: 100;
}
.guild-chat-container {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	min-height: 250px;
	height: 100%;
	max-height: 25vh;
}
.chat-container-hide{
	width: 35px;
	height: 25px;
}
.chat-messages{
	height:125px;
	overflow-y: auto;
	padding: 5px;
}
#chat-input{
	position: absolute;
	bottom: 0;
	left: 3px;
	width: 80%;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.8);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
}
#send-chat{
	position: absolute;
	bottom: 2px;
	right: 10px;
	padding:3px;
	width: 15%;
	height: 40px;
	background-color: rgba(255,255, 255, 0.8);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: white;

}
.chat-tabs{
	display: flex;
	justify-content: start;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 5px 0;
}
.chat-tabs >  button{
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 5px;
	color: white;
	font-size: 1.2em;
	cursor: pointer;
}
.chat-tabs >  button:hover{
	background-color: rgba(255, 255, 255, 0.5);
}
.chat-tabs .active{
	background-color: rgba(255, 255, 255, 0.8);
	color: black;
}
.chat-message{
	padding: 5px;
	margin: 2px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	animation: fadeIn 0.5s;
	text-align: left;
}

/* Clickable username styles */
.clickable-username {
	cursor: pointer;
	color: #4CAF50;
	transition: color 0.2s ease;
	text-decoration: underline;
	text-decoration-style: dotted;
}

.clickable-username:hover {
	color: #66BB6A;
	text-decoration-style: solid;
}

/* Context menu styles */
.chat-context-menu {
	position: absolute;
	background-color: #2c3e50;
	border: 1px solid #34495e;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
	z-index: 10000;
	min-width: 180px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	animation: contextMenuFadeIn 0.15s ease-out;
}

@keyframes contextMenuFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.context-menu-header {
	padding: 8px 12px;
	background-color: #34495e;
	color: #ecf0f1;
	font-weight: bold;
	border-bottom: 1px solid #4a5f7a;
	border-radius: 6px 6px 0 0;
	text-align: center;
}

.context-menu-item {
	padding: 8px 12px;
	cursor: pointer;
	color: #ecf0f1;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background-color 0.2s ease;
}

.context-menu-item:hover {
	background-color: #34495e;
}

.context-menu-item:last-child {
	border-radius: 0 0 6px 6px;
}

.context-menu-item i {
	width: 16px;
	text-align: center;
	color: #bdc3c7;
}

.context-menu-danger {
	color: #e74c3c;
}

.context-menu-danger:hover {
	background-color: #c0392b;
	color: #ffffff;
}

.context-menu-danger i {
	color: #e74c3c;
}

.context-menu-danger:hover i {
	color: #ffffff;
}

.context-menu-divider {
	height: 1px;
	background-color: #4a5f7a;
	margin: 4px 0;
}

.buff-debuff{
	display: inline-block;
	font-size: 1.2em;
}
.buff-debuff-duration, .buff-debuff-name {
	background-color: rgba(0, 0, 0, 0.4);
}
.deadCreature > div {
	display: none;
}
.deadCreature {
	height: 50px;
	text-decoration: line-through;
}
.landing-page {
	position: relative;
	display: block;
	height: 80vh;
}

.landing-notice {
	font-size: 1.4em;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	padding: 10px;
}

html {
	background-color: #eee;
	font-family: 'MedievalSharp', sans-serif;
}

nav {
	text-align: center;
	display: flex;
	justify-content: center;
}

.actionbar > nav {
	display: none;
}



.logo {
	vertical-align: middle;
	height: 125px;
}

nav ul {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Modern Fantasy Navigation System */
.main-navigation {
	background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
	border-bottom: 3px solid #8B4513;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
	position: relative;
	z-index: 100;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 10px 20px;
	gap: 20px;
}

.nav-primary,
.nav-secondary {
	display: flex;
	align-items: center;
	gap: 15px;
}

.nav-logo {
	flex-shrink: 0;
}

.nav-logo img {
	height: 60px;
	width: auto;
}

/* Navigation Items */
.nav-item {
	position: relative;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
}

.nav-scroll-bg {
	position: relative;
	min-width: 80px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background: 
		linear-gradient(145deg, rgba(139, 69, 19, 0.95), rgba(160, 82, 45, 0.9)),
		radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), transparent 50%);
	border: 2px solid transparent;
	border-image: linear-gradient(45deg, rgba(218, 165, 32, 0.8), rgba(255, 215, 0, 0.6), rgba(218, 165, 32, 0.8)) 1;
	border-radius: 15px;
	backdrop-filter: blur(8px);
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.4),
		inset 0 1px 3px rgba(255, 215, 0, 0.2),
		0 0 15px rgba(139, 69, 19, 0.3);
	padding: 8px 16px;
	overflow: hidden;
	animation: gentleBreathing 4s ease-in-out infinite;
}

.nav-scroll-bg::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		rgba(255, 215, 0, 0.1) 60deg,
		transparent 120deg,
		rgba(218, 165, 32, 0.1) 180deg,
		transparent 240deg,
		rgba(255, 215, 0, 0.1) 300deg,
		transparent 360deg
	);
	opacity: 0;
	animation: magicalRotate 8s linear infinite;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.nav-scroll-bg::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	right: 2px;
	bottom: 2px;
	background: 
		linear-gradient(145deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.7)),
		radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05), transparent 40%);
	border-radius: 13px;
	z-index: -1;
}

@keyframes magicalRotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Subtle idle breathing animation for nav buttons */
@keyframes gentleBreathing {
	0%, 100% { 
		box-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.4),
			inset 0 1px 3px rgba(255, 215, 0, 0.2),
			0 0 15px rgba(139, 69, 19, 0.3);
	}
	50% { 
		box-shadow: 
			0 4px 20px rgba(0, 0, 0, 0.4),
			inset 0 1px 3px rgba(255, 215, 0, 0.3),
			0 0 18px rgba(139, 69, 19, 0.4);
	}
}


.nav-scroll-bg img {
	display: none;
}

.nav-link {
	position: relative;
	z-index: 10;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.nav-text {
	color: #E0E0E0;
	font-weight: bold;
	font-size: 13px;
	text-shadow: 
		1px 1px 3px rgba(0,0,0,0.8),
		0 0 5px rgba(218, 165, 32, 0.3);
	text-align: center;
	line-height: 1.2;
	max-width: 90px;
	word-wrap: break-word;
	padding: 2px 4px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: 'MedievalSharp', serif;
	letter-spacing: 0.5px;
	position: relative;
	z-index: 10;
}

/* Add subtle glow animation for text */
.nav-text::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
	border-radius: 8px;
}

/* Epic Fantasy Hover Effects */
.nav-item:hover .nav-scroll-bg {
	transform: translateY(-4px) scale(1.05) rotateZ(0.5deg);
	background: 
		linear-gradient(145deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.8), rgba(218, 165, 32, 0.9)),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 60%);
	border-image: linear-gradient(45deg, rgba(255, 215, 0, 1), rgba(255, 165, 0, 0.8), rgba(255, 215, 0, 1)) 1;
	box-shadow: 
		0 8px 25px rgba(255, 215, 0, 0.5),
		0 0 30px rgba(218, 165, 32, 0.6),
		inset 0 2px 5px rgba(255, 255, 255, 0.3),
		0 0 50px rgba(255, 215, 0, 0.3);
	filter: brightness(1.2) saturate(1.3);
}

.nav-item:hover .nav-scroll-bg::before {
	opacity: 1;
	animation: magicalRotate 3s linear infinite, pulseGlow 2s ease-in-out infinite alternate;
}

.nav-item:hover .nav-text {
	color: #1a1a1a;
	text-shadow: 
		0 0 5px rgba(255, 255, 255, 1),
		0 0 10px rgba(255, 215, 0, 0.8),
		0 0 15px rgba(255, 165, 0, 0.6),
		1px 1px 3px rgba(0, 0, 0, 0.5);
	font-weight: bold;
	transform: scale(1.05);
}

/* Magical pulse animation for hover state */
@keyframes pulseGlow {
	0% { 
		filter: brightness(1) hue-rotate(0deg);
		transform: scale(1);
	}
	100% { 
		filter: brightness(1.3) hue-rotate(10deg);
		transform: scale(1.02);
	}
}

/* Active/Click Effects */
.nav-item:active .nav-scroll-bg {
	transform: translateY(-2px) scale(1.02);
	background: 
		linear-gradient(145deg, rgba(255, 165, 0, 1), rgba(255, 140, 0, 0.9)),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4), transparent 50%);
	box-shadow: 
		0 4px 15px rgba(255, 140, 0, 0.7),
		0 0 20px rgba(255, 165, 0, 0.8),
		inset 0 2px 8px rgba(255, 255, 255, 0.4);
	filter: brightness(1.4) saturate(1.5);
}

.nav-item:active .nav-scroll-bg::before {
	animation: magicalRotate 1s linear infinite, explosiveGlow 0.3s ease-out;
}

@keyframes explosiveGlow {
	0% { 
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.1);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Magical Navigation Badge */
.nav-badge {
	background: 
		radial-gradient(circle at 30% 30%, rgba(255, 69, 69, 1), rgba(220, 53, 69, 0.9)),
		linear-gradient(135deg, #dc3545, #c82333);
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	margin-left: 5px;
	box-shadow: 
		0 2px 8px rgba(220, 53, 69, 0.6),
		0 0 15px rgba(255, 69, 69, 0.4),
		inset 0 1px 2px rgba(255, 255, 255, 0.3);
	animation: magicalBadgePulse 2s ease-in-out infinite;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	position: relative;
	z-index: 15;
	overflow: hidden;
	min-width: 16px;
	text-align: center;
}

.nav-badge::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		rgba(255, 255, 255, 0.2) 60deg,
		transparent 120deg
	);
	animation: badgeSparkle 3s linear infinite;
	opacity: 0.7;
}

@keyframes magicalBadgePulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 
			0 2px 8px rgba(220, 53, 69, 0.6),
			0 0 15px rgba(255, 69, 69, 0.4),
			inset 0 1px 2px rgba(255, 255, 255, 0.3);
	}
	50% { 
		transform: scale(1.1);
		box-shadow: 
			0 4px 12px rgba(220, 53, 69, 0.8),
			0 0 25px rgba(255, 69, 69, 0.6),
			inset 0 1px 3px rgba(255, 255, 255, 0.4);
	}
}

@keyframes badgeSparkle {
	0% { transform: rotate(0deg); opacity: 0.7; }
	50% { opacity: 1; }
	100% { transform: rotate(360deg); opacity: 0.7; }
}

/* Dropdown System */
.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	background: linear-gradient(135deg, rgba(20,20,20,0.98), rgba(40,40,40,0.95));
	border: 2px solid #8B4513;
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.7), 0 0 20px rgba(139, 69, 19, 0.3);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-10px);
	transition: all 0.3s ease;
	z-index: 9999;
	backdrop-filter: blur(5px);
}

.nav-item:hover .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
	display: block;
	padding: 10px 15px;
	color: #e0e0e0;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.nav-dropdown-item:last-child {
	border-bottom: none;
}

.nav-dropdown-item:hover {
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(218, 165, 32, 0.2));
	color: #DAA520;
	padding-left: 20px;
	text-shadow: 0 0 5px rgba(218, 165, 32, 0.5);
}

.nav-dropdown-note {
	padding: 8px 15px;
	color: #999;
	font-size: 12px;
	font-style: italic;
	text-align: center;
	border-top: 1px solid rgba(139, 69, 19, 0.2);
}

.nav-dropdown-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.5), transparent);
	margin: 12px 10px;
	position: relative;
}

.nav-dropdown-divider:before {
	content: '✉️';
	position: absolute;
	left: 50%;
	top: -10px;
	transform: translateX(-50%);
	background: rgba(44, 24, 16, 0.9);
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 10px;
	border: 1px solid rgba(218, 165, 32, 0.3);
}

.nav-highlight {
	color: #DAA520 !important;
	background: rgba(218, 165, 32, 0.1);
	font-weight: bold;
}

.nav-highlight:hover {
	background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(255, 215, 0, 0.2)) !important;
	color: #FFD700 !important;
}

/* Mobile Touch and Focus Support */
.nav-mobile-active .nav-dropdown,
.nav-focused .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Enhanced Mobile touch feedback */
.nav-mobile-active .nav-scroll-bg {
	transform: translateY(-1px) scale(1.02);
	background: 
		linear-gradient(145deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.8)),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 60%);
	border-image: linear-gradient(45deg, rgba(255, 215, 0, 1), rgba(255, 165, 0, 0.8), rgba(255, 215, 0, 1)) 1;
	box-shadow: 
		0 4px 15px rgba(255, 215, 0, 0.4),
		0 0 20px rgba(218, 165, 32, 0.5),
		inset 0 1px 3px rgba(255, 255, 255, 0.3);
	filter: brightness(1.1) saturate(1.2);
}

.nav-mobile-active .nav-scroll-bg::before {
	opacity: 0.8;
	animation: magicalRotate 4s linear infinite;
}

.nav-mobile-active .nav-text {
	color: #1a1a1a;
	text-shadow: 
		0 0 3px rgba(255, 255, 255, 0.9),
		0 0 8px rgba(255, 215, 0, 0.7),
		1px 1px 2px rgba(0, 0, 0, 0.5);
	transform: scale(1.02);
}

.nav-item:focus-within .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Inventory Mobile Responsive */
@media (max-width: 768px) {
	.inventory-main-content {
		flex-direction: column;
		gap: 15px;
		padding: 15px 20px 20px 20px;
		height: calc(100% - 60px);
	}
	
	.inventory-container,
	.inventory-armory {
		flex: 1;
		width: 100%;
		height: 48vh;
		max-height: 48vh;
	}
	
	.inventory-armory {
		padding: 45px 15px 15px 15px;
	}
	
	.inventory-menu h2 {
		font-size: 1.8em;
	}
	
	.inventory-menu form {
		margin: 0 15px 8px 15px;
		padding: 10px;
	}
	
	.armor_cont {
		gap: 10px;
	}
	
	.slottedArmor {
		width: 65px;
		height: 65px;
	}
	
	.helm, .shoulder, .chest, .neck, .pants, .feet, .ring, .gloves, .weapon, .offhand, .bracer, .belt {
		width: 65px;
		height: 65px;
		min-width: 65px;
		min-height: 65px;
	}
	
	.armor_cont {
		gap: 8px;
		max-width: 280px;
	}
	
	.inventory-item {
		width: 140px;
		height: 220px;
		font-size: 11px;
		padding: 10px;
	}
	
	.inv-icon {
		max-width: 40px;
		max-height: 40px;
	}
	
	.inv-name {
		font-size: 11px;
	}
	
	.other-slot-btn, .ring-slot-btn {
		font-size: 10px;
		padding: 6px 8px;
	}
}

/* Enhanced Navigation Responsive Styles */

/* Large Mobile/Small Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
	.nav-container {
		padding: 8px 15px;
	}
	
	.nav-scroll-bg {
		min-width: 75px;
		height: 42px;
		padding: 6px 14px;
		border-radius: 11px;
	}
	
	.nav-text {
		font-size: 11px;
		max-width: 70px;
	}
	
	.nav-primary,
	.nav-secondary {
		gap: 8px;
		flex-wrap: wrap;
	}
	
	.nav-dropdown {
		width: 170px;
	}
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
	.nav-scroll-bg {
		min-height: 44px;
		min-width: 44px;
	}
	
	.nav-dropdown-item {
		min-height: 44px;
		padding: 12px 16px;
		font-size: 16px;
	}
	
	/* Remove aggressive hover effects for touch devices but keep some magic */
	.nav-item:hover .nav-scroll-bg {
		transform: translateY(-1px) scale(1.01);
		background: 
			linear-gradient(145deg, rgba(139, 69, 19, 0.95), rgba(160, 82, 45, 0.9)),
			radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), transparent 50%);
		border-image: linear-gradient(45deg, rgba(218, 165, 32, 0.8), rgba(255, 215, 0, 0.6), rgba(218, 165, 32, 0.8)) 1;
		box-shadow: 
			0 4px 15px rgba(0, 0, 0, 0.3),
			0 0 10px rgba(218, 165, 32, 0.2);
	}
	
	.nav-item:hover .nav-scroll-bg::before {
		opacity: 0.3;
	}
	
	.nav-item:hover .nav-text {
		color: #E0E0E0;
		font-weight: bold;
		text-shadow: 
			1px 1px 3px rgba(0,0,0,0.8),
			0 0 5px rgba(218, 165, 32, 0.4);
	}
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
	.main-navigation {
		padding: 3px 8px;
	}
	
	.nav-container {
		gap: 5px;
	}
	
	.nav-scroll-bg {
		height: 32px;
		padding: 4px 10px;
	}
	
	.nav-text {
		font-size: 9px;
	}
	
	.nav-primary,
	.nav-secondary {
		gap: 4px;
	}
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
	.nav-container {
		flex-direction: column;
		gap: 10px;
		padding: 10px;
	}
	
	.nav-primary,
	.nav-secondary {
		gap: 10px;
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.nav-scroll-bg {
		min-width: 70px;
		height: 40px;
		padding: 6px 12px;
		border-radius: 10px;
	}
	
	.nav-text {
		font-size: 11px;
		max-width: 75px;
	}
	
	.nav-dropdown {
		width: 180px;
		left: 50%;
		transform: translateX(-50%);
		/* Increase z-index on mobile for better touch access */
		z-index: 10000;
	}
	
	.nav-dropdown-item {
		/* Larger touch targets on mobile */
		padding: 15px 15px;
		font-size: 16px;
	}
	
	.nav-item:hover .nav-dropdown,
	.nav-mobile-active .nav-dropdown {
		transform: translateX(-50%) translateY(0);
	}
}

/* Enhanced Mobile Navigation */
@media (max-width: 480px) {
	.main-navigation {
		padding: 5px 10px;
	}
	
	.nav-container {
		flex-direction: column;
		gap: 8px;
	}
	
	.nav-primary,
	.nav-secondary {
		gap: 5px;
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.nav-scroll-bg {
		min-width: 60px;
		height: 36px;
		padding: 4px 8px;
		border-radius: 8px;
		border-width: 1px;
	}
	
	.nav-text {
		font-size: 10px;
		max-width: 65px;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.nav-dropdown {
		width: 160px;
		z-index: 10001;
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
	}
	
	/* Touch-friendly magical active states */
	.nav-item:active .nav-scroll-bg {
		transform: translateY(-1px) scale(0.98);
		background: 
			linear-gradient(145deg, rgba(255, 165, 0, 0.9), rgba(255, 140, 0, 0.8)),
			radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), transparent 50%);
		border-image: linear-gradient(45deg, rgba(255, 140, 0, 1), rgba(255, 165, 0, 0.9), rgba(255, 140, 0, 1)) 1;
		box-shadow: 
			0 2px 10px rgba(255, 140, 0, 0.6),
			0 0 15px rgba(255, 165, 0, 0.5),
			inset 0 1px 4px rgba(255, 255, 255, 0.4);
		filter: brightness(1.3) saturate(1.4);
	}
	
	.nav-item:active .nav-scroll-bg::before {
		opacity: 1;
		animation: magicalRotate 1s linear infinite, explosiveGlow 0.2s ease-out;
	}
	
	.nav-item:active .nav-text {
		color: #1a1a1a;
		text-shadow: 
			0 0 4px rgba(255, 255, 255, 1),
			0 0 8px rgba(255, 140, 0, 0.8),
			1px 1px 2px rgba(0, 0, 0, 0.6);
		transform: scale(0.98);
	}
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.nav-scroll-bg,
	.nav-text {
		transition: none !important;
	}
	
	.nav-item:hover .nav-scroll-bg,
	.nav-mobile-active .nav-scroll-bg,
	.nav-item:active .nav-scroll-bg {
		transform: none !important;
	}
	
	.nav-dropdown-item {
		/* Even larger touch targets on small mobile */
		padding: 18px 12px;
		font-size: 15px;
	}
	
	.inventory-item {
		width: 130px;
		height: 200px;
		font-size: 10px;
		padding: 8px;
	}
	
	.inv-icon {
		max-width: 35px;
		max-height: 35px;
	}
	
	.inv-name {
		font-size: 10px;
	}
	
	.other-slot-btn, .ring-slot-btn {
		font-size: 9px;
		padding: 5px 6px;
	}
	
	.slottedArmor {
		width: 55px;
		height: 55px;
	}
	
	.helm, .shoulder, .chest, .neck, .pants, .feet, .ring, .gloves, .weapon, .offhand, .bracer, .belt {
		width: 55px;
		height: 55px;
		min-width: 55px;
		min-height: 55px;
	}
	
	.armor_cont {
		gap: 6px;
		max-width: 240px;
	}
}

.navSpan5 {
	top: 30% !important;
}

.hub-dropdown {
	top: 100%;
	left: 0;
	position: absolute;
	width: 180px;
	display: none;
	background-color: rgba(0, 0, 0, 0.95);
	border: 2px solid #DAA520;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.6);
	z-index: 9999;
}

.actionbar .hub-dropdown {
	top: -200%;
}

.hub-dropdown-item > a:visited {
	color: white;
	padding: 3px;
}

.hub-dropdown-item {
	display: block;
	font-size: 1.2em;
	padding: 3px;
	color: white;
	text-decoration: none;
	font-weight: bold;
	margin: 0 auto;
}

.hub-dropdown-item > a {
	color: white;
	display: block;
	padding: 5px;
}

.hub-dropdown-item > a:hover {
	background-color: rgba(255, 255, 255, 0.25);
}

.nav-li > a:visted {
	color: black;
}

.nav-li > a {
	position: absolute;
	display: block;
	color: transparent;
	text-decoration: none;
	font-size: 1.2em;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 5;
}

.nav-badge {
	background-color: #ff4444;
	color: white;
	border-radius: 50%;
	padding: 2px 6px;
	font-size: 0.7em;
	margin-left: 3px;
	min-width: 14px;
	text-align: center;
	display: inline-block;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0,0,0,0.3);
	position: relative;
	top: -2px;
}

.battle-dropdown, .guild-dropdown, .trade-dropdown {
	top: 100%;
	left: 0;
	position: absolute;
	width: 180px;
	display: none;
	background-color: rgba(0, 0, 0, 0.95);
	border: 2px solid #DAA520;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.6);
	z-index: 9999;
}

.actionbar .battle-dropdown, .actionbar .guild-dropdown, .actionbar .trade-dropdown {
	top: -200%;
}

.guild-tag {
	color: #00ff00;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

wrapper {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	min-width: 700px;
	margin-bottom: 0;
}

.home-menu {
	text-align: center;
	margin: 0 0;
	height: 80vh;
}

.menu1,
.menu2,
.menu3,
.menu2-character-sheet,
.supporter-menu1,
.class-menu {
	display: inline-block;
	box-shadow: 0px 0px 3px black;
	height: 75vh;
	padding: 5px;
	margin: 0.2%;
	text-align: left;
	min-width: 300px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;
	vertical-align: top;
	font-size: 1.2em;
}

.menu1 {}

.menu2 {
	width: 30%;
	overflow: hidden;
}

.menu2-character-sheet,
.class-menu {
	width: 50%;
}

.menu3 {
	width: 25%;
	max-height: 75vh;
	overflow: auto;
}

.supporter-menu1 {
	width: 90%;
	overflow: auto;
}

.menu-2-1 {
	overflow: auto;
}

.menu-2-1,
.menu-2-2 {
	display: inline-block;
	width: 100%;
	height: 100%;

}

.menu-3-1 {
	display: block;
	width: 100%;
}

.menu-stats span,
.weapon-menu span,
.menu-abilities span {
	display: block;
	padding: 1px;
}

.battlefield {}

.menu-stats,
.weapon-menu,
.menu-abilities {
	margin: 0 0 5px 0;
}

.support-item {
	width: 24.5%;
	display: inline-block;
	vertical-align: top;
}

.left-menu,
.battle,
.other-menu {
	position: relative;
	display: inline-block;
	height: 100vh;
	min-height: 500px;
	vertical-align: top;
	color: #fff;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.85);
}

.left-menu,
.other-menu {

	min-width: 200px;
}

.left-menu {
	width: 15%;
}

.other-menu {
	width: 10%;
}

.battle {
	width: 84%;
	text-align: center;
}

.health-bar {
	margin: 5px 3%;
	height: 20px;
}

.health-green,
.health-red {
	height: 20px;
	max-width: 100%;
}

.health-green,
.your-health,
.your-mana,
.group-health,
.group-mana,
.raid-group-health,
.raid-group-mana {
	transition: ease-in-out 1s;
	max-width: 100%;
}

.health-green,
.your-health,
.group-health {
	background-color: greenyellow;
}

.group-gui {
	padding: 3px;
}

.group-gui:hover {
	background-color: rgba(255, 255, 255, 0.25);
}

.health-red {
	background-color: red;
	width: 100%;
}

.boss-stats {
	white-space: nowrap;
}

.attack-stats,
.defense-stats {
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0px 0px 3px white;
	border-radius: 5px;
	display: inline-block;
	width: 25%;
	margin: 0 3px;
	min-width: 200px;
}

.attack-stats hr,
.defense-stats hr {
	width: 25%;
	margin: 0 auto;

}

.attack-stats span,
.defense-stats span {
	display: block;
	font-size: 1em;
}

.battle-feed {
	color: #fff;
	font-size: 1em;
	padding: 2%;
	overflow: auto;
	margin: 1%;
	border-radius: 5px;
}

.feed-msg {
	display: block;
	padding: 5px;
	margin: 5px 0;
	box-shadow: inset 0 0 1px white;
}

.npc-feed-msg {
	font-size: 1.1em;
	color: goldenrod;
	background-color: rgba(0, 0, 0, 0.35);
}

.attacks {
	padding: 1%;
	margin: 1%;
}

.interactive {
	padding: 5px;
}

.other-menu > span,
.player-card span {
	display: block;
	text-align: center;
}

.your-attacks,
.your-defenses,
.your-stats {
	padding: 3px;
}

.your-attacks span,
.your-defenses span,
.your-stats span,
.player-card span {
	display: inline-block;
	padding: 0;
	margin: 0;
}

.your-stats span {
	width: 49%;
}

.defenderHp {
	position: relative;
	font-size: 1.5em;
}

.player-card,
.your-stats {
	display: inline-block;
	width: 49%;
	vertical-align: top;
}

.your-health-bg,
.group-health-bg,
.raid-group-health-bg {
	width: 100%;
	background-color: red;
}

.your-health-bg {
	position: relative;
}

.your-health-wrapper,
.your-mana-wrapper {
	position: relative;
	font-size: 1.2em;
	padding: 0;
	margin: 2px 0;
}

.your-mana-bg,
.group-mana-bg,
.raid-group-mana-bg {
	background-color: grey;
}

.your-health-bg,
.your-mana-bg,
.group-mana-bg,
.group-health-bg {
	height: 20px;
	border: 0.1px solid;
}

.your-health,
.your-mana,
.group-health,
.group-mana {
	height: 100%;
	border-right: solid 0.5px black;
}

.your-health,
.group-health {
	background-color: greenyellow;
	width: 100%
}

.your-mana,
.group-mana {
	background-color: deepskyblue;
	width: 100%;
}

.enemy-hp-num {
	vertical-align: middle;
}

.floatingText {
	text-align: center;
	width: 50px;
	height: 30px;
	position: absolute;
	margin: 0 auto;
	background-color: rgba(0, 0, 0, 0);
	overflow: show;
	left: 50%;
	bottom: 5%;
}

.floatText,
.floatHealText {
	text-align: center;
	font-size: 0em;
	color: crimson;
	font-family: sans-serif;
	font-weight: bold;
	position: relative;
	display: block;
}

.floatHealText {
	color: rgb(94, 226, 18);
}

@keyframes floatTextRight {
	0% {
		display: none;
	}

	0.01% {
		display: block;
		font-size: 1px;
		left:0%;
	}
	25% {
		font-size: 1.5em;
		left:100%;
	}

	99.9% {
		left: 0%;
		font-size: 2.5em;
	}

	100% {
		display: none;
	}
}

@-webkit-keyframes floatTextRight {
	0% {
		display: none;
	}

	0.01% {
		display: block;
		font-size: 1px;
		left:0%;
	}
	25% {
		font-size: 1.5em;
		left:100%;
	}

	99.9% {
		left: 0%;
		font-size: 2.5em;
	}

	100% {
		display: none;
	}
}

@-moz-keyframes floatTextRight {
	0% {
		display: none;
	}

	0.01% {
		display: block;
		font-size: 1px;
		left:0%;
	}
	25% {
		font-size: 1.5em;
		left: 100%;
	}

	99.9% {
		left: 0%;
		font-size: 2.5em;
	}

	100% {
		display: none;
	}
}

.floatCont {
	position: relative;
	display: block;
	text-align: center;
}

#floatEnemyHeal {
	right: 0;
}

#floatEnemyDamage,
#floatUserHeal {
	animation: floatTextRight 0.5s ease 1;
	-webkit-animation: floatTextRight 0.5s ease 1;
	-moz-animation: floatTextRight 0.5s ease 1;
}

.battle-item {
	display: block;
	padding: 5px;
	margin: 10px 5px;
	box-shadow: 0 0 3px;
}

.common-item,
.uncommon-item,
.rare-item,
.epic-item,
.legendary-item {
	padding: 2px 3px;
	display: inline-block;
	margin: 4px 1px;
}

.char-sheet-common-item,
.char-sheet-uncommon-item,
.char-sheet-rare-item,
.char-sheet-epic-item,
.char-sheet-legendary-item {
	margin: -2px -2px;
	padding: 0;
	border: 2px solid !important;
	opacity: 1;
}

.uncommon-item {
	color: lightgreen;
	border: 1px #6fff01 solid;
	border-color: #6fff01;
	background-color: rgba(0, 0, 0, 0.75);
	box-shadow: inset 0px 0px 1px lightgreen;
	border-radius: 5px;
}

.raid-loot {
	font-size: 0.8em !important;
	padding: 1px;
	margin: 0;
}

.bonus-stats {
	color: rgb(86, 237, 0);
}

.rare-item {
	color: blue;
	border: 1px #1c36ff solid;
	//background-color: rgba(255, 191, 63,0.85);
	//box-shadow: inset 0px 0px 1px blue;
	border-radius: 5px;
}

.epic-item {
	color: rgba(255, 96, 255, 1);
	border: 1px #ee02ff solid;
	//background-color: rgba(255, 96, 255,0.70);
	box-shadow: inset 0px 0px 1px pink;
	border-radius: 5px;
}

.legendary-item {
	color: rgba(255, 191, 0, 1);
	border-bottom: 1px #ff9721 solid;
	border: 1px #ff9721 solid;
	border-color: #ff9721;
	//background-color: rgba(255, 191, 63,0.85);
	box-shadow: inset 0px 0px 1px orange;
	border-radius: 5px;
}

/* Experience Bar Styles */
.exp-bar-cont {
	position: fixed;
	display: block;
	z-index: 50;
	text-align: center;
	width: 100%;
	height: 35px;
	bottom: 0;
	background: linear-gradient(180deg, rgba(20,20,20,0.95), rgba(10,10,10,1));
	border-top: 2px solid #8B4513;
	box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
	padding: 5px 0;
}

.exp-bar {
	position: relative;
	width: 60%;
	max-width: 800px;
	text-align: center;
	margin: 0 auto;
}

.exp {
	background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(50,50,50,0.7));
	border: 2px solid #DAA520;
	border-radius: 10px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.bar {
	background: linear-gradient(90deg, #8B4513, #DAA520, #FFD700);
	width: 0%;
	max-width: 100%;
	transition: width 2.5s ease;
	height: 20px;
	text-align: center;
	box-shadow: 
		0 0 10px rgba(255, 215, 0, 0.5),
		inset 0 1px 3px rgba(255, 255, 255, 0.3);
	border-radius: 8px;
}

.exp-numbers {
	position: absolute;
	width: 100%;
	height: 20px;
	line-height: 20px;
	z-index: 10;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 12px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
	pointer-events: none;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.levelUp,
.youWin,
.youLose {
	color: black;
	top: 25%;
	position: absolute;
	right: 38%;
	z-index: 1;
	font-size: 1.2em;
}

#levelUp,
#youWin,
#youLose {
	display: none;
	transition: 2s ease;
}

.youWin,
.youLose {
	position: fixed;
}

.levelup-container {
	width: 458px;
	height: 558px;
	background-image: url(images/bg/xlevelup-gui.png.pagespeed.ic.V8OKa_rRGS.png);
}

.close {
	position: absolute;
	right: 10%;
	top: 18%;
	font-size: 1.2em;
	font-weight: bold;
	padding: 3px;
	z-index: 1000;
}

.close:hover {
	color: red;
	cursor: pointer;
}

.levelup-text {
	position: relative;
	padding: 20% 0;
	top: 0;
	text-align: center;
	font-size: 1em;
	max-width: 75%;
	margin: 0 auto;
	font-weight: bold;
}

.youWin-cont {
	border-top: 2px solid black;
}

html {
	height: 100vh;
	background-image: url(images/bg/xlp-1opt.png.pagespeed.ic.NJGLoaFXBb.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.lp-head {
	width: 50%;
	text-align: center;
	margin: 0 auto;
	font-size: 2em;
}

.lp-play {
	position: absolute;
	display: inline-block;
	right: 30%;
	top: 35%;
	font-size: 7em;
	z-index: 3;

}

.lp-play > a {
	color: black;
	text-decoration: none;
	border: solid 1px;
	color: white;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.7);
}

.lp-play > a:hover {
	color: crimson;
	box-shadow: 0 0 20px;
}

.landing-logo {
	position: absolute;
	top: 10%;
	right: 65%;

}

.bg {
	overflow: auto;
}

.createBattle,
.login-reg {
	color: white;
	display: block;
	text-align: center;
	width: 20%;
	min-width: 400px;
	padding: 5%;
	margin: 0 auto;
	font-size: 1.5em;
	background-color: rgba(0, 0, 0, 0.8);
	border: solid 1px;
}

.login-reg {
	width: 25%;
	padding: 1%;
}

.login-reg > form > input,
.createBattle > form > input {
	font-family: 'MedievalSharp', sans-serif;
	font-size: 0.8em;
	padding: 5px;
	margin: 1% 0;
	width: 100%;
	height: 25px;
}

.login-reg > form > input {
	font-family: 'MedievalSharp', sans-serif;
	display: block;
	font-size: 1em;
	padding: 0;
	margin: 2px 0;
	width: 100%;
	height: auto;
}

.login-reg > form > button,
.createBattle > form > button {
	font-family: 'MedievalSharp', sans-serif;
	position: relative;
	display: block;
	font-size: 0.8em;
	width: 100%;
	margin: 1% 7px 0 5px;
}

.login-reg > form > button:hover,
.createBattle > form > button:hover {
	color: crimson;
	cursor: pointer;
}

.login-reg a {
	text-decoration: none;
	color: white;
	position: relative;
	display: block;
	padding: 1%
}

.login-reg a:hover,
.crimson {
	color: crimson;
}

.login-reg-error {
	font-size: 0.7em;
	color: crimson;
	background-color: rgba(0, 0, 0, 0.85);
}

.register {
	margin-top: 0;
	border-radius: 15px;
	position: absolute;
	display: block;
	top: 30%;
	left: 50%;
	transform: translate(-50%);
}

.login {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%);
	margin-top: 0;
	border-radius: 15px;
}

.createBattle {
	position: relative;
	display: inline-block;
	width: 25%;
	font-size: 1.2em;
	padding: 2%;
	vertical-align: top;
}

.createBattle a {
	left: 2%;
	position: absolute;
	color: white;
}

.createBattle a:visited {
	color: white;
}

.createBattle > form > button {
	margin: 0 auto;
	max-width: 200px;
}

.createBattle > form > input {
	display: block;
	margin: 0 auto;
	width: 50%;
	max-width: 200px;
}

.battleSetup {
	text-align: center;
}

.won {
	width: 75%;
	min-width: 1000px;
	display: block;
	margin: 0 auto;
}

.win-table-div {
	display: inline-block;
	width: 30%;
	height: 75vh;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.75);
	vertical-align: top;
	padding: 2px;
	overflow: auto;
}

.win-table-div > h3 {
	text-align: center;
	padding: 1px;
}

.win-feed-item {
	padding: 3px;
}

.weapon-menu {
	position: relative;
}

.weaponDisplay {
	position: absolute;
	display: none;
	padding: 5px;
	left: 10%;
	background-color: rgba(0, 0, 0, 0.95);
	border: 1px solid white;
	border-radius: 5px;
	transition: linear 2s;
}

.attacks > button {
	margin: 0 5px;
	font-size: 16px;
	padding: 3px;
}

.weapon-enchants {
	padding: 3px;
}

.crit-damage {
	background-color: crimson;
	padding: 3px;
	font-size: 1.3em;
}

.npc-crit {
	color: white;
	background-color: crimson;
}

.npc-feed-name {
	color: goldenrod;
}

.player-feed-content {
	color: white;
}

/* ==============================================
   INVENTORY STYLES - CONSOLIDATED AND CLEANED
   ============================================== */

/* Main inventory menu container */
.inventory-menu {
	display: block;
	width: 98%;
	text-align: center;
	padding: 0 1%;
	margin: 0 auto;
	box-shadow: 0 0 3px;
	background-color: rgba(0, 0, 0, 0.85);
	border-radius: 10px;
	color: white;
	font-size: 1.2em;
	overflow: auto;
	min-height: 70vh;
}

/* Inventory menu header */
.inventory-menu h2 {
	margin: 10px 0;
	color: #DAA520;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
	font-size: 1.6em;
	font-family: 'MedievalSharp', serif;
}

/* Filter form styling */
.inventory-menu form {
	margin: 0 15px 15px 15px;
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	background: rgba(60, 40, 20, 0.5);
	border-radius: 8px;
	border: 1px solid #8B4513;
}

/* Main content layout - side by side */
.inventory-main-content {
	display: flex;
	flex-direction: row;
	gap: 20px;
	padding: 20px;
	height: calc(100vh - 300px);
}

/* Inventory container - items grid for icon-only items */
.inventory-container {
	flex: 2;
	background-color: rgba(40, 25, 15, 0.9);
	border: 2px solid #8B4513;
	border-radius: 10px;
	padding: 15px;
	max-height: 60vh;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 12px;
	justify-items: center;
	align-content: start;
}

/* Custom scrollbar */
.inventory-container::-webkit-scrollbar {
	width: 12px;
}

.inventory-container::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.3);
	border-radius: 6px;
}

.inventory-container::-webkit-scrollbar-thumb {
	background: #8B4513;
	border-radius: 6px;
	border: 2px solid rgba(0,0,0,0.3);
}

.inventory-container::-webkit-scrollbar-thumb:hover {
	background: #DAA520;
}

/* Individual inventory items - icon only design */
.inventory-item {
	background: linear-gradient(145deg, rgba(60, 40, 20, 0.9), rgba(40, 25, 15, 0.9));
	border: 2px solid #8B4513;
	border-radius: 8px;
	padding: 8px;
	width: 70px;
	height: 70px;
	color: white;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.inventory-item:before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, transparent, rgba(218, 165, 32, 0.3), transparent);
	border-radius: 10px;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.inventory-item:hover {
	border-color: #DAA520;
	box-shadow: 0 6px 15px rgba(0,0,0,0.5);
	transform: translateY(-2px);
}

.inventory-item:hover:before {
	opacity: 1;
}

/* Selected state with rarity-specific styling */
.inventory-item.selected.common-item {
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 
		0 4px 8px rgba(0,0,0,0.4),
		0 0 8px rgba(255,255,255,0.3),
		inset 0 1px 3px rgba(255,255,255,0.2),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #ffffff;
}

.inventory-item.selected.uncommon-item {
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 
		0 4px 12px rgba(30,255,0,0.5),
		0 0 12px rgba(30,255,0,0.4),
		inset 0 1px 3px rgba(30,255,0,0.3),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #1eff00;
}

.inventory-item.selected.rare-item {
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 
		0 4px 12px rgba(0,112,221,0.5),
		0 0 12px rgba(0,112,221,0.4),
		inset 0 1px 3px rgba(0,112,221,0.3),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #0070dd;
}

.inventory-item.selected.epic-item {
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 
		0 4px 12px rgba(163,53,238,0.5),
		0 0 12px rgba(163,53,238,0.4),
		inset 0 1px 3px rgba(163,53,238,0.3),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #a335ee;
}

.inventory-item.selected.legendary-item {
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 
		0 4px 12px rgba(255,128,0,0.6),
		0 0 15px rgba(255,128,0,0.5),
		inset 0 1px 3px rgba(255,128,0,0.4),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #ff8000;
}

/* Fallback for selected items without specific rarity */
.inventory-item.selected:not(.common-item):not(.uncommon-item):not(.rare-item):not(.epic-item):not(.legendary-item) {
	border-color: #FFD700;
	background: linear-gradient(145deg, rgba(80, 60, 30, 0.9), rgba(60, 40, 20, 0.9));
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.inventory-item.lvlTooLow {
	opacity: 0.6;
	border-color: #CD853F;
	background: linear-gradient(145deg, rgba(60, 40, 20, 0.5), rgba(40, 25, 15, 0.5));
}

/* Rarity-based dual shadows for inventory items */
.inventory-item.common-item {
	box-shadow: 
		0 4px 8px rgba(0,0,0,0.3),
		inset 0 1px 3px rgba(255,255,255,0.1),
		inset 0 -1px 2px rgba(0,0,0,0.2);
	border-color: #ffffff;
}

.inventory-item.uncommon-item {
	box-shadow: 
		0 4px 12px rgba(30,255,0,0.4),
		0 0 8px rgba(30,255,0,0.3),
		inset 0 1px 3px rgba(30,255,0,0.2),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #1eff00;
}

.inventory-item.rare-item {
	box-shadow: 
		0 4px 12px rgba(0,112,221,0.4),
		0 0 8px rgba(0,112,221,0.3),
		inset 0 1px 3px rgba(0,112,221,0.2),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #0070dd;
}

.inventory-item.epic-item {
	box-shadow: 
		0 4px 12px rgba(163,53,238,0.4),
		0 0 8px rgba(163,53,238,0.3),
		inset 0 1px 3px rgba(163,53,238,0.2),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #a335ee;
}

.inventory-item.legendary-item {
	box-shadow: 
		0 4px 12px rgba(255,128,0,0.5),
		0 0 12px rgba(255,128,0,0.4),
		inset 0 1px 3px rgba(255,128,0,0.3),
		inset 0 -1px 2px rgba(0,0,0,0.3);
	border-color: #ff8000;
}

/* Item icon container - icon only */
.inv-icon-name {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* Large icon styling for icon-only view */
.inv-icon {
	width: 48px !important;
	height: 48px !important;
	border-radius: 6px;
	image-rendering: pixelated;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.inv-icon:hover {
	transform: scale(1.05);
}

/* Hide item name in inventory - show only in tooltip */
.inv-name {
	display: none;
}

/* Hide detailed stats by default - will show in tooltip */
.inv-item-dmg,
.inv-ench-cont,
.level-required {
	display: none;
}

/* Hide item action buttons - using click system instead */
.inventory-item-buttons {
	display: none;
}

/* ==============================================
   INVENTORY TOOLTIP SYSTEM
   ============================================== */

/* Tooltip container */
.item-tooltip {
	position: absolute;
	background: linear-gradient(145deg, rgba(20, 10, 5, 0.98), rgba(40, 25, 15, 0.98));
	border: 2px solid #8B4513;
	border-radius: 8px;
	padding: 12px;
	color: white;
	font-size: 12px;
	z-index: 9999;
	box-shadow: 0 8px 25px rgba(0,0,0,0.8);
	min-width: 250px;
	max-width: 350px;
	pointer-events: none;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.2s ease;
}

.item-tooltip.show {
	opacity: 1;
	transform: translateY(0);
}

/* Tooltip header with item name */
.tooltip-header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #8B4513;
}

.tooltip-icon {
	width: 32px;
	height: 32px;
	margin-right: 10px;
	border-radius: 4px;
}

.tooltip-name {
	font-size: 14px;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Rarity colors for tooltip names */
.tooltip-name.common-item { color: #ffffff; font-weight: bold; }
.tooltip-name.uncommon-item { color: #1eff00; font-weight: bold; text-shadow: 0 0 4px #1eff00; }
.tooltip-name.rare-item { color: #0070dd; font-weight: bold; text-shadow: 0 0 4px #0070dd; }
.tooltip-name.epic-item { color: #a335ee; font-weight: bold; text-shadow: 0 0 4px #a335ee; }
.tooltip-name.legendary-item { color: #ff8000; font-weight: bold; text-shadow: 0 0 4px #ff8000; }

/* Tooltip stats */
.tooltip-stats {
	margin: 8px 0;
}

.tooltip-stat-line {
	margin: 3px 0;
	display: flex;
	justify-content: space-between;
}

.tooltip-damage {
	color: #DAA520;
	font-weight: bold;
}

.tooltip-enchant {
	color: #87CEEB;
	font-size: 11px;
}

.tooltip-level-req {
	color: #AAA;
	font-size: 10px;
	margin-top: 8px;
	text-align: center;
}

.tooltip-level-req.gold {
	color: #DAA520;
	font-weight: bold;
}

/* Comparison tooltip (when holding keybind) */
.comparison-tooltip {
	display: flex;
	gap: 20px;
}

.comparison-column {
	flex: 1;
}

.comparison-column h4 {
	color: #DAA520;
	margin: 0 0 8px 0;
	font-size: 12px;
	text-align: center;
	border-bottom: 1px solid #8B4513;
	padding-bottom: 4px;
}

.stat-comparison {
	display: flex;
	justify-content: space-between;
	margin: 3px 0;
}

.stat-diff {
	font-weight: bold;
}

.stat-diff.positive {
	color: #90EE90;
}

.stat-diff.negative {
	color: #FF6B6B;
}

.stat-diff.neutral {
	color: #DAA520;
}

/* ==============================================
   EQUIPMENT FEEDBACK POPUP
   ============================================== */

.equipment-feedback {
	position: fixed;
	top: 50px;
	right: 20px;
	background: linear-gradient(145deg, rgba(20, 10, 5, 0.95), rgba(40, 25, 15, 0.95));
	border: 2px solid #8B4513;
	border-radius: 8px;
	padding: 12px 20px;
	color: white;
	font-size: 14px;
	font-weight: bold;
	z-index: 10000;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7);
	transform: translateX(100px);
	opacity: 0;
	transition: all 0.3s ease;
	font-family: 'MedievalSharp', serif;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.equipment-feedback.show {
	transform: translateX(0);
	opacity: 1;
}

.equipment-feedback.success {
	border-color: #90EE90;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 15px rgba(144, 238, 144, 0.3);
}

.equipment-feedback.error {
	border-color: #FF6B6B;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 15px rgba(255, 107, 107, 0.3);
}

.equipment-feedback.info {
	border-color: #DAA520;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 15px rgba(218, 165, 32, 0.3);
}

/* AJAX Filter loading and error states */
.filter-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,0.9);
	color: #DAA520;
	padding: 15px 25px;
	border-radius: 6px;
	font-weight: bold;
	z-index: 1000;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	border: 1px solid #DAA520;
}

.filter-error {
	background: rgba(200,50,50,0.9);
	color: white;
	padding: 10px 15px;
	margin: 10px 0;
	border-radius: 4px;
	text-align: center;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	border: 1px solid #cc3333;
}

.no-items {
	text-align: center;
	padding: 40px;
	color: #AAA;
	font-style: italic;
	font-size: 16px;
	background: rgba(0,0,0,0.3);
	border-radius: 6px;
	border: 1px solid #444;
}

/* Filter form styling */
.inv-filt-inlblock {
	display: inline-block;
	margin: 5px 10px;
	vertical-align: top;
	background: rgba(60, 40, 20, 0.7);
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #8B4513;
}

.inv-filt-inlblock label {
	color: #DAA520;
	font-size: 11px;
	font-weight: bold;
	display: inline-block;
	margin-right: 5px;
}

.inv-filt-inlblock input[type="checkbox"] {
	margin-left: 5px;
	transform: scale(1.1);
}

.inv-filt-inlblock:hover {
	background: rgba(80, 55, 30, 0.8);
	border-color: #DAA520;
}

.inv-filt-inlblock input[type="submit"] {
	background: linear-gradient(145deg, #8B4513, #A0522D);
	border: 1px solid #DAA520;
	border-radius: 5px;
	color: white;
	padding: 8px 15px;
	font-size: 12px;
	font-family: 'MedievalSharp', sans-serif;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
}

.inv-filt-inlblock input[type="submit"]:hover {
	background: linear-gradient(145deg, #DAA520, #FFD700);
	color: black;
	transform: translateY(-1px);
}

.inv-filt-inlblock a {
	color: white;
	text-decoration: none;
	padding: 8px 15px;
	background: rgba(139, 69, 19, 0.8);
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	transition: all 0.2s ease;
}

.inv-filt-inlblock a:hover {
	background: rgba(218, 165, 32, 0.8);
	color: black;
}

/* Bonus stats styling */
.bonus-stats {
	color: #90EE90;
	font-weight: bold;
}

.targeted-user {
	box-shadow: inset gold 0 0 20px;
	color: gold !important;
	z-index: 5 !important;
}

.stats button,
.stats span {
	display: block;
}

.selectClass,
.selectedClass {
	padding: 2% 0;
	text-align: center;
}

.selectedClass form input[type='text'] {
	height: 30px;
	font-size: 100%;
}

.classDiv {
	display: inline-block;
	text-align: center;
	vertical-align: top;
}

.classDiv span,
.classDiv p {
	display: block;
	max-width: 200px;
}

.stats {
	text-align: center;
	z-index: 1;
}

/* Armory section */
.inventory-armory {
	flex: 1;
	height: 60vh;
	max-height: 60vh;
	overflow-y: auto;
	background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(50,50,50,0.9));
	border: 3px solid #8B4513;
	border-radius: 15px;
	box-shadow: 0 0 20px rgba(139, 69, 19, 0.5), inset 0 0 30px rgba(0,0,0,0.4);
	padding: 50px 15px 15px 15px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

.inventory-armory:before {
	content: 'EQUIPPED GEAR';
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #8B4513, #DAA520);
	color: white;
	padding: 6px 18px;
	border-radius: 15px;
	font-weight: bold;
	font-size: 12px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	z-index: 10;
	border: 2px solid #DAA520;
}

/* Character sheet icons */
.character-sheet-icon {
	width: 64px;
}

/* Stats section and armory compatibility */
.stats,
.armory {
	text-align: center;
	overflow: visible;
	z-index: 1;
}

.icon-cont:hover {
	background-color: rgba(255, 255, 255, 0.40);
}

.icon-cont {
	display: inline-block;
	vertical-align: middle;
	background-color: rgba(255, 255, 255, 0.25);
	border-radius: 10px;
}

.icon-split {
	margin: 5px 0;
}

#health_points {
	opacity: 0;
	transition: 0.5s ease-in;
}

.armory {
	text-align: center;
	overflow: visible;
}

.character_sheet {
	margin: 5% 0;
	overflow-y: visible;
	overflow-x: visible;

}

/* Enhanced Armor Slots */
.armor_cont {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 8px 0;
	gap: 12px;
	flex-wrap: wrap;
	width: 100%;
	max-width: 320px;
}

.slottedArmor {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(40,40,40,0.7));
	border: 3px solid #8B4513;
	border-radius: 12px;
	padding: 4px;
	margin: 0;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(139, 69, 19, 0.2);
	position: relative;
	backdrop-filter: blur(2px);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.slottedArmor:before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, transparent, #DAA520, transparent);
	border-radius: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.slottedArmor:hover {
	transform: scale(1.08) translateY(-3px);
	border-color: #DAA520;
	box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 20px rgba(218, 165, 32, 0.4);
}

.slottedArmor:hover:before {
	opacity: 1;
}

.slottedArmor img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.helm,
.shoulder,
.chest,
.neck,
.pants,
.feet,
.ring,
.gloves,
.weapon,
.offhand,
.bracer,
.belt {
	position: relative;
	margin: 0;
	min-width: 80px;
	min-height: 80px;
	width: 80px;
	height: 80px;
	padding: 0;
	background-position: center;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 5px;
	border: solid 1px white;
}

.helm {
	background-image: url(images/icon/heavy-helm.png.pagespeed.ce.5aMQQddK_y.png);
}

.neck {
	background-image: url(images/icon/emerald-necklace.png.pagespeed.ce.KCD_EFj0XE.png);
}

.shoulder {
	background-image: url(images/icon/spiked-shoulder-armor.png.pagespeed.ce.x1r8ebeeIk.png);
}

.gloves {
	background-image: url(images/icon/gloves.png.pagespeed.ce.LdEfh9s2EK.png);
}

.chest {
	background-image: url(images/icon/xchest-armor.png.pagespeed.ic.WyCoAvoR3p.png);
}

.bracer {
	background-image: url(images/icon/bracer.png.pagespeed.ce.HA4Ku1AUDJ.png);
}

.ring {
	background-image: url(images/icon/power-ring.png.pagespeed.ce.9kkdaVPdA8.png);
}

.belt {
	background-image: url(images/icon/belt-armor.png.pagespeed.ce.zhs8LZT_C0.png);
}

.pants {
	background-image: url(images/icon/xarmored-pants.png.pagespeed.ic.Lp9XKjw0kU.png);
}

.feet {
	background-image: url(images/icon/leg-armor.png.pagespeed.ce.L4en_sxIqf.png);
}

.weapon {
	background-image: url(images/icon/sword-brandish.png.pagespeed.ce.nN1iWsGq4K.png);
}

.offhand {
	background-image: url(images/icon/shield.png.pagespeed.ce.2RKnrvCYUz.png);
}

.merchant-store,
.ability-change {
	width: 95%;
	margin: 1% auto;
	padding: 1%;
	color: #fff;
	min-height: 30vh;
	background: rgba(0, 0, 0, 0.5);
	overflow-y: auto;
	overflow-x: visible;
	max-height: 75vh;
}

.merchant-buy {
	margin: 5px;
}

.merchant-buy-tabs {
	display: block;

}

.merchant-buy-tab {
	display: inline-block;
	vertical-align: top;
	width: 64px;
	height: 64px;
	background-color: rgba(0, 0, 0, 0.25);
}

.merchant-tab-icon,
.auction-icons {
	width: 64px;
}

.merchant-buy-list {
	padding: 0 10%;

}

.buy-item-list-icon {
	display: block;
	margin: auto;
}

.merchant-buy-list-item {
	display: inline-block;
	vertical-align: top;
	width: 100px;
	position: relative;
	padding: 5px;
	margin: 2px;
	box-shadow: 0 0 2px white;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 10px;
	text-align: center;
}

.item-detail-triangle {
	position: absolute;
	top: -10px;
	width: 5px;
	height: 5px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid black;
	box-shadow: 0 0 2px white;

}

.buy-item-details {
	display: none;
	position: absolute;
	min-width: 200px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 5px;
	padding: 5px;
	top: 85%;
	left: 39%;
	z-index: 2;
	box-shadow: 0 0 10px white;
}

.character-sheet-item-details {
	display: none;
	position: absolute;
	min-width: 200px;
	background-color: rgba(0, 0, 0, 0.9);
	border-radius: 5px;
	padding: 5px;
	top: 30%;
	right: 90%;
	z-index: 99;
	box-shadow: 0 0 10px white;
}

.moveup {
	top: 60%;
}

.move-detail-right {
	top: -40%;
	left: 45%;
}

.item-detail-triangle-side {
	position: absolute;
	bottom: -10px;
	width: 5px;
	height: 5px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid black;
}

.buy-item-details span {
	display: block;
}

.merch-sell-button,
.buy-ability-button,
.merch-buy-button {
	text-align: center;
	font-size: 1.5em;
	border: 2px solid orange;
	border-radius: 10px;
	background-color: #FF7145;
	font-weight: bold;
	padding: 1px;
}

.merch-buy-button {
	background-color: green;
	border: 2px solid lightgreen;
}

.merch-sell-button:hover,
.buy-ability-button:hover,
.merch-buy-button:hover {
	box-shadow: inset 0 0 5px black;
	cursor: pointer;
}

.ability-change {
	max-height: 80vh;
	padding: 1%;
	width: 95%;
}

.center {
	text-align: center;
}

.update-field {
	background-color: rgba(0, 0, 0, 0.7);
	width: 150px;
	margin: 0 auto;
	font-size: 1.5em;
	transition: 1s ease;
	height: auto;
}

.current-abilities {
	display: inline-block;
	width: 45%;
	padding: 1%;
	background-color: rgba(0, 0, 0, 0.6);
	max-height: 60vh;
	overflow: auto;
}

.owned-abilities {
	vertical-align: top;
	display: inline-block;
	width: 45%;
	padding: 1%;
	background-color: rgba(0, 0, 0, 0.6);
	max-height: 50vh;
	overflow: auto;
}

.ability-list-item {
	position: relative;
	width: 100%;
	margin: 5px 0;
	padding: 2px;
	border: solid 1px white;
}

.ability-list-item > h2 {
	display: inline-block;
}

.ability-select-checkbox {
	font-size: 16px;
	float: right;
	margin-left: 5px;
}

.selected-item {
	position: absolute;
	top: 0;
	right: 0;
}

.stat-plus {
	color: lawngreen;
}

.stat-minus {
	color: crimson;
}

.changelog {
	background-color: rgba(0, 0, 0, 0.90);
	width: 75%;
	padding: 3px;
	margin: 2px auto;
	color: white;
	max-height: 80vh;
	overflow: auto;
	font-size: 1.2em;

}

.changelog-item:nth-child(1) {
	border-top: 2px solid lawngreen;
	border-bottom: 2px solid lawngreen;
}

.changelog-item {
	border-bottom: 1px solid white;
	border-top: 1px solid white;
	padding: 5px;
	margin: 3px auto;
	width: 50%;
	text-align: left;
}

.actionbar {
	position: absolute;
	width: 65%;
	height: 10%;
	bottom: 3px;
	right: 0;
	left: 0;
	margin: auto;
	text-align: center;
}

.actionbar-spellslot {
	display: inline-block;
	width: 10%;
	height: 100%;
	vertical-align: top;
	position: relative;
	overflow: hidden;
}

.actionbar-spellslot:hover {
	box-shadow: inset 0 0 10px white;
	cursor: pointer;
}

.actionbar-spellicon {
	width: 100%;
	height: 100%;
}

.create-group-input {
	position: relative;
	display: block;
	margin: 30px 0;
}

.create-group-input > input {
	padding: 5px;
	font-size: 1.2em;
	width: 50%;
	font-family: 'MedievalSharp', sans-serif;
}

.logout > a {
	color: goldenrod;
}

.logout > a:visited {
	color: goldenrod;
}

.buy-error {
	text-align: center;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	transition: 2s ease-in-out;
}

footer {
	position: fixed;
	bottom: 5px;
	right: 20px;
	font-size: 11px;
	color: #888;
	text-align: right;
	z-index: 60;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

footer p {
	margin: 0;
	padding: 0;
	font-style: italic;
}

#countdown-mask {
	z-index: 100;
	color: white;
	position: absolute;
	display: block;
	text-align: center;
	left: 0;
	right: 0;
	height: 82vh;
	background-color: rgba(0, 0, 0, 0.75);
	font-size: 700%;
	overflow: hidden;
}

#countdown {
	margin-top: 30vh;
}

.auction {
	margin: 10px auto;
	padding: 0;
	color: white;
	border: 3px solid #8B4513;
	border-radius: 15px;
	height: calc(100vh - 140px); /* Account for nav (~60px), XP bar (35px), footer, margins */
	width: 95%;
	background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
	display: flex;
	flex-direction: column;
	box-shadow: 
		0 0 30px rgba(139, 69, 19, 0.5),
		inset 0 2px 10px rgba(218, 165, 32, 0.1);
	overflow: hidden;
}

.auction-cont {}

.ah-categories {
	padding: 8px 12px;
	margin: 5px 8px;
	background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
	border: 1px solid #8B4513;
	border-radius: 6px;
	color: #DAA520;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.ah-categories:hover {
	background: linear-gradient(145deg, rgba(50,50,50,0.9), rgba(70,70,70,0.7));
	border-color: #DAA520;
	color: #FFD700;
	transform: translateX(3px);
}

.ah-categories.selected {
	background: linear-gradient(145deg, #8B4513, #A0522D);
	color: #FFD700;
	border-color: #FFD700;
}

.ah-top-bar {
	background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
	text-align: center;
	height: 70px;
	flex-shrink: 0;
	border-bottom: 2px solid #8B4513;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ah-range {
	width: 15%;
}

.ah-top-list {
	text-align: left;
	display: inline-block;
	vertical-align: middle;
	padding: 0 15px;
	height: auto;
	max-width: 200px;
}

/* Auction Form Inputs */
.ah-top-list label {
	color: #DAA520;
	font-weight: bold;
	font-size: 12px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	display: inline-block;
	margin-bottom: 3px;
}

.ah-top-list input[type="text"],
.ah-top-list input[type="number"],
.ah-top-list select {
	background: rgba(15,15,15,0.9);
	border: 1px solid #8B4513;
	color: #FFF;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 13px;
	transition: all 0.3s ease;
}

.ah-top-list input[type="text"]:focus,
.ah-top-list input[type="number"]:focus,
.ah-top-list select:focus {
	border-color: #DAA520;
	outline: none;
	box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
}

.ah-search-top {
	background: linear-gradient(145deg, #8B4513, #A0522D);
	border: 1px solid #DAA520;
	color: #FFF;
	padding: 6px 20px;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	display: inline-block;
	vertical-align: middle;
}

.ah-search-top:hover {
	background: linear-gradient(145deg, #A0522D, #CD853F);
	box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
	transform: translateY(-2px);
}

.ah-clear-btn {
	background: linear-gradient(145deg, #666666, #777777);
	border: 1px solid #888888;
	color: #FFF;
	padding: 6px 15px;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
}

.ah-clear-btn:hover {
	background: linear-gradient(145deg, #777777, #888888);
	border-color: #AAAAAA;
	transform: translateY(-1px);
}

.ah-button {
	position: relative;
	display: inline-block;
	vertical-align: bottom;
}

.ah-cont {
	flex: 1;
	display: flex;
	overflow: hidden;
	padding: 5px;
	gap: 8px;
	height: 100%;
}

.ah-left {
	width: 22%;
	background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
	border: 2px solid #8B4513;
	border-radius: 10px;
	overflow-y: auto;
	padding: 10px 5px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	font-size: 1.1em;
	height: 100%;
}

.ah-right {
	width: 78%;
	background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
	border: 2px solid #8B4513;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	font-size: 1.1em;
	height: 100%;
	padding: 10px;
}

.ah-list {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 5px;
}

.ah-list-item {
	position: relative;
	background: linear-gradient(145deg, rgba(15,15,15,0.9), rgba(25,25,25,0.8));
	border: 1px solid #8B4513;
	border-radius: 6px;
	margin-bottom: 3px;
	padding: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
}

.ah-list-item:hover {
	background: linear-gradient(145deg, rgba(25,25,25,0.95), rgba(35,35,35,0.9));
	border-color: #DAA520;
	transform: translateX(2px);
	box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.ah-list-item.selected {
	background: linear-gradient(145deg, #8B4513, #A0522D);
	border-color: #FFD700;
}
	margin: 5px 0 0 0;
}

.ah-right-rarity {
	width: 30%;
}

.ah-right-lvl {
	width: 10%;
	text-align: center;
}

.ah-right-time-left {
	width: 15%;
	text-align: center;
}

.ah-right-seller {
	width: 15%;
	text-align: center;
}

.ah-right-current-bid {
	width: 15%;
	text-align: center;
}

.ah-right-bar {
	padding: 5px;
	display: inline-block;
}

.ah-vert-align {
	vertical-align: middle;
}

.ah-right-top-bar {
	border-bottom: 2px solid #DAA520;
	height: 35px;
	flex-shrink: 0;
	background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(40,40,40,0.7));
	display: flex;
	align-items: center;
	padding: 0 10px;
}

.ah-right-bar {
	color: #DAA520;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.auction-display-info {
	display: none;
	position: absolute;
	min-width: 200px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 5px;
	padding: 5px;
	top: 80%;
	left: 2%;
	z-index: 1;
	box-shadow: 0 0 5px white;
}

.ah-bottom-bar {
	text-align: center;
	background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(40,40,40,0.7));
	border-top: 2px solid #8B4513;
	padding: 10px;
	flex-shrink: 0;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.ah-bottom-func {
	color: #DAA520;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* No items message */
.no-items {
	text-align: center;
	color: #888;
	font-style: italic;
	padding: 40px 20px;
	font-size: 16px;
}

/* Rarity colors */
.ah-right-rarity.common { color: #ffffff; }
.ah-right-rarity.uncommon { color: #1eff00; }
.ah-right-rarity.rare { color: #0070dd; }
.ah-right-rarity.epic { color: #a335ee; }
.ah-right-rarity.legendary { color: #ff8000; }

/* Auction Action Buttons */
.ah-bid-btn, .ah-buyout-btn, .ah-list-btn, .ah-collect-btn {
	background: linear-gradient(145deg, #8B4513, #A0522D);
	border: 1px solid #DAA520;
	color: #FFF;
	padding: 6px 12px;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	margin: 0 3px;
}

.ah-bid-btn:hover, .ah-buyout-btn:hover, .ah-list-btn:hover, .ah-collect-btn:hover {
	background: linear-gradient(145deg, #A0522D, #CD853F);
	box-shadow: 0 0 8px rgba(218, 165, 32, 0.4);
	transform: translateY(-1px);
}

.ah-buyout-btn {
	background: linear-gradient(145deg, #B8860B, #DAA520);
}

.ah-buyout-btn:hover {
	background: linear-gradient(145deg, #DAA520, #FFD700);
}

/* Auction house sell form horizontal layout */
.ah-sell-form {
    padding: 15px;
    background: rgba(30,30,30,0.8);
    border-bottom: 2px solid #8B4513;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.ah-sell-form h1 {
    margin: 0 0 10px 0;
    color: #DAA520;
    text-align: center;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.ah-sell-form hr {
    border: 1px solid #8B4513;
    margin: 0 0 15px 0;
}

.ah-sell-form-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.ah-form-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    flex: 1;
}

.ah-form-group label {
    color: #DAA520;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.ah-form-group input,
.ah-form-group select {
    padding: 8px;
    border: 2px solid #8B4513;
    border-radius: 4px;
    background: rgba(20,20,20,0.9);
    color: #FFFFFF;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ah-form-group input:focus,
.ah-form-group select:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 5px rgba(218,165,32,0.5);
}

.ah-form-group .ah-list-btn {
    margin-top: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    border: 2px solid #DAA520;
}

.ah-form-group .ah-list-btn:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.sell-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.sell-status.success {
    background: rgba(40,120,40,0.8);
    color: #90EE90;
    border: 1px solid #228B22;
}

.sell-status.error {
    background: rgba(120,40,40,0.8);
    color: #FF6B6B;
    border: 1px solid #DC143C;
}

.sell-status.info {
    background: rgba(40,40,120,0.8);
    color: #87CEEB;
    border: 1px solid #4169E1;
}

/* Auction house inventory section - enhanced for more space */
.ah-sell-inv {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(10,10,10,0.5);
    border-radius: 0 0 8px 8px;
    max-height: calc(100vh - 300px);
}

.inventory-item {
    background: linear-gradient(135deg, rgba(40,40,40,0.9), rgba(30,30,30,0.8));
    border: 2px solid #654321;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.inventory-item:hover {
    border-color: #8B4513;
    background: linear-gradient(135deg, rgba(50,50,50,0.9), rgba(40,40,40,0.8));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Removed: This rule was overriding the rarity-specific selected styles above */

.inv-icon-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-name {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.inv-item-dmg {
    color: #CCCCCC;
    font-size: 0.9em;
    margin-top: 5px;
}

.loading-message,
.no-items,
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #CCCCCC;
    font-style: italic;
    background: rgba(20,20,20,0.8);
    border: 2px dashed #666666;
    border-radius: 8px;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Responsive adjustments for sell form */
@media (max-width: 768px) {
    .ah-sell-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .ah-form-group {
        min-width: 100%;
    }
}

/* Status Messages */
.sell-status {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
}

.sell-status.success {
	background: rgba(76, 175, 80, 0.2);
	border: 1px solid #4CAF50;
	color: #4CAF50;
}

.sell-status.error {
	background: rgba(244, 67, 54, 0.2);
	border: 1px solid #f44336;
	color: #f44336;
}

.sell-status.info {
	background: rgba(33, 150, 243, 0.2);
	border: 1px solid #2196F3;
	color: #2196F3;
}

/* Collect Items */
.collect-items-container {
	margin-top: 20px;
}

.collect-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(15,15,15,0.9);
	border: 1px solid #8B4513;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.collect-item:hover {
	background: rgba(25,25,25,0.95);
	border-color: #DAA520;
}

.collect-item-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.collect-type {
	font-size: 12px;
	color: #DAA520;
	font-style: italic;
}

.collect-item-value {
	color: #FFD700;
	font-weight: bold;
}

/* Inventory Items for Selling */
.inventory-item {
	background: rgba(15,15,15,0.9);
	border: 1px solid #8B4513;
	border-radius: 4px;
	padding: 8px;
	margin: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.inventory-item:hover {
	background: rgba(25,25,25,0.95);
	border-color: #DAA520;
}

/* Removed: This rule was also overriding the rarity-specific selected styles */

.ah-bottom-func {
	display: inline-block;
	padding: 2px 5px;
	margin: 0 10px;
}

.ah-func-bid {
	display: inline-block;
}

.ah-bid-input {
	background-color: rgba(255, 255, 255, 0.10);
	font-family: 'MedievalSharp', sans-serif;
	color: white;
	font-size: 1em;
	border: none;
	padding: 1px;
}

.ah-bottom-tabs {
	display: inline-block;
	padding: 0.75%;
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 1px white;
}

.ah-bottom-tabs:hover {
	box-shadow: inset 0 0 3px gold;
}

.selected {
	box-shadow: inset 0 0 5px gold;
}

.ah-sell-form input,
.ah-sell-form label,
.ah-sell-form select {
	display: block;
	padding: 0.6%;
	font-family: 'MedievalSharp', sans-serif;
}

.ah-sell-form input {
	background-color: rgba(0, 0, 0, 0.10);
	border: none;
	color: white;
	font-family: 'MedievalSharp', sans-serif;
}

.ah-sell-inv {
	display: block;
	max-height: 40vh;
	overflow: auto;
}

.level-required {
	font-size: 1.2em;
}

.lvlTooLow {
	box-shadow: inset 0 0 10px crimson;
	background-color: rgba(237, 21, 63, 0.10);
}

.gold {
	color: gold;
}

/* Fantasy Filter Section */
.inventory-menu form {
	background: rgba(0,0,0,0.7);
	border: 2px solid #8B4513;
	border-radius: 10px;
	margin: 0 20px 10px 20px;
	padding: 12px;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.inv-filt-inlblock {
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	color: #e0e0e0;
	font-weight: 500;
	transition: all 0.3s ease;
}

div.inv-filt-inlblock {
	padding: 8px 12px;
	margin: 5px;
	background: rgba(139, 69, 19, 0.2);
	border: 1px solid #8B4513;
	border-radius: 8px;
	transition: all 0.3s ease;
}

div.inv-filt-inlblock:hover {
	background: rgba(139, 69, 19, 0.4);
	border-color: #DAA520;
	transform: translateY(-1px);
}

input.inv-filt-inlblock[type="checkbox"] {
	transform: scale(1.3);
	margin-left: 8px;
	accent-color: #DAA520;
	cursor: pointer;
}

.inv-filt-inlblock label {
	cursor: pointer;
	color: #DAA520;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.inv-filt-inlblock input[type="submit"] {
	background: linear-gradient(135deg, #DAA520, #B8860B);
	color: white;
	border: 2px solid #8B4513;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.inv-filt-inlblock input[type="submit"]:hover {
	background: linear-gradient(135deg, #B8860B, #DAA520);
	box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
	transform: translateY(-2px);
}

.inv-filt-inlblock a {
	color: #e0e0e0;
	text-decoration: none;
	background: linear-gradient(135deg, #666, #888);
	padding: 10px 15px;
	border-radius: 8px;
	margin-left: 10px;
	transition: all 0.3s ease;
	display: inline-block;
}

.inv-filt-inlblock a:hover {
	background: linear-gradient(135deg, #888, #aaa);
	color: white;
	transform: translateY(-1px);
}

.leaderboard-cont {
	background-color: rgba(0, 0, 0, 0.75);
	color: white;
	font-size: 1.3em;
	overflow: auto;
	max-height: 75vh;
}

.leaderboard-left {
	display: inline-block;
	text-align: left;
}

.leaderboard-right {
	display: inline-block;
	text-align: left;
	margin-left: -6px;
}

.leaderboard-right > div,
.leaderboard-left > div {
	padding: 5px;
}

.leaderboard-left > div:nth-child(even),
.leaderboard-right > div:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.75);
}

.ability-overlay-anim {
	animation: abilityCooldown;
	-webkit-animation: abilityCooldown;
	-moz-animation: abilityCooldown;
	animation-timing-function: linear;
	-webkit-animation-timing-function: linear;
	-moz-animation-timing-function: linear;
	position: absolute;
	background-color: white;
	height: 100%;
	width: 100%;
	opacity: 0.20;
	bottom: -112px;
	z-index: 5;
}

@keyframes abilityCooldown {
	0% {
		bottom: -112px;
	}

	100% {
		height: 100%;
		bottom: 0;
	}
}

@-webkit-keyframes abilityCooldown {
	0% {
		bottom: -112px;
	}

	100% {
		height: 100%;
		bottom: 0;
	}
}

@-moz-keyframes abilityCooldown {
	0% {
		bottom: -112px;
	}

	100% {
		height: 100%;
		bottom: 0;
	}
}

.patron-star {
	display: inline-block;
	vertical-align: middle;
	width: 26px;
	height: 26px;
}

.patron-star:hover {
	width: 64px;
	height: 64px;
}

.inline {
	display: inline-block;
	vertical-align: middle;
}

.social {
	color: white;
}

.cast-bar-ability-info {
	position: absolute;
	width: 100%;
	font-weight: bold;
	display: block;
	text-align: center;
	font-size: 100%;
	color: antiquewhite;
	background-color: rgba(0, 0, 0, 0.4);
	opacity: 1;
	height: 100%;
	z-index: 4;
}

.cast-bar-ability-info:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 6;
}

.spell-rank-info {
	position: absolute;
	bottom: 0;
	right: 3px;
}

#referralCode {
	background-color: rgba(0, 0, 0, 0.3);
	border-color: rgba(0, 0, 0, 0.3);
	color: white;

}

#referralCode:hover,
.hubWeapon:hover {
	cursor: pointer;
}

.reset-stats-form > input[type=checkbox] {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
}

.reset-stats-form > input[type=submit] {
	width: 50px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
}

.reset-stats-form {
	font-size: 1.3em;
}

.stat-reset {
	overflow: visible;
}

.global-modifier-list-item {
	display: inline-block;
	padding: 2px;
	margin: 1px;
	background-color: darkgoldenrod;

}

.yourCharacterContainer {
	position: relative;
	display: block;
	bottom: 10%;
	left: 0;
	width: auto;
	min-width: 140px;
	margin: 2px;
	padding: 3px;
	box-shadow: 0 0 10px black;
	border: 2px black solid;
	background-color: rgba(0, 0, 0, 0.5);
	color: aliceblue;
	z-index: 0;
	font-size: 1.1em;
}

.boss-section {
	position: absolute;
	left: 0;
	width: 100%;
}

.raid-gui {
	position: absolute;
	display: block;
	left: 0;
	bottom: 0;
	width: 29%;
	max-height: 400px;
	height: 100%;
	min-height: 100px;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.boss-gui {
	position: fixed;
	width: 100%;
	height: 81vh;
}

.group-raid {
	height: 100%;
}

.raid-group-raid-gui {
	position: relative;
	color: white;
	display: inline-block;
	max-width: 100px;
	max-height: 100px;
	width: 100%;
	height: 50px;
	min-width: 100px;
	min-height: 50px;
	text-align: center;
	padding: 1px;
	margin: 1px;
}

.floatingGroupRaidText {
	text-align: center;
	width: 50px;
	height: 30px;
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%);
	background-color: rgba(0, 0, 0, 0);
	overflow: show;
	z-index: 10;
}

.hub-toggle {
	position: fixed;
	display: block;
	bottom: 30%;
	right: 1%;
	width: 100px;
	z-index: 1;
}

.gui-user-info {
	position: relative;
	display: block;
	min-height: 50px;
	width: 100%;

	z-index: 2;
}

.raid-gui-name {}

.raid-group-health-wrapper {
	position: relative;
	display: block;
	height: 100%;
	min-height: 45px;
	z-index: -1;
}

.raid-group-health-bg {
	min-height: 45px;
	z-index: 1;
}

.raid-group-health {
	min-height: 45px;
	height: 100%;
	z-index: 1;
}

.your-mana-bg,
.group-mana-bg {
	background-color: grey;
	
}

.raid-group-mana-bg {
	height: 5px;
	z-index: 1;
}

.gui-name-health-cont {
	top: 50%;
	transform: translatey(-50%);
	left: 0;
	position: absolute;
	width: 100%;
	font-size: 0.8em;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.raid-group-health,
.raid-group-mana {
	height: 100%;
	z-index: 1;
}

.raid-your-health,
.raid-group-health {
	position: relative;
	background-color: #9ed13a;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.raid-your-mana,
.raid-group-mana {
	background-color: deepskyblue;
	width: 100%;
	z-index: 1;
}

.creatureContainer {
	flex: 1 1 290px;
	min-width: 200px;
	max-width: 290px;
	max-height: 175px;
	font-size: .8em;
	background: #222;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.2);
	margin: 0 8px 16px 8px;
	padding: 18px 16px 16px 16px;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

.creatureContainers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .creatureContainers {
        flex-direction: column;
        align-items: stretch;
    }
    .creatureContainer {
        max-width: 100%;
        min-width: 0;
        margin: 0 0 18px 0;
    }
}

.creatureContainer {
    flex: 1 1 320px;
    min-width: 50px;
    max-width: 350px;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    margin: 0 8px 16px 8px;
    padding: 18px 16px 16px 16px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}


/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {

	/* Styles */
	.levelup-text {
		position: absolute;
		display: block;
		padding: 15.5% 0;
		top: 5%;
		left: 22%;
		text-align: center;
		font-size: 1.2em;
		margin: 0 auto;
		max-width: 50%;

	}
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width : 1366px) {
	* {
		padding: 0;
		margin: 0;
	}
	.chat-container-hide{
		width: 35px !important;
		height: 35px !important;
	}
	.chat-container{
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	max-width: 500px;
	height: 250px;
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	z-index: 100;
}
	.creatureContainer {
		flex: 1 1 320px;
		min-width: 50px;
		max-width: 100px;
		background: #222;
		border-radius: 12px;
		box-shadow: 0 2px 12px rgba(0,0,0,0.2);
		margin: 0 8px 10px 8px;
		padding: 10px 10px 10px 10px;
		box-sizing: border-box;
		overflow: hidden;
		position: relative;
		font-size: .5em;
	}

	html {
		background-color: #eee;
		font-family: 'MedievalSharp', sans-serif;
	}


	.landing-notice {
		padding: 5px;
		font-size: 0.6em;
	}

	.logo {
		vertical-align: middle;
		height: 75px;
		display: flex;
		margin: 0 3px;
	}

	nav ul {
		margin: 0 2px;
		position: relative;
		display: inline-flex;
		flex-wrap: nowrap;
		width: auto;
	}

	.nav-li {
		position: relative;
		display: inline-flex;
		text-decoration: none;
		list-style: none;
		color: black;
		width: 20%;
		max-width: 100px;
		min-width: 80px;
		min-height: 60px;
		height: auto;
		padding: 3px;
		vertical-align: middle;
		z-index: 2;
		text-align: center;
		margin: 1px;
		overflow: hidden;
	}

	.nav-li > img {
		position: absolute;
		display: block;
		width: 100%;
		height: 100%;
		z-index: -1;
	}

	.navSpan {
		position: absolute;
		display: inline-block;
		width: 85%;
		height: auto;
		max-width: 75px;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
		font-weight: bold;
		color: #2c3e50;
		text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
		z-index: 10;
		font-size: 10px;
		line-height: 1.1;
		word-wrap: break-word;
		overflow: hidden;
		padding: 1px 2px;
	}

	.navSpan5 {
		top: 30% !important;
	}

	.hub-dropdown {
		top: 100%;
		position: absolute;
		width: 120%;
		display: none;
		background-color: rgba(0, 0, 0, 0.95);
		border: 2px solid #DAA520;
		border-radius: 8px;
		box-shadow: 0 8px 25px rgba(0,0,0,0.6);
		z-index: 9999;
	}

	.hub-dropdown-item > a:visited {
		color: white;
		padding: 3px;
	}

	.hub-dropdown-item {
		display: block;
		font-size: 1em;
		padding: 3px;
		color: white;
		text-decoration: none;
		font-weight: bold;
		margin: 0 auto;
		z-index: 3;
	}

	.hub-dropdown-item > a {
		color: white;
		display: block;
		padding: 5px;
	}

	.hub-dropdown-item > a:hover {
		background-color: rgba(255, 255, 255, 0.25);
	}

	.nav-li > a:visted {
		color: black;
	}

	.nav-li > a {
		color: black;
		text-decoration: none;
		font-size: 1em;
		display: block;
	}


	wrapper {
		position: relative;
		display: block;
		width: 100%;
		margin-bottom: 1%;
	}

	.home-menu {
		display: block;
		text-align: center;
		margin: 0 0;
		max-height: 80vh;
	}

	.menu1,
	.menu2,
	.menu3,
	.menu2-character-sheet,
	.supporter-menu1 {
		position: relative;
		display: inline-block;
		box-shadow: 0px 0px 3px black;
		height: 75vh;
		padding: 2px;
		margin: 0;
		text-align: left;
		border-radius: 10px;
		background-color: rgba(0, 0, 0, 0.85);
		color: #fff;
		vertical-align: top;
		font-size: 1em;
		overflow: auto;
	}

	.menu1 {
		width: 20%;
		min-width: 0;
	}

	.menu2 {
		width: 30%;
	}

	.menu2-character-sheet {
		width: 75%;
	}

	.menu3 {
		width: 25%;
		max-height: 75vh;
		overflow: auto;
	}

	.supporter-menu1 {
		width: 90%;
		overflow: auto;
	}

	.menu-2-1,
	.menu-2-2 {
		display: inline-block;
		width: 100%;
		height: 100%;
		overflow: auto;
	}

	.menu-stats span,
	.weapon-menu span,
	.menu-abilities span {
		display: block;
		padding: 1px;
	}

	.battlefield {
		font-size: 0.8em;
	}

	.menu-stats,
	.weapon-menu,
	.menu-abilities {
		margin: 0 0 5px 0;
	}

	.left-menu,
	.battle,
	.other-menu {
		position: relative;
		display: inline-block;
		height: 90vh;
		min-height: 0;
		vertical-align: top;
		color: #fff;
		overflow: auto;
		background-color: rgba(0, 0, 0, 0.85);
	}

	.left-menu,
	.other-menu {
		width: 19.5%;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.battle {
		width: 80%;
		text-align: center;
	}

	.boss-gui {
		position: relative;
		width: 99.8% !important;
		height: 100vh;
		z-index: 0;
	}

	.hub-toggle {
		position: fixed;
		display: block;
		bottom: 30%;
		right: 5px;
		width: 100px;
		z-index: 1;
	}

	.boss-section {
		position: absolute;
		width: 65%;
		right: 0;
		left: unset;
	}

	.raid-gui {
		position: fixed;
		left: 0;
		top: 20%;
		width: 36%;
		max-height: 400px;
		height: auto;
		min-height: 100px;
		background-color: rgba(0, 0, 0, 0.4);
		z-index: 1;
	}

	.raid-group-raid-gui {
		position: relative;
		color: white;
		display: inline-block;
		max-width: 50px;
		max-height: 100px;
		width: 100%;
		height: 30px;
		min-width: 50px;
		min-height: 30px;
		text-align: center;
		padding: 1px;
		margin: 2px;

	}

	.yourCharacterContainer {
		position: relative;
		display: block;
		width: auto;
		min-width: 145px;
		height: auto;
		margin: 0;
		padding: 5px;
		box-shadow: 0 0 10px black;
		background-color: rgba(0, 0, 0, 0.4);
		color: aliceblue;
		z-index: 2;
	}

	.gui-user-info {
		position: relative;
		display: block;
		min-height: 30px;
		width: 100%;
		z-index: 1;
	}

	.raid-gui-name {}

	.raid-group-health-wrapper {
		position: relative;
		display: block;
		height: 100%;
		min-height: 30px;
		z-index: -1;
	}

	.raid-group-health-bg {
		min-height: 30px;
		z-index: 1;
	}

	.raid-group-health {
		min-height: 30px;
		height: 100%;
		z-index: 1;
	}

	.your-mana-bg,
	.group-mana-bg {
		background-color: grey;
		z-index: 1;
	}

	.raid-group-mana-bg {
		height: 5px;
		z-index: 1;
	}

	.remove-on-mobile {
		display: none;
	}

	.health-bar {
		margin: 5px 3%;
		height: 20px;
	}

	.health-green,
	.health-red {
		height: 20px;
		max-width: 100%;
	}

	.health-green,
	.your-health,
	.your-mana,
	.group-health,
	.group-mana {
		transition: ease-in-out 1s;
		max-width: 100%;
	}

	.health-green,
	.your-health,
	.group-health {
		background-color: greenyellow;
	}

	.group-gui {
		padding: 3px;
	}

	.group-gui:hover {
		background-color: rgba(255, 255, 255, 0.25);
	}

	.health-red {
		background-color: red;
		width: 100%;
	}

	.boss-stats {
		white-space: nowrap;
	}

	.attack-stats,
	.defense-stats {
		background-color: rgba(255, 255, 255, 0.15);
		box-shadow: 0px 0px 3px white;
		border-radius: 5px;
		display: inline-block;
		width: 25%;
		margin: 0 3px;
		min-width: 200px;
	}

	.attack-stats hr,
	.defense-stats hr {
		width: 25%;
		margin: 0 auto;

	}

	.attack-stats span,
	.defense-stats span {
		display: block;
		font-size: 1em;
	}

	.battle-feed {
		color: #fff;
		padding: 5px;
		overflow: auto;
		margin: 2px;
		border-radius: 5px;
		max-height: 100%;
	}

	.feed-msg {
		display: block;
		padding: 5px;
		margin: 5px 0;
		box-shadow: inset 0 0 1px white;
		font-size: 0.8em;
	}

	.npc-feed-msg {
		font-size: 0.8em;
		color: goldenrod;
		background-color: rgba(0, 0, 0, 0.35);
	}

	.attacks {
		padding: 1%;
		margin: 1%;
	}

	.interactive {
		padding: 5px;
	}

	.player-card {
		width: 100%;
	}

	.other-menu > span,
	.player-card span {
		display: block;
		text-align: center;
	}

	.your-stats {
		display: none;
		width: 100%;
		height: 45vh;
		max-height: 45vh;

	}

	.your-stats > span {
		width: auto;
		padding: 1px 2px;
	}

	.your-attacks,
	.your-defenses,
	.your-stats,
	.player-card {
		padding: 3px;
		font-size: 1em;
	}

	.your-attacks span,
	.your-defenses span,
	.your-stats span,
	.player-card span {
		display: inline-block;
		padding: 2px;
		margin: 2px 0;

	}

	.your-health-bg,
	.group-health-bg,
	.raid-group-health-bg {
		background-color: red;
	}

	.your-mana-bg,
	.group-mana-bg {
		background-color: grey;
	}

	.your-health-bg,
	.your-mana-bg,
	.group-mana-bg,
	.group-health-bg {
		height: 15px;
		border: 0.1px solid;
	}

	.your-health,
	.your-mana,
	.group-health,
	.group-mana {
		height: 100%;
		border-right: solid 0.5px black;
	}

	.your-health,
	.group-health {
		background-color: greenyellow;
		width: 100%
	}

	.your-mana,
	.group-mana {
		background-color: deepskyblue;
		width: 100%;
	}

	.enemy-hp-num {
		vertical-align: middle;
	}

	.floatingText {
		text-align: center;
		width: 50px;
		height: 30px;
		position: absolute;
		margin: 0 auto;
		background-color: rgba(0, 0, 0, 0);
		overflow: show;
		left: 50%;
		bottom: 5%;
	}

	.floatText {
		text-align: center;
		font-size: 0em;
		color: crimson;
		font-family: sans-serif;
		font-weight: bold;
		position: relative;
		display: block;
	}

	@keyframes floatTextRight {
		0% {
			display: none;
		}

		0.01% {
			display: block;
			font-size: 1px;
			left:0%;
		}
		25% {
			font-size: 1.5em;
			left: 50%;
		}

		99.9% {
			left: 0%;
			font-size: 2.5em;
		}

		100% {
			display: none;
		}
	}

	@-webkit-keyframes floatTextRight {
		0% {
			display: none;
		}

		0.01% {
			display: block;
			font-size: 1px;
			left:0%;
		}
		25% {
			font-size: 1.5em;
			left: 50%;
		}

		99.9% {
			left: 0%;
			font-size: 2.5em;
		}

		100% {
			display: none;
		}
	}

	.floatCont {
		position: absolute;
		display: block;
	}

	#floatEnemyHeal {
		right: 0;
	}

	#floatEnemyDamage,
	#floatUserHeal {
		animation: floatTextRight 0.5s ease 1;
		-webkit-animation: floatTextRight 0.5s ease 1;
		-moz-animation: floatTextRight 0.5s ease 1;
	}

	.battle-item {
		display: block;
		padding: 5px;
		margin: 10px 5px;
		box-shadow: 0 0 3px;
	}

	.common-item,
	.uncommon-item,
	.rare-item,
	.epic-item,
	.legendary-item {
		padding: 2px 3px;
		display: inline-block;
		margin: 4px 1px;
	}

	.uncommon-item {
		color: lightgreen;
		border: 1px #6fff01 solid;
		background-color: rgba(0, 0, 0, 0.50);
		box-shadow: inset 0px 0px 1px lightgreen;
		border-radius: 5px;
	}

	.rare-item {
		color: blue;
		border: 1px #1c36ff solid;
		//background-color: rgba(255, 191, 63,0.85);
		//box-shadow: inset 0px 0px 1px blue;
		border-radius: 5px;
	}

	.epic-item {
		color: rgba(255, 96, 255, 1);
		border: 1px #ee02ff solid;
		//background-color: rgba(255, 96, 255,0.70);
		box-shadow: inset 0px 0px 1px pink;
		border-radius: 5px;
	}

	.legendary-item {
		color: rgba(255, 191, 0, 1);
		border-bottom: 1px #ff9721 solid;
		border: 1px #ff9721 solid;
		//background-color: rgba(255, 191, 63,0.85);
		box-shadow: inset 0px 0px 1px orange;
		border-radius: 5px;
	}

	footer {
		position: relative;
		display: inline-block;
		width: 20%;
		font-size: 1em;
		color: white;
		text-align: center;
		bottom: auto;
		vertical-align: middle;
	}

	.exp-bar-cont {
		text-align: center;
		position: relative;
		display: inline-block;
		margin-top: 0;
		width: 60%;
		height: auto;
		font-size: 0.5em;
		bottom: auto;
		vertical-align: middle;
	}

	.exp-bar {
		position: relative;
		width: 100%;
		text-align: center;
		bottom: 0;
	}

	.exp {
		background-color: #555;
		border: solid 1px black;
		width: 90%;
		margin: 0 auto;
	}

	.bar {
		background-color: darkorchid;
		width: 0%;
		max-width: 100%;
		transition: linear 2.5s;
		height: 10px;
		text-align: center;
	}

	.exp-numbers {
		position: absolute;
		z-index: 10;
		left: 0;
		right: 0;
		color: white;
		font-size: 0.8em;
	}

	.levelUp,
	.youWin,
	.youLose {
		color: black;
		top: -50px;
		position: absolute;
		right: 25%;
		z-index: 100;
		width: 50%;
		height: 350px;
	}

	#levelUp,
	#youWin,
	#youLose {
		display: none;
		transition: 2s ease;
	}

	.levelup-container {
		margin: 0;
		width: 100%;
		height: 400px;
		background-image: url(images/bg/xlevelup-gui.png.pagespeed.ic.V8OKa_rRGS.png);
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		z-index: 100;
	}

	.close {
		position: absolute;
		right: 10%;
		top: 18%;
		font-size: 1.2em;
		font-weight: bold;
		padding: 3px;
		z-index: 1000;
	}

	.close:hover {
		color: red;
		cursor: pointer;
	}

	.levelup-text {
		position: absolute;
		display: block;
		padding: 15.5% 0;
		top: 10%;
		left: 25%;
		text-align: center;
		font-size: 1.2em;
		margin: 0 auto;
		max-width: 50%;

	}

	html {
		height: 100%;
		background-image: url(images/bg/xlp-1opt.png.pagespeed.ic.NJGLoaFXBb.png);
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		background-color: black;
	}

	.landing-page {
		display: block;
		position: relative;
		height: 75vh;
	}

	.lp-head {
		width: 100%;
		text-align: center;
		font-size: 1em;
	}

	.lp-play {
		position: relative;
		display: block;
		text-align: center;
		right: 0;
		font-size: 4em;
		margin: 0 auto;
		width: 100%;
		height: auto;
	}

	.lp-play > a {
		color: black;
		text-decoration: none;
		border: solid 1px;
		color: white;
		padding: 5px;
		background-color: rgba(0, 0, 0, 0.7);
	}

	.lp-play > a:hover {
		color: crimson;
		box-shadow: 0 0 20px;
	}

	.landing-logo {
		position: absolute;
		display: block;
		width: 20%;
		top: 14%;
		left: -10%;
		margin: 0 auto;
	}

	.bg {
		overflow: auto;
	}

	.createBattle,
	.login-reg {
		color: white;
		display: block;
		text-align: center;
		width: 20%;
		min-width: 0;
		padding: 5%;
		margin: 0 auto;
		font-size: 1.5em;
		background-color: rgba(0, 0, 0, 0.8);
		border: solid 1px;
	}

	.login {
		position: absolute;
		display: block;
		top: 22%;
		width: 30%;
		padding: 2%;
	}

	.login-reg > form > input,
	.createBattle > form > input {
		font-family: 'MedievalSharp', sans-serif;
		font-size: 1em;
		padding: 5px;
		margin: 1% 0;
		width: 100%;
		height: 25px;
	}

	.login-reg > form > input {
		padding: 2px;
		margin: 0;
		width: 100%;
		height: 25px;
	}

	.login-reg > form > button,
	.createBattle > form > button {
		font-family: 'MedievalSharp', sans-serif;
		position: relative;
		display: block;
		font-size: 1em;
		width: 100%;
		margin: 0 auto;
	}

	.login-reg > form > button:hover,
	.createBattle > form > button:hover {
		color: crimson;
		cursor: pointer;
	}

	.login-reg a {
		text-decoration: none;
		color: white;
		position: relative;
		display: block;
		padding: 1%
	}

	.login-reg a:hover {
		color: crimson;
	}

	.login-reg-error {
		font-size: 0.7em;
		color: crimson;
		background-color: rgba(0, 0, 0, 0.85);
	}

	.register {
		top: 25%;
		width: 40%;
		min-width: 0;
		padding: 1%;
	}

	.createBattle {
		position: relative;
		display: inline-block;
		width: 32%;
		min-width: 0;
		font-size: 0.9em;
		padding: 2px;
		margin: 0;
		vertical-align: top;
	}

	.createBattle a {
		left: 0;
		position: relative;
		color: white;
	}

	.createBattle a:visited {
		color: white;
	}

	.createBattle > form > button {
		margin: 0 auto;
		max-width: 200px;
	}

	.createBattle > form > input {
		display: block;
		margin: 0 auto;
		width: 50%;
		max-width: 200px;
	}

	.battleSetup {
		text-align: center;
	}

	.won {
		width: 75%;
		min-width: 1000px;
		display: block;
		margin: 0 auto;
	}

	.win-table-div {
		display: inline-block;
		width: 30%;
		height: 75vh;
		color: #fff;
		background-color: rgba(0, 0, 0, 0.75);
		vertical-align: top;
		padding: 2px;
		overflow: auto;
	}

	.win-table-div > h3 {
		text-align: center;
		padding: 1px;
	}

	.win-feed-item {
		padding: 3px;
	}

	.weapon-menu {
		position: relative;
	}

	.weaponDisplay {
		position: absolute;
		display: none;
		padding: 5px;
		left: 10%;
		background-color: rgba(0, 0, 0, 0.95);
		border: 1px solid white;
		border-radius: 5px;
		transition: linear 2s;
	}

	.attacks > button {
		margin: 0 5px;
		font-size: 1em;
		padding: 3px;
	}

	.weapon-enchants {
		padding: 3px;
	}

	.crit-damage {
		background-color: crimson;
		padding: 3px;
		font-size: 1.3em;
	}

	.npc-crit {
		color: white;
		background-color: crimson;
	}

	.npc-feed-name {
		color: goldenrod;
	}

	.player-feed-content {
		color: white;
	}

	.inventory-menu {
		width: 100%;
	}

	.inventory-container {
		height: 100%;
		text-align: center;
		overflow: auto;
	}

	.inventory-item {
		display: inline-block;
		text-align: center;
		font-size: 80%;
		box-shadow: white 0 0 2px;
		padding: 3px;
		margin: 2px;
		width: 150px;
		height: auto;
		vertical-align: top;
		background-color: rgba(255, 255, 255, 0.05);
	}

	.inv-icon-name {
		min-width: 100px;
		max-width: 200px;
	}

	.inv-ench-cont {
		margin: 0 auto;
	}

	.inv-icon {
		display: block;
		width: auto;
		margin: 0 auto;
	}

	.inv-name {
		vertical-align: middle;
		font-size: 1.2em;
	}

	.inv-item-dmg {}

	.inv-item-ench {
		display: block;
	}

	.selected {
		box-shadow: inset gold 0 0 5px;
	}

	.targeted-user {
		box-shadow: inset gold 0 0 10px;
		color: gold;
		z-index: 3p;
	}

	.stats button,
	.stats span {
		display: block;
	}

	.selectClass,
	.selectedClass {
		padding: 2% 0;
		text-align: center;
	}

	.selectedClass form input[type='text'] {
		height: 30px;
		font-size: 100%;
	}

	.classDiv {
		display: inline-block;
		text-align: center;
		vertical-align: top;
	}

	.classDiv span,
	.classDiv p {
		display: block;
		max-width: 200px;
	}

	.stats {
		width: 50%;
		text-align: center;
		overflow-x: visible;
		z-index: 1;
	}

	.stats,
	.armory {
		max-width: 50%;
		height: 80%;
		vertical-align: top;
		display: inline-block;
		z-index: 1;
		overflow: visible;
	}

	.character-sheet-icon {
		width: 64px;
	}

	.character-sheet-item-details {
		position: absolute;
		min-width: 200px;
		background-color: rgba(0, 0, 0, 0.9);
		border-radius: 5px;
		padding: 5px;
		top: -130%;
		right: 90%;
		z-index: 100;
		box-shadow: 0 0 10px white;
	}

	.icon-cont:hover {
	background-color: rgba(255, 255, 255, 0.40);
	}

	.icon-cont {
		display: inline-block;
		vertical-align: middle;
		background-color: rgba(255, 255, 255, 0.25);
		border-radius: 10px;
		max-width: 37%;
	}

	.icon-split {
		margin: 5px 0;
	}

	#health_points {
		opacity: 0;
		transition: 0.5s ease-in;
	}

	.armory {
		text-align: center;
		z-index: 1;
		overflow-x: visible;
	}

	.character_sheet {
		margin: 1% 0;
		overflow: visible;
		z-index: 0;
	}

	.armor_cont {}

	.slottedArmor {
		width: 64px;
		height: 64px;
		background-color: rgba(0, 0, 0, 0.80);
	}

	.helm,
	.shoulder,
	.chest,
	.neck,
	.pants,
	.feet,
	.ring,
	.gloves,
	.weapon,
	.offhand,
	.bracer,
	.belt {
		position: relative;
		margin: 2px;
		width: 64px;
		height: 64px;
		padding: 2px;
		background-position: center;
		background-size: cover;
		=display: inline-block;
		vertical-align: middle;
		border-radius: 5px;
		border: solid 1px white;
	}

	.helm {
		background-image: url(images/icon/heavy-helm.png.pagespeed.ce.5aMQQddK_y.png);
	}

	.neck {
		background-image: url(images/icon/emerald-necklace.png.pagespeed.ce.KCD_EFj0XE.png);
	}

	.shoulder {
		background-image: url(images/icon/spiked-shoulder-armor.png.pagespeed.ce.x1r8ebeeIk.png);
	}

	.gloves {
		background-image: url(images/icon/gloves.png.pagespeed.ce.LdEfh9s2EK.png);
	}

	.chest {
		background-image: url(images/icon/xchest-armor.png.pagespeed.ic.WyCoAvoR3p.png);
	}

	.bracer {
		background-image: url(images/icon/bracer.png.pagespeed.ce.HA4Ku1AUDJ.png);
	}

	.ring {
		background-image: url(images/icon/power-ring.png.pagespeed.ce.9kkdaVPdA8.png);
	}

	.pants {
		background-image: url(images/icon/xarmored-pants.png.pagespeed.ic.Lp9XKjw0kU.png);
	}

	.feet {
		background-image: url(images/icon/leg-armor.png.pagespeed.ce.L4en_sxIqf.png);
	}

	.weapon {
		background-image: url(images/icon/sword-brandish.png.pagespeed.ce.nN1iWsGq4K.png);
	}

	.offhand {
		background-image: url(images/icon/shield.png.pagespeed.ce.2RKnrvCYUz.png);
	}

	.merchant-store,
	.ability-change {
		width: 95%;
		margin: 1% auto;
		padding: 1%;
		color: #fff;
		min-height: 30vh;
		background: rgba(0, 0, 0, 0.5);
		max-height: 75vh;
		overflow-y: auto;
		overflow-x: visible;
	}

	.merchant-buy {
		margin: 5px;
	}

	.merchant-buy-tabs {
		display: block;

	}

	.merchant-buy-tab {
		display: inline-block;
		vertical-align: top;
		width: 64px;
		height: 64px;
		background-color: rgba(0, 0, 0, 0.25);
	}

	.merchant-tab-icon {
		width: 64px;
	}

	.merchant-buy-list {}

	.buy-item-list-icon {
		display: block;
		margin: auto;
	}

	.merchant-buy-list-item {
		display: inline-block;
		vertical-align: top;
		width: 100px;
		position: relative;
		padding: 5px;
		margin: 2px;
		box-shadow: 0 0 2px white;
		background-color: rgba(0, 0, 0, 0.7);
		border-radius: 10px;
		text-align: center;
	}

	.item-detail-triangle {
		position: absolute;
		top: -10px;
		width: 5px;
		height: 5px;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-bottom: 5px solid black;
		box-shadow: 0 0 2px white;

	}

	.buy-item-details {
		display: none;
		position: absolute;
		min-width: 200px;
		background-color: rgba(0, 0, 0, 0.7);
		border-radius: 5px;
		padding: 5px;
		top: 85%;
		left: 39%;
		z-index: 2;
		box-shadow: 0 0 10px white;
	}

	.character-sheet-item-details {
		display: none;
		position: absolute;
		min-width: 200px;
		background-color: rgba(0, 0, 0, 0.9);
		border-radius: 5px;
		padding: 5px;
		top: 30%;
		right: 90%;
		z-index: 99;
		box-shadow: 0 0 10px white;
	}

	.moveup {
		top: 60%;
	}

	.move-detail-right {
		top: -40%;
		left: 45%;
	}

	.item-detail-triangle-side {
		position: absolute;
		bottom: -10px;
		width: 5px;
		height: 5px;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 5px solid black;
	}

	.buy-item-details span {
		display: block;
	}

	.merch-sell-button,
	.buy-ability-button,
	.merch-buy-button {
		text-align: center;
		font-size: 1.5em;
		border: 2px solid orange;
		border-radius: 10px;
		background-color: #FF7145;
		font-weight: bold;
		padding: 1px;
	}

	.merch-buy-button {
		background-color: green;
		border: 2px solid lightgreen;
	}

	.merch-sell-button:hover,
	.buy-ability-button:hover,
	.merch-buy-button:hover {
		box-shadow: inset 0 0 5px black;
		cursor: pointer;
	}

	.ability-change {
		max-height: 80vh;
		padding: 1%;
		width: 98%;
	}

	.center {
		text-align: center;
	}

	.update-field {
		font-size: 1.5em;

	}

	.current-abilities {
		display: inline-block;
		width: 45%;
		padding: 1%;
	}

	.owned-abilities {
		vertical-align: top;
		display: inline-block;
		width: 45%;
		padding: 1%;
		max-height: 50vh;
		overflow: auto;
	}

	.ability-list-item {
		position: relative;
		width: 100%;

	}

	.ability-list-item > h2 {
		display: inline-block;
	}

	.ability-select-checkbox {
		font-size: 20px;
		padding: 5px;
		position: absolute;
		display: inline-block;
		right: 0;
		top: 0;
	}

	.slot-checkbox {
		right: 5%;
	}

	.selected-item {
		position: absolute;
		top: 0;
		right: 0;
	}

	.stat-plus {
		color: lawngreen;
	}

	.stat-minus {
		color: crimson;
	}

	.changelog {
		background-color: rgba(0, 0, 0, 0.45);
		width: 75%;
		margin: 0 auto;
		color: white;
	}

	.changelog-item:nth-child(1) {
		border-top: 2px solid lawngreen;
		border-bottom: 2px solid lawngreen;
	}

	.changelog-item {
		border-bottom: 1px solid white;
		border-top: 1px solid white;
		padding: 5px;
		margin: 3px auto;
		width: 50%;
	}

	.actionbar {
		position: absolute;
		width: 100%;
		height: 20%;
		border: solid 1px white;
		bottom: 0;
		left: 0;
		right: 0;
		margin: auto;
		text-align: center;
		overflow: hidden;
		z-index: 2;
	}



	.actionbar-spellslot {
		display: inline-block;
		width: 10%;
		height: 100%;
		vertical-align: top;
		position: relative;
	}

	.actionbar-spellslot:hover {
		box-shadow: inset 0 0 10px white;
		cursor: pointer;
	}

	.actionbar-spellicon {
		width: 100%;
		height: 100%;
		cursor: pointer;
	}

	.create-group-input {
		position: relative;
		display: block;
		margin: 30px 0;
	}

	.create-group-input > input {
		padding: 5px;
		font-size: 1.2em;
		width: 50%;
		font-family: 'MedievalSharp', sans-serif;
	}

	.logout > a {
		color: goldenrod;
	}

	.logout > a:visited {
		color: goldenrod;
	}

	.buy-error {
		text-align: center;
		color: white;
		background-color: rgba(0, 0, 0, 0.5);
		transition: 2s ease-in-out;
	}

	#countdown-mask {
		z-index: 100;
		color: white;
		position: absolute;
		display: block;
		text-align: center;
		left: 0;
		right: 0;
		height: 91vh;
		background-color: rgba(0, 0, 0, 0.75);
		font-size: 700%;
		overflow: hidden;
	}

	#countdown {
		margin-top: 30vh;
	}

	.auction {
		margin: 0 auto;
		padding: 10px;
		color: white;
		border: 1px solid black;
		height: 100vh;
		width: auto;
		background-color: rgba(0, 0, 0, 0.75);
	}

	.auction-cont {}

	.ah-top-bar {
		background-color: rgba(255, 255, 255, 0.10);
		text-align: center;
		height: 15%;
	}

	.ah-range {
		width: 15%;
	}

	.ah-top-list {
		text-align: left;
		display: inline-block;
		vertical-align: top;
		padding: 10px;
		max-width: 200px;
	}

	.ah-search-top {
		position: relative;
		display: inline-block;
		vertical-align: top;
	}

	.ah-button {
		position: relative;
		display: inline-block;
		vertical-align: bottom;
	}

	.ah-left {
		width: 25%;
	}

	.ah-right {
		width: 75%;
	}

	.ah-right,
	.ah-left {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 8px;
		font-size: 1em;
		height: 100%;
		flex: 1;
	}

	.ah-list-item {
		box-shadow: 0 0 3px;
		margin: 5px 0 0 0;
	}

	.ah-right-rarity {
		width: 35%;
	}

	.ah-right-lvl {
		width: 5%;
		text-align: center;
	}

	.ah-right-time-left {
		width: 15%;
		text-align: center;
	}

	.ah-right-seller {
		width: 15%;
		text-align: center;
	}

	.ah-right-current-bid {
		width: 15%;
		text-align: center;
	}

	.ah-right-bar {
		padding: 5px;
		display: inline-block;
	}

	.ah-vert-align {
		vertical-align: middle;
	}

	.ah-right-top-bar {
		border-bottom: 2px solid white;
	}

	.auction-icons {
		width: 32px;
	}

	.ah-bottom-bar {
		text-align: center;
		background-color: rgba(0, 0, 0, 0.35);
		padding: 0.10%
	}

	.ah-bottom-func {
		display: inline-block;
		padding: 2px 5px;
		margin: 0 10px;
	}

	input.inv-filt-inlblock {
		margin: 10px;
	}

	div.inv-filt-inlblock {
		padding: 4px;
		margin: 5px;
	}

	.char-sheet-common-item,
	.char-sheet-uncommon-item,
	.char-sheet-rare-item,
	.char-sheet-epic-item,
	.char-sheet-legendary-item {
		margin: -2px -3px;
		padding: 0;
		border: 2px solid !important;
		opacity: 1;
	}

	@media (max-width: 600px) {
	.chat-container-hide{
		width: 35px;
		height: 25px;
	}
  .chat-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 5px;
    width: 100vw;
    max-width: 100vw;
    height: 40vh;
    min-height: 180px;
    z-index: 1000;
    border-radius: 0;
    font-size: 1em;
	z-index: 100;
  }
  .chat-box {
    height: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .chat-messages {
    height: 22vh;
    min-height: 80px;
    font-size: 1em;
    padding-bottom: 50px;
  }
  #chat-input {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 80vw;
    height: 40px;
    font-size: 1em;
    z-index: 1001;
  }
  #send-chat {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 20vw;
    height: 40px;
    font-size: 1em;
    z-index: 1001;
  }
  .chat-tabs {
    flex-direction: row;
    font-size: 1em;
    padding: 2px 0;
  }
  .chat-message {
    font-size: 1em;
    padding: 4px;
  }
  
  
}

@media (max-width: 600px) {
  .creatureContainers {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    width: 100vw;
    min-width: 0;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  .creatureContainer {
    min-width: 160px;
    max-width: 48vw;
    flex: 1 1 44vw;
    margin: 4px 2vw 12px 0;
    padding: 10px 6px 10px 6px;
    font-size: 0.95em;
    box-sizing: border-box;
    border-radius: 8px;
  }
  .creatureContainer h1 {
    font-size: 1.1em;
    margin-bottom: 4px;
  }
  .health-bar {
    height: 12px;
  }
  .boss-stats h2 {
    font-size: 1em;
  }
}

/* ===========================
   BATTLE SETUP PAGE STYLES
   =========================== */

.setup-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(40,40,40,0.9));
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(139, 69, 19, 0.5),
        inset 0 2px 10px rgba(218, 165, 32, 0.1);
    margin-bottom: 60px;
}

.setup-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.setup-header h1 {
    font-family: 'MedievalSharp', serif;
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.setup-header .icon {
    font-size: 1.2em;
    margin-right: 15px;
}

.setup-subtitle {
    font-size: 1.2em;
    color: #CCCCCC;
    font-style: italic;
    margin: 0;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.setup-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(50,50,50,0.6));
    border: 2px solid #8B4513;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.setup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    border-color: #DAA520;
}

.setup-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
}

.setup-card-header h2 {
    font-family: 'MedievalSharp', serif;
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-icon {
    font-size: 1.3em;
    margin-right: 12px;
    display: inline-block;
}

.card-description {
    color: #CCCCCC;
    font-size: 0.95em;
    font-style: italic;
}

.setup-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #DAA520;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20,20,20,0.8);
    border: 2px solid #6B4423;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
    background: rgba(30,30,30,0.9);
}

.form-control:hover {
    border-color: #8B4513;
}

.optional {
    color: #999999;
    font-weight: normal;
    font-size: 0.85em;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #CCCCCC;
    cursor: pointer;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #FFD700;
}

.checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #DAA520;
}

.checkmark {
    margin-right: 8px;
}

.help-text {
    color: #999999;
    font-size: 0.85em;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    font-family: 'MedievalSharp', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.btn-primary {
    background: linear-gradient(145deg, #4A90E2, #357ABD);
    color: #FFFFFF;
    border: 2px solid #357ABD;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #357ABD, #2E6DA4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: linear-gradient(145deg, #8B4513, #6B4423);
    color: #FFFFFF;
    border: 2px solid #6B4423;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #6B4423, #5A3518);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.4);
}

.btn-success {
    background: linear-gradient(145deg, #5CB85C, #449D44);
    color: #FFFFFF;
    border: 2px solid #449D44;
}

.btn-success:hover {
    background: linear-gradient(145deg, #449D44, #398439);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(92, 184, 92, 0.4);
}

.btn-boss {
    background: linear-gradient(145deg, #D9534F, #C9302C);
    color: #FFFFFF;
    border: 2px solid #C9302C;
}

.btn-boss:hover {
    background: linear-gradient(145deg, #C9302C, #AC2925);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 83, 79, 0.4);
}

.btn-raid {
    background: linear-gradient(145deg, #9B59B6, #8E44AD);
    color: #FFFFFF;
    border: 2px solid #8E44AD;
}

.btn-raid:hover {
    background: linear-gradient(145deg, #8E44AD, #7D3C98);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(155, 89, 182, 0.4);
}

.btn-tournament {
    background: linear-gradient(145deg, #FFD700, #DAA520);
    color: #2C1810;
    border: 2px solid #B8860B;
}

.btn-tournament:hover {
    background: linear-gradient(145deg, #DAA520, #B8860B);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
}

.btn.disabled,
.btn:disabled {
    background: linear-gradient(145deg, #666666, #555555);
    color: #999999;
    cursor: not-allowed;
    border-color: #555555;
    transform: none;
    box-shadow: none;
}

.btn.disabled:hover,
.btn:disabled:hover {
    background: linear-gradient(145deg, #666666, #555555);
    transform: none;
    box-shadow: none;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
}

.error-message {
    background: rgba(217, 83, 79, 0.1);
    border: 1px solid #D9534F;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #F5F5F5;
}

.error-icon {
    margin-right: 8px;
}

.battle-stats {
    margin-top: 15px;
}

.stats-title {
    color: #DAA520;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-family: 'MedievalSharp', serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(20,20,20,0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #FFD700;
    font-family: 'MedievalSharp', serif;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #CCCCCC;
    margin-top: 4px;
}

.world-boss-card {
    border-color: #8B0000;
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.1), rgba(50,30,30,0.6));
}

.world-boss-card:hover {
    border-color: #FF6B6B;
}

.status-active {
    color: #4CAF50;
    margin: 10px 0;
}

.status-inactive {
    color: #F44336;
    margin: 10px 0;ent 
}

.status-progress {
    color: #FF9800;
    margin: 10px 0;
}

.tournament-info,
.raid-status {
    margin-top: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.info-label {
    color: #DAA520;
    font-weight: bold;
}

.info-value {
    color: #FFFFFF;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .setup-container {
        width: 98%;
        padding: 15px;
        margin: 10px auto;
    }
    
    .setup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .setup-header h1 {
        font-size: 2em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn {
        min-width: 140px;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .setup-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .setup-container {
        width: 99%;
        padding: 10px;
    }
    
    .setup-header h1 {
        font-size: 1.8em;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===== GUILD PAGE STYLES ===== */

/* Guild Main Navigation Tabs */
.guild-main-tabs {
    display: flex !important;
    gap: 2px !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #8B4513 !important;
    padding-bottom: 0 !important;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;
}

.guild-tab {
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a) !important;
    color: #ccc !important;
    border: 2px solid #666 !important;
    padding: 15px 30px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px 8px 0 0 !important;
    margin-right: 2px !important;
    display: inline-block !important;
    position: relative !important;
}

.guild-tab:hover {
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    border-color: #A0522D !important;
}

.guild-tab.active {
    background: linear-gradient(135deg, #DAA520, #B8860B) !important;
    color: white !important;
    border-color: #FFD700 !important;
    box-shadow: 0 -2px 10px rgba(218, 165, 32, 0.5) !important;
}

/* Guild Tab Content */
.guild-tab-content {
    display: none;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #8B4513;
    min-height: 400px;
	height: 67vh;
}

.guild-tab-content.active {
    display: block;
}

/* Guild Info Cards */
.guild-info {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.6));
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #DAA520;
    margin-bottom: 15px;
}

.guild-info h3 {
    color: #DAA520;
    font-family: 'MedievalSharp', serif;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.guild-motd {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid #DAA520;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.guild-motd h3 {
    color: #DAA520;
    margin-bottom: 8px;
}



/* Guild Bank Styles */
.guild-bank-container {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
}

.bank-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bank-tab {
    background: linear-gradient(135deg, #654321, #8B4513);
    color: white;
    border: 2px solid #A0522D;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bank-tab:hover {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    transform: translateY(-2px);
}

.bank-tab.active {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.bank-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.bank-controls button {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: 2px solid #DAA520;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bank-controls button:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.4);
}

/* Guild Members Styles */
.guild-members-container {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
}

.member-list {
    display: grid;
    gap: 10px;
}

.member-card {
    background: linear-gradient(135deg, rgba(40,40,40,0.9), rgba(60,60,60,0.8));
    border: 1px solid #8B4513;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: #DAA520;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.member-info h4 {
    color: #DAA520;
    margin-bottom: 5px;
}

.member-rank {
    color: #A0522D;
    font-weight: bold;
}

.member-actions {
    display: flex;
    gap: 8px;
}

.member-actions button {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: 1px solid #DAA520;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.member-actions button:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
}

.member-actions button.danger {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    border-color: #FF4500;
}

.member-actions button.danger:hover {
    background: linear-gradient(135deg, #A52A2A, #DC143C);
}

/* Guild Settings Styles */
.guild-settings-container {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 20px;
}

.settings-section {
    background: rgba(40,40,40,0.8);
    border: 1px solid #8B4513;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #DAA520;
    margin-bottom: 15px;
    font-family: 'MedievalSharp', serif;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #8B4513;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.4);
}

/* Responsive Guild Styles */
@media (max-width: 768px) {
    .guild-menu {
        flex-direction: column;
        height: auto;
    }
    
    .guild-menu-left,
    .guild-menu-center,
    .guild-menu-right {
        width: 100%;
    }
    
    .guild-main-tabs {
        flex-wrap: wrap;
    }
    
    .guild-tab {
        flex: 1;
        min-width: 120px;
    }
    
    .bank-tabs {
        justify-content: center;
    }
    
    .bank-controls {
        justify-content: center;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Hub Profession Widget Styles */
.hub-professions-section {
    background: linear-gradient(145deg, rgba(30,30,30,0.95), rgba(50,50,50,0.85));
    border: 2px solid #DAA520;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.professions-header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    padding: 12px 20px;
    border-bottom: 1px solid #DAA520;
}

.professions-header h3 {
    color: #FFF;
    font-family: 'MedievalSharp', serif;
    font-size: 18px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.professions-content {
    padding: 15px 20px;
    background: rgba(20,20,20,0.7);
    color: #FFF;
}

.professions-loading,
.professions-error {
    text-align: center;
    padding: 20px;
    color: #DAA520;
    font-style: italic;
}

.professions-empty {
    text-align: center;
    padding: 20px;
}

.professions-empty .empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.professions-empty .empty-text {
    color: #DAA520;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.professions-empty .empty-hint {
    color: #AAA;
    font-size: 13px;
}

.professions-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.professions-stats .stat-item {
    flex: 1;
    text-align: center;
}

.professions-stats .stat-label {
    display: block;
    color: #AAA;
    font-size: 12px;
    margin-bottom: 2px;
}

.professions-stats .stat-value {
    color: #DAA520;
    font-weight: bold;
    font-size: 14px;
}

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

.profession-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(40,40,40,0.6);
    border-radius: 6px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.profession-item .profession-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.profession-item .profession-info {
    flex: 1;
}

.profession-item .profession-name {
    color: #DAA520;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.profession-item .profession-level {
    color: #AAA;
    font-size: 11px;
}

.profession-item .profession-progress {
    width: 60px;
}

.profession-item .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.profession-item .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    transition: width 0.3s ease;
}

.professions-more {
    text-align: center;
    color: #AAA;
    font-size: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

.professions-actions {
    padding: 15px 20px;
    background: rgba(139, 69, 19, 0.3);
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    text-align: center;
}

.professions-actions .hub-action-btn {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid #FFD700;
}

.professions-actions .hub-action-btn:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

/* Character Page Navigation Links */
.character-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.character-nav-link {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'MedievalSharp', serif;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #FFD700;
    transition: all 0.3s ease;
    text-align: center;
}

.character-nav-link:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(218, 165, 32, 0.4);
}
