/* Tags */
body {
    background: #303c3c;
    background-size: auto;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #181b16;
    
    height: 100%;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3 {
    margin: 0.5em 0;
    line-height: 130%;
    font-weight: normal;
    color: #181b16;
}
h1 {
    margin-top: 0;
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
}
h3 {
    font-size: 1.2em;
}

p, ul, ol {
    margin: 0.5em 0;
    line-height: 180%;
}

ul, ol {
    padding: 0;
    margin-left: 40px;
}

a {
    text-decoration: none;
    color: #376158;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
#wrapper {
    margin: 0 auto;
    padding: 0;
   
    position: relative;
    width: 100%;
}

#obraz {
    width: 964px;
   
}

@media (min-width: 1030px) {
    #obraz {
        width: auto;
    }
}


/* Header */
#header {
    position: relative;
    width: 100%;
    padding-top: 19.69%; /* trik - vezmeme velikost souboru a uděláme (850/4316) × 100 */
    margin: 0;
    background: url(images/header.png) no-repeat;
    background-size: cover;
    background-position: center center;
}


/* User menu */
#header ul.user-menu {
    position: absolute;
    right: 0;
    bottom: 10px;
    margin: 0;
    list-style-type: none;
}
#header ul.user-menu li {
    display: inline;
    padding: 0 10px;
    text-transform: uppercase;
    font-size: 0.9em
}
#header ul.user-menu li:last-child {
    padding-right: 0;
}
#header ul.user-menu a {
    color: #8F8F8F;
}
.user-menu-unread-pm:before {
    content: "[";
}
.user-menu-unread-pm:after {
    content: "]";
}

/* Menu */
#menu {
    width: calc(100% + 50px);
    min-height: 56px;
    margin: 0 0 10px -25px;
    padding: 10px 0;
    background: #587358;
    
    border-bottom: 4px solid #bbbebe;
    box-sizing: border-box;
}

#menu ul {
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
    line-height: normal;
    text-align: center;
}

#menu li {
    display: inline-block;
    width: 130px;
}

#menu a {
    display: block;
    height: auto;
    width: 100%;
    margin: 5px 0;
    padding: 0 10px;
    line-height: 40px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

/* #menu .active a, #menu .trail a {
    background: #FFFFFF;
    color: #587358;
}

/* Page */
#page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 1120px;
}

@media (min-width: 1030px) {
    #page {
        width: 100%;
    }
}


/* Content */
#content {
    order: 2;
    width: 680px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    calc(100vh - 250px - 30px);
    padding: 0 25px;
}

#content img {
    max-width: 100%;
    height: auto;
}

#content-bg {
    background-color: #96a385;
    padding: 0 25px 25px 25px;
    min-height: 100vh;
    
    border: 4px solid #bbbebe;
    border-radius: 4px;
    
    text-align: justify;
}

#content-bg table, #content-bg form {
    width: 100%;
}

/* Sidebar */
#sidebar {
    order: 3;
    width: 250px;
    background: #96a385;
    padding-bottom: 25px;
    
    border: 4px solid #bbbebe;
    border-radius: 4px;
}

#sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar li {
    margin: 0;
    padding: 0;
}

#sidebar li ul {
    margin: 0 0;
    padding-bottom: 30px;
}

#sidebar li li {
    line-height: 35px;
}

#sidebar ul.menu ul {
    padding: 0 0 0 18px;
}

#sidebar h2 {
    height: 38px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #dcdcdc;
    letter-spacing: -1px;
    font-size: 24px;
    color: #181b16;
}

#sidebar p {
    text-align: justify;
}

#sidebar a:hover {
    text-decoration: underline;
}

#sidebar input.search-query {
    width: 160px;
}

#topnav {
    overflow: auto;
    background-color: #587358;
    width: auto;
    margin: 0;
    padding: 0;
}

#topnav a {
  float: left;
  display: inline;
  color: #376158;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

#topnav a:hover {
  background-color: #ddd;
  color: black;
}

#topnav a.active {
  background-color: #04AA6D;
  color: white;
}

#topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: right;
  }
}


/* Footer */
#footer {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    background: url(images/shadow.png) no-repeat center top;
    text-align: center;
}

#footer li {
    display: inline-block;
    padding-right: 0.5em;
    list-style-type: none;
    letter-spacing: 0.20em;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.80em;
    color: #8F8F8F;
}

#footer li:before {
    content: '|';
    padding-right: 0.5em;
}

#footer li:first-child:before {
    display: none;
}

#footer a {
    color: #8F8F8F;
}

/* Boxes */
div.box-item {
    padding: 0.5em 0;
}

/* Tables */
td, th {
    padding: 3px 5px;
}
th {
    text-align: left;
    font-weight: normal;
}
tr.valign-top td,
tr.valign-top th {
    vertical-align: top;
}
.widetable,
.topic-table {
    width: 650px;
}
/*.widetable {
    border: 1px solid #dcdcdc;
} */
.widetable td {
    padding: 6px 15px;
    width: 50%;
}

/* Forms generic */
fieldset {
    margin: 1em 0;
    padding: 8px;
    border: 1px solid #dcdcdc;
}
legend {
    padding: 0 10px;
}
form {
    margin: 0;
    padding: 0;
}
input,
textarea,
button,
select {
    font-family: inherit;
    font-size: 14px;
}
input[type=text],
input[type=password],
input[type=submit],
input[type=button],
input[type=reset],
input[type=email],
input[type=number],
input[type=search],
button,
select {
    padding: 3px;
}
legend {
    color: #000;
    font-weight: bold;
}
input[type=checkbox],
input[type=radio] {
    vertical-align: middle;
}

/* Form classes */
.inputmedium {
    width: 370px;
}
.inputsmall {
    width: 177px;
}
.areamedium {
    height: 150px;
    width: 495px;
}
.areasmall {
    height: 100px;
    width: 370px;
}

/* Search */
.searchform input.q {
    width: 100px;
}

/* Lists */
.list-title {
    margin: 15px 0 3px;
    padding: 0;
}
.list-title a {
    font-size: 19px;
}
.list-perex {
    margin: 0;
}
.list-perex *:last-child {
    margin-bottom: 0;
}
.list-perex-image {
    border: 1px solid #dcdcdc;
    float: left;
    margin: 6px 6px 6px 0;
    max-width: 96px;
}
ul.list-info {
    clear: both;
    margin: 0;
    padding: 4px 0 15px 0 !important;
    list-style-type: none;
    font-size: 0.9em;
    font-style: italic;
}
ul.list-info li {
    display: inline;
    padding-right: 0.5em;
}
ul.list-info li:after {
    content: "•";
    padding-left: 0.5em;
}
ul.list-info li:last-child:after {
    display: none;
}
ul.list-info a {
    color: #376158;
    text-decoration: none;
}
ul.list-info strong {
    font-weight: normal;
}

/* Article */
.article-navigation {
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, 
    rgba(208, 208, 208, 0.1) 0%,
    rgba(208, 208, 208, 0.8) 20%,
    rgba(208, 208, 208, 0.8) 80%,
    rgba(208, 208, 208, 0.1) 100%
  ) 1;
    margin-bottom: 15px;
    padding-bottom: 10px;
}
.article-perex {
    color: #587358;
    font-style: italic;
}
.article-perex-image {
    border: 1px solid #dcdcdc;
    float: right;
    margin: 0 8px 8px;
    max-width: 150px;
}
.article-footer {
    color: #587358;
    width: 646px;
}
.article-footer a {
    color: #587358;
    text-decoration: none;
}
.article-footer td {
    padding: 10px;
    vertical-align: top;
}
.article-info {
    margin-left: 0;
    list-style-type: none;
}
.article-rating {
    border: 1px solid #dcdcdc;
    padding: 5px;
}
.article-rating td {
    padding: 0 2px;
    text-align: center;
    vertical-align: top;
}
.article-rating tr.r1 * {
    font-weight: bold;
}

/* User */
.avatar {
    border: 1px solid #ededed;
    vertical-align: middle;
    border-radius: 50%;
}

.profiletable, .inventar-spolecenstvi, .widetable {
    background: #839577;
    margin-bottom: 5px;
    padding: 3px 3px;
}

.profiletable .avatartd {
    padding: 5px;
}
.profiletable .note {
    overflow: auto;
    padding: 0 5px 5px 0;
    width: 375px;
}
.profiletable td {
    padding: 3px 10px;
}

.profiletable td, .profiletable th, .inventar-spolecenstvi td, .inventar-spolecenstvi th, .widetable td, .widetable th {
    background: #8c9b80;
}

/* User messages */
.messages-menu a {
    padding: 0 6px;
    text-decoration: none;
}
.messages-menu a.active {
    font-weight: bold;
}
.messages-table {
    border: 2px solid #839577;
    background: #8c9b80;
    width: 646px;
}
.messages-table a {
    text-decoration: none;
}
.messages-table a.notread {
    font-weight: bold;
}
.messages-table th,
.messages-table td {
    padding: 5px 15px;
}
.messages-table td:first-child {
    width: 10px;
}

/* Posts / comments */
.posts {
    margin-top: 20px;
    padding-top: 10px;
    clear: both;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, 
    rgba(208, 208, 208, 0.1) 0%,
    rgba(208, 208, 208, 0.8) 20%,
    rgba(208, 208, 208, 0.8) 80%,
    rgba(208, 208, 208, 0.1) 100%
  ) 1;
}
.posts-pm {
    margin-top: 0;
}
.posts h2 {
    margin-bottom: 10px;
}

.posts-form {
    padding-bottom: 10px;
}
.posts-form-controls > span {
    margin-left: 10px;
}
.posts-form-controls > span:first-child {
    margin-left: 0;
}
.posts-form-controls a.bbcode-button {
    background: url("images/bbcode/button-body.png") left top no-repeat;
    display: inline-block;
    height: 16px;
    padding: 3px 4px;
    width: 16px;
}
.posts-form-controls a.bbcode-button img {
    vertical-align: top;
}
.posts-form-controls img {
    vertical-align: middle;
}

.post-list {
    border-top: 4px solid;
    border-image: linear-gradient(90deg, 
    rgba(208, 208, 208, 0.1) 0%,
    rgba(208, 208, 208, 0.8) 20%,
    rgba(208, 208, 208, 0.8) 80%,
    rgba(208, 208, 208, 0.1) 100%
  ) 1;
}
.post, p.post-form-preview {
    padding: 5px 5px 0 5px;
    margin: 10px 0;
    clear: both;
    border: 2px solid #a3b689;
    background: url("images/player-post-bg.png") repeat;
}

.vypravec {
    border: 2px solid #9eb7ba;
    background: url("images/vypravec-post-bg.png") repeat;
    box-shadow: inset 0 0 8px 1px #c1d7b9,
               inset 0 0 15px 3px rgba(193, 215, 185, 0.3);
}

.post:target {
    background-color: #587358;
}
.post:target .post-body {
    border-bottom: none;
}
.post-author {
    text-decoration: none;
}
.post-author-guest {
    color: gray;
}
.post-info, .post-info a {
    color: #376158;
    font-size: 12px;
}
.post-actions a {
    font-size: 12px;
    text-decoration: none;
    margin: 0 3px;
}
.post-actions a:hover {
    text-decoration: underline;
}
.post-answer {
    margin: 20px 0 20px 50px;
}
.post-answer .post-body {
    border-bottom: 0;
    padding-bottom: 4px;
}
.post-answer .post-body-withavatar .post-body-text {
    border-left: none;
    padding-left: 3px;
}
.post-body {
    margin: 0;
    padding: 8px 0;
    overflow-wrap: break-word;
}
.post-body-text {
    line-height: 150%;
    min-height: 100px;
    padding: 0 4px;
}
.post-body-withavatar {
    min-height: 75px;
}

.post-head {
    padding: 0 4px;
    padding-top: 3px;
}

/* BBCode */
.bbcode-img {
    max-height: 800px;
    max-width: 400px;
}

/* Topic list */
.topic-hl,
.topic-table thead th {
    background-color: #839577;
}
.topic-icon-cell {
    border-right: none;
    padding-right: 0;
    width: 41px;
}
.topic-main-cell {
    border-left: none;
    white-space: nowrap;
    width: 50%;
}
.topic-pages {
    margin-left: .5em;
}
.topic-pages a {
    background-color: #fff;
    border: 1px solid #ededed;
    display: inline-block;
    margin: 0 2px;
    padding: 0 4px;
    text-decoration: none;
}
.topic-table {
    background-color: #8c9b80;
    border-collapse: collapse;
}
.topic-table td,
.topic-table th {
    border: 1px solid #839577;
    padding: 5px;
}

/* Single topic */
.topic h2 {
    margin-bottom: 0;
}
.topic .post {
    margin: 0;
}
.topic .post-body {
    border: 0;
}

/* Poll and shoutbox */
.poll,
.sbox {
    margin: 1em 0;
    border: 1px solid #dcdcdc;
    background-color: #fafafa;
}
.poll {
    max-width: 300px;
}
.poll-answer {
    border-top: 1px solid #dcdcdc;
    padding: 6px 0 5px;
}
.poll-answer .votebutton {
    margin: 3px 4px 2px 0;
}
.poll-answer div {
    background: url("images/votebar.gif") repeat-x;
    height: 11px;
    margin: 6px 2px 4px 0;
}
.poll-answer input {
    margin: 0;
    padding: 0;
}
.poll-content,
.sbox-content {
    padding: 5px;
}
.poll-question div {
    color: #a4a4a4;
    font-size: 11px;
}
.poll-question,
.sbox-title {
    padding-bottom: 5px;
    text-align: center;
}
.sbox form,
.sbox table {
    margin: 0;
    padding: 0;
}
.sbox table {
    border-collapse: collapse;
    width: 90%;
}
.sbox table th {
    width: 44px;
}
.sbox-input {
    width: 90%;
}
.sbox-item {
    border-top: 1px solid #dcdcdc;
    padding: 10px 5px 10px 0;
}
.sbox-posts {
    height: 350px;
    overflow: auto;
}

/* Galleries */
.gallery {
    margin: 1em 0;
    min-width: 90%;
}
.gallery img {
    border: 1px solid #dcdcdc;
    margin: 3px;
}
.gallery td {
    background-color: #fafafa;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}

/* Paginator */
.paging {
    margin: 1em 0;
    text-align: center;
}
.paging-label {
    display: none;
}
.paging a {
    padding: 0.2em 0.6em;
    border: 2px solid #839577;
    background: #8c9b80;
    text-decoration: none;
}
.paging a.act,
.paging a:hover {
    text-decoration: underline;
}

/* Security image (captcha) */
.cimage {
    border: 1px solid #dcdcdc;
    height: 41px;
    margin-left: 5px;
    vertical-align: top;
    width: 240px;
}
.inputc {
    font-family: monospace;
    font-size: 25px;
    height: 34px;
    text-transform: uppercase;
    width: 112px;
}

/* System messages */
.message {
    background: #fff no-repeat 5px 5px;
    border: 1px solid #e1e1e1;
    font-weight: bold;
    line-height: 120%;
    margin: 1em 0;
    padding: 11px 5px 13px 48px;
}
.message-ok {
    background-image: url("images/icons/info.png");
}
.message-warn {
    background-image: url("images/icons/warning.png");
}
.message-err {
    background-image: url("images/icons/error.png");
}
.message ul {
    margin: 0;
    padding: 5px 0 0 15px;
}

/* Horizontal line */
.hr {
    display: block;
    height: 10px;
    margin-top: 10px;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, 
    rgba(208, 208, 208, 0.1) 0%,
    rgba(208, 208, 208, 0.8) 20%,
    rgba(208, 208, 208, 0.8) 80%,
    rgba(208, 208, 208, 0.1) 100%
  ) 1;
}
.hr hr {
    display: none;
}

hr {
    height: 4px;
    border: none;
    width: 85%;
    background: linear-gradient(90deg, 
        rgba(208, 208, 208, 0.1) 0%,
        rgba(208, 208, 208, 0.8) 20%,
        rgba(208, 208, 208, 0.8) 80%,
        rgba(208, 208, 208, 0.1) 100%
    );
    margin: 0 auto;
}

/* Backlink */
.backlink {
    margin: 1em 0;
}

/* Buttons */
a.button {
    display: inline-block;
    margin: 0;
    padding: 6px;
    /* border: 1px solid #eee;
    background: #eee;
    background: linear-gradient(to bottom, #f5f5f5, #ddd); */
    vertical-align: middle;
    font-weight: normal;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    /* color: #555; */
    
    background: #b5bea8;
    border: none;
    border-radius: 6px;
}
a.button img.icon {
    float: left;
    margin: -1px 0 -1px 0;
    padding: 0 6px 0 0;
}
a.button:hover {
    /* background: #f5f5f5;
    background: linear-gradient(to bottom, #fff, #eee); */
    background: #a3ab97;
}

/* Generic */
.left {
    float: left;
    margin: 1px 10px 5px 1px;
}
.right {
    float: right;
    margin: 1px 1px 5px 10px;
}
.center {
    text-align: center;
}
.hidden {
    display: none;
}
.hint {
    color: gray;
    font-size: 10px;
    padding: 0 4px;
}
.bborder {
    padding-bottom: 0.8em;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, 
        rgba(208, 208, 208, 0.1) 0%,
        rgba(208, 208, 208, 0.8) 20%,
        rgba(208, 208, 208, 0.8) 80%,
        rgba(208, 208, 208, 0.1) 100%
    ) 1;
}
.pre {
    display: block;
    font-family: monospace;
    white-space: pre;
    max-height: 300px;
    overflow: auto;
}
.pre br {
    display: none;
}
.php-source {
    max-height: 300px;
    overflow: auto;
}
.icon {
    margin-top: -1px;
    vertical-align: middle;
}
a .icon, .text-icon .icon {
    padding-right: 5px;
}
.cleaner {
    clear: both;
}

/* Custom */

.profile-headings, .special-heading {    
    text-align: center;
    background: linear-gradient(90deg, 
        rgba(88, 115, 88, 0.1) 0%,
        rgba(88, 115, 88, 0.8) 30%,
        rgba(88, 115, 88, 0.8) 70%,
        rgba(88, 115, 88, 0.1) 100%
    );
    display: block; 
    margin: 0 auto 0.5em auto;      
    padding: 0 120px;   
}

.profile-picture {
    text-align: center;
}

.profile-picture img {
    max-width: 100%;
    height: auto;
}

.profile-texts {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.profile-buttons {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.profile-buttons button {
    padding: 6px 18px;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    transition: background-color 0.2s;
    background: #587358;
    color: white;
}

.profile-buttons button:hover {
    background: #4A6149;
    cursor: pointer;
}

#profile-displayed-povaha, #profile-displayed-pribeh {
    display: none;
    text-align: justify;
    padding: 10px 10px;
    max-height: 500px;
    overflow-y: scroll;
    background: #839577;
}

#profile-displayed-magie {
    display: none;
}

#profile-displayed-magie img {
    vertical-align: middle;
}

#profile-displayed-magie td:first-child {
    width: 35%;
}

.profile-perks {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #839577;
    padding: 5px 0;
}

.perk-wrapper {
    position: relative;
    cursor: pointer;
}

.perk {
    width: 64px;
    height: 64px;
}

.hover-text {
    display: none;
    position: absolute;
    text-align: justify;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: pre-wrap;
    z-index: 1000;
    width: 250px;
    margin-bottom: 8px;
}

.perk-wrapper:hover .hover-text {
    display: block;
}

.user-avatar img {
    max-width: 100%;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.user-inventory {
    display: grid;
    place-items: center;
}

.user-inventory img {
    padding-left: 5px;
    vertical-align: -4px;
}

.note {
    width: 100%;
    max-height: 300px;
    overflow-y: scroll;
    padding: 10px;
    text-align: justify;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    border: 1px solid #587358;
    border-radius: 4px;
    background: #839577;
}

.profile-characters {
    text-align: center;
    padding-bottom: 15px;
}

.characters-list {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
}

.dalsi-char {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #8c9b80;
    border-top: 3px solid #839577;
    border-bottom: 3px solid #839577;;
    border-left: 5px solid #839577;
    border-right: 5px solid #839577;
    min-height: fit-content;
}

.dalsi-char img {
    width: 100px;
    object-fit: cover;
}

.dalsi-char a {
   word-break: break-word;
}

#char-list-btn {
    cursor: pointer;
}

/* Sidebar */
#sidebar2 {
    order: 1;
    width: 250px;
    background: #96a385;
    padding-bottom: 25px;
    
    border: 4px solid #bbbebe;
    border-radius: 4px;
}

#sidebar2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar2 li {
    margin: 0;
    padding: 0;
}

#sidebar2 li ul {
    margin: 0 0;
    padding: 0 0 30px 30px;
    list-style: disc;
}

#sidebar2 li li {
    line-height: 35px;
}

#sidebar2 ul.menu ul {
    padding: 0 0 0 18px;
}

#sidebar2 h2 {
    height: 38px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #dcdcdc;
    letter-spacing: -1px;
    font-size: 24px;
    color: #181b16;
}

#sidebar2 p {
    text-align: justify;
}

#sidebar2 a:hover {
    text-decoration: underline;
}

#sidebar2 input.search-query {
    width: 160px;
}

#sidebar ol {
    padding: 0;
    margin: 0;
    list-style-position: inside;
    text-align: center;
}

@media (max-width: 1030px) {
    #page {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #content {
        order: 2;
        flex: 1;
        min-width: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        min-height: calc(100vh - 250px - 30px);
        padding: 0 25px;
    }
    
    #sidebar {
        order: 3;
        flex: 0 0 215px;
    }

    #sidebar2 {
        order: 1;
        flex: 0 0 215px;
    }
    
    input, textarea, select {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .inputmedium,
    .inputsmall,
    .areamedium,
    .areasmall {
        width: 100%;
    }
    
    .dalsi-char img {
        width: 40px;
    }
}

.post-avatar {
    float: right !important;
    margin: -5px 0 10px 10px !important;
    max-width: 150px !important;
    max-height: 100px;
    height: auto !important;
}

.map-thumb {
    width: 90%;
    height: auto;
    padding: 15px 0 0 0;
}

.hierarchie-heading, .hierarchie-postaveni, .spolecenstvi-info-links, .clen {
    text-align: center;
}

.postaveni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.clen {
    width: 150px;
    height: 140px;
    border: 1px solid #4A5A3D;
    padding: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.clen:hover {
    background-color: #7D8970;
}

.funkce {
    font-size: 0.9em;
    margin: 5px 0;
}

.hierarchie-pic {
    width: 100px;
    height: auto;
    margin: 10px auto;
    display: block;
}

.sidebar-btn-link, .menu-label, .menu-btn-link {
    display: block;
    padding: 6px 18px;
    margin: 0 auto;
    width: 75%;
    text-align: center;
    background-image: url('images/button-texture.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 6px;
    text-decoration: none;

    color: #9ec4c2;
    font-size: 1.5rem;
    font-weight: 500;
    /* -webkit-text-stroke: 1px #435957; */

    border: 1px solid #c1cbb2;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
    transition: filter 0.2s ease;
}

.sidebar-btn-link:hover, .menu-label:hover, .menu-btn-link:hover {
    text-decoration: none !important;
    cursor: pointer;
    filter: brightness(1.2);
}

.hr-light-fadeout {
    height: 4px;
    border: none;
    width: 85%;
    background: linear-gradient(90deg, 
        rgba(208, 208, 208, 0.1) 0%,
        rgba(208, 208, 208, 0.8) 20%,
        rgba(208, 208, 208, 0.8) 80%,
        rgba(208, 208, 208, 0.1) 100%
    );
    margin: 0 auto;
}

.bbcode-spoiler {
    display: inline;
    background-color: #000;
    cursor: pointer;
    user-select: none;
    color: #000 !important;
}

.bbcode-spoiler:hover {
    background-color: #222;
    color: #222 !important;
}

.bbcode-spoiler-visible {
    background-color: #6b755e;
    user-select: text;
    color: inherit !important;
}

.bbcode-spoiler-visible:hover {
    background-color: #606854;
}

.bbcode-spoiler .bbcode-magie, .bbcode-spoiler .bbcode-mysl {
    color: inherit;
}

.bbcode-magie, .bbcode-spoiler-visible .bbcode-magie {
    color: #f1f1c1;
}

.bbcode-mysl, .bbcode-spoiler-visible .bbcode-mysl {
    color: #525252;
}

.fancy-link {    
    display: inline-block;
    background: #b5bea8;
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    margin-bottom: 10px;
    width: 340px;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
}

.decoration {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: -3px -13px;
}

.decoration-left {
    background-image: url('images/left-deco.png');
}

.decoration-right {
    background-image: url('images/right-deco.png');
}

#content .inventar-spolecenstvi {
    width: 60%;
}

.inventar-spolecenstvi th, .inventar-spolecenstvi td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.inventar-spolecenstvi td {
    text-align: center;
}

.inventar-spolecenstvi img {
    margin: -3px auto;
}

.pocasi {
    width: 60%;
    height: auto;
}

#map-wrapper {
    display: none;
    text-align:center;
    margin-bottom: 10px;
    overflow-x: scroll;
    overflow-y: hidden;
}

#content #map-image {
    max-width: 150%;
    height: auto;
    margin-bottom: -4px;
}

.calendar {
    max-width: 100%;
    margin: 20px 0;
}
.calendar table {
    width: 100%;
    border-collapse: collapse;
}
.calendar th, .calendar td {
    border: 2px solid #839577;
    padding: 8px;
    text-align: center;
    width: 14.28%;
    height: 80px;
    vertical-align: top;
}
.calendar th {
    background: #839577;
    font-weight: bold;
    height: auto;
}

.calendar td {
    background: #8c9b80;
}

.calendar .day-number {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: right;
}
.calendar .birthday-names {
    font-size: 12px;
}
.calendar .has-birthday {
    background: #b3bd9f;
}
.calendar .today {
    background: #a4b399;
}

:root {
    --dropdown-icon: "►";
}

.user-name {
    display: inline-block;
}

.user-name.has-dropdown {
    cursor: pointer;
    position: relative;
}

.user-name.has-dropdown::before {
    content: var(--dropdown-icon);
}

.character-dropdown {
    display: none;
    position: absolute;
    background-color: #8c9b80;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
    left: 50%;
    border-top: 3px solid #839577;
    border-left: 3px solid #839577;
    border-right: 3px solid #839577;
    transform: translateX(-50%);
}

.character-dropdown.show {
    display: block;
}

.character-dropdown form {
    border-bottom: 3px solid #839577;
}

.character-dropdown form:hover {
    background: #b3bd9f;
}

.news-container {
    background: url('https://i.postimg.cc/SKZbD75L/novinky-bg.png') center/cover;
    padding: 20px;
    border-radius: 10px;
}

.news-content {
    display: flex;
    gap: 20px;
}

.news-image {
    width: 150px;
    height: auto;
    background: url('https://i.postimg.cc/xj2cw9FX/novinky.png') center/cover;
}

.news-text {
    background: #839577;
    padding: 10px 20px;
    border-radius: 10px;
    flex: 1;
    height: 200px;
    overflow: auto;
    scrollbar-width: thin;
}

.messages-table td:nth-child(2) a:not(.notread) {
    font-weight: normal;
}