html, body {
    height: 100%;
    margin: 0;
    background-color: #edf0f1 !important;
	scroll-behavior: auto !important;
}

@keyframes shake {
	0% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-5px); }
	100% { transform: translateX(0); }
}

em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  text-decoration: inherit;
}

.bg-lim {
	background-color: #895b6b !important;
}

.shake {
	animation: shake 0.4s ease;
}

.toastui-editor-defaultUI-toolbar {
	background-color: #f6f5f0 !important;
	border-bottom: 1px solid #e1e1df !important;
	padding: 0 5px !important;
}
.toastui-editor-defaultUI-toolbar button {
	border: 1px solid #e1e1df;
}
.toastui-editor-contents blockquote {
	border-left: 5px solid #4581b3 !important;
	padding: 10px !important;
	margin: 0 !important;
}
				
.toastui-editor-contents blockquote ol, .toastui-editor-contents blockquote p, .toastui-editor-contents blockquote ul {
	color: #343434 !important;
}

.expert {
	background-color: #318391 !important;
}

.plus-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #009688;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 10%;
    cursor: pointer;
    z-index: 10;
}

.addalbum {
	color: #2f82d9 !important;
	text-transform: capitalize !important;
}

.plus-btn:hover {
    background-color: #11625b;
}

#media-list img,
#album-list img {
    cursor: pointer;
}


.hidden {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.blurred-text {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
    height: 300px;
    overflow: hidden;
}

.subscribe-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: 10;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subscribe-notice p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    word-wrap: break-word;
}

.subscribe-notice .btn {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.hidden:hover {
    overflow-y: auto;
}

.no-underline {
    text-decoration: none;
}



.hidden-attachment {
    display: none;
}

.tooltip-inner {
	text-transform: none;
}

.mailto {
	color: #c6d9ff;
}

.showall {
	color: #4581b3 !important;
}

/* Стили для всплывающего баннера */
#popup-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	max-height: 15vh;
	color: #333;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 -2px 10px rgba(179, 178, 178, 0.3);
	opacity: 0;
	transform: translateY(100%);
	transition: transform 0.5s ease, opacity 0.5s ease;
	z-index: 1000;
	background-color: #f9f9f9;
}

#popup-banner .adcontent {
	flex: 1;
	font-size: 18px;
	text-align: center;
	max-height: 15vh;
	max-width: 100%;
}

#closebtn {
    position: absolute;
    top: -25px;
    left: 20px;
    width: 40px;
    height: 25px;
    border-radius: 15px 15px 0 0;
    background-color: #f9f9f9;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: background-color 0.3s, cursor 0.3s;
}

#closebtn.active {
    cursor: pointer;
	border-bottom: none;
}
/* ------------ */


.delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
	color: #dc3545;
}

.delete-button:hover {
    outline: none;
    color: #f55564;
}


.pagetext p {
	white-space: pre-wrap;
}

.chat-window .message .message-body p {
	white-space: pre-wrap;
}

.sidebar-sticky {
    position: sticky;
    top: 70px;
}

.hidden-rep {
	display: none;
}

.nofoto {
    border: 5px solid #f9fafb;
    border-radius: 8px;
}

.message blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #007bff;
    padding: 15px 0px 1px 15px;
    font-style: italic;
    margin-top: 10px;
}

.receiver {
	background: #eef6ff;
    padding: 10px;
    border-radius: 10px;
}

.mine {
	background: #ddefea;
    padding: 10px;
    border-radius: 10px;
}

/* Стили для элементов списка контактов */
.list-group-item {
    border: none !important;
    border-bottom: 1px solid #dee2e6 !important;
	border-radius: 0 !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* Стили для окна переписки */
.chat-window {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

/* Стили для списка пользователей */
.user-list {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Стили для элементов списка в user-list */
.user-list .list-group-item {
    cursor: pointer;
}

/* Стили для активного элемента списка */
.user-list .list-group-item.active {
    background-color: #007bff;
    color: white;
}

.message img {
    width: 100px;
    display: block;
    margin-bottom: 10px;
}

/* Стили для сообщений */
.message {
    margin-bottom: 10px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Стили для времени сообщений */
.message-time {
    font-size: 0.8em;
    color: #6c757d;
}


.form-control.bg-light {
    border: 1px solid #ced4da;
}

.form-control.bg-light:focus {
    background-color: #ffffff;
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.user-status {
	display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0px 2px 2px 0;
    vertical-align: middle;
    border-radius: 50%;
}

.user-status.offline {
    background-color: #777;
}

.user-status.online {
    background-color: #41cfd7;
}

.feedlink {
	text-decoration: none;
	color: #4581b3;
}

.textsource img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
	max-height: 500px;
}

.textsource h2 {
    margin-bottom: 20px;
    margin-top: 40px;
    font-size: 26px;
}

.pmlnk {
	font-size: 18px;
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#recaptcha {
	margin: 0 auto;
	margin-top: 0px;
	margin-top: 20px;
}

.tab-pane .list-group {
	border-radius: 0px;
}

.usertabs {
	border: 0 !important;
}

.small.last {
	background-color: #f7f5f0;
    padding: 10px;
    border-radius: 10px;
}

.subforums {
    margin-bottom: 0;
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
}

.subforums li {
	padding-bottom: 5px;
	padding-left: 20px;
}

.mblock a {
    text-decoration: none;
    color: #4581b3;
    font-weight: 600;
	font-size: 1.28rem;
}

.mblock a:hover {
    color: #ffb100;
}

.signature {
	font-size: 12px;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #b2b0b2;
    border-top: 1px solid #f2f0f2;
}

span .fa {
	padding-right: 5px;
}

.urlmodal .swal2-html-container {
  display: contents !important;
}

.modal-backdrop {
	background-color: rgba(0, 0, 0, 0.5) !important;
}

.wrap {
    display: flex;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.round-primary {
	background-color: #5b7fb3;
}

footer {
    background-color: #009191;
    color: #fff;
    padding: 20px 0;
}


#scroll-buttons {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}


#scroll-buttons button {
	width: 50px;
	height: 50px;
	font-size: 18px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#scroll-buttons button:hover {
	background-color: #007bff;
}

.card-body {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}

.no-scroll {
	overflow: hidden;
	height: 100%;
}


.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	justify-content: center;
	align-items: center;
}

.modal img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
}

.prev-arrow, .next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    user-select: none;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.prev-arrow:hover, .next-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Более темный фон при наведении */
    color: #ccc;
}

.prev-arrow[style*="none"], .next-arrow[style*="none"] {
    display: none !important;
}

.close-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 16px;
	padding: 10px 20px;
	background-color: rgba(244, 67, 54, 0.8); /* Полупрозрачный красный */
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	z-index: 10000;
}

.close-btn:hover {
	background-color: rgba(211, 47, 47, 0.8); /* Полупрозрачный красный при наведении */
}

.original-btn {
	position: absolute;
	top: 8px;
	right: 125px; /* Расстояние от кнопки "Закрыть" */
	font-size: 16px;
	padding: 10px 20px;
	background-color: rgba(88, 88, 88, 0.8); /* Полупрозрачный серый */
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	z-index: 10000;
}

.original-btn:hover {
	background-color: rgba(64, 64, 64, 0.8); /* Полупрозрачный серый при наведении */
}

.usernick, .tgcolor {
	color: #4581b3 !important;
    text-decoration: none !important;
}

.alertg {
	background-color: #4a8e9212 !important;
}

.breadcrumb a {
	color: #63a7e0;
    text-decoration: none;
	font-weight: 600;
}

.text-muted {
    color: rgb(48 43 43 / 75%) !important;
}

.card-body img {
	width: 100px;
	display: block;
    margin-bottom: 10px;
	margin-top: 10px;
}

.card-body blockquote {
	background-color: #f9f9f9;
    border-left: 5px solid #4581b3;
    padding: 15px 10px 1px 15px;
	margin-top: 10px;
}

.author-info {
    background-color: #f7f5f0;
}

h3.title i.fa {
    font-size: 15px;
}

.small.th {
	font-size: 11px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.small.th span:not(:last-child) {
    flex: 1
}

.avatar {
	width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.read {
    font-weight: 400 !important;
}

.custom-navbar {
    background-color: #467fb6 !important;
}

.breadcrumb {
	margin-top: 90px !important;;
}

.wrap .container {
    background: #fff;
    /*padding-left: 25px;
    padding-right: 25px;*/
}

.page-header {
	padding: 20px 0px 20px;
}

.page-header h1 {
	font-weight: 600;
	font-size: 24px;
}

.block {
	margin-bottom: 15px;
    padding: 5px 0;
    border-bottom: 1px solid #e5e5e5;
}

.block:last-child {
	margin-bottom: 0px;
	border-bottom: 0px;
}

.block a {
    text-decoration: none;
    color: #4581b3;
}

.block .lastpost a {
	font-weight: 500;
	font-size: 11px;
}

.block a:hover {
    color: #ffb100;
}

.block-header {
    font-size: 18px;
	font-weight: 600;
    line-height: 18px;
}

.block .box .stat {
    width: 100%;
    white-space: nowrap;
}

.block .box .small {
    color: #787878;
}

.allth {
    color: #787878;
}

.allth span {
    padding-right: 15px;
}


.auth {
	margin-top: 90px;
	text-align: center;
}

.btn-primary {
    border-color: #5b7fb3 !important;
    background-color: #5b7fb3 !important;
}

.btn-primary:hover {
    border-color: #466591 !important;
    background-color: #466591 !important;
}

.pg li.active a {
    border-color: #4581b3;
    background-color: #4581b3;
	color: #ffffff;
}

.pg li a {
    color: #4581b3;
}

.pg li a:hover {
    color: #ffb100;
}

.block .small .lastpost {
    display: block;
    text-align: right;
}

.block .small .date {
    display: block;
    text-align: right;
}

.section-header-thread-body {
    border-bottom: 2px solid #d1d1d1;
	font-weight: 700;
}

.block.sticky {
    background: #f3f4f9;
	padding: 10px;
}


.goto-lastpost {
    position: absolute;
    top: 2px;
    right: -35px;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(120, 120, 120, .6);
    border-radius: 5px;
}

.goto-lastpost img {
    position: absolute;
    top: 3px;
    left: 6px;
    display: block !important;
    width: 12px;
    height: 18px;
}

.posts {
	margin-right: 0px !important;
    margin-left: 0px !important;
}

.small.lastpost {
    margin-right: 40px;
}

.hidden-xs {
	position: relative;
}


.ext {
	margin-bottom: 0px;
}


@media (max-width: 480px) {
	.toastui-editor-popup-add-image, 
	.toastui-editor-popup-add-link {
		left: 50% !important;
	}
}


@media (max-width: 767px) {
	.hide {
		display:none;
	}
	.auth {
		margin-top: 0px;
	}
	.user-list {
		height: auto;
		max-height: 200px;
	}
}


@media (max-width: 992px) {
	
	.croat .float-start {
		margin-bottom: 10px;
	}
	
	.croat {
		display: grid;
        justify-items: end;
	}
	
}


@media (max-width: 575px) {
	.card-body img {
		max-width: 100%;
	}
	.hidden-rep {
		display: block;
	}
    .hidden-views {
        display: none;
    }
    .hidden-xs {
        display: none !important;
    }
    .small.th {
        flex-direction: row;
    }
    .row-with-arrow {
        padding-right: 40px;
    }
	.arrw {
		position: absolute;
		top: 0;
		right: 0;
		width: 30px !important;
		height: 100%;
		z-index: 1;
		background: url(../img/icon-arw-right.png) center center no-repeat #f3f4f9;
	}


	.arrow-last-post {
		display: block;
		width: 100%;
		height: 100%;
		cursor: pointer;
		text-decoration: none;
	}
	
	
}


