html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
     
    color: #ddd;
}
html, body {
        background: url('../img/background.png') no-repeat center center fixed;
    background-size: 50%; /* уменьшенный масштаб */
    background-color: black;
	 
}
body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto; /* Основной контент занимает всё доступное место */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
	 
}

.chat-container {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid #444;
    box-shadow: 0 0 10px #000;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    border-radius: 6px;
    text-align: left;
}

footer {
    margin-top: auto;
     
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
     
	flex-shrink: 0; /* Футер не уменьшается */
}

.chat-box-styled {
    background-color: #111;
    border: 1px solid #555;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
}

.chat-button {
    background-color: #000;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    transition: background 0.3s;
}

.chat-button:hover {
    background-color: #222;
}

.chat-box-styled {
    background-color: #111;
    border: 1px solid #555;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
}

.chat-button {
    background-color: #000;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    transition: background 0.3s;
}

.chat-button:hover {
    background-color: #222;
}

.chat-box-styled {
    border: 2px solid rgba(67, 68, 68, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 rgba(13, 25, 16, 1);
    padding: 1px;
    border-radius: 1px;
    color: #fff;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
}

.chat-button {
    background-color: #000;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    transition: background 0.3s;
}

.chat-button:hover {
    background-color: #222;
}

.chat-box {
    background: #1b1b1d;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    max-width: 500px;
    margin: 0 auto;
}

.chat-message {
    background-color: #26262b;
    border: 1px solid #444;
    border-radius: 5px;
    margin-bottom: 8px;
    padding: 6px 10px;
    text-align: left;
}

.chat-header {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 3px;
}

.chat-nick {
    font-weight: bold;
    color: #ffcc00;
}

.chat-time {
    float: right;
    font-size: 11px;
    color: #888;
}

.chat-text {
    color: #eee;
    font-size: 14px;
}
/* Общий стиль блока чата */
 

/* Стиль отдельного сообщения */
.chat-message-box {
    border-bottom: 1px solid #3d2a1c;
    padding: 8px 5px;
    margin-bottom: 5px;
}

/* Имя персонажа */
.chat-nick {
    font-weight: bold;
    color: #e0c389;
}

/* Время сообщения */
.chat-time {
    float: right;
    font-size: 12px;
    color: #888;
}

/* Текст сообщения */
.chat-text {
    margin-top: 4px;
    color: #e2e2e2;
    text-shadow: 1px 1px 1px #000;
}
/* Блок чата */
 

/* Сообщение */
.chat-message-box {
    border-bottom: 1px solid #3d2a1c;
    padding: 6px 4px;
    margin-bottom: 6px;
    transition: background 0.3s;
}

.chat-message-box:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Ник */
.chat-nick {
    font-weight: bold;
    color: #ffe1a1;
    text-shadow: 0 0 2px #000;
}

/* Время */
.chat-time {
    float: right;
    font-size: 12px;
    color: #aaa;
}

/* Текст */
.chat-text {
    margin-top: 4px;
    color: #e8e8e8;
    text-shadow: 1px 1px 2px #000;
    padding-left: 8px;
}

/* Контейнер чата */
.styled-chat {
     
     
    border: 2px solid rgba(67, 68, 68, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 rgba(13, 25, 16, 1);
    margin-bottom: 15px;
     
}

/* Отдельная строка сообщения */
.chat-line {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e8e8e8;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Имя игрока */
.chat-nick {
    font-weight: bold;
    color: #ffe1a1;
    margin-right: 6px;
    min-width: 120px;
}

/* Сообщение */
.chat-text {
    flex: 1;
    color: #ddd;
    text-shadow: 1px 1px 1px #000;
}

/* Время */
.chat-time {
    font-size: 11px;
    color: #888;
    margin-left: 10px;
    white-space: nowrap;
}

/* Выпадающий список персонажей */
select[name="charname"] {
    background-color: #1a1a1a;
    border: 2px solid rgba(67, 68, 68, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 rgba(13, 25, 16, 1);
    color: #ffffff;
    padding: 6px 10px;
    font-family: Tahoma, sans-serif;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Текстовое поле */
textarea[name="message"] {
    width: 100%;
    height: 60px;
    background: #0f0f0f;
    color: #ffe1a1;
    border: 2px solid rgba(67, 68, 68, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 rgba(13, 25, 16, 1);
    border-radius: 1px;
    padding: 8px;
    resize: none;
    font-family: Tahoma, sans-serif;
}

/* Кнопка отправки */
input[type="submit"] {
    margin-top: 10px;
    padding: 6px 16px;
    background-color: #2c1f0f;
    color: #fff3cc;
    border: 2px solid rgba(156, 134, 74, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 #d4a944;
    border-radius: 1px;
    font-family: Tahoma, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #5a4427;
    color: #fff;
}

 
.chat-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.chat-nick.admin {
    color: #ff5050;
    font-weight: bold;
}

.chat-nick.mod {
    color: #50c0ff;
    font-style: italic;
}

.chat-nick.player {
    color: #ffe1a1;
}
.chat-message.admin {
    color: #ffd700; /* жёлтый */
}
.chat-message.mod {
    color: #5faaff; /* синий */
}
.chat-message.user {
    color: #ffffff; /* обычный */
}



/* --- Custom Statistics Table Styling --- */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1c1c1c;
    color: #ffffff;
    font-family: Tahoma, sans-serif;
    border: 1px solid #444;
}

.stats-table th, .stats-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #444;
}

.stats-table tr:hover {
    background-color: #2e2e2e;
}


/* Убираем подчеркивания ссылок в header */
nav a, header a {
    text-decoration: none !important;
    border-bottom: none !important;
}


 


.server-status {
      
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    gap: 0;
     
    width: fit-content;
    color: white;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    border-radius: 1px;
     
    text-align: left;
   
}
.server-status div {
    margin-bottom: 1px;
    font-weight: normal;
}
 .status-text.online {
    color: #00ff00; /* Зелёный */
}
.status-text.offline {
    color: #ff0000; /* Красный */
}
.ping-text.green {
    color: #00ff00; /* Зелёный */
}
.ping-text.yellow {
    color: #ffff00; /* Жёлтый */
}
.stats-wrapper {
    padding: 20px;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a2e;
    color: #f0f0f0;
    font-family: Tahoma, sans-serif;
    box-shadow: 0 0 10px #000;
    border-radius: 8px;
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.stats-table th {
    background-color: #252545;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: bold;
}

.stats-table tr:hover {
    background-color: #2c2c4d;
}
.dataTables_wrapper {
    color: #f0f0f0;
}

.dataTables_filter input {
    background-color: #1a1a2e;
    color: #fff;
    border: 1px solid #333;
    padding: 5px;
    border-radius: 5px;
}

.dataTables_paginate .paginate_button {
    background-color: #252545;
    color: #ffcc00 !important;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    background-color: #ffcc00;
    color: #000 !important;
}
.clan-icon {
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}
.clan-tag {
    color: #ffcc00;
    font-size: 12px;
    margin-left: 6px;
    font-style: italic;
}
.stats-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.stat-card {
    background-color: #1a1a2e;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px 30px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    min-width: 220px;
    box-shadow: 0 0 10px #000;
}

.stat-card:hover {
    background-color: #252545;
    transform: translateY(-3px);
    box-shadow: 0 0 15px #444;
}

.stat-card.online {
    color: #f7f7f7;
}
.stat-card.pvp {
    color: #e400ff;
}
.stat-card.pk {
    color: #ff6666;
}
.nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

 
.clan-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  image-rendering: pixelated;
}
 
.l2-button {
    display: inline-block;
    background-image: url('../img/l2_button_bg.png'); /* ← вставь свой путь к фону */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    border: 2px solid rgba(156, 134, 74, 1); /* золотисто-темная рамка */
    box-shadow: inset 0 -1px 0 #d4a944;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    padding: 8px 20px;
     
    transition: all 0.25s ease; /* плавный переход */
    filter: brightness(1); /* базовая яркость */
    padding-bottom: 10px;
    border-radius: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #000;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
}
.l2-button:hover {
    filter: brightness(1.4); /* при наведении — свечение */
    box-shadow: 0 0 6px 2px #ffdf99; /* лёгкое внешнее свечение */
}
.dark-boks {
    
   
    padding: 30px;
    border-radius: 0px;
     
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
     
} 
.background {
    position: relative;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    
    height: 24px;
     
    padding-top: 2px;
    padding-left: 12px;
    padding-right: 3px;

    font-family: Tahoma, sans-serif;
    font-size: 8px; /* важно ↓ */
     
    color: #ffffff;
     
    text-shadow: 1px 1px 1px #000;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    border: 1px solid rgba(28, 34, 30, 1);
      
}
.background span,
.background div {
    height: 22px;
    font-family: Tahoma, sans-serif !important;
    font-size: 14px !important;
}
 .server-status-container {
    position: relative;
    display: flex;
    align-items: flex-start;
}
 

.server-status {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: rgba(37, 36, 36, 1);
    background-repeat: no-repeat;
    min-width: 190px;
     
    margin: 0;
    color: white;
    font-family: Tahoma, sans-serif;
    font-size: 16px;
    
}
.status-wrapper {
    margin-left: 115px;
    display: flex;
    align-items: stretch; /* Растягивает left-border по высоте server-status */
    margin-bottom: 15px;
}

.left-border {
    width: 24px; /* ширина PNG */
    background-image: url('../img/leftbar.png');
    background-repeat: no-repeat;
    background-size: contain; /* или 'cover' если нужно */
    background-position: left center;
}
.background {
    height: 24px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-bottom: 6px;
    font-size: 12px;
}
.chat-nick.admin { color: #ff5050; font-weight: bold; }
.chat-nick.mod { color: #50c0ff; font-style: italic; }
.chat-nick.player { color: #ffe1a1; }
.chat-nick.admin {
    color: #ff4d4d;
    font-weight: bold;
}
.chat-nick.mod {
    color: #4da6ff;
    font-style: italic;
}
.chat-nick.player {
    color: #ffe066;
}
.ping-text.error {
    color: #FF0000;
    
}
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 10px;
        background: url('../img/background.png') no-repeat center center fixed;
        background-size: cover;
        background-color: #000;
    }

    .content-wrapper,
    .dark-box,
    .section-title {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box;
        text-align: center;
    }
	.status-wrapper{
		margin-left:55px;
		margin-top:255px;
	}
    .chat-container,
    .chat-box-styled {
        max-height: 300px;
        overflow-y: auto;
        font-size: 14px;
        padding: 10px;
        margin: 0 auto;
        width: 95%;
        box-sizing: border-box;
    }

    .chat-messages {
        max-height: 200px;
        overflow-y: auto;
    }

    table {
        font-size: 14px;
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    button {
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    #login-status,
    #game-status,
    #ping,
    #online-count {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
}
