/* Общая стилизация */
.body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #f6eedf;
    color: #3c2c1a;
}

/* Хедер */
.header {
    background-color: #5a3b1e;
    color: #f6eedf;
    padding: 15px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.nav {
    margin-top: 5px;
}

.nav a {
    color: #f6eedf;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

/* Основная раскладка */
.layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Левый и правый блоки */
.sidebar, .right-sidebar {
    width: 140px;
    padding: 15px;
    background-color: #d9be9c;
    font-size: 14px;
    color: #2e1d10;
}

.sidebar h3, .right-sidebar h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

/* Центр */
.content {
    flex: 1;
    padding: 20px;
    background-color: #fef9ef;
}
.battle-log-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0 30px 0;
    text-align: center;
    min-height: 60vh; /* чтобы не было совсем сжато */
    background: rgba(255,255,255,0.96); /* опционально — для выделения */
    border-radius: 12px; /* опционально — скругления */
    box-shadow: 0 2px 16px rgba(0,0,0,0.05); /* лёгкая тень */
}

/* Прогресс-бары */
.stat-block {
    margin-bottom: 10px;
}

.stat-block strong {
    display: block;
    margin-bottom: 2px;
    color: #422c1e;
}

.progress-bar {
    background-color: #e0cda9;
    height: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    transition: width 0.3s;
}

/* Цвета баров */
.hp-color { background-color: #e74c3c; }
.energy-color { background-color: #f1c40f; }
.mana-color { background-color: #3498db; }
.stamina-color { background-color: #2ecc71; }

/* Кнопки в сетке */
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.button {
    display: block;
    background-color: #8b5a2b;
    color: #fff8e1;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #6d4322;
}

/* Футер */
.footer {
    background-color: #5a3b1e;
    color: #f6eedf;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

/* Медиа */
@media screen and (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    .sidebar, .right-sidebar {
        width: 100%;
    }
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

    .right-sidebar {
        padding: 10px;
        background-color: #222;
        border-left: 2px solid #555;
        height: 100%;
        overflow-y: auto;
        color: #fff;
        font-family: 'MedievalSharp', serif;
    }
    
    .right-sidebar h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: gold;
    }
    
    .right-sidebar ul.online-users {
        list-style: none;
        padding-left: 0;
    }
    .right-sidebar ul.online-users li {
        margin-bottom: 5px;
        font-size: 14px;
        border-bottom: 1px solid #444;
        padding-bottom: 4px;
    }

    .form-container {
        background: url('../images/parchment-bg.jpg') repeat;
        border: 2px solid #6d4c41;
        border-radius: 10px;
        padding:  20px;
        max-width: 400px;
        margin: 30px auto;
        box-shadow: 0 0 10px #000;
        color: #3e2723;
        font-family: 'Georgia' , serif;
    }
    
    .form-container h2 {
        text-align: center;
        margin-bottom: 15px;
    }
    .form-container input[type="text"],
    .form-container input[type="password"],
    .form-container input[type="number"],
    .form-container select {
        width: 100%;
        padding: 10px;
        margin-bottom: 12px;
        border: 1px solid #8d6e63;
        border-radius: 6px;
        background-color: #3e2723;
        font-size: 16px;
    }
    
    .form-container input[type="submit"] {
        background: linear-gradient(to bottom, #8d6e63, #5d4037);
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 17px;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .form-container
    input[type"submit"]:hover {
        background: linear-gradient(to
        bottom, #a1887f, #6d4c41);
    }
 
