html, button, input, select, textarea {
  color: #222;
}
body {
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #999;
  color: #a40000;
  text-shadow: none;
}
::selection {
  background: #999;
  color: #a40000;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  margin: 3em 0;
  padding: 0;
  background-image: -webkit-linear-gradient(left, #fff, #ccc, #fff);
  background-image: -moz-linear-gradient(left, #fff, #ccc, #fff);
  background-image: -ms-linear-gradient(left, #fff, #ccc, #fff);
  background-image: -o-linear-gradient(left, #fff, #ccc, #fff);
  width: 50%;
  left: 25%;
  position: relative;
  border: none;
}

img {
  vertical-align: middle;
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   General styles
   ========================================================================== */
html, body {
  height: 100%;
}
body {
  font-size: 16px;
  color: #555;
  -webkit-font-smoothing: antialiased;
}
body * {
  font-family: "Open Sans";
  /* font-family: "Lato"; */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
div.scroll {
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0px);
}
.navbar-default {
  border-color: transparent;
  background-color: #dadada;
}
.navbar-inverse .navbar-brand {
  font-weight: 400;
  font-size: 20px;
}
.navbar-toggle {
  border-color: transparent;
  border: 0px solid transparent;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
  background-color: #16a085;
  color: white;
}
.navbar-brand {
    padding: 5px;
}
ul.navbar-nav * {
  font-weight: 400;
}
a img {
  background: white;
}
.odd a img {
  background: #f5f5f5;
}
/* Titles */
h1, h2, h3, h4, h5, h6 {
  /* font-family: "Raleway"; */
  /* font-family: "Lato"; */
  font-family: "Open Sans";
  font-weight: 400;
  color: #333;
}
h2 {
  font-size: 36px;
  font-weight: 400;
  color: #777;
}
h3 {
  font-size: 26px;
}
/* Paragraph & Typographic */
p {
  line-height: 28px;
  margin-bottom: 20px;
}
p.large {
  font-size: 20px;
  margin-bottom: 50px;
}
.centered {
  text-align: center;
}
strong {
  font-weight: 700;
}
em {
  font-weight: 300;
}
pre {
  background: #ebebeb;
  border: none;
  font-family: "Monaco", monospace;
  font-size: 16px;
  color: #666;
  padding: 20px;
  line-height: 28px;
}
small {
  font-size: 12px;
}
blockquote, blockquote p {
  line-height: 28px;
  color: #999;
  font-weight: 300;
  font-style: italic;
}
blockquote {
  position: relative;
  margin: 0 0 40px -30px;
  padding-left: 30px;
  border-left: 5px solid #3498db;
}
blockquote cite {
  position: absolute;
  bottom: -25px;
  right: 0;
  font-size: 12px;
  font-style: italic;
  color: #333;
  font-weight: 300;
}
blockquote cite:before {
  content: "-- "
}
/* Images */
.overflow-image {
  margin-top: -65px;
}
/* Links */
a {
  color: #900;
  word-wrap: break-word;
  -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
  -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
  -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
  -o-transition: color 0.1s ease-in, background 0.1s ease-in;
  transition: color 0.1s ease-in, background 0.1s ease-in;
}
a:hover, a:focus {
  color: #c0392b;
  text-decoration: none;
  outline: 0;
}
a:before, a:after {
  -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
  -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
  -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
  -o-transition: color 0.1s ease-in, background 0.1s ease-in;
  transition: color 0.1s ease-in, background 0.1s ease-in;
}
/* ==========================================================================
   Wrap Sections
   ========================================================================== */

#headerarea {
  /* background: url(../img/header_bg.jpg) no-repeat center top; */
  background-color: #A00;
  margin-top: -50px;
  padding-top: 120px;
  text-align: center;
  background-attachment: relative;
  background-position: center center;
  /* min-height: 650px; */
  width: 100%;
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding-bottom: 20px;
}
#headerarea h1 {
  color: #ffffff;
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 3px;
}
#headerarea p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 1px;
}
#headerarea .icon {
  color: #ffffff;
  margin-top: 10px;
  padding-bottom: 10px;
  letter-spacing: 8px;
  font-size: 100px;
  font-weight: bold;
  /* text-shadow: 0px 20px 7px #3da8ae; */
  text-shadow: 0px 20px 7px #600;
}
#headerarea .btn {
  font-weight: 400;
  font-size: 20px;
  margin: 50px 0;
  background-color: #ffbf00;
  color: #fff;
  /* text-shadow: 0 0 4px #bf9004; */
  /* box-shadow: -5px -5px 20px #3da8ae; */
  text-shadow: 0 0 4px #bf9004;
  box-shadow: -5px -5px 20px #600;
  border: 0;
}
#headerarea .btn:hover, #headerarea .btn:focus {
  background-color: #e9af03;
  outline: 0px;
}
#about {
  /*   background: #fff; */
  padding: 60px 0;
}
#about img {
  margin-top: 65px;
}
#research {
  /*   background: #f5f5f5; */
  padding: 60px 0;
  text-align: center;
}
#research .fa {
  color: #C00;
}
#research p {
  /* text-align: center; */
  text-align: left;
  font-size: 12pt;
  line-height: 16pt;
}
#research h3 {
  /* counter-reset: h4 h5 h6; */
  counter-reset: h4;
  text-align: left;
}
#research h4 {
  counter-increment: h4;
  text-align: left;
  margin-top: 30px;
}
#research h4:before {
  content: counter(h4) ". ";
}
#research h5 {
  text-align: left;
}
#research p.ref {
  font-size: 10pt;
  line-height: 12pt;
  margin:0;
  margin-top: 5px;
}
#publications {
  padding: 60px 0;
}
#publications ol>li {
  margin-top: 10px;
}
#publications ol>li:first-child {
  margin-top: 0;
}
/* div#publications ol>li { */
/*       list-style-type:none; */
/*       list-style-position:inside; */
/*       counter-increment: cnt;   */
/* } */
/* div#publications ol>li:before { */
/*       display: marker; */
/*       content: "[" counter(cnt) "]"; */
/* } */

#contact {
  /*   background: #f5f5f5; */
  /* background: #fff; */
  padding: 60px 0;
  text-align: center;
}
#contact .form {
  padding: 30px 0;
}
#contact .fa {
  color: #C00;
  margin-bottom: 10px;
}
#contact .btn {
  font-weight: 400;
  font-size: 18px;
  margin-top: 50px;
  background-color: #ffbf00;
  color: #fff;
  border: 0;
}
#contact .btn:hover, #contact .btn:focus {
  background-color: #e9af03;
  outline: 0px;
}
#footerarea {
  background: #2b2b2b;
  padding: 25px 0 15px 0;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
#footerarea span.copyright {
  line-height: 20px;
  color: #888;
  font-weight: 400;
  font-size: 12px;
}
#footerarea span.copyright a {
  color: #888;
  border-bottom: 1px dotted;
}
#footerarea span.copyright a:hover {
  color: #C33;
  text-decoration: none;
}
#footerarea h4 {
  color: white;
}
ul.social-buttons {
  margin: 0;
}
ul.social-buttons li a {
  font-size: 24px;
  outline: 0;
  color: #999;
}
ul.social-buttons li a:hover, ul.social-buttons li a:focus, ul.social-buttons li a:active {
  color: #C33;
}

@media screen and (max-width:1050px), screen and (max-device-width:1050px) {
  body .header {
    background-attachment: scroll;
  }
}

/*ipad portrait*/
@media only screen and (min-device-width:768px) and (max-device-width : 1024px) and (orientation : portrait) {
  .header {
    background-attachment: scroll;
  }
}

@media screen and (max-width:769px) {
  #headerarea h1 {
    font-size: 80px;
  }
  #headerarea p {
    font-size: 30px;
    line-height: 38px;
  }
}

@media(max-width: 992px) {
  #headerarea .icon {
    font-size: 80px;
  }
  #footerarea span.copyright {
    font-size:10px;
  }
}
@media(max-width: 768px) {
  #headerarea .icon {
    font-size: 70px;
  }
  #footerarea span.copyright {
    font-size:10px;
  }
}


div#about, div#research, div#contact, div#publications {
  /* background: #ffffff; /* Old browsers */
  /*   background: -moz-linear-gradient(top,  #f5f5f5 0%, #ffffff 100%); */
  /*   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#ffffff)); */
  /*   background: -webkit-linear-gradient(top,  #f5f5f5 0%,#ffffff 100%); */
  /*   background: -o-linear-gradient(top,  #f5f5f5 0%,#ffffff 100%); */
  /*   background: -ms-linear-gradient(top,  #f5f5f5 0%,#ffffff 100%); */
  /*   background: linear-gradient(to bottom,  #f5f5f5 0%,#ffffff 100%); */
  /*   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#ffffff',GradientType=0 ); */

  background: #ffffff; /* Old browsers */
  background: -moz-linear-gradient(top,  #ffffff 0%, #f5f5f5 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f5f5f5)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #ffffff 0%,#f5f5f5 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #ffffff 0%,#f5f5f5 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #ffffff 0%,#f5f5f5 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #ffffff 0%,#f5f5f5 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5',GradientType=0 ); /* IE6-9 */
}
