/*  HTML5 ✰ Boilerplate  */
html, body, h1, h2, h3, h4, p, span, small,
ul, li, div, img, figure,
header, section, time {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    letter-spacing:normal;
    word-spacing:normal;
}
header, section, footer { display:block; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; letter-spacing:normal; word-spacing:normal; }
body { font:13px/1.231 sans-serif; *font-size:small; }
h1,h2,h3,h4 { font-weight: bold; }
::-moz-selection{ background: #069; color:#fff; text-shadow: none; }
::selection { background:#069; color:#fff; text-shadow: none; } 
a:link { -webkit-tap-highlight-color: #FF5E99; }
.clearfix:before, .clearfix:after {  content: "\0020"; display: block; height: 0; visibility: hidden;	 } 
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }


/* Primary Styles */
html {
    background-color: #069;
    background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 800, from(rgba(0,0,0,0)), to(rgba(0,0,0,.8)));
    background-image: -webkit-radial-gradient(center 45deg, circle farthest-side, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 150%);
    background-image:    -moz-radial-gradient(center 45deg, circle farthest-side, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 150%);
    background-image:      -o-radial-gradient(center 45deg, circle farthest-side, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 150%);
    background-image:         radial-gradient(center 45deg, circle farthest-side, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 150%);
    background-repeat: repeat;
    overflow-y: scroll;
}
body {
    background-color: #EEE;
    color: #333;
    font-family: Verdana;
    margin: 10px auto;
    padding: 30px 0 20px;
    width: 480px;
    -webkit-box-shadow: 6px 20px 20px rgba(0, 0, 0, 0.5), -6px -20px 20px rgba(0, 0, 0, 0.5);
       -moz-box-shadow: 6px 20px 20px rgba(0, 0, 0, 0.5), -6px -20px 20px rgba(0, 0, 0, 0.5);
            box-shadow: 6px 20px 20px rgba(0, 0, 0, 0.5), -6px -20px 20px rgba(0, 0, 0, 0.5);
}
a, a:link, a:visited {
    text-decoration: none;
}
a:focus, a:hover, a:active {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    background-color: rgba(0, 102, 153, 0.85);
    color: #EEE;
    display: inline-block;
    font-family: 'Architects Daughter', cursive;
    font-style: normal;
    font-weight: normal;
    padding: 0 0.5em;
    text-shadow: 1px 1px 0 #333, -1px 1px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333;
}
h1 span, h2 span, h3 a, h4 a, h3 {
    color: #EEE;
}
h1 {
    font-size: 60px;
    padding: 0 10px;
    white-space: pre; /* for Opera */
    white-space: nowrap;
}
h2 {
    font-size: 50px;
    margin-top: 10px;
    padding-bottom: 5px;
}
h3 {
    background-color: transparent;
    border-bottom: 5px solid #069;
    display: block;
    float: left;
    font-size: 40px;
    margin-bottom: 10px;
    text-align: left;
    white-space: nowrap;
}
h4 {
    font-size: 197%;
    line-height: 1.5;
}

header {
    margin-bottom: 3em;
    text-align: center;
}
header, section, footer {
    padding: 0 20px;
}
section {
    margin-bottom: 20px;
}

p {
    clear: both;
    line-height: 1.5;
}
p a:link, p a:visited, p a:focus, p a:hover, p a:visited {
    color: #069;
}

ul {
    margin: 10px 0;
    text-align: center;
}
li {
    display: inline-block;
    margin: 10px auto;
    text-align: center;
    vertical-align: top;
    width: 410px;
}
li div {
    margin: 5px 0 0;
}
li p {
    clear: both;
    text-align: left;
}

figure a {
    display: inline-block;
    position: relative;
}
figure a:first-child {
  display: table;
  margin: 0 auto;
}
figure a:not(:first-child) {
    float: left;
    margin: 5px 5px 0 0;
}
figure a:not(:first-child) img {
    border-width: 2px;
    outline-color: #AAA;
    width: 100px;
}
figure img {
    background-color: #BBB;
    border: 4px solid #EEE;
    outline: 1px solid #444;
    padding: 1px;
}

footer {
    border-top: 5px solid #069;
    margin-left: 40px;
    margin-right: 40px;
    text-align: center;
}
footer[role="contentinfo"] h3 {
    display: none;
}
footer div {
    margin: 10px 0 0 -40px;
}
footer p {
    display: inline;
}
.intro {
  border-bottom: 1px solid #069;
  font-weight: bold;
  margin: 50px 0 20px;
}


/* IE */
.ie6 body,
.ie7 body,
.ie8 body {
    width: 80%;
}
.ie6 li,
.ie7 li,
.ie8 li {
    margin: 0 5px;
}
.ie6 h1, .ie6 h2, .ie6 h3, .ie6 h4, .ie6 li,
.ie7 h1, .ie7 h2, .ie7 h3, .ie7 h4, .ie7 li {
    display: inline;
}
.ie6 figure a,
.ie7 figure a {
    border: 1px solid #444;
}
.ie6 figure a:not(:first-child),
.ie7 figure a:not(:first-child) {
    border-color: #AAA;
}
.ie7 figure a:first-child img {
    width: 398px;
}


/*
 * Media queries for responsive design
 * These follow after primary styles so they will successfully override. 
 */
@media all and (min-device-width: 440px) {
  li {
      margin: 5px;
  }
}

@media all and (orientation:portrait) { 
  /* Style adjustments for portrait mode goes here */
  body {
/*      background-color: red;*/
      max-width: 960px;
      min-width: 480px;
      width: 80%;
  }
}

@media all and (orientation:landscape) { 
  /* Style adjustments for landscape mode goes here */
  body {
/*      background-color: yellow;*/
      max-width: 960px;
      min-width: 480px;
      width: 80%;
  }
}

/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome)  
   Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
  body {
/*      background-color: green;*/
      max-width: 480px;
      min-width: 480px;
      width: 480px;
  }
  
  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
     j.mp/textsizeadjust 
  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}