/* Page structure */

html {
  height: 100%;
  background-image: url(../images/bottom-hrb.png);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-attachment: fixed;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0px;
  padding: 0px;
  background-image: url(../images/right-bg.png);
  background-repeat: repeat-y;
  background-position: right;
  font-family: Georgia, "New York CE", serif;
  color: rgb(39,39,39);
  line-height: 150%;
}

* html body {
  height: 100%;
}

#top-logo {
  float: right;
  width: 378px;
  height: 54px;
  background-image: url(../images/top-hrb.gif);
  background-repeat: no-repeat;
  background-position: left;
}

#top-logo a {
  display: block;
  width: 304px;
  height: 52px;
}

#top-logo a strong {
  display: none;
}

#all {
  width: 100%;
  padding: 0px;
  padding-bottom: 70px;
}

.mouse {
  background-image: url(../images/top-mys.png);
  background-repeat: no-repeat;
  background-position: top left;
}

.pcb {
  background-image: url(../images/top-tistak.png);
  background-repeat: no-repeat;
  background-position: top left;
}

/* Menu-bar */
.hide {
  display: none;
}

#bar {
  width: 160px;
  float: right;
  clear: right;
  padding: 0px;
  padding-top: 70px;
}

#bar hr {
  display: none;
}

#menu {
  padding-left: 20px;
}

/* First level menu */
#menu ul {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
}

#menu ul li {
  display: inline;
}

#menu ul li a, #menu ul li a:link {
  display: block;
  margin-bottom: 5px;
  border: none;
  border-right: 4px solid rgb(127,127,127);
  color: rgb(127,127,127);
  font-weight: bold;
  text-transform: lowercase;
  text-decoration: none;
}

#menu ul li a:hover, #menu ul li a:active {
  display: block;
  margin-bottom: 5px;
  border: none;
  border-right: 4px solid rgb(230,184,0);
  color: rgb(230,184,0);
  font-weight: bold;
  text-transform: lowercase;
  text-decoration: none;
}

/* Second level menu */
#menu ul li ul {
  margin: 0px;
  margin-left: 10px;
  padding: 0px;
  list-style-type: none;
}

#menu ul li ul li {
  display: inline;
  line-height: normal;
}

#menu ul li ul li a, #menu ul li ul li a:link {
  display: block;
  margin-bottom: 5px;
  border: none;
  border-right: 4px solid rgb(127,127,127);
  color: rgb(127,127,127);
  font-weight: normal;
  text-transform: lowercase;
  text-decoration: none;
}

#menu ul li ul li a:hover, #menu ul li ul li a:active {
  display: block;
  margin-bottom: 5px;
  border: none;
  border-right: 4px solid rgb(230,184,0);
  color: rgb(230,184,0);
  font-weight: normal;
  text-transform: lowercase;
  text-decoration: none;
}

#buttons {
  margin-top: 30px;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
}

/* In-line buttons */
.a-button {
  margin: 0 0.2em;
  padding: 0.1em 0;
  border: 1px solid rgb(76,76,76);
  background: #ccc;
  vertical-align: middle;
  font: bold 65% Verdana, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  color: rgb(76,76,76);
}

* html .a-button {
  width: 10em;
  padding: 0;
  text-decoration: none;
}

.a-button strong {
  font-style: normal;
  margin: 0;
  padding: 0.1em 0.5em;
  background: white;
  color: rgb(76,76,76);
}

* html .a-button strong {
  width: 1em;
}

.a-button span {
  margin: 0;
  padding: 0.1em 0.5em 0.1em 0.3em;
}

* html .a-button span {
  width: 1em;
}

.a-button:hover {
  background: rgb(230,184,0);
  color: rgb(255,255,255);
}

.a-button:hover strong {
  background: rgb(76,76,76);
  color: rgb(255,255,255);
}

#navrcholu {
  position: relative;
  left: 2px;
  top: 2px;
}

#firefox {
  border: none;
  width: 160px;
  height: 70px;
}

/* Footer */
#footer {
  display: none;
}

/* Main content of the page */
#main {
  margin-right: 200px;
  padding-top: 110px;
  padding-left: 30px;
}

p {
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}

abbr {
  cursor: help;
}

/* Signpost */
.signpost {
  min-height: 57px;
  margin-top: 2em;
  background-repeat: no-repeat;
  background-position: 0px 7px;
}

* html .signpost {
  height: 57px;
}

.s-web {
  background-image: url(../images/sp-xhtml-o.png);
}

.s-web:hover {
  background-image: url(../images/sp-xhtml.png);
}

.s-prog {
  background-image: url(../images/sp-delphi-o.png);
}

.s-prog:hover {
  background-image: url(../images/sp-delphi.png);
}

.s-el {
  background-image: url(../images/sp-pcb-o.png);
}

.s-el:hover {
  background-image: url(../images/sp-pcb.png);
}

/* Modelling */
.s-air {
  background-image: url(../images/sp-air-o.png);
}

.s-air:hover {
  background-image: url(../images/sp-air.png);
}

.s-water {
  background-image: url(../images/sp-air-o.png);
}

.s-water:hover {
  background-image: url(../images/sp-air.png);
}

.s-land {
  background-image: url(../images/sp-air-o.png);
}

.s-land:hover {
  background-image: url(../images/sp-air.png);
}

.s-fort {
  background-image: url(../images/sp-air-o.png);
}

.s-fort:hover {
  background-image: url(../images/sp-air.png);
}

.s-train {
  background-image: url(../images/sp-air-o.png);
}

.s-train:hover {
  background-image: url(../images/sp-air.png);
}

.signpost-cont {
  margin-left: 60px;
}

.signpost-cont h2 {
  position: static;
  margin: 0px;
  padding: 0px;
  border: none;
  font-size: 125%;
  color: rgb(76,76,76);
  text-transform: lowercase;
}

/* Project list */
.projects {
  padding: 0em;
  margin: 0em;
  margin-top: 1.5em;
  list-style-type: none;
}

.projects li {
  margin-top: 0em;
}

.projects li h2 {
  margin: 0px;
  font-size: 125%;
  color: rgb(76,76,76);
  text-transform: lowercase;
}

.projects li img {
  float: left;
  margin-top: 0.3em;
  margin-right: 0.5em;
  margin-bottom: 0.3em;
  border: 1px solid rgb(255,204,0);
}

.projects li a:hover img {
  border: 1px solid rgb(205,164,0);
}

.projects li p {

}

.projects li div {
  font-size: 80%;
  color: rgb(154,154,154);
}

.project-end {
  clear: left;
  visibility: hidden;
}

/* Headings */
h1 {
  color: rgb(76,76,76);
  font-size: 200%;
  text-transform: lowercase;
}

h2 {
  position: relative;
  left: -0.5em;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
  padding-left: 0.2em;
  border-left: 0.3em solid rgb(230,184,0);
  color: rgb(76,76,76);
  font-size: 150%;
  text-transform: lowercase;
}

/* Anchors */
a, a:link {
  color: inherit;
}

* html a, * html a:link {
  color: rgb(76,76,76);
}

a:hover, a:active {
  color: rgb(230,184,0);
}

/* Definition lists */
dl {

}

dt {
  font-weight: bold;
}

dd {
  margin-left: 1em;
}

/* Random styles */
code {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: rgb(10,120,159);
}

a img {
  border: none;
}