html {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

header {
    display: block;
}

header img {
    display: block;
    width: 100%;
}

menu {
    display: block;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    background: #F0D2AE;
    color: #646663;
    margin: 0 0 10px 0;
    padding: 0;
}

menu ul {
    display: block;
    list-style: none;
    height: 40px;
    /*width: 1000px;*/
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

menu ul li {
    padding: 3px;
    display: inline-block;
    text-align: center;
}

menu ul li a {
    text-decoration: none;
    color: #646663;
}

menu ul li a:hover {
    text-decoration: underline;

}

footer_wrapper {
    display: block;
    margin-top: auto;
    background: #646663;
    color: #F0D2AE;
    margin-top: 20px;
}

.footer {
    display: block;
    width: 1000px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 20px 10px;
}

.footer a {
    color: #F0D2AE;
}

.footer a:hover {
    text-decoration: none;
}


div.block_item {
    padding: 10px 10px;
    background: #f2efef;
    margin: 0;
}

div.block_item:nth-child(even) {
    padding: 10px 10px;
    background: #fbf9f9;
    margin: 0;
}

div.block_item textarea {
    width: 100%;
    height: 80px;
}

div.block_item h4 {
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 20px;

}

div.block_item_controll {
    vertical-align: middle;
    line-height: 30px;
    height: 30px;
    padding: 5px 0;

}


div.block_item_controll a:hover {
    background: #cec2be;
}

div.block_item .align-right {
    display: block;
    float: right;
    width: 200px;
    text-align: right;
}

form.create_new_block {
    display: block;
    color: #000;
    font-size: 14px;
    height: 60px;
    background: #f2efef;
    padding: 5px 15px;
    margin: 20px 0 10px;
}

form.create_new_block select {
    height: 30px;
    width: 150px;
    margin-left: 15px;
}

form.create_new_block button {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: #A7948E;
    padding: 3px;
    border: none;
    margin-top: -2px;
}

div.content {
    flex: 1;
    padding: 20px 10px;
    display: block;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
}

div.content .text_block {
    display: block;
    width: 100%;
    margin: 0 0 20px 0;
}

.content h1 {
    text-align: center;
}

p.page_fields {}

p.page_fields label {
    display: inline-block;
    width: 180px;
    line-height: 22px;
    vertical-align: middle;
    padding-right: 15px;
}

p.page_fields input {
    display: inline-block;
    width: 180px;
    line-height: 22px;
    vertical-align: middle;
}

p.page_fields textarea {
    display: inline-block;
    width: 100%;
    min-height: 80px;
}

input[type="submit"] {
    border: none;
    height: 50px;
    width: 150px;
    padding: 5px 15px;
    line-height: 40px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    background: #DEB192;
    color: #fff;
    vertical-align: middle;
}

input[type="submit"]:hover {
    background: #F0D2AE;
}

div.content table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1000px;
}

div.content table tr {
    background: #f2efef;
    margin: 0;
}


div.content table tr:nth-child(even) {
    background: #fbf9f9;
}

div.content table tr td,
div.content table tr th {
    padding: 5px 10px;
    border-left: #fff 2px solid;
}

div.content table tr td a {
    text-decoration: none;
    color: #646663;
}

div.content table tr td a:hover {
    text-decoration: underline;
}

div.block_item_controll a,
td a.pic_button {
    text-decoration: none;
    color: #fff !important;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    background: #A7948E;
    padding: 3px;
}

a.create_button {
    border: none;
    height: 50px;
    width: 200px;
    padding: 10px 20px;
    line-height: 40px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    background: #DEB192;
    color: #fff;
    vertical-align: middle;
    text-decoration: none;
}

a.create_button:hover {
    background: #F0D2AE;
}

input.copy_input {
    padding: 5px 10px;
}

.login_screen_wrapper {
    width: 100%;
    height: 300px;
    display: block;
    position: fixed;
    top: 50%;
    text-align: center;
}

form.login_screen {
    display: inline-block;
    height: 300px;
    width: 400px;
    padding: 20px 30px;
    border: #cdcfcc 1px solid;
    text-align: center;
    margin: -200px 0 0 0;
}

form.login_screen h2 {
    color: #646663;
}

form.login_screen input {
    font-size: 16px;
    padding: 5px 10px;
}

body.login_page {}