@font-face {
    font-family: 'CooperBlack';
    src: url('../fonts/Cooper_Black.eot');
    src: url('../fonts/Cooper_Black.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Cooper_Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSans';
    src: url('../fonts/NotoSans-Regular.eot');
    src: url('../fonts/NotoSans-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/NotoSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #ededed;
    background: url("bottom-left.png") no-repeat bottom left, url("bottom-right.png") no-repeat bottom right, url("top-right.png") no-repeat top right, url("body.gif") repeat top left;
    line-height: 1.3;
    margin: 0;
    padding: 20px 10px 0px 10px;
    font-family: NotoSans, "DejaVu Sans", Verdana, Arial, Helvetica, sans-serif;
    font-size: 90%;
    font-weight: 400;
    color: #444444;
    text-align: center;
}

#wrapper {
/*
    text-align: center;
*/
}

#pages {
    max-width: 1000px;
    padding-top: 3em;
    margin-left: auto;
    margin-right: auto;
}

* html div#pages { 
   width: expression( document.body.clientWidth > 999 ? "1000px" : "auto" ); /* sets max-width for IE */
}

p {
    padding: 0 0 10px 0;
}

h1 {
    font-size: 160%;
    padding: 0 0 20px 0;
}

a {
	text-decoration: none;
    color: #DE2B00;
}

header {
  text-align: center;
}

header h1 {
    position: absolute;
    text-indent:-99999px;
    display: none;
    visibility: hidden;
}

.box {
    display: -moz-inline-box;
    -moz-box-orient: vertical;
    display: inline-block;
    width:280px;
/*
    height:370px;
*/
    background-color: #ffffff;
    margin: 0.8em;
    margin-right: 5px;
    margin-bottom: 2em;
    vertical-align: top;
    text-align: center;
    overflow: hidden;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-shadow: 0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #ccc;
    -webkit-border-radius: 0px 20px 0px 20px;
    border-radius: 0px 20px 0px 20px;
    padding: 1em;
    padding-top: 2em;
}

.thumb {
    width: 200px;
/*
    height: 150px;
*/
    display: table-cell;
    vertical-align: middle; 
    padding-bottom: 2em;
    padding-left: 20px;;
}

.thumb * {
	vertical-align: middle;
}

.thumb img {
    -webkit-box-shadow:  0 0 2px 2px rgba(0, 0, 0, 0.1);
    -moz-box-shadow:  0 0 2px 2px rgba(0, 0, 0, 0.1);
    box-shadow:  0 0 2px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    border-radius: 0.4em;
/*
    display: block;
    margin-left: auto;
    margin-right: auto;
*/
}

.caption  a {
    color: #444;
}

.caption hr {
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.caption h3 {
    font-size: 140%;
    font-family: CooperBlack, Verdana, Arial, Helvetica, sans-serif;
    height: 2em;
}

.oneblock {
    margin-bottom: 1em;
}

.ads-mid {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-shadow: 0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #ccc;
    border-radius: 0.4em;
    display: block;
    padding: 1em;
    padding-top: 2em;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    margin-top: 2em;
    font-size: 90%;
    max-width: 748px;
    margin-right: auto;
    margin-left: auto;
}

* html div.ads-mid { 
   width: expression( document.body.clientWidth > 747 ? "748px" : "auto" ); /* sets max-width for IE */
}

.ads-728x90 {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-shadow: 0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    box-shadow:  0px 1px 4px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #ccc;
    border-radius: 0.4em;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    margin-right: auto;
    margin-left: auto;
    margin-top: 2em;
/*
    width: 748px;
    height: 110px;
*/
    padding: 10px;
}

@media screen and (max-width: 500px) {
	.ads-728x90 {
        width: 366px;
        height: 310px;
	}
}

@media screen and (min-width: 501px) and (max-width: 779px) {
	.ads-728x90 {
        width: 498px;
        height: 90px;
	}
}

@media screen and (min-width: 780px) {
	.ads-728x90 {
        width: 758px;
        height: 120px;
	}
}

.footer {
    margin-top: 4em;
    text-align: center;
    font-size: 0.9em;
    display: block;
    padding-bottom: 2em;
    position: relative;
}

.footer a:link, .footer a:visited { 
    padding: 1px 3px; 
    border-radius: 3px; 
}

.footer a:hover { 
    color: #fff; 
    background-color: #bbb;
    text-shadow: none; 
}

li {
  display: inline;
  margin-left: 1em;
  margin-right: 1em;
}

/* clearfix */
.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.clearfix {
/*
	display: inline-block;
*/
	display: block;
	clear: both;
}
 
html[xmlns] .clearfix {
	display: block;
}

* html .clearfix {
	height: 1%;
}

.img-responsive {
/*
  display: block;
*/
  max-width: 100%;
  height: auto;
}
