
html {
    background-color: #7f7a78;
    padding-top: 5px;
    /* Path to your image */
    background-repeat: repeat; /* This makes the background image repeat */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    overflow-y: scroll; /* Show vertical scrollbar */
}

body {
    background-color: #ffffffd1;
    margin: 0 auto;
    max-width: 600px;
    word-wrap: break-word;
    
    /*padding: 5px;*/
}

@media (max-width: 600px) {
    html {
        background-color: #7f7a78;
        background-image: url('../img/light-design-backg.png'); /* Path to your image */
        background-repeat: repeat; /* This makes the background image repeat */
    }
}

body, td, th {
    color: #5A5348; /* Soft, dark earth tone for text, easier on the eyes */
}

img {
    max-width: 100%;
}

.icon {
    height: 18px;
    width: 18px;
    vertical-align: middle;
}

.vcenter {
    vertical-align: middle;
}

#journal {
    color: #3E3832; /* Darker e arth tone for contrast */
    border: 2px solid #A27B5C; /* Earthy, muted brown */
    background-color: #E4E5E4; /* Light, warm beige */
    padding: 10px;
    border-radius: 5px;
    margin: 4px;
}

.center_image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

p {
    margin: 10px;
    padding: 5px;
}

.title {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    font-weight: bold;
    background: #8C746A; /* Warm, muted earth tone for the title background */
    color: #FFF4E6; /* Soft, creamy color for title text for better readability */
    padding: 5px; 
    text-align: center;
}

@media (max-width: 600px) {
    .title {
        font-size: 16px;
        margin-block-start: 0;
        margin-block-end: 0;
        font-weight: bold;
        background: #8C746A;
        color: #FFF4E6;
        padding: 5px; 
    }
}

/* Additional styles for links and buttons to match the warm earth tones theme */
a  {
    color: #5A5348; /* Adjusting link colors to match the earth tones theme */
    border-color: #A27B5C; /* Border color adjusted to an earthy tone */
    background-color: #d3cec8;    /* Light creamy background for buttons and links */
    border-radius: 3px; 
    text-decoration: none;
    margin : 2px 2px;
    padding: 8px;
    display: inline-block;
}

a.borderless {
    color: #fff; /* Keeping the adjusted link colors */
    border: 0; /* Removes the border */
    background-color: transparent; /* Makes the background transparent */
    border-radius: 0; /* Resets the border-radius */
    text-decoration: none;
    margin: 0; /* Resets the margin */
    padding: 0; /* Resets the padding */
    display: inline-block; /* Keeps the display as inline-block */
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

a.borderless:hover {
    color: #fff; /* Keeping the adjusted link colors */
    border: 0; /* Removes the border */
    background-color: transparent; /* Makes the background transparent */
    border-radius: 0; /* Resets the border-radius */
    text-decoration: none;
    margin: 0; /* Resets the margin */
    padding: 0; /* Resets the padding */
    display: inline-block; /* Keeps the display as inline-block */
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}


a.meniu {
    background-color: rgba(105, 105, 105, 0.75); /* Lighter and semi-transparent */
    border: 1px solid rgba(98, 98, 98, 0.8); /* Slightly lighter border with transparency */
    color: #e9e7e7; /* Light grey color for the text */
    padding: 8px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    margin: 2px 2px;
}

a.meniu:hover {
    background-color: rgba(94, 94, 94, 0.8); /* A bit darker on hover, still semi-transparent */
    color: white; /* Brighter text color for better readability */
}


a.exits { background-color: #15b34f; border: none; color: black; padding: 8px; cursor: pointer; text-decoration: none; border-radius: 3px; display: inline-block; margin : 2px 2px; }
a.exits:hover { 
    background-color: #c1c7cd;
    color: white;
}

a.meniu-red {
    border-color: red;
    border-style: solid;
    border-width: 1px;
}

a:hover{
    background-color: #ada9a3; /* Hover effect with a slightly lighter tone for contrast */
    color: #3E3832; /* Darker text color on hover for better readability */
}

input[type=submit], button {
    background-color: #A27B5C; /* Warm, earthy tone for buttons */
    color: #FBF8F1; /* Light text color for contrast */
    border-radius: 3px; 
    text-decoration: none;
    margin : 2px 2px;
    padding: 8px;
    display: inline-block;
}

input[type=submit]:hover, button:hover {
    background-color: #8C746A; /* Darker shade for hover effect */
}

.hpinfo {
    margin: 5px;
    display: inline-block;
}
.mpinfo {
    margin: 5px;
    display: inline-block;
}
.expinfo {
    margin: 5px;
    display: inline-block;
}
.game {
    padding: 5px;
}
/* Game bars */
.bar-center {
    text-align: center!important
}

.bar-blue {
    color: #fff!important;
    background-color: #2196F3!important
}
.bar-green {
    color: #fff!important;
    background-color: #ed8665!important; /* Red for negative indicators */
}
.bar-gold {
    color: #fff!important;
    background-color: #4CAF50!important; /* Green kept for positive indicators */
}

.bar-background {
    margin: 2px;
    display: inline-block;
    word-wrap: normal;
    width: 100px;
    color: #000!important;
    background-color: #c0c0c0!important
}

a.object_npc { color: #6400c5;  border: none; border-radius: 3px; background-color:#E4E5E4; text-decoration: none; margin : 2px 2px; padding: 4px; display: inline-block; }
a.object_item, a.object_user { border: none; border-radius: 3px; background-color: #E4E5E4; ;text-decoration: none; margin : 2px 2px; padding: 4px; display: inline-block; }
a.object_user,a.object_item,a.object_npc {font-weight: bold;}


table {border-collapse:collapse;word-wrap: break-word;}
table.bordered td {border: 1px solid #4c4c4c;}

.settings-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.settings-section h2 {
    margin-top: 0;
    color: #333;
}

.section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.section-title h2 {
    margin-top: 0;
    color: #333;
}
.section-item {
    margin: 10px 0;
}
.settings-item {
    margin: 10px 0;
}
.exits {
    padding: 5px;
}
.locinfo{
    padding: 5px;
}
.charinfo{
    padding: 5px;
}
.charstats{
    padding: 5px;
}
.objects {
    padding: 5px;
}
/* for hiding objects*/
.overlay {
    display: none;
    position: fixed;
    will-change: transform, opacity, position, display;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Semi-transparent black */
    z-index: 10; /* Ensure this is below your cards' z-index but above other content */
}
.acard {
    display: block; /* всегда показывать */
    position: static; /* встроено в поток страницы */
    margin-top: 5px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: auto; /* не нужен высокий z-index */
}


.inventory {
    padding-left: 10px;
    padding-right: 10px;
}
.inventoryStats {
    padding-left: 10px;
    padding-right: 10px;
}
fieldset {
    display: block;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    padding-block-start: 0.35em;
    padding-inline-start: 0.75em;
    padding-inline-end: 0.75em;
    padding-block-end: 0.625em;
    min-inline-size: min-content;
    border-width: 2px;
    border-style: groove;
    border-color: rgb(192, 192, 192);
    border-image: initial;
}

legend {
    display: block;
    padding-inline-start: 2px;
    padding-inline-end: 2px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
}
.inventoryMenu
{
    padding:10px;
}

.inventoryLinks
{
    padding-left:10px;
    padding-right:10px;
}
.meniu
{
    padding: 10px;
}
.game {
    padding: 5px;
}
.innerObjectMeniu {
    padding-left: 10px;
}
.invertedsvg
{
    filter: brightness(1) invert(1);
}
.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This spreads out the items */
}

.icons-left, .icons-right {
    display: flex;
}
.icon-padding
{
    padding-left: 5px !important;
}
.half-opacity
{
    opacity: 0.5;
}

/* Chat Navigation */
.chat-nav {
    margin-bottom: 20px;
    text-align: center;
}

.chat-link {
    display: inline-block;
    margin: 0 10px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.chat-link:hover {
    background-color: #014691;
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
}

/* Message Form */
.message-form {
    margin-bottom: 20px;
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 5px;
}

.message-form form {
    display: flex;
    flex-direction: column;
}

.message-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none; /* Prevent resizing */
}

.message-form input[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

/* Chat Messages */
.chat-messages {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
}

/* Current Chat Display */
.current-chat {
    float: left;
    margin-right: 20px; /* Space between the current chat display and the switch link */
    padding: 10px;
    background-color: #f0f0f0; /* Slightly different background to stand out */
    border-radius: 5px;
}

.chat-link {
    float: right; /* Move the switch link to the right */
    /* Other styles remain unchanged */
}

/* Clear floats */
.chat-nav::after {
    content: "";
    display: table;
    clear: both;
}
.chat-messages {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
}

.message {
    padding: 8px; /* Outer padding for each message */
    margin-bottom: 10px; /* Space between messages */
    background-color: #f9f9f9; /* Slight background color for each message */
    border-radius: 4px;
}

.message-username, .message-time, .message-text {
    display: block; /* Display as block to ensure each part is on a new line */
    margin: 2px 0; /* Margin for spacing between username, time, and text */
}

.message-username {
    font-weight: bold;
    color: #333; /* Darker color for the username */
}

.message-time {
    color: #666; /* Lighter color for the timestamp */
    font-size: 0.85em; /* Smaller font size for the timestamp */
}

.message-text {
    color: #000; /* Standard text color for the message */
    padding: 4px 0; /* Padding inside the message text for better readability */
}
.delete-btn {
    margin-left: 10px;
    text-decoration: none;
}

.delete-btn:hover {
    text-decoration: underline;
}

.user-info {
    background: #fff; /* White background for user info sections */
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-info a {
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

.user-gender-age {
    display: flex;
    justify-content: start;
    align-items: center;
}

.user-gender {
    font-weight: bold;
    margin-right: 5px;
}

.user-gender.female {
    color: #e57399; /* Softer pink color for female */
}

.user-gender.male {
    color: #64b5f6; /* Softer blue color for male */
}

.user-married, .user-registered, .user-clan, .user-mount {
    font-style: italic;
    color: #666; /* Gray for less emphasis */
}

.user-mastery {
    color: #e6ac00; /* Softer gold color for mastery titles */
    font-weight: bold;
}

.user-attributes {
    color: #e6ac00; /* Matching gold tone for attributes */
}

.user-attributes .user-level {
    font-size: 13px;
}

.user-weapon, .user-equipment {
    background: #eaeaea; /* Light gray background for sections */
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-equipment-list-weapon, .user-equipment-list, .user-equipment-list-armor {
    background: #f5f5f5; /* Even lighter gray for list items */
    padding: 5px;
    border-radius: 4px;
    margin: 5px 0;
}

.newchatmessages 
{
    color: #FFEB3B;
}
.fade-in {
    animation: fadeIn ease 0.05s;
    -webkit-animation: fadeIn ease 0.05s;
    -moz-animation: fadeIn ease 0.05s;
    -o-animation: fadeIn ease 0.05s;
    -ms-animation: fadeIn ease 0.05s;
  }
  @keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }
.pagination {
	list-style-type: none;
	padding: 10px 0;
	display: inline-flex;
	justify-content: space-between;
	box-sizing: border-box;
}
.pagination li {
	box-sizing: border-box;
	padding-right: 10px;
}
.pagination li a {
	box-sizing: border-box;
	padding: 8px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	border-radius: 4px;
}
.pagination .next a, .pagination .prev a {
	text-transform: uppercase;
	font-size: 12px;
}
.pagination .currentpage a {
	background-color: #518acb;
	color: #fff;
}
.pagination .currentpage a:hover {
	background-color: #518acb;
}
.force-repaint * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.font-size-0
{
    font-size: 16px;
}

.font-size-1
{
    font-size: 14px;
}
.font-size-2
{
    font-size: 18px;
}
.font-size-3
{
    font-size: 20px;
}

.inventory-item {
    background-color: #f0f0f0; /* Light grey background */
    border-radius: 5px;
    border: 1px solid #ccc; /* Light grey border */
    padding: 10px; /* Adjust padding as needed */
    display: block; /* This makes the container take up only as much space as its content */
    margin-bottom: 5px;
}

.inventory-item-name {
    cursor: pointer;
    color: #333; /* Dark grey text for readability */
    padding: 5px;
    transition: background-color 0.3s;
    display: inline; /* Change to block so it doesn't go outside the parent */
    background-color: #e8e8e8; /* Slightly darker than item background for distinction */
}

.inventory-item-name:hover {
    background-color: #dcdcdc; /* Slightly darker on hover */
}

.inventory-fullmenu {
    display: none; /* Hide both menus initially */
    padding-top: 15px; /* Adjust padding as needed */
}

.inventory-quickmenu {
    display: inline-block; /* Show quick menu inline, only when needed */
}

.inventory-quickmenu a {
    color: white; /* Darker text for links for readability */
    text-decoration: none;
    background: #676565; /* Light background for buttons */
    border-radius: 3px;
    padding: 2px 5px; /* Adjust padding for better spacing */
    margin: 0 5px; /* Space between buttons */
    display: inline-block; /* Keep as inline-block for layout */
}
.inventory-fullmenu a {
    color: white; /* Darker text for links for readability */
    text-decoration: none;
    background: #676565; /* Light background for buttons */
    border-radius: 3px;
    padding: 2px 5px; /* Adjust padding for better spacing */
    margin: 0 5px; /* Space between buttons */
    display: inline-block; /* Keep as inline-block for layout */
}

.inventory-quickmenu a:hover, .inventory-fullmenu a:hover {
    text-decoration: underline;
    color: #333; /* Even darker text on hover for contrast */
    background-color: #d0d0d0; /* Darken the button background on hover */
}

/* Style for equipped items */
.item-equipped {
    color: #008000; /* Standard green for 'equipped' items */
    font-weight: 900;
}
