/* 
    Document   : normalize.css
    Created on : Sep 17, 2013, 9:45:31 AM
    Author     : fengmengru
    Description: Globally defined CSS styles
*/

/*Base style*/
html{
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body{
    margin: 0;
    font-size: 13px;
    line-height: 1.231;
}

body, button, input, select, textarea{
    color: #333333;
    font-family:Arial, Helvetica, sans-serif;
}

/*
 * HTML5 display definitions
 */
/* Correct `block` display not defined in IE 8/9. */
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary {
  display: block;
}
/* Correct `inline-block` display not defined in IE 8/9. */
audio, canvas, video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}
/* Prevent modern browsers from displaying `audio` without controls.
 Remove excess height in iOS 5 devices.*/
audio:not([controls]) {
  display: none;
  height: 0;
}
/* Address styling not present in IE 8/9. */
[hidden] { display: none;}

/*
 * Links
 */
a {color: #333333; text-decoration: none;}
a:visited {}
a:hover {color: #00388f; text-decoration: none;}
a:active {}

a:focus, a:hover, a:active{ outline: 0;}

/*
 * Typography 印刷格式
 */
abbr[title] {   /* Address styling not present in IE 8/9, Safari 5, and Chrome. */
    border-bottom: 1px dotted;
}  

b,strong {   /* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
    font-weight: bold;
} 

blockquote {   /* Also indent the quote on both sides. */
   margin: 1.5em 30px; 
}

dfn {     /* Address styling not present in Safari 5 and Chrome. */
  font-style: italic;  
}

hr {  /* Address differences between Firefox and other browsers. */
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  border: 1px solid #666;
  padding-bottom: -1px;
  margin: 1.5em 0;
}

mark {  /* Address styling not present in IE 8/9. */
  background: #ff0;
  color: #000;
}

code, kbd, pre, samp, tt, var {   /* Correct font family set oddly in Safari 5 and Chrome. */
  font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
  _font-family: 'courier new', monospace;
  font-size: 1em;
  line-height: 1.5em;
}

pre {  /* Improve readability of pre-formatted text in all browsers. */
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}

q {  /* Set consistent quote types. */
  quotes: "\201C" "\201D" "\2018" "\2019";
}

p, pre { /* Set 1 unit of vertical rhythm on the top and bottom margin. */
  margin: 15px 0;
}

small {  /* Address inconsistent and variable font size in all browsers. */
  font-size: 80%;
}

sub, sup { /* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

h1 {
  /* Set the font-size and line-height while keeping a proper vertical rhythm. */
  font-size: 2em;
  line-height: 1.5em; /* 3rem / 2em = 1.5em */
  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
  margin-top: 0.75em; /* 1.5rem / 2em = .75em */
  margin-bottom: 0.75em;
}
h2 {
  font-size: 1.5em;
  line-height: 1.231; /* 3rem / 1.5em = 2em */
  margin-top: 1em; /* 1.5rem / 1.5em = 1em */
  margin-bottom: 1em;
}
h3 {
  font-size: 1.17em;
  line-height: 1.28205em; /* 1.5rem / 1.17em = 1.28205em */
  margin-top: 1.28205em;
  margin-bottom: 1.28205em;
}
h4 {
  font-size: 1em;
  line-height: 1.5em; /* 1.5rem / 1em = 1.5em */
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
h5 {
  font-size: 0.83em;
  line-height: 1.80723em; /* 1.5rem / 0.83em = 1.80723em */
  margin-top: 1.80723em;
  margin-bottom: 1.80723em;
}
h6 {
  font-size: 0.67em;
  line-height: 2.23881em; /* 1.5rem / 0.67em = 2.23881em */
  margin-top: 2.23881em;
  margin-bottom: 2.23881em;
}

/*
 *      Lists
 */
ul, li{
	margin: 0;
	padding: 0;
	list-style: none;
}

ol ol,
ol ul,
ul ol,
ul ul {
  margin: 0;  /* Turn off margins on nested lists. */
}

/*
 *      Embedded content and figures
 */
img{
    border: 0;
    -ms-interpolation-mode: bicubic;
    width: auto;
    height: auto;
}

svg:not(:root) {  /* Correct overflow displayed oddly in IE 9. */
  overflow: hidden;
}

figure {   /* Address margin not present in IE 8/9 and Safari 5. */
  margin: 0;
}

/*
 *       Forms
 */
form {  /* Correct margin displayed oddly in IE 6/7. */
  margin: 0;
}

/* Drupal-style form labels. */
label {
  display: block;
  font-weight: bold;
}

fieldset {  /* Define consistent border, margin, and padding. */
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  border: 0; /* Correct `color` not being inherited in IE 8/9. */
  padding: 0; /* Remove padding so people aren't caught out if they zero out fieldsets. */
  *margin-left: -7px; /* Correct alignment displayed oddly in IE 6/7. */ /* LTR */
}

/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 * 4. Improve appearance and consistency with IE 6/7.
 * 5. Keep form elements constrained in their containers.
 */
button,
input,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 2 */
  margin: 0; /* 3 */
  vertical-align: baseline; /* 4 */
  *vertical-align: middle; /* 4 */
  max-width: 100%; /* 5 */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; /* 5 */
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
button,
input {
  line-height: normal;
}

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
 *    Known issue: inner spacing remains in IE 6.
 */
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
  *overflow: visible; /* 4 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * 1. Address box sizing set to `content-box` in IE 8/9.
 * 2. Remove excess padding in IE 8/9.
 * 3. Remove excess padding in IE 7.
 *    Known issue: excess padding remains in IE 6.
 */
input[type="checkbox"],
input[type="radio"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
  *height: 13px; /* 3 */
  *width: 13px; /* 3 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */
input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Remove inner padding and border in Firefox 4+. */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */
textarea {
  overflow: auto; /* 1 */
  vertical-align: top; /* 2 */
}

/**
 * Tables
 */
table {
  /* Remove most spacing between table cells. */
  border-collapse: collapse;
  border-spacing: 0;
  /* Prevent cramped-looking tables */
  /* width: 100%; */
  /* Add vertical rhythm margins. */
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/**
 *  FONT FACE definitions
 */
@font-face {
  font-family: 'DinRegular';
  src: url('../fonts/din-webfont.eot');
  src: url('../fonts/din-webfont.eot?iefix') format('eot'),
       url('../fonts/din-webfont.woff') format('woff'),
       url('../fonts/din-webfont.ttf') format('truetype'),
       url('../fonts/edin-webfont.svg#webfontOkOndcij') format('svg');
  font-weight: normal;
  font-style: normal;
}
