/* Все шаблоны */

.template {
  display: grid;
  grid-template-columns: 50% 50%;
}

.template_a {
  width: auto;
  padding: 5px 5px 5px 5px!important;
  border-radius: 4px;
  border: 1.4px solid rgba(111, 102, 84, 0.3);
  border-top: none!important;
  padding: 15px 10px 0 10px;
  background: rgba(0, 0, 0, 0.03);
  margin-bottom: 1em;
  margin-top: 1em;
}

.center {
  width: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
}

.templatemax {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

.templatemini {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0.5em;
  margin-top: 0.1em;
}

.templatebrown {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0.5em;
  margin-top: -0.4em;
}

.templatelor {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0.5em;
  margin-top: -0.5em;
}

.templatescroll {
  display: grid;
  overflow: scroll;
  overflow-x: hidden;
  height: 140px;
  background: url(https://forumstatic.ru/files/001b/2a/78/46151.png) repeat;
  border-radius: 5px;
  padding: 5px 5px 5px 5px!important;
  line-height: 5px!important;
  border: 1px dotted #605b54!important;
  margin-top: 0.5em;
}

.templatescroll::-webkit-scrollbar {
  width: 2px;
  height: 4px;
  background-color: transparent;
  border: none;}

.templatescroll::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: #757267;
  border: 1px dotted #757267!important;
  border-radius: 2px;}

.templatebestie {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0.3em;
  margin-top: -1.2em;
}

.templatebestietext {
  margin-top: 18em;
  margin-left: 0;
  position: absolute;
  z-index: 1;
  text-shadow: 0px 0px 4px #000;
}

.lore_template {
  display: block;
  margin-bottom: 0;
  margin-top: 0;
  overflow: visible;
}

.lore_template_2 {
  display: block;
  margin-bottom: 0;
  margin-top: 0;
}

.templatetransparent {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 0;
  margin-top: -1em;
}

.templatecosm {
  display: block;
  margin-bottom: 0.3em;
  margin-top: -1.2em;
}

.templatecosmtext {
  margin-top: 4.6em;
  margin-left: 0.3em;
  position: absolute;
  z-index: 1;
  letter-spacing: 3px;
  text-shadow: 0px 0px 2px #292c28;
}

.tabletemplate {
  background: transparent;
}
 
.pool {grid-column: 1 / span 2;}
.t_left {grid-column: 1;}
.t_right {grid-column: 2;}
 
.date {margin-bottom: 0.5em; margin-top: 0.5em;}
 
.religion {margin-top: 0.8em;}
 
.img_opacity.t_left {
  padding: 0;
  margin-right: 2.4px; /*Отступ рамки*/
  border-width: 1.4px;
  border-style: solid;
  border-color: rgba(111, 102, 84, 1);
  border-radius: 6px/6px!important;
  overflow: hidden;
  opacity: 0.9;
  filter: sepia(40%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;}
 
.img_opacity.t_right {
  padding: 0;
  margin-left: 2.4px; /*Отступ рамки*/
  border-width: 1.4px;
  border-style: solid;
  border-color: rgba(111, 102, 84, 1);
  border-radius: 6px/6px!important;
  overflow: hidden;
  opacity: 0.9;
  filter: sepia(40%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;}

.img_opacity.t_left:hover, .img_opacity.t_right:hover {
  filter: none;
  opacity: 1;
}
 
.residence, .content.t_left {margin-right: 0.2em; border-width: 1.4px; border-style: solid; border-color: rgba(111, 102, 84, 0.2); border-radius: 4px/4px!important; padding: 2px 5px 2px 5px!important;}
 
.status, .content.t_right {margin-left: 0.2em; border-width: 1.4px; border-style: solid; border-color: rgba(111, 102, 84, 0.2); border-radius: 4px/4px!important; padding: 2px 5px 2px 5px!important;}

.content.t_left, .content.t_right {margin-bottom: 1.4em;}
.residence, .status {margin-top: 0.4em; margin-bottom: 0.4em; text-align:left!important;}
 
.punbb .post-content .template p {
  padding: 2px 0 2px 0;
  font-family: romul;
}
 
.name p, .nick p, .separator p, .prototype p, .separatormini p, .separatormax p, .separatorbrown p, .religion p, .date p, .separator_status p {text-align: center!important;}
 
.name p {
  margin-top: 6px!important;
  font-size: 25px!important;
  font-weight: normal;
  color: #483f37!important;
  padding: 10px 0 5px 0!important;
  letter-spacing: 1px;
  font-family: Mason!important;
  text-transform: uppercase;
  text-shadow: 0px 0px 1px #414141;
  transform: scaleY(1.1);
  background: rgba(0, 0, 0, 0.04);
  border-top: 3px solid rgba(111, 102, 84, 0.4);
  border-left: 1.4px solid rgba(111, 102, 84, 0.3);
  border-right: 1.4px solid rgba(111, 102, 84, 0.3);
  padding: 4px 4px 4px 4px!important;
  border-radius: 4px 4px 0px 0px!important;
  box-shadow: rgba(120, 120, 120, 0.1) 0px 0px 10px;
}
 
.nick p {
  margin: 0 0 6px 0!important;
  font-size: 14px!important; 
  font-family: cambria!important; 
  padding: 1px 4px 1px 4px!important; 
  border-radius: 0px 0px 4px 4px!important; 
  border-bottom: 1.4px solid rgba(111, 102, 84, 0.2); 
  border-left: 1.4px solid rgba(111, 102, 84, 0.3); 
  border-right: 1.4px solid rgba(111, 102, 84, 0.3); 
  border-top: 1.4px solid rgba(111, 102, 84, 0.2);
}
 
.separator p {
  margin: 0 0 6px 0!important;
  background: rgba(0, 0, 0, 0.05);
  color: #284237!important;
  text-shadow: rgba(255, 255, 255, 0.2) 0px 0px 8px;
  border: 1.4px solid rgba(111, 102, 84, 0.2);
  text-transform: uppercase;
  font-size: 17px!important;
  font-weight: bold;
  padding: 2px 0 1px 0!important;
  border-radius: 5px/5px;
  letter-spacing: 1px;
  font-family: mason!important;
}

.separator_status p {
  margin: 6px 0 0 0!important;
  color: #284237!important;
  text-transform: uppercase;
  font-size: 12px!important;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: romul!important;
  border-width: 1.4px; 
  border-style: solid; 
  border-color: rgba(111, 102, 84, 0.2); 
  border-radius: 4px/4px!important; 
  padding: 2px 5px 2px 5px!important;
}

.separatormini p {
  background: url(https://forumstatic.ru/files/001b/97/ef/26882.jpg) repeat;
  padding: 4px 0 0 0!important;
  color: #434b42!important;
  font-size: 1px!important;
  border-radius: 5px/5px;
}

.separatormax p {
  background: url(https://forumstatic.ru/files/001b/97/ef/64256.png) repeat #434b42;
  color: #bfbdb5!important;
  text-shadow: rgba(0, 0, 0, 0.7) 0px 0px 3px; 
  font-size: 13px!important;
  font-weight: bold;
  padding: 3px 0 3px 0!important;
  border-radius: 5px/5px;
  letter-spacing: 1px;
  font-family: romul!important;
}

.separatorbrown p {
  background: url(https://forumstatic.ru/files/001c/62/de/60319.png) repeat rgba(107, 104, 83, 0.1);
  padding: 4px 0 0 0!important;
  color: #434b42!important;
  font-size: 1px!important;
}

.separtransparent p {
  background: transparent;
  color: #a7a5a2!important;
  font-size: 1px!important;
  font-weight: bold;
  padding: 0!important;
  border-radius: 5px/5px;
  letter-spacing: 1px;
  font-family: romul!important;
}

.separatorlor p {
  background: url(https://forumstatic.ru/files/001b/97/ef/64256.png) repeat #434b42;
  color: #a7a5a2!important;
  font-size: 11px!important;
  font-weight: bold;
  padding: 6px 6px 2px 6px!important;
  border-radius: 5px/5px;
  font-family: trajan!important;
  text-align: justify!important;
}

.separatorscroll p {
  font-weight: bold;
  padding: 6px 2px 2px 6px!important;
  font-family: cambria!important;
  text-align: justify;
  font-weight: normal;
  letter-spacing: 0px;
  color: #393939!important;
}

.separatorh p {
  background: url(https://forumstatic.ru/files/001c/62/de/88689.jpg) repeat transparent;
  color: #493f2f!important;
  font-size: 15px!important;
  font-weight: bold;
  padding: 3px 0 0 2px!important;
  border-radius: 5px/5px;
  letter-spacing: 1px;
  font-family: trajan!important;
  text-align: center!important;
  text-transform: lowercase;
}
 
 
.prototype p {
  font-size: 11px!important;
  font-style: italic;
  font-family: Cambria!important; 
   padding: 0!important;
}
 
.ground {background: rgba(255, 255, 255, 0.02); box-shadow: rgba(120, 120, 120, 0.1) 0px 0px 10px;}
 
.ground p {
  font-family: Cambria!important; 
  text-align: left!important;
  font-size: 15px !important;
}
 
.residence p, .status p {
  font-family: Cambria!important;
  font-size: 15px!important;
}

.date p, .religion p {
  letter-spacing: 0.4px;
  font-family: Romul!important;
  text-transform: uppercase;
}


.t_text p {
  letter-spacing: 0.4px;
  font-family: Romul!important;
  text-transform: uppercase;
  padding: 10px 0!important;
}
 
.band, .inl p {display: inline!important;}
 
.band p {
  color: #284237!important;
  font-family: trajan!important;
  text-transform: lowercase;
}
 
.punbb .post-content .template .content p {padding: 2px 1px 2px 1px;}
.punbb .post-content .citata .quote-box {margin-bottom: -1px; margin-top: -12px; color:#393939!important;}
.punbb .post-content .template .center p  {padding: 0;}
.punbb .post-content .center img.postimg {margin: 0; width: 100%;}


/* Ресурсы */

.resource_template {
  display: grid;
  grid-template-columns: 20% 80%;
  margin: 0 0 10px 0;
  border-radius: 5px;
  border: solid 1.4px rgba(111, 102, 84, 0.3);
  padding: 0 5px 12px 0!important;
  box-shadow: rgba(120, 120, 120, 0.25) 0px 0px 10px;
  background: url(https://forumstatic.ru/files/001c/62/de/69113.jpg) repeat;
}
 
.picture, .image p {
  display: grid;
  justify-items: center;
  align-items: center;
}
 
.image {margin-top: 18px;}
 
.image p {
  width: 134px;
  height: 134px;
  padding: 0!important;
  border-radius: 50%;
}
 
.image img {
  width: 130px;
  height: 130px;
  margin: 0!important;
  border-radius: 50%;
  border: 3px solid #605b54!important;
}
 
.specification p {
  padding: 6px 6px 6px 6px !important;
  max-height: 150px;
  overflow: auto;
}

.image img {
  filter: sepia(80%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;
  opacity: 0.8;}

.image img:hover{
  filter: none;
  opacity: 0.8;}

.specification p::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background-color: transparent;
  border: none;}

.specification p::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: transparent;
  background: url(https://forumstatic.ru/files/001c/62/de/60319.png) repeat;
  border: 1px dotted #605b54!important;
  border-radius: 2px;}



/* Бестиарий */

.besties_template {
  display: grid;
  grid-template-columns: 24% 76%;
  margin: 10px 0;
  border-radius: 5px;
  border: solid 1.4px rgba(111, 102, 84, 0.3);
  box-shadow: rgba(120, 120, 120, 0.25) 0px 0px 10px;
  background: url(https://forumstatic.ru/files/001c/62/de/68031.png) repeat transparent;
  padding: 5px 5px 5px 5px!important;
}

.picture, .image_b p {
  display: block;
  justify-items: center;
  align-items: center;
}
 
.image_b {margin-top: 2px; margin-left: 0;}
 
.image_b p {
  width: 210px;
  height: 250px;
  padding-bottom: 15px!important;
}
 
.image_b img {
  box-sizing: border-box;
  width: 210px;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border: 3px solid #605b54!important;
  border-radius: 5px;
}

.image_b img {
  filter: sepia(80%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;
  opacity: 0.8;}

.image_b img:hover{
  filter: none;
  opacity: 0.8;}
 
.information_b p {
  padding: 6px 6px 6px 6px!important;
  max-height: 250px;
  margin-left: 0;
  overflow: auto;
  border: none;
  background: transparent;
  border-radius: 5px;
}

.information_b p::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background-color: transparent;
  border: none;}

.information_b p::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: transparent;
  background: url(https://forumstatic.ru/files/001c/62/de/60319.png) repeat;
  border: 1px dotted #605b54!important;
  border-radius: 2px;}



/* Эликсиры */

.elixire_template {
  display: grid;
  grid-template-columns: 15% 85%;
  margin: 0 0 10px 0;
  border-radius: 5px;
  border: solid 1.4px rgba(111, 102, 84, 0.3);
  padding: 0 5px 0 0!important;
  box-shadow: rgba(120, 120, 120, 0.25) 0px 0px 10px;
  background: url(https://forumstatic.ru/files/001c/62/de/69113.jpg) repeat;
}
 
.picture, .image_e p {
  display: grid;
  justify-items: center;
  align-items: center;
}
 
.image_e {margin-top: 10px; margin-left: 0;}
 
.image_e p {
  width: 80px;
  height: 80px;
  padding-bottom: 0!important;
  border-radius: 50%;
}
 
.image_e img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  border: 3px solid #605b54!important;
}

.image_e img {
  filter: sepia(80%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;
  opacity: 0.8;}

.image_e img:hover{
  filter: none;
  opacity: 0.8;}
 
.information_e p {
  padding: 6px 6px 6px 6px!important;
  max-height: auto;
  margin-left: 0;
  overflow: auto;
  border: none;
  background: transparent;
  border-radius: 5px;
}

.information_e p::-webkit-scrollbar {
  width: 3px;
  height: 4px;
  background-color: transparent;
  border: none;}

.information_e p::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: #757267;
  border: 1px dotted #757267!important;
  border-radius: 2px;}



/* Астрономия */

.cos_template {
  margin: 0;
  background: transparent;
  border-radius: 5px;
  border: none;
  padding: none;
}
 
.picture, .image_c p {
  display: block;
  justify-items: center;
  align-items: center;
}
 
.image_c {margin-bottom: 0; margin-left: 0;}
 
.image_c p {
  width: auto;
  height: auto;
  padding-bottom: 0;
}
 
.image_c img {
  box-sizing: border-box;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 3px solid #605b54!important;
  border-radius: 5px;
}

.image_c img {
  filter: sepia(80%);
  -webkit-transition-duration: 0.96s;
  -moz-transition-duration: 0.96s;
  -o-transition-duration: 0.96s;
  transition-duration: 0.96s;
  opacity: 0.8;}

.image_c img:hover{
  filter: none;
  opacity: 0.8;}



/* Картинки в лор 1 */

.lore_template {
  display: block;
}
 
.image_l p {
  display: block;
  justify-items: center;
  align-items: center;
}
 
.image_l {margin-top: 0; margin-left: 0;}
 
.image_l p {
  width: auto;
  height: auto;
  padding-bottom: 0;
}
 
.image_l img {
  box-sizing: border-box;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: 3px solid #605b54!important;
}

.image_l img {
  filter: sepia(80%);
  -webkit-transition-duration: 1.96s;
  -moz-transition-duration: 1.96s;
  -o-transition-duration: 1.96s;
  transition-duration: 1.96s;
  opacity: 0.8;}

.image_l img:hover{
  filter: none;
  opacity: 0.8;}



/* Картинки в лор 2 */

.lore_tempbig {
  display: block;
}
 
.image_lt p {
  display: block;
  justify-items: center;
  align-items: center;
}
 
.image_lt {margin-top: 0; margin-left: 0;}
 
.image_lt p {
  width: auto;
  height: auto;
  padding-bottom: 0;
}
 
.image_lt img {
  box-sizing: border-box;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: none;
}

.image_lt img {
  filter: sepia(80%);
  -webkit-transition-duration: 1.96s;
  -moz-transition-duration: 1.96s;
  -o-transition-duration: 1.96s;
  transition-duration: 1.96s;
  opacity: 0.8;}

.image_lt img:hover{
  filter: none;
  opacity: 0.8;}



/* Символика верований картинки в лор */

.lore_template_2 {
  display: block;
  margin-bottom: -1.5em;
  margin-top: -0.2em;
}
 
.image_lm p {
  display: block;
  justify-items: center;
  align-items: center;
}
 
.image_lm {margin-top:0px; margin-left:0px; align-items:center;}
 
.image_lm p {
  width: auto;
  height: auto;
  border-radius: 0%;
}
 
.image_lm img {
  width: 100px;
  height: 100px;
  border-radius: 0%;
  object-fit: cover;
  object-position: center;
  border-radius:5px;
  border: none;
  filter: drop-shadow(1px 0px 1px #635c58);
}

.image_lm img {
  -webkit-transition-duration: 1.96s;
  -moz-transition-duration: 1.96s;
  -o-transition-duration: 1.96s;
  transition-duration: 1.96s;
  opacity:0.8;}

.image_lm img:hover {
  opacity: 0.8;}



/* Таблицы в постах */

.table_template {
    display: block !important;
    padding: 0px 0px 1px 0px !important; /* убираем padding снизу */
    margin-bottom: 0.6em !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid #605b54!important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* СУПЕР-СПЕЦИФИЧНЫЕ стили для границ таблицы */
.punbb .table_template table,
body .punbb .table_template table,
#pun .punbb .table_template table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #605b54!important;
    border-radius: 5px !important;
    overflow: hidden !important;
    margin-bottom: -1px !important; /* Компенсируем границу таблицы */
}

/* СУПЕР-СПЕЦИФИЧНЫЕ стили для ВСЕХ ячеек */
.punbb .table_template table td,
.punbb .table_template table th,
body .punbb .table_template table td,
body .punbb .table_template table th,
#pun .punbb .table_template table td,
#pun .punbb .table_template table th,
.punbb div.table_template table td,
.punbb div.table_template table th {
    border: 1px solid #605b54!important;
    border-style: solid !important;
    border-width: 0.5px !important;
    border-color: transparent;
    padding: 4px 8px !important;
}

/* Убираем скругление у ячеек в углах таблицы */
.punbb .table_template table tr:first-child th:first-child,
.punbb .table_template table tr:first-child td:first-child {
    border-top-left-radius: 0 !important;
}

.punbb .table_template table tr:first-child th:last-child,
.punbb .table_template table tr:first-child td:last-child {
    border-top-right-radius: 0 !important;
}

.punbb .table_template table tr:last-child td:first-child {
    border-bottom-left-radius: 0 !important;
}

.punbb .table_template table tr:last-child td:last-child {
    border-bottom-right-radius: 0 !important;
}

/* ДОПОЛНИТЕЛЬНОЕ ПРАВИЛО - для всего содержимого таблицы */
.punbb .table_template table *,
.punbb .table_template table td *,
.punbb .table_template table span,
.punbb .table_template table div,
.punbb .table_template table p {
    font-size: 15px !important;
}

/* ЕЩЕ БОЛЕЕ СПЕЦИФИЧНО - для любых текстовых элементов */
.punbb .table_template table,
.punbb .table_template table tbody,
.punbb .table_template table tr,
.punbb .table_template table td,
.punbb .table_template table caption {
    font-size: 15px !important;
}
