body {
    font-family: 'Minecraft', monospace;
    text-align: justify;
}

h1 {
    text-align: center;
    color: black;
}

h3 {
    text-align: center;
    color: black;
}

.pixel-button {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #ff5252;
    border: none;
    border-radius: 0;
    position: relative;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
            4px 0 0 0 #000,
            0 4px 0 0 #000,
            4px 4px 0 0 #000,
            0 0 0 4px #000,
            4px 0 0 4px #000,
            0 4px 0 4px #000,
            4px 4px 0 4px #000;
    transition: all 0.1s ease;
    margin: 8px;

    min-width: 120px;
}

/* Стиль для контейнера выхода */
.logout-pixel-div {
    background-color: #fff;
    border: none;
    position: relative;
    margin: 20px auto;
    padding: 15px;
    color: #333;
    box-shadow:
            2px 0 0 0 #000,
            0 2px 0 0 #000,
            2px 2px 0 0 #000,
            0 0 0 2px #000,
            2px 0 0 2px #000,
            0 2px 0 2px #000,
            2px 2px 0 2px #000;
    image-rendering: pixelated;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Добавлено для вертикального центрирования */
    gap: 15px;
    max-width: 300px;
}

/* Стиль для кнопки выхода с центрированным текстом */
.logout-pixel-button {
    display: inline-flex; /* Изменено на flex для лучшего центрирования */
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #ff5252;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
            4px 0 0 0 #000,
            0 4px 0 0 #000,
            4px 4px 0 0 #000,
            0 0 0 4px #000,
            4px 0 0 4px #000,
            0 4px 0 4px #000,
            4px 4px 0 4px #000;
    transition: all 0.1s ease;
    margin: 8px;
    min-width: 120px;
    text-decoration: none;
    text-align: center; /* Дополнительное центрирование текста */
    width: 60%; /* Занимает всю доступную ширину */
}

.pixel-button:hover {
    background-color: #ff6b6b;
    transform: translate(2px, 2px);
    box-shadow:
            2px 0 0 0 #000,
            0 2px 0 0 #000,
            2px 2px 0 0 #000,
            0 0 0 2px #000,
            2px 0 0 2px #000,
            0 2px 0 2px #000,
            2px 2px 0 2px #000;
}

.pixel-button:active {
    background-color: #ff3333;
    transform: translate(4px, 4px);
    box-shadow:
            0 0 0 0 #000,
            0 0 0 0 #000,
            0 0 0 0 #000,
            0 0 0 2px #000,
            0 0 0 2px #000,
            0 0 0 2px #000,
            0 0 0 2px #000;
    margin-top: 10px;
}

.pixel-input {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    border: none;
    border-radius: 0;
    position: relative;
    box-shadow:
            4px 0 0 0 #000,
            0 4px 0 0 #000,
            4px 4px 0 0 #000,
            0 0 0 4px #000,
            4px 0 0 4px #000,
            0 4px 0 4px #000,
            4px 4px 0 4px #000;
    margin: 8px;
    outline: none;
    width: 80%; /* Чтобы инпуты не растягивались на всю ширину */
    box-sizing: border-box; /* Чтобы padding не влиял на ширину */
}

.pixel-input:focus {
    background-color: #ffffa0;
    transform: translate(2px, 2px);
    box-shadow:
            2px 0 0 0 #000,
            0 2px 0 0 #000,
            2px 2px 0 0 #000,
            0 0 0 2px #000,
            2px 0 0 2px #000,
            0 2px 0 2px #000,
            2px 2px 0 2px #000;
}

.pixel-div {
    background-color: #fff;
    border: none;
    position: relative;
    margin: 20px auto;
    padding: 15px;
    color: #333;
    box-shadow:
            2px 0 0 0 #000,
            0 2px 0 0 #000,
            2px 2px 0 0 #000,
            0 0 0 2px #000,
            2px 0 0 2px #000,
            0 2px 0 2px #000,
            2px 2px 0 2px #000;
    image-rendering: pixelated;

    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование элементов по горизонтали */

    gap: 15px; /* Расстояние между элементами */
    max-width: 300px; /* Опционально: ограничение ширины */
}

.pixel-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем элементы по горизонтали */
    gap: 15px; /* Отступы между элементами */
    width: 100%;
}

.pixel-textarea {
    /* Размеры и отступы */
    width: 90%;
    min-height: 300px;
    padding: 10px;

    /* Пиксельный стиль */
    font-family: 'Minecraft', monospace; /* Моноширинный шрифт для пиксельного вида */
    font-size: 16px;
    line-height: 1;
    color: #000;
    background-color: #fff;

    /* Границы в пиксельном стиле */
    border: 4px solid #000;
    box-shadow:
            2px 2px 0 #000,
            inset 4px 4px 0 #ccc;

    /* Убираем стандартное оформление */
    outline: none;
    resize: none; /* Запрещаем изменение размера */

    /* Анимация при фокусе */
    transition: all 0.1s;
}

.pixel-div-textarea {
    background-color: #fff;
    border: none;
    position: relative;
    margin: 20px auto;
    padding: 15px;
    color: #333;
    box-shadow:
            2px 0 0 0 #000,
            0 2px 0 0 #000,
            2px 2px 0 0 #000,
            0 0 0 2px #000,
            2px 0 0 2px #000,
            0 2px 0 2px #000,
            2px 2px 0 2px #000;
    image-rendering: pixelated;

    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование элементов по горизонтали */

    gap: 15px; /* Расстояние между элементами */
    max-width: 600px; /* Опционально: ограничение ширины */
    min-height: 800px;
}

@media (max-width: 333px) {

    .pixel-div-textarea {
        box-shadow: none;
    }

    .pixel-div-textarea:hover {
        transform: none;
        box-shadow: none;
    }

}

.success-message {
    font-family: 'Minecraft', monospace; /* Моноширинный шрифт для пиксельного вида */
    font-size: 16px;
    color: green;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid green;
    background-color: #f0fff0;
}

.error-message {
    font-family: 'Minecraft', monospace; /* Моноширинный шрифт для пиксельного вида */
    font-size: 16px;
    color: red;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid red;
    background-color: #fff0f0;
}

.pixel-div-message {
    background-color: #fff;
    border: none;
    position: relative;
    margin: 20px auto;
    padding: 15px;
    color: #333;

    image-rendering: pixelated;

    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование элементов по горизонтали */

    gap: 15px; /* Расстояние между элементами */
}

.pixel-form-message {

    align-items: center; /* Центрируем элементы по горизонтали */
    gap: 15px; /* Отступы между элементами */
    width: 100%;
}