body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
    background-image: url(../images/bg.jpg);
    margin: 0 auto;
    max-width: 1280px;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}
a {
    text-decoration: none;
    color: dodgerblue;
}
img {
    border: none;
    max-width: 100%;
    height: auto;
}
table {
    margin: auto;
    border-spacing: 0 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
}
th {
    padding: 10px 20px;
    background: #56433D;
    color: #F9C941;
    border-right: 2px solid;
}

td {
    padding: 10px;
    text-align: center;
    border-top: 2px solid #56433D;
    border-bottom: 2px solid #56433D;
    border-right: 2px solid #56433D;
    border-left: 2px solid #56433D;
    background: #d8d8d8;
}

p {
    text-align: center;
    font-size: 12px;
}
h1 {
    font-size: 150%;
    text-align: center;
}
h2 {
    font-size: 130%;
    text-align: center;
}
h3 {
    font-size: 110%;
    text-align: center;
}
.white {
    color: white;
}
.red {
    color: red;
    font-weight: bold;
}
.redbg {
    background: #c00;
    font-style: italic;
    font-size: 120%;
    color: white;
}
.highcenter {
    font-size: 130%;
    text-align: center;
}
/* header */
header {
    border: solid red;
}
header p {
    text-transform: uppercase;
    text-align: center;
    font-size: 150%;
}
header p.big {
    text-transform: none;
    font-size: 200%;
}
header p.small {
    text-transform: none;
    font-size: 75%;
}
#logo {
    float: left;
}
/* nav */
.topnav {
    background-color: #333;
    overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
/* Add an active class to highlight the current page */
.active {
    background-color: #4CAF50;
    color: white;
}
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}
/* Dropdown container - needed to position the dropdown content */
.dropdown {
    float: left;
    overflow: hidden;
}
/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}
/* Style the dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
}
/* Style the links inside the dropdown */
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #555;
    color: white;
}
/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
    display: block;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
}
.topnav a.icon {
    float: right;
    display: block;
}
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.topnav.responsive {
    position: relative;
}
.topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
}
.topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
}
.topnav.responsive .dropdown {
    float: none;
}
.topnav.responsive .dropdown-content {
    position: relative;
}
.topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
}
}
/* main */
main {
    padding: 1em;
    text-align: center;
    border: solid red;
}
article p {
    font-size: 110%;
}
article ul {
    list-style-position: inside;
}
/* footer */
footer {
    border: solid red;
    border-top: solid red;
    text-align: center;
    font-size: 70%;
}
footer a {
    text-decoration: none;
}
footer a:hover {
    color: red;
}

footer p.menu {
	text-transform: uppercase;
}

/* yandex */	
.ya-page_js_yes .ya-site-form_inited_no {
    display: none;
}
.border {
    list-style: none;
    padding: 0;
}
.border li {
    font-family: "Trebuchet MS", "Lucida Sans";
    padding: 7px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 10px solid #f05d22;
    box-shadow: 2px -2px 5px 0 rgba(0,0,0,.1),  -2px -2px 5px 0 rgba(0,0,0,.1),  2px 2px 5px 0 rgba(0,0,0,.1),  -2px 2px 5px 0 rgba(0,0,0,.1);
    font-size: 20px;
    letter-spacing: 2px;
    transition: 0.3s all linear;
}
.border li:nth-child(2) {
    border-color: #8bc63e;
}
.border li:nth-child(3) {
    border-color: #fcba30;
}
.border li:nth-child(4) {
    border-color: #1ccfc9;
}
.border li:nth-child(5) {
    border-color: #493224;
}
.border li:hover {
    border-left: 10px solid transparent;
}
.border li:nth-child(1):hover {
    border-right: 10px solid #f05d22;
}
.border li:nth-child(2):hover {
    border-right: 10px solid #8bc63e;
}
.border li:nth-child(3):hover {
    border-right: 10px solid #fcba30;
}
.border li:nth-child(4):hover {
    border-right: 10px solid #1ccfc9;
}
.border li:nth-child(5):hover {
    border-right: 10px solid #493224;
}
/* aside */
a.button {
    font-size: large;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.3em;
    color: black;
    background: #acc63e;
    opacity: 0.7;
    line-height: 2em;
}
a.button:hover {
    font-size: larger;
    font-weight: bolder;
    background: black;
    color: white;
}
a.button:active {
    background: green;
    color: white;
}
/* aside */

.ads {
    z-index: 3;
}
hr {
    border: none;
    margin: 30px 0;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='rgb(51, 122, 183)' stroke-width='1' class='squiggle' d='M0,3.5 c 5,0,5,-2,10,-2 s 5,2,10,2 c 5,0,5,-2,10,-2 s 5,2,10,2'/%3E%3C/svg%3E");
    background-position: 0 100%;
    background-repeat: repeat-x;
    padding-bottom: 4px;
    background-size: auto 4px;
}
