/* Основной стиль тела документа */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e6f7ff;
    color: #333;
    line-height: 1.6;
}

/* Шапка и навигация */
header {
    backdrop-filter: blur(10px); /* Полупрозрачность фона шапки */
    padding: 1rem;
}

/* Логотип с анимацией */
.logo {
    font-size: 24px;
    transform: translateY(-500%);
    animation: slideDown 1.5s forwards;
	transition: color 0.3s ease;
	cursor: pointer;
	font-weight: bold;
	text-decoration: none;
	color: black;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

/* Навигационная панель */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #505050;
}

/* Оформление разделов правил */
.content-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h2 {
    text-align: center;
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
}

h3 {
    text-align: center;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
}

h4 {
    text-align: center;
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
}

ol {
    list-style-type: decimal;
    padding-left: 20px;
}

section {
    margin-bottom: 2rem;
}

h1{
	text-align:center ;
}
ul, li {
	list-style: none; 
	text-align:center ;
}

li span.numbers {    
   font-weight: bold;
}

li span.numbers1 a {    
   font-weight: bold;
   color: blue;
}

img {
    max-width:600px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
	margin: 0 auto 10px auto;
    position: relative;
}


.image-container {
    width: 600px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    border-radius: 5px;
}

.image-container1 {
    width: 600px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

a {
    text-align: center;
    list-style: none; 
}

z {
    text-align: center;
    list-style: none; 
}

/* Таблица */
.commands-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.commands-container h1 {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.commands-container h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.commands-container a {
	list-style: none;
	text-decoration: none;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.commands-table th {
    background-color: #3498db;
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
}

.commands-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.commands-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.commands-table tr:hover {
    background-color: #f1f8ff;
}

.command-name {
    font-family: 'Courier New', monospace;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
    font-weight: bold;
}

.note {
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.note strong {
    color: #ff9800;
}

@media (max-width: 768px) {
    .commands-container {
        padding: 15px;
        margin: 10px;
    }
}

/* Стили для донат-листа */
.donate-list {
    max-width: 800px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.donate-item {
    border-bottom: 1px solid #eee;
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donate-item:last-child {
    border-bottom: none;
}

.donate-item h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    flex: 1;
}

.donate-item p {
    margin: 0;
    color: black;
    font-weight: bold;
    font-size: 20px;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 5px;
    min-width: 150px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .donate-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .donate-item h3 {
        font-size: 16px;
    }
    
    .donate-item p {
        min-width: auto;
        width: 100%;
    }
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
}

.parameter-table th {
    background: #333;
    color: white;
    padding: 10px;
    text-align: left;
}

.parameter-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.parameter-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Сетка действий */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 1rem 0;
}

.action-item {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.action-item code {
    background: #e0e0e0;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* Блоки с примерами команд */
.example-block {
    background: #f8f9fa;
    padding: 12px 15px;
    margin: 15px 0;
    font-family: monospace;
    border-radius: 0 5px 5px 0;
    line-height: 1.8;
}

.example-block code {
    padding: 2px 6px;
    border-radius: 4px;
	background: #e0e0e0;
    font-weight: bold;
}

.example-desc {
    color: #666;
    font-size: 0.95em;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}

/* Подсветка команд в тексте */
.inline-code {
    padding: 2px 6px;
    border-radius: 4px;
}


/* Заголовки третьего уровня */
h3 {
    margin: 25px 0 15px 0;
    color: #444;
    font-size: 1.3em;
}

/* Улучшение читаемости команд */
.command-name.highlight {
    background: #333;
    color: #ffd700;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.95em;
    display: inline-block;
}