﻿body {
  font-family: 'Segoe UI', Helvetica, sans-serif;
  background-color: #f2f8fd;
  background-image: url(grey.png);
}
h1 {
  color: #868687;
  padding-left: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 20px;
}
header {
  height: 50px;
  width: 100%;
  background: #eeeeee;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #c8d7e1), color-stop(1, #e2eef7));
  background: -ms-linear-gradient(bottom, #c8d7e1, #e2eef7);
  background: -moz-linear-gradient(center bottom, #c8d7e1 0%, #e2eef7 100%);
  -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
}
header #logo {
  float: left;
  margin-left: 20%;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  width: 143px;
  height: 45px;
    display: block;
}
header ul {
  margin-left: 50%;
}
header ul li {
  float: left;
  list-style: none;
  display: table-cell;
}
header ul li a {
  text-decoration: none;
  display: inline-block;
  padding: 16px 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  color: #868687;
  font-weight: bold;
  font-size: 15px;
  line-height: 18px;
  text-align: left;
}
header ul li a:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
header ul li a:hover {
  background: #e2eef7;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e2eef7), color-stop(1, #c8d7e1));
  background: -ms-linear-gradient(bottom, #e2eef7, #c8d7e1);
  background: -moz-linear-gradient(center bottom, #e2eef7 0%, #c8d7e1 100%);
}
header ul li a:active {
  box-shadow: inset 0 4px 20px rgba(3, 61, 102, 0.4);
  padding-top: 18px;
  padding-bottom: 18px;
}
header ul li:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 1px 0 rgba(255, 255, 255, 0.15);
}
div#mainContent {
  width: 70%;
  height: 100%;
  background-color: white;
  margin: 20px auto;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), inset 0 -1px rgba(3, 61, 102, 0.1), 0 2px 8px rgba(3, 61, 102, 0.6);
}

div#mainContent p, ul {
    width: 80%;
    height: 100%;
    margin: 20px auto;
}

footer {
  width: 70%;
  height: 100%;
  margin: 20px auto;
  text-align: center;
    font-size: 12px;
}

@media only screen and (max-width: 800px), only screen and (max-device-width: 800px) 
{
    a#logo {
        float: left;
        background-image: url('logo.png');
        background-repeat: no-repeat;
        width: 143px;
        height: 45px;
        display: block;
        clear: both;
        margin-left: 0px;
    }

    header ul
    {
        min-width: 500px;
        margin-left: 0px;
    }

    header {
        margin: 0px auto;
    }

        header ul li a
        {
            padding: 16px 10px;
        }

        nav {
            height: 100%;
            margin: auto;
        }
}