@keyframes shake {
  0%   { transform: translate(-50%, -50%) translateX(0) translateY(0); }
  25%  { transform: translate(-50%, -50%) translateX(-5px) translateY(-5px); }
  50%  { transform: translate(-50%, -50%) translateX(5px) translateY(5px); }
  75%  { transform: translate(-50%, -50%) translateX(-5px) translateY(-5px); }
  100% { transform: translate(-50%, -50%) translateX(0) translateY(0); }
}

.shake-effect {
  animation: shake 0.2s cubic-bezier(.36,.07,.19,.97);
}


/* Общие стили */
img {
    vertical-align: middle;
}
* {
  box-sizing: border-box;
}
a {
    text-decoration: underline;
    color: #daa520;
}
html {
    margin: 0 auto;
}
body {
    background-color: #0d0d0d; /* тёмный фон */
    color: #f0c040; /* золотой оттенок */
    font-family: 'Arial Rounded MT Bold', sans-serif;
    margin: 0 auto;
    max-width: 400px;
}

.mr-5 {
    margin-bottom: 5px;
}
.mr-10 {
    margin-bottom: 10px;
}

.cntr {
    text-align: center;
}

.pdd-5 {
    padding: 5px;
}
.pdd-10 {
    padding: 10px;
}

/* Заголовок */
header {
    background: linear-gradient(90deg, #000000, #1a1a1a);
    padding: 10px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2em;
    color: #f0c040; /* золото */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gold-decor {
    display: block;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, #f0c040, transparent);
}

/* Меню */
.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.menu-btn {
    text-decoration: none;
    display: inline-block;
    background-color: #222;
    color: #f0c040;
    border: 2px solid #f0c040;
    padding: 5px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 5px;
}

.menu-btn:hover {
    background-color: #333;
}

/* Подвал */
footer {
    background: linear-gradient(90deg, #000000, #1a1a1a);
    text-align: center;
    padding: 10px;
}

#text-transition {
    font-family: Arial, sans-serif;
    font-size: 24px;
    white-space: pre; /* чтобы сохранять пробелы и переносы */
}

.hp-container {
    width: 300px; /* ширина шкалы */
    height: 8px; /* высота шкалы */
    background-color: #555; /* цвет фона шкалы (серый) */
    border: 1px solid #333; /* рамка вокруг */
    border-radius: 2px; /* скругление углов */
    overflow: hidden; /* скрыть содержимое за границами */
}

.hp-bar {
    height: 100%;
    width: 75%; /* пример текущего HP, сделаю его динамическим далее */
    background-color: #f00; /* красный цвет HP */
    transition: width 0.3s ease; /* плавное анимирование изменения */
}

.exp-container {
    width: 100%; /* ширина шкалы */
    height: 8px; /* высота шкалы */
    background-color: #555; /* цвет фона шкалы (серый) */
    border: 1px solid #333; /* рамка вокруг */
    border-radius: 2px; /* скругление углов */
    overflow: hidden; /* скрыть содержимое за границами */
}

.exp-bar {
    height: 100%;
    width: 75%; 
    background-color: green; 
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px 0 15px 0;
}
.main-container .item {
    position: relative;
    width: 100px;
    height: 100px;
    border: solid 1px #f0c040;
    border-radius: 5px;
    background-color: #1a1a1a;
    cursor: pointer;
    color: white;
}
.main-container .item .name {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 4px;
    text-align: center;
    background: rgba(0, 0, 0, .3);
    font-size: 12px;
    color: #f0c040;
}

input[type="text"], input[type="password"] {
    padding: 5px;
    margin: 5px;
}

.block {
    background: rgba(0, 0, 0, .3);
    font-size: 14px;
    line-height: 1;
}
.block h1 {
    font-size: 1em;
    color: #f0c040; /* золото */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.block .block-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: rgba(251, 246, 4, .2);
}
.block .block-items .item {
    width: 40%;
    padding: 10px;
    background: rgba(0, 0, 0, .5);
    border-radius: 5px;
    margin: 10px;
}


.menu-links a {
    display: block;
    padding: 10px 5px 10px 5px;
    color: #daa520;
    text-decoration: none;
    transition: background-color 0.3s;
}
.menu-links a:hover {
    background: #696969;
    color: white;
}
.menu-links a:nth-last-child(n+2) {
    border-bottom: dotted 1px #a9a9a9;
}


.amt {
    min-width: 19px;
    height: 19px;
    line-height: 19px;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    background-color: #c23711;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    color: #ffdbad;
    -webkit-box-shadow: inset 2px -1px 7px 0 rgba(119,22,0,.69),-1px 0 2px 0 rgba(0,0,0,.52);
    box-shadow: inset 2px -1px 7px 0 rgba(119,22,0,.69),-1px 0 2px 0 rgba(0,0,0,.52);
    text-shadow: 0 1px 1px rgba(86,0,0,.57);
    font-size: 90%
}

.leather-bg {
    background-image:url(/styles/images/aplication/leather.jpg);
    background-size:cover;
    background-repeat: no-repeat;
}


.pagination-row {
	overflow: hidden;
	clear: both;
	margin: 0;
	padding: 5px;
}
.pagination {
	padding: 0;
	margin: 0;
	text-align: center;
 }
.pagination .page-item {
	display: inline-block;
	margin: 0 2px 3px;
}
.pagination .page-link {
	display: inline-block;
	height: 28px;
	min-width: 28px;
	line-height: 28px;
	font-size: 15px;
	text-decoration: none;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 3px;    
	background: #fbfbfb;
	text-decoration: none;
	color: #000;
}
.pagination a.page-link:hover {
	background: #ffd57b;
}
.pagination .active a.page-link {
	background: #ffae00;
	border-color: #c19432;
}
.pagination .separator .page-link {
	border-color: #fff;
	background: #fff;
}
.pagination .disabled .page-link {
	color: #999;
}


.list-of-items {
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 14px;
}
.list-of-items:nth-child(2n+1){
    background: rgba(25,25,112, .3);
}
.list-of-items .item {
    text-align: center;
    padding: 5px;
    width: 50%;
}

.gorizontal-stone {
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 18px;
    background-image: url(/styles/images/aplication/horizontalDivider_type-stone.png);
    background-size: cover;
    background-position: 50%;
    z-index: 5;
}

.random-text {
    position: absolute;
    font-size: 18px;
    color: red;
    font-weight: bold;
}

.modal-block {
    display: none; 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    left: 0; 
    top: 0; 
    background: #000; 
    background: rgba(0, 0, 0, .7);
    z-index: 9999;
}
.modal-block .modal-msg {
    position: fixed; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    width: 300px; 
    z-index: 99999; 
    padding: 25px; 
    border: solid 1px gold; 
    border-radius: 5px;
    background-color: rgba(0,0,0, 0.5);
    color: white;
    font-size:14px;
}