/* Global/common styles */

html {
    background: url('background.png') repeat-x top left;
}

body {
    width: 90%;
    margin: 0 auto;
    padding: 0;
    min-height: 622px;
    background: url('shadow_left.png') no-repeat,
                url('shadow_right.png') no-repeat top right;
    font: 16px 'URW Gothic L', Helvetica, Verdana, Arial, sans;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0 0 15px 0;
}

h1 {
    font-size: 28px;
}

p {
    line-height: 24px;
}

img {
    border: none;
}

a {
    color: #144ea6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 a, h2 a, h3 a {
    text-decoration: underline;
}

/* Header styles */

header {
    display: block;
    height: 120px;
    position: relative;
}

header h1 {
    margin: 0;
    position: absolute;
    top: 25px;
    left: 42px;
    font-size: 30px;
}

header h1 a {
    color: white;
    text-decoration: none !important;
}

header p {
    color: white;
    margin: 0;
    position: absolute;
    top: 67px;
    left: 70px;
    line-height: normal;
}

/* Main navigation (tabs) */

nav#main_menu {
    display: block;
    margin: 0;
}

nav#main_menu h2 {
    display: none;
}

nav#main_menu ul {
    margin: 0;
    padding: 0 42px;
    list-style: none;
}

nav#main_menu ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    height: 36px;
}

nav#main_menu ul li a {
    display: inline-block;
    padding: 7px 20px 0 20px;
    height: 29px;
    text-decoration: none;
    color: black;
}

nav#main_menu ul li a:hover {
    text-decoration: underline;
}

nav#main_menu ul li.selected {
    background: url('tab_left.png') no-repeat;
    padding-top: 2px;
}

nav#main_menu ul li.selected a {
    background: url('tab_right.png') no-repeat top right;
    font-weight: bold;
    color: white;
    position: relative;
    height: 31px;
    padding-top: 5px;
    top: -2px;
}

nav#main_menu ul li.selected a:hover {
    text-decoration: none;
}

/* Sidebar */

aside {
    display: block;
    width: 220px;
    float: right;
    background: #dbe9ff url('sidebar.png') no-repeat;
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    padding: 9px 15px 0 15px;
    margin-right: 42px;
}

aside h2 {
    font-size: 20px;
    color: #336;
}

aside ul {
    margin-left: 0;
    padding-left: 15px;
}

aside nav ul {
    list-style: none;
    padding: 0;
}

aside nav li {
    margin: 0;
    padding: 6px 0 6px 0;
    border-bottom: 1px dotted #336;
}

aside nav li.selected {
    font-weight: bold;
}

aside #links img {
    display: block;
    margin: 0 auto;
}

aside #tagcloud {
    text-align: center;
}

/* Main Content */

section#main {
    display: block;
    padding: 15px 310px 24px 42px;
}

/* Pagenav */

#pagenav {
    clear: left;
    text-align: center;
    margin: 0;
    height: 24px;
}

#pagenav .previous {
    float: left;
    text-align: left;
    width: 300px;
}

#pagenav .next {
    float: right;
    text-align: right;
    width: 300px;
}

/* Gallery */

#gallery ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#gallery li {
    display: block;
    width: 25%;
    height: 170px;
    margin: 0;
    padding: 0;
    float: left;
    text-align: center;
}

#gallery li img {
    display: inline-block;
    margin: 0 auto;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
}

#gallery li span {
    display: block;
    text-align: center;
}

#photo {
    overflow-x: auto;
}

/* Footer */

footer {
    display: block;
}

/* Fonts, using fontspring syntax, see: http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax */

@font-face {
    font-family: 'URW Gothic L';
    font-style: normal;
    font-weight: normal;
    src: url('../../fonts/URWGothicL-Book.eot');
    src: local('URW Gothic L Book'),
         local('URWGothicLBook'),
         url('../../fonts/URWGothicL-Book.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/URWGothicL-Book.woff') format('woff'),
         url('../../fonts/URWGothicL-Book.ttf') format('truetype'),
         url('../../fonts/URWGothicL-Book.svg#URWGothicLBook') format('svg');
}

@font-face {
    font-family: 'URW Gothic L';
    font-style: normal;
    font-weight: bold;
    src: url('../../fonts/URWGothicL-Demi.eot');
    src: local('URW Gothic L Demibold'),
         local('URWGothicLDemibold'),
         url('../../fonts/URWGothicL-Demi.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/URWGothicL-Demi.woff') format('woff'),
         url('../../fonts/URWGothicL-Demi.ttf') format('truetype'),
         url('../../fonts/URWGothicL-Demi.svg#URWGothicLDemibold') format('svg');
}

@font-face {
    font-family: 'URW Gothic L';
    font-style: oblique;
    font-weight: normal;
    src: url('../../fonts/URWGothicL-BookObli.eot');
    src: local('URW Gothic L Book Oblique'),
         local('URWGothicLBookOblique'),
         url('../../fonts/URWGothicL-BookObli.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/URWGothicL-BookObli.woff') format('woff'),
         url('../../fonts/URWGothicL-BookObli.ttf') format('truetype'),
         url('../../fonts/URWGothicL-BookObli.svg#URWGothicLBook') format('svg');
}

@font-face {
    font-family: 'URW Gothic L';
    font-style: oblique;
    font-weight: bold;
    src: url('../../fonts/URWGothicL-DemiObli.eot');
    src: local('URW Gothic L Demibold Oblique'),
         local('URWGothicLDemiboldOblique'),
         url('../../fonts/URWGothicL-DemiObli.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/URWGothicL-DemiObli.woff') format('woff'),
         url('../../fonts/URWGothicL-DemiObli.ttf') format('truetype'),
         url('../../fonts/URWGothicL-DemiObli.svg#URWGothicLBook') format('svg');
}
