<style>
@font-face {
font-family: 'OldTown';
src: url('https://snami.mpchat.com/fonts/OldTown.ttf');
}

@font-face {
font-family: 'Kapelka';
src: url('https://snami.mpchat.com/fonts/Kapelka.ttf');
}
@font-face {
font-family: 'Artemis cursive';
src: url('https://snami.mpchat.com/fonts/Artemis cursive.ttf');
}

@font-face {
font-family: 'Farabee';
src: url('https://snami.mpchat.com/fonts/Farabee.ttf');
}

@font-face {
font-family: 'Monotype Corsiva';
src: url('https://snami.mpchat.com/fonts/Monotype Corsiva.ttf');
}

@font-face {
font-family: 'Equilibrist';
src: url('https://snami.mpchat.com/fonts/Equilibrist.ttf');
}

@font-face {
font-family: 'Spectral';
src: url('https://snami.mpchat.com/fonts/Spectral.ttf');
}

@font-face {
font-family: 'Sriracha';
src: url('https://snami.mpchat.com/fonts/Sriracha.ttf');
}

@font-face {
font-family: 'DR Agu Script';
src: url('https://snami.mpchat.com/fonts/DR Agu Script.ttf');
}

@font-face {
font-family: 'Lobster';
src: url('https://snami.mpchat.com/fonts/Lobster.ttf');
}

@font-face {
font-family: 'Candara';
src: url('https://snami.mpchat.com/fonts/Candara.ttf');
}

@font-face {
font-family: 'Bressay Trial';
src: url('https://snami.mpchat.com/fonts/Bressay Trial.ttf');
}

@font-face {
font-family: 'Gunny Rewritten';
src: url('https://snami.mpchat.com/fonts/Gunny Rewritten.ttf');
}

@font-face {
font-family: 'Segoe Print';
src: url('https://snami.mpchat.com/fonts/Segoe Print.ttf');
}

@font-face {
font-family: 'Faberge';
src: url('https://snami.mpchat.com/fonts/Faberge.ttf');
}

@font-face {
font-family: 'Oktyabrina-script';
src: url('https://snami.mpchat.com/fonts/Oktyabrina-script.ttf');
}

@font-face {
font-family: 'lucidaconsole';
src: url('https://snami.mpchat.com/fonts/lucidaconsole.ttf');
}

@font-face {
font-family: 'Palatino Linotype';
src: url('https://snami.mpchat.com/fonts/Palatino Linotype.ttf');
}

@font-face {
font-family: 'couriercyrillic';
src: url('https://snami.mpchat.com/fonts/couriercyrillic.ttf');
}

@font-face {
font-family: 'Kereru';
src: url('https://snami.mpchat.com/fonts/Kereru.ttf');
}

@font-face {
font-family: 'carlomelow';
src: url('https://snami.mpchat.com/fonts/carlomelow.ttf');
}

@font-face {
font-family: 'ST-Warmovie-noncommercial';
src: url('https://snami.mpchat.com/fonts/ST-Warmovie-noncommercial.otf');
}

@font-face {
font-family: 'Romanesque';
src: url('https://snami.mpchat.com/fonts/Romanesque.ttf');
}

@font-face {
font-family: 'Stonehenge';
src: url('https://snami.mpchat.com/fonts/Stonehenge.ttf');
}

@font-face {
font-family: 'Andy_Bold';
src: url('https://snami.mpchat.com/fonts/Andy_Bold.otf');
}

@font-face {
font-family: 'XPLOR_Bold-Regular';
src: url('https://snami.mpchat.com/fonts/XPLOR_Bold-Regular.otf');
}

@font-face {
font-family: 'FoxcroftNF RUS Regular';
src: url('https://snami.mpchat.com/fonts/FoxcroftNF RUS Regular.otf');
}

@font-face {
font-family: 'Bounded';
src: url('https://snami.mpchat.com/fonts/Bounded.ttf');
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('https://snami.mpchat.com/fonts/RobotoCondensed.otf');
}

@font-face {
  font-family: 'Montserrat-BoldItalic';
  src: url('https://snami.mpchat.com/fonts/Montserrat-BoldItalic.ttf');
}

@font-face {
  font-family: 'Raleway';
  src: url('https://snami.mpchat.com/fonts/Raleway.otf') format('opentype');
}

@font-face {
  font-family: 'Dancing Script';
  src: url('https://snami.mpchat.com/fonts/DancingScript.otf') format('opentype');
}

@font-face {
  font-family: 'Oswald';
  src: url('https://snami.mpchat.com/fonts/Oswald.otf') format('opentype');
}
 
header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
} 
 


body {
background: #f3f3f3;
background-image: url(https://imgs.su/upload/832/1217346633.jpg) !important;
background-size: cover;
backdrop-filter: none;
}

.menu {
display: none;
}

.marq {
display: none;
}

td {
font-size: 20px;
font-family: Andy_Bold;
color: #4d5d53;
}

a {
font-size: 20px;
font-family: Andy_Bold;
color:  #1E2A4A;
}

a:hover {
font-size: 20px;
font-family: Andy_Bold;
}

table {
    width: 80%; /* уменьшена ширина таблицы */
    background: #f9f9f9; /* светлый фон для таблицы */
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 15px auto; /* центрирование таблицы */
    border: 2px solid #ccc; /* граница для сетки */
    padding: 15px;
}

td, th {
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    vertical-align: top; /* выравнивание по верхней границе */
}



.title {
    font-weight: normal;
    background-color: #4a90e2; /* более уместный цвет */
    border-left: 1px solid #333; /* темнее для выделения */
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255,255,255,.1)), color-stop(100%, rgba(255,255,255,0)));
    padding-left: 10px;
}

/* Стиль для текста при наведении */
.low:hover {
    font: normal 11px Verdana;
}

/* Общий стиль для кнопок - уменьшенный размер и новый цвет */
input[type=button], input[type=submit] {
    background: linear-gradient(to bottom, #4a90e2, #357ab8); /* синий градиент */
    border: none;
    padding: 6px 12px; /* меньшие отступы */
    font-family: Verdana, sans-serif;
    font-size: 12px; /* чуть меньше шрифта */
    border-radius: 6px; /* скругление углов */
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Эффект при наведении */
input[type=button]:hover, input[type=submit]:hover {
    background: linear-gradient(to bottom, #357ab8, #2f629f); /* чуть более темный градиент */
}

.oldforumicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/9fpBsx3X/free-icon-messages-668287.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.newforumicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/T32jgVLZ/free-icon-message-1069861.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.closedforumicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/1zG9SqM3/free-icon-lock-4943198.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.oldicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/9fpBsx3X/free-icon-messages-668287.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.newicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/T32jgVLZ/free-icon-message-1069861.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.closedicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/1zG9SqM3/free-icon-lock-4943198.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.pinnedicon {height:64px;width:64px;background-image:url('https://i.postimg.cc/15Qbxj2w/free-icon-setting-14620105.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
.photoshops {height:64px;width:64px;background-image:url('https://i.postimg.cc/8PZ4yXS1/free-icon-ps-file-7479059.png');background-repeat: no-repeat;background-position: center;background-size: 39px;}
 
.movedicon {border:#FFFFFF ridge 10px; line-height:0; width:0; height:0;}
.signature {padding-top: 15px;}
.signature hr {width: 200px; height: 1px; text-align:left; margin-left: 0px; border:none; color: black; background-color: black; clear:both;}

.container {
    display: flex;
    justify-content: center;
	position: absolute;
	height: 200px;
}
#cont {
    background: url() center;
    background-repeat: no-repeat;
    -webkit-perspective: 600px;
    -webkit-perspective-origin: 50% 0%;
    perspective: 600px;
    perspective-origin: 50% 0%;
    width: 660px;
    margin: 0 auto 0;
}

#butterfly {
    position: absolute;
    width: 500px;
    height: 100px;
	left:-170px;
	right:0;
    -webkit-transform: rotate3d(0, 1, 0, 0deg) scale3d(0.5, 0.5, 0.5);
    -ms-transform: rotate3d(0, 1, 0, 0deg) scale3d(0.5, 0.5, 0.5);
    transform: rotate3d(0, 1, 0, 0deg) scale3d(0.5, 0.5, 0.5);
    -webkit-transform-origin: 100% 0%;
    -ms-transform-origin: 100% 0%;
    transform-origin: 100% 0%;
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-animation: butterfly 5s linear infinite;
    animation: butterfly 10s linear infinite;
}

#leftwing {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 96px;
    height: 150px;
    background-image: url();
    background-repeat: no-repeat;
    -webkit-transform: rotateX(90deg) rotate3d(0, 1, 0, 0deg);
    -ms-transform: rotateX(90deg) rotate3d(0, 1, 0, 0deg);
    transform: rotateX(90deg) rotate3d(0, 1, 0, 0deg);
    -webkit-transform-origin: inherit;
    -ms-transform-origin: inherit;
    transform-origin: inherit;
    -webkit-animation: leftwing 0.2s linear infinite;
    animation: leftwing 0.4s linear infinite;
	}
	
	#rightwing {
    position: absolute;
    left: 175px;
    top: 0px;
    width: 96px;
    height: 150px;
    background-image: url();
    background-repeat: no-repeat;
    -webkit-transform: rotateX(90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, 180deg);
    -ms-transform: rotateX(90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, 180deg);
    transform: rotateX(90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, 180deg);
    -webkit-transform-origin: inherit;
    -ms-transform-origin: inherit;
    transform-origin: inherit;
    -webkit-animation: rightwing 0.2s linear infinite;
    animation: rightwing 0.4s linear infinite;
}


@keyframes butterfly {
0% {
    transform: rotate3d(0, 1, 0, 0deg) scale3d(0.5, 0.5, 0.5) translate3d(-100px, 200px, 0);
}
25% {
    transform: rotate3d(0, 1, 0, 90deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}

45% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}  
49% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}
50% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}
55% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}
59% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}
60% {
    transform: rotate3d(0, 1, 0, 180deg) scale3d(0.5, 0.5, 0.5) translate3d(-200px, 200px, 0);
}
79% {
    transform: rotate3d(0, 1, 0, 360deg) scale3d(0.5, 0.5, 0.5) translate3d(-45px, 120px, 0);
}
80% {
    transform: rotate3d(0, 1, 0, 360deg) scale3d(0.5, 0.5, 0.5) translate3d(-45px, 120px, 0);
}
90% {
    transform: rotate3d(0, 1, 0, 360deg) scale3d(0.5, 0.5, 0.5) translate3d(-45px, 120px, 0);
}

100% {
    transform: rotate3d(0, 1, 0, 360deg) scale3d(0.5, 0.5, 0.5) translate3d(-100px, 200px, 0);
}
}

@keyframes rightwing  {
0% {
    transform: rotateX(-90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, -180deg);
}
50% {
    transform: rotateX(-90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, -100deg);
}
100% {
    transform: rotateX(-90deg) translate3d(-178px, 0, 0) rotate3d(0, 1, 0, -180deg);
}
}

@keyframes leftwing  {
0% {
    transform: rotateX(-90deg) rotate3d(0, 1, 0, 0deg);
}
50% {
    transform: rotateX(-90deg) rotate3d(0, 1, 0, -80deg);
}
100% {
    transform: rotateX(-90deg) rotate3d(0, 1, 0, 00deg);
}
}


/* ========== DARK MODE STYLES ========== */
:root {
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
  --text-light: #000000;
  --text-dark: #e0e0e0;
  --border-light: #ddd;
  --border-dark: #444;
  --input-bg-light: #f9f9f9;
  --input-bg-dark: #2a2a2a;
}

body.dark-mode {
  background-color: var(--bg-dark) !important;
  color: var(--text-dark) !important;
}

body.dark-mode .forum-body,
body.dark-mode table,
body.dark-mode td,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: var(--bg-dark) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-dark) !important;
}

body.dark-mode a {
  color: #6db3f2 !important;
}

body.dark-mode .title {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode textarea {
  background-color: var(--input-bg-dark) !important;
  color: var(--text-dark) !important;
}

/* Кнопка переключения темы */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 14px;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.theme-toggle:active {
  transform: translateY(0);
}

/* ========== EMOJI PICKER STYLES ========== */
.emoji-picker-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.emoji-trigger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.emoji-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.emoji-popup {
  display: none;
  position: absolute;
  bottom: 45px;
  left: 0;
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 10000;
  max-width: 320px;
  max-height: 300px;
  overflow-y: auto;
}

body.dark-mode .emoji-popup {
  background: #2a2a2a;
  border-color: #444;
}

.emoji-popup.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.emoji-item {
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: center;
}

.emoji-item:hover {
  background: #f0f0f0;
  transform: scale(1.2);
}

body.dark-mode .emoji-item:hover {
  background: #3a3a3a;
}

.emoji-search {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

body.dark-mode .emoji-search {
  background: #1a1a1a;
  color: #e0e0e0;
  border-color: #444;
}

.emoji-category {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin: 10px 0 5px 0;
  text-transform: uppercase;
}

body.dark-mode .emoji-category {
  color: #aaa;
}




</style>