html, body {
    padding: 0;
    margin: 0;
    font-family: arial, serif;
    font-size: 20px;
    line-height: 1.4em;
}
textarea:focus,
input:focus {
    outline: none;
}

a, a:visited {
    color: #08c;
}
a:hover {
    color: #f00;
}
.clear {
    clear: both;
}
body {
    background: #eee;
}
.main {
    background: #fff;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    box-shadow: 1px 1px 3px #888;
}
.top {
    font-size: 18px;
    padding: 12px;
    float: right;
    border-radius: 8px;
}
.top a {
    text-decoration: none;
}
.top a.active, .top a:hover {
    color: #000;
    text-decoration: underline;
}
.top a.active {
    font-weight: bold;
}
.content {
    padding: 16px 0;
}
table {
    border-collapse: collapse;
}
table td,
table th {
    padding: 4px;
    margin: 0;
}
textarea, input[type=text], select {
    font-size: 20px;
    font-family: arial, serif;
    line-height: 1.4em;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}
img {
    max-width: 100%;
    box-sizing: border-box;
}
textarea.create {
    height: 700px; 
}
.input-title {
    padding: 8px 0;
}
.input-title input {
    font-size: 18px;
    line-height: 1em;
}
footer {
    color: #888;
    font-size: 16px;
    padding: 16px 0 8px 0;
}
.topimg {
    padding: 8px 0 0 0;
}
.topname {
    margin: 8px 0 0 0;
    float: left;
    font-size: 32px;
}
.topname a {
    color: #800;
    text-decoration: none;
    line-height: 1.2em;

}
.topname a:hover {
    border-bottom: 1px solid #000;
}
.max100 {
    width: 100%;
}
.red {
    color: #f00;
}
label.error input,
label.error textarea {
    border: 1px solid #c00;
}
h1, h2 {
    font-size: 32px;
    font-weight: normal;
    margin: 0;
    padding: 16px 0 16px 32px;
    line-height: 1.2em;
}
h1 {
    font-size: 32px;
}
h2 {
    font-size: 28px;
    padding: 0;
}
.category-name {
    color: #888;
    font-size: 16px;
    padding: 0 0 16px 0;
}
.body-content {
    text-indent: 32px;
}
h1.no-indent {
    padding-left: 0;
}
.body-content > div {
    padding: 4px 0;
}
.category-block {
    display: inline-block;
    width: 420px;
    padding: 0 0 32px 0;
    vertical-align: top;
}
.category-block h2 {
    font-weight: normal;
    font-size: 26px;
    margin: 0;
    padding: 8px 0;
    color: #8b5b89;
}
.category-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
}
.time-created {
    font-size: 16px;
    padding: 16px 0 4px 0;
    color: #aaa;
}
table.border td,
table.border th {
    border: 1px solid #ccc;
    padding: 8px;
}
table.border th {
    text-align: left;
    background: #eee;
}
/* ------------- СТИЛИЗАЦИЯ КНОПКИ --------------------- */
.btn {
    background-color: #0095ff;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system,system-ui,"Segoe UI","Liberation Sans",sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px 12px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}
.btn:hover,
.btn:focus {
    background-color: #07c;
}
.btn:focus {
    box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}
.btn:active {
    background-color: #0064bd;
    box-shadow: none;
}
.tiny {
    font-size: 16px;
}
.gray {
    color: #888;
}
.right {
    float: right;
}
table a {
    text-decoration: none;
}
table a:hover {
    text-decoration: underline;
}
table td.table-num-id {
    font-size: 18px;
    text-align: right;
    color: #888;
}
table td.table-date {
    font-size: 18px;
    color: #444;
    text-align: center;
}
.tabs {

}
.tabs .tab a {
    float: left;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    border-top: 2px solid transparent;
}
.tabs .tab a.active {
    background: #eee;
    border-top: 2px solid #888;
}
.tabs .tab a:hover {
    text-decoration: underline;
}
.tabs:after {
    content: "";
    clear: bottom;
    display: block;
}
a.read-more {
    color: #555;
    padding: 0 0 0 16px;
}
a.read-more:hover {
    color: #000;
}
.body-content .header {
    color: #888;
    padding: 0 0 16px 0;
}
#editor {
    border: 1px solid #eee;
    margin: 0 0 8px 0;
    padding: 8px;
    min-height: 400px;
}
.editor-control {
    background: #eee;
    padding: 8px;
}
@media (width <= 640px) {
    .body-content {
        text-indent: 0;
    }
    h1 {
        padding: 16px 0 16px 0;
    }
    .category-block {
        width: auto;
        max-width: 420px;
    }
}
.upload-back {
    width: 40px;
    height: 40px;
    opacity: 0;
    position: absolute;
}
.upload-button {
    float: left;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background: #eee;
    text-align: center;
    padding-top: 4px;
    border: 1px solid #888;
}