*{margin:0;padding:0;}
img, a img, a{border:none;outline: none;}
.clear{height:0;line-height:0;font-size:0;clear:both;}
body,html{
    background: url(/img/main/bg.jpg) 50% 0% no-repeat #000000;
	height:100%;
    overflow: hidden;
}
#header{
    z-index:200;
    height: 117px;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    background: url(/img/main/px.png) repeat;
}
#header_inner{
    z-index:202;
    position: relative;
    width: 960px;
    margin: 0 auto 0;
    height: 117px;
}

#menu{
    z-index:1500;
    position: relative;
    height: 117px;
    width: 630px;
    float: right;
}
#menu a{
	font: 16px/54px Arial;
    color: #ffffff;
    text-decoration: none;
    display: block;
    height: 54px;
    padding: 57px 0 0;
    width: 126px;
    text-align: center;
    float: left;
}
#menu a:hover{
    border-bottom: 6px solid #ed1c24;
    background: #ffffff;
    color: #000000;
}
#menu a.sub:hover,#menu a.active.sub:hover{
    border-bottom: 6px solid #ffffff;
}

#menu .first_level{
}
#header .second_level_wrapper{
    background: #ffffff;
    border-bottom: 6px solid #ed1c24;
    padding: 0 0 20px 0;
    z-index:1000;
    position: relative;
    width: 100%;
    display: none;
}
#header .second_level{
    padding: 40px 0 25px;
    position: relative;
    overflow: hidden;
    width: 960px;
    margin: 0 auto;
}

a#logo{
    width: 106px;
    height: 67px;
    margin-top: 24px;
    float: left;
    display: block;
}

.catgroup{
    float: left;
    padding: 10px;
    width: 140px;
    height: 160px;
    text-align: center;
}
.catgroup .img{
    width: 140px;
    height: 110px;
    position: relative;
    text-align: center;
}
.catgroup .img img{
/*    position: absolute;
    bottom: 0;
    left: 0;*/
}
.catgroup a {
    border-bottom: 1px solid #000000;
    color: #000000;
    font: 14px/14px Arial;
    text-decoration: none;
}


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

html, button, input, select, textarea { font-family: sans-serif; color: #222; }

body { margin: 0; font-size: 1em; line-height: 1.4; }

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }

a:hover, a:active { outline: 0; }




/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }



/* =============================================================================
   Chrome Frame Prompt
   ========================================================================== */

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }


/* ==|== primary styles =====================================================
   Author:
   ========================================================================== */

html, #main {
  height: 100%;
}

body {
  font-family: Arial, "Liberation Sans", sans-serif;
  color: #fff8f0;
  min-height: 100%;
  font-size: 13px;

  background-image: url(/img/mainbg.jpg);
  overflow-y: scroll;

  background-position: 50% 0%;
  background-repeat: no-repeat;
}

body:after {
  content: "";
  background: url(/img/mainbg.png) repeat;
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#main {
  width: 80%;
  max-width: 960px;
  margin: 0 auto;
}


/* ==|== media queries ======================================================
   EXAMPLE Media Query for Responsive Design.
   This example overrides the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}



/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { border:0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}