/*** two-column layout ***/

body, html {
    margin:0;
    padding:0;
    background: url(../img/stripes.gif) repeat top left;
    background-attachment: fixed;
    color:#000;
}
    
body { 
  min-width:800px;
}

#wrap {
    background:#fff;
    margin:0 auto;
    width:800px;
}

#header {
    background: url(../img/head.jpg) no-repeat top;
    width: 800px;
    height: 212px;
}

#nav {
    padding: 10px;
    font-family: verdana, arial, sans-serif;
    font-size: 10px;
    color: white;
    float:left;
}

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

#nav li{
    display:inline;
    margin:0;
    padding:0;
}

#nav a {
    color: white;
}   

#login {
    float:right;
    margin-right: 5px;
    margin-top: 5px;
}

#login a {
    padding: 5px;
    font-family: verdana, arial, sans-serif;
    font-size: 10px;
    color: white;
}   

#login input {
    border: 1px solid transparent;
    background-color: transparent;
    height:16px;
    width:80px;
    color:white;
    margin-right:5px;
}
 
#main {
    position: relative;
    top: -50px;

    background:#fff;
    float:left;
    width:450px;
    
    font-family: verdana, arial, sans-serif;
    font-size: 10px;
    line-height: 1.5em;
    padding-left: 20px;
    padding-right: 20px;
}

#sidebar {
    position: relative;
    top: -48px;

    border-left: 1px dotted black;
    padding-left: 20px;
    padding-right: 20px;
    float:right;
    width:268px;

    font-family: verdana, arial, sans-serif;
    font-size: 10px;
    line-height: 1.5em;
}

#single {
    position: relative;
    top: -50px;

    width:760px;
    
    font-family: verdana, arial, sans-serif;
    font-size: 10px;
    line-height: 1.5em;
    
    padding-left: 20px;
}

    
#footer {
    clear:both;
    background: black;
    font-family: verdana, arial, sans-serif;
    font-size: 9px;
    color: white;
    text-align: right;
    vertical-align: middle;
}

#footer a {
    color: white;
} 

#footer p {
    padding:5px;
    margin:0;
}

/*** general styles ***/  

img {
    vertical-align: text-bottom;
    border: none;
}

h1, h2, h3 {
  font-family: Verdana, Arial, sans-serif;
  color: #14449c;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 5px;
  padding-top: 5px;
}

a {
  border: none;
  text-decoration: none;
  color: #14449c;
}

a:hover {
  text-decoration: underline;
}

p {
    padding-bottom: 8px;
}

table th {
    background-color: #14449c;
    color: white;
    text-align: left;
    padding-left: 5px;
}

table td {
    text-align: left;
    padding-left: 5px;
}

pre {
 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
 white-space: pre-wrap; /* css-3 */
 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
 white-space: -pre-wrap; /* Opera 4-6 */
 white-space: -o-pre-wrap; /* Opera 7 */
 /* width: 99%; */
 word-wrap: break-word; /* Internet Explorer 5.5+ */
}

/*** my changing photo ***/
#photo {
    border: 1px solid black;
    margin-right: 50px;
    width: 137px;
    height: 190px;
    background: url(../img/tom.jpg) no-repeat top left;
    float: right;
}

#photo:hover {
    background: url(../img/tom2.jpg) no-repeat top left;
}  

.error {
    color:red;
    font-weight:bold;
}  

.preloadImg {
    display: none;
}

/*** projects ***/

.float {
    float: left;
    padding-right: 15px;
}

.clear {
    clear: both;
    padding-bottom: 20px;
}


/*** announcements ***/

.announcement {
    padding-bottom: 12px;
}

.announcement .title {
    font-weight: bold;
    padding-bottom: 5px;
}

/*** publications ***/

.publication {
    padding-bottom: 10px;
}

.publication .title {
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
}

.publication .authors {
    margin-left: 18px;
}

.publication .citation {
    margin-left: 18px;
}

.publication .download {
    margin-left: 18px;
    font-size: 9px;
}

.bibtex {
    font-family: Courier, "Courier New", monospace;
    font-size: 10px; 
}

/*** snippets ***/

.snippet {
    padding-bottom: 10px;
}

.snippet a {
    color: black;
}

.snippet .explanation {
    font-size: 10px;
    padding-top: 10px;
}

.snippet .code {
    font-size: 12px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.snippet .title {
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
}

.snippet .description {
    margin-left: 18px;
}

.snippet .counter {
    color: gray;
    font-size: 9px;
}


