/*Мотня*/
.b-head-decor{display:none}
.b-page_newyear .b-head-decor{
   position:absolute;
   top:0;
   left:0;
   display:block;
   height:115px;
   width:100%;
   overflow:hidden;
   background:url(http://forumstatic.ru/files/0006/9d/16/11648.png) repeat-x 0 0
}
.b-page_newyear .b-head-decor__inner{position:absolute;top:0;left:0;height:115px;display:block;width:373px}
.b-page_newyear .b-head-decor::before{content:'';display:block;position:absolute;top:-115px;left:0;z-index:3;height:115px;display:block;width:100%;box-shadow:0 15px 30px rgba(0,0,0,0.75)}
.b-page_newyear .b-head-decor__inner_n2{left:373px}
.b-page_newyear .b-head-decor__inner_n3{left:746px}
.b-page_newyear .b-head-decor__inner_n4{left:1119px}
.b-page_newyear .b-head-decor__inner_n5{left:1492px}
.b-page_newyear .b-head-decor__inner_n6{left:1865px}
.b-page_newyear .b-head-decor__inner_n7{left:2238px}

.b-ball{position:absolute}
.b-ball_n1{top:0;left:3px;width:59px;height:83px}
.b-ball_n2{top:-19px;left:51px;width:55px;height:70px}
.b-ball_n3{top:9px;left:88px;width:49px;height:67px}
.b-ball_n4{top:0;left:133px;width:57px;height:102px}
.b-ball_n5{top:0;left:166px;width:49px;height:57px}
.b-ball_n6{top:6px;left:200px;width:54px;height:70px}
.b-ball_n7{top:0;left:240px;width:56px;height:67px}
.b-ball_n8{top:0;left:283px;width:54px;height:53px}
.b-ball_n9{top:10px;left:321px;width:49px;height:66px}
.b-ball_n1 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/68390.png) no-repeat}
.b-ball_n2 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/28349.png) no-repeat}
.b-ball_n3 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/22419.png) no-repeat}
.b-ball_n4 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/52964.png) no-repeat}
.b-ball_n5 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/33026.png) no-repeat}
.b-ball_n6 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/81582.png) no-repeat}
.b-ball_n7 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/85960.png) no-repeat}
.b-ball_n8 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/82545.png) no-repeat}
.b-ball_n9 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/18860.png) no-repeat}
.b-ball_i1 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/14737.png) no-repeat}
.b-ball_i2 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/35828.png) no-repeat}
.b-ball_i3 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/80069.png) no-repeat}
.b-ball_i4 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/96111.png) no-repeat}
.b-ball_i5 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/13849.png) no-repeat}
.b-ball_i6 .b-ball__i{background:url(https://forumstatic.ru/files/0006/9d/16/23942.png) no-repeat}
.b-ball_i1{top:0;left:0;width:25px;height:71px}
.b-ball_i2{top:0;left:25px;width:61px;height:27px}
.b-ball_i3{top:0;left:176px;width:29px;height:31px}
.b-ball_i4{top:0;left:205px;width:50px;height:51px}
.b-ball_i5{top:0;left:289px;width:78px;height:28px}
.b-ball_i6{top:0;left:367px;width:6px;height:69px}
.b-ball__i{
position:absolute;
width:100%;
height:100%;
-webkit-transform-origin:50% 0;
-moz-transform-origin:50% 0;
-o-transform-origin:50% 0;
transform-origin:50% 0;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
pointer-events:none
}
.b-ball_bounce .b-ball__right{position:absolute;top:0;right:0;left:50%;bottom:0;z-index:9}
.b-ball_bounce:hover .b-ball__right{display:none}
.b-ball_bounce .b-ball__right:hover{left:0;display:block!important}
.b-ball_bounce.bounce>.b-ball__i{-webkit-transform:rotate(-9deg);-moz-transform:rotate(-9deg);-o-transform:rotate(-9deg);transform:rotate(-9deg)}
.b-ball_bounce .b-ball__right.bounce+.b-ball__i{-webkit-transform:rotate(9deg);-moz-transform:rotate(9deg);-o-transform:rotate(9deg);transform:rotate(9deg)}
.b-ball_bounce.bounce1>.b-ball__i{-webkit-transform:rotate(6deg);-moz-transform:rotate(6deg);-o-transform:rotate(6deg);transform:rotate(6deg)}
.b-ball_bounce .b-ball__right.bounce1+.b-ball__i{-webkit-transform:rotate(-6deg);-moz-transform:rotate(-6deg);-o-transform:rotate(-6deg);transform:rotate(-6deg)}
.b-ball_bounce.bounce2>.b-ball__i{-webkit-transform:rotate(-3deg);-moz-transform:rotate(-3deg);-o-transform:rotate(-3deg);transform:rotate(-3deg)}
.b-ball_bounce .b-ball__right.bounce2+.b-ball__i{-webkit-transform:rotate(3deg);-moz-transform:rotate(3deg);-o-transform:rotate(3deg);transform:rotate(3deg)}
.b-ball_bounce.bounce3>.b-ball__i{-webkit-transform:rotate(1.5deg);-moz-transform:rotate(1.5deg);-o-transform:rotate(1.5deg);transform:rotate(1.5deg)}
.b-ball_bounce .b-ball__right.bounce3+.b-ball__i{-webkit-transform:rotate(-1.5deg);-moz-transform:rotate(-1.5deg);-o-transform:rotate(-1.5deg);transform:rotate(-1.5deg)}

/*Таблички с новостями*/
.ournews {
    text-align: center;
    padding: 10px 0 0 0;
}

.ournews a {padding: 0 3px;}

/*Красивый курсив в постах*/
.mycode_i { font-family: LoraItalic;}

/*Вкладки в профиле*/
.userinfomt, 
.tab-content2, ul.tabs li {
background: #eddbb1 url(../../../rusmagic/images/bgtexture.jpg);
border: 1px solid rgba(169, 148, 104, 0.8);}

.container2 {
			margin: 0 auto;
		}

		ul.tabs{
			margin: 0px;
			padding: 0px;
			list-style: none;
		}
		ul.tabs li{
			display: inline-block;
			padding: 10px 15px;
			cursor: pointer;
			border-bottom: none;
                        color: #371c04;
		}

		ul.tabs li.current {
                color: #ecd9af;
                 background: rgba(169, 148, 104, 0.3);
                 border: 1px solid rgba(169, 148, 104, 0.8);
                 border-bottom: none;}

		.tab-content2{
			display: none;
			padding: 15px;
		}

		.tab-content2.current {display: inherit;}

/* Свои BB-коды в быстром ответе. */
.custom_bbcodes {
	padding: 5px;
}

.button-container {
	display: flex;
	flex-wrap: wrap; /* Автоматически переносит кнопки на новую строку, если не хватает места */
	gap: 6px; /* Расстояние между кнопками */
	align-items: center; /* Центрирует кнопки по вертикали */
        justify-content: center;  /* Центрирует кнопки по horzontal */
}

.custom-bbcode-button {
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
	height: 30px;
	vertical-align: middle;
	position: relative;
        background: #a994684d;
    border: 1px solid rgba(169, 148, 104, 0.8);
}

.custom-bbcode-span {
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
	vertical-align: middle;
	background: #856e42;
	color: #e6dbc6;
	display: block;
}

.custom-bbcode-select {
	display: block;
	padding: 3px;
	margin: 0;
	box-sizing: border-box; /* Учитывает паддинг и бордер в общей ширине */
}

.custom-bbcode-span:hover {
	background:#55432f;
	cursor: pointer;
}

.custom-bbcode-popup-menu {
	cursor: default;
}

.custom-bbcode-popup-menu, .custom-bbcode-dropdown-menu {
	flex-direction: column; /* Если нужно вертикальное размещение */
	gap: 10px; /* Отступ между элементами */
	display: none;
	position: absolute;
        right: -200px;
	background-color: #a99468;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
	padding: 10px;
	margin-top: 5px;
	min-width: 200px;
	max-height:250px;
	overflow:auto;
	border: 1px solid #55432f;
}

.custom-bbcode-popup-menu > button {
	width: 100%;
}

.custom-bbcode-dropdown-menu > button {
	display: block;
	background-color: #4CAF50;
	color: white;
	padding: 5px;
	width: 100%;
	border: none;
	cursor: pointer;
	text-align: left;
}

/* Кастомные ББ-коды в плюсике*/

.custom-bbcode-popup-menu-embeded {
    position: relative;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-bottom: 5px;
	margin-top: 5px;
}

.size-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.size-inputs > * {
    flex: 1;
    min-width: 0; /* чтобы корректно сжимались */
}

/* Репутация */
.achv_row:hover {
    background-color: #f9f9f9; /* Слегка изменяем фон */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Увеличиваем тень */
    cursor: pointer; /* Меняем курсор на указатель (если это кликабельный элемент) */
}
/* При нажатии (активном состоянии) */
.achv_row:active {
    background-color: #f0f0f0; /* Делаем фон темнее */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Уменьшаем тень, создавая эффект вдавливания */
}

.card_achv_description {
	margin-top: 10px;
	flex-basis: 100%;
}

.card_achv {
	margin-right: 10px;
	width: 40px;	
}

.total_rep {
	cursor: pointer;
	color: #1d1d1d;
        font-weight: bold;
}

.reputation-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 250px;
}

.reputation-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.reputation-userinfo {
	display: flex;
	flex-direction: column;
}

.reputation-username {
	font-weight: bold;
	font-size: 0.9em;
}

.reputation-value {
	font-size: 0.8em;
	text-align: center;
}

.reputation-value.positive {
	color: green;
}

.reputation-value.negative {
	color: red;
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.reputation_info {
background: #dac79b;
    border: 1px solid #a99468;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    max-height: 300px;
    overflow-y: auto;
    width: 200px;
}
}


.reputation-container {
	display: flex;
	flex-direction: column; /* Элементы в столбик */
	gap: 10px;
	margin: 10px 0;
	max-height: 100%;      /* Наследует max-height родителя */
	overflow-y: auto;      /* Прокрутка внутри контейнера (если нужно) */
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;       /* Занимает всю ширину */
	padding: 5px;
}

.reputation-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;        /* Чтобы аватарка не сжималась */
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}



/* 18+ плашка */
#age_verifier_main_wrapper {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.78);
	display: flex;
	justify-content: center;
	align-items: center;
}

#age_verifier_sub_wrapper {
	background: #23222a;
	padding: 32px 28px 24px 28px;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 280px;
	max-width: 90vw;
	color: #fff;
	font-family: sans-serif;
}

#age_verifier_text {
	margin-bottom: 22px;
	font-size: 1.17em;
	text-align: center;
	line-height: 1.4;
}


/*Изменение размера шрифта и уведомления */
#font_size_changer, .font_size_changer_button, .font_size_changer_view,
#user_notifications_button {
	background: #a99468;
	border: 1px solid #371c04a8;
	color: #371c04;
}

#user_notifications, #font_size_changer {
width: 36px;
	position: fixed;
	right: 20px;
}


#font_size_changer {
	top: 20%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 0;
}

.font_size_changer_button {
	width: 100%;  /* ← Занимают всю ширину родителя */
	height: 36px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.2s ease;
	margin: 0;  /* ← Убираем внешние отступы */
	padding: 0; /* ← Убираем внутренние отступы */
}

.font_size_changer_view {
	width: 100%;  /* ← Совпадает с кнопками */
	height: 36px; /* ← Фиксированная высота как у кнопок */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	border-top: 1px solid #371c04a8;
	border-bottom: 1px solid #371c04a8;
	margin: 0;  /* ← Убираем отступы */
	box-sizing: border-box; /* ← Учитываем границы в ширине */
}


/* Уведомления */
#user_notifications {display: none; top: 30%;}

#user_notifications_mark_all {
 color: #280f08;
text-align: center;
    width: 100%;
    display: block;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

#user_notifications_wrapper {
	position: absolute;
	right: 0;
	top: 100%;
	width: 300px;
	max-height: 400px;
	overflow-y: auto;
background: #c4ad82;
    border: 1px solid #55432fba;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
	display: none;
	padding: 5px 0;
}

#user_notifications_list {
	list-style: none;
	margin: 0;
	padding: 0;
color: #371c04;
}

#user_notifications_list li {
	padding: 8px 12px;
	border-bottom: 1px solid #55432fba;
}

#user_notifications_list li:last-child {border-bottom: none;}
#user_notifications_list li.notification_0 {background-color: #a99468;}
#user_notifications_list li.notification_1 {background-color: #a99468;}

#user_notifications_list li a {
        color: #55432f;
	text-decoration: none;
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	text-overflow: clip;
}

#user_notifications_list li a:hover {color: #371c04;}

#user_notifications_counter {
    background-color: #d9534f;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    margin: 3.5px;
}


/*Дни рождения*/
.birthday_alert {
	background: #DCE6F2;
	border-left: 3px solid #39415E;
	border-right: 1px solid rgba(162, 235, 255, 0.5);
	border-top: 1px solid rgba(162, 235, 255, 0.5);
	border-bottom: 1px solid rgba(162, 235, 255, 0.5);
	padding: 6px 10px;
	margin: 0px 0px 10px 0px;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.4;
}
.birthday-title {
	font-weight: bold;
	color: #333;
}
.birthday-user {
	color: #428bca;
	text-decoration: none;
	margin-right: 3px;
}
.birthday-user:hover {
	text-decoration: underline;
}
.birthday-user+a.birthday-user:before {
	content: ", ";
	color: #333;
}
.birthday-users {
	white-space: break-spaces;
}
.birthday-message {
	display: block;
	margin-top: 5px;
	font-style: italic;
	color: #666;
}

/*Загрузка изображений с фиксированным размером*/
#custom-bbcode-image-number-wrapper {
	display: flex;
}

#custom-bbcode-image-number-wrapper > input {
	width: 125px;
}