/*
  perspex theme common CSS.


*/

/* global styles */

html {
  background-color: black;
  background-repeat: no-repeat;
  font-family: 'Calibri',verdana, arial, helvetica, sans-serif;
  font-size: 9pt;
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 50em;
}

body: {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}




/* classes */

div.panel {
  position: absolute;
}

div.panel div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

div.panel div.back {
  border-color: #FFF #444 #444 #FFF;
  border-style: solid;
  border-width: 1px;
  background-color: #AAAABA;
  opacity: 0.5;
  filter:alpha(opacity=50);
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}


div.panel div.inner {
  position: absolute;
  top: 1em;
  right: 1em;
  bottom: 1em;
  left: 1em;
  overflow:auto;
  background-color: white;
  border-width: 1px;
  border-style: inset;
}

div.small div#workspace1 {
 position:static;
 margin:auto;
 top:0;
 right:auto;
 bottom:0;
 left:auto;
 width:45em;
}

div.small div.panel {
  width: 425px;
  height: 300px;
}

div.small div.back {
  position: static;
  width: 100%;
  height: 100%
}

div.small div.panel div.inner {
  position: relative;
  top: -300px;
  left: 0;
  margin: 1em 1em auto 1em;
  height:90%;
}





div.medium div#workspace1 {
 position:static;
 margin:auto;
 top:0;
 right:auto;
 bottom:0;
 left:auto;
 width:45em;
}

div.medium div.panel {
  width: 550px;
  height: 400px;
}

div.medium div.back {
  position: static;
  width: 100%;
  height: 100%
}

div.medium div.panel div.inner {
  position:relative;
  top: -400px;
  left: 0;
  margin: 1em 1em auto 1em;
  height: 90%;
}


div.large div#workspace1 {
 position: absolute;
 top: 0;
 right: 0;
 bottom: 0;
 left: 0;
}

div.large div.panel {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

div.large div.panel div.inner {
  position: absolute;
  top: 1em;
  right: 1em;
  bottom: 1em;
  left: 1em;
  min-width: 33em;
}

* html div.large div.panel div.inner {
  right: 12px;
  left: 12px;
  top: 12px;
  bottom: 12px;
}

div.inner h1 {
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
  max-width: 600px;
  text-align: center;
}

div.inner p,div.inner h2,div.inner h3,div.inner h4,
div.inner h5,div.inner h6 {
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
  max-width: 600px;
}

div.inner ol, div.inner ul {
  margin-left: auto;
  margin-right: auto;
  padding-left: 50px;
  padding-right: 10px;
  max-width: 550px;
}

div.inner pre {
  margin-left: auto;
  margin-right: auto;
  padding-left: 50px;
  padding-right: 10px;
  max-width: 550px;
  max-height: 350px;
  overflow: auto;
  background-color: #FF8;
  padding: 1em;
  border: 1px inset #444;
}

div.inner code {
  font-weight: bold;
}

div.inner span.hint {
  border-bottom-width: 2px;
  border-bottom-style: dotted;
  border-bottom-color: green;
}

div.inner span.annotate {
  float: right;
  display: block;
  width: 125px;
  margin-right: -155px;
  padding: 4px;
  border: 1px dotted green;
  font-size: small
}

/* styles for specific items - identified by id */

div#menu {
  top: 0.5em;
  left: 1em;
  right: 1em;
  height: 1.7em;
}

* html div#menu {  /* absolutefudge doesn't support anything except px */
  left: 12px;
  right: 12px;
}

div#menuarea {         /* it should be possible to scrap this if ul  elemnts are realite ??? */
  position:absolute;
  top: 0.5em;
  left: 1em;
  right: 1em;
  height: 15em;
  min-width: 33em;
  max-width: 66em;
  color: white;
}

* html div#menuarea {
  width: 60em;
  right: auto;
}

div#toolbar {
  top: 6%;
  right: 1em;
  width: 10em;
  height: 16em;
  text-align: left;
}

* html div#toolbar {
  top: 48px;
}

div#footer {
  position: absolute;
  top: auto;
  bottom: 0;
  height: 40px;
  text-align: center;
}

div#footer a {
  color: white;
}

div#workspace {
  position: absolute;
  left: 1em;
  top: 6%;
  right: 12em;
  bottom: 1.5em;
}

* html div#workspace {  /* IE6 absolutefudge.js doesn't support em's or % */
  top: 48px;
  right: 144px;
  bottom: 18px;
  left: 12px;
}








/* Menu styles (pure CSS - see Meyer) */

ul.menu {
  padding: 0;
  margin: 1em 0 1em 0;
  border-style: none;
  border-width: 0;
  font-family: verdana, arial, helvetica, sans-serif;
  background-color: transparent;
}

ul.h {
  float: left;
  xwidth: 100%;
  margin: 0 1em 0 1em;
}

ul.menu li {
  min-width: 6em;
  list-style-type: none;
  border: 1px solid transparent;
  position: relative;
  margin: 0 !xximportant;
  padding: 1px 1em 1px 1em;
  background-color: transparent;
  opacity: 1;
  color: white;
}

* html ul.menu li {       /* IE6 only becuase transparent border not supported */
  border-color: #888;
  margin: 1px !important;
}

ul.h li {
  float: left;
  padding: 1px;
}

ul.menu li:hover {
  background-color: #AAAAAA;
  border-color: #BBB;
  border-style: outset;
  z-index: 100;
}

ul.menu ul {
  display: none;
}

ul.menu li:hover > ul {
  display: block;
  position: absolute;
  margin: 0;
  padding: 0;
  left: 0.5em;
  min-width: 6em;
  background-color: #555;
}

ul.h > li:hover > ul {
  top: 100%;
  left: 0.5em;
}

ul.r li:hover > ul {
 top: -1px;
 left: auto;
 right: 95%;
}

ul.menu li:hover ul li {
  background-color: #666;
  min-width: 6em;
  max-width: 18em;
  margin: 0;
  border: 1px solid #555;
  padding: 1px 1em 1px 1em;
  color: white;
}

*+html ul.menu li:hover ul li {      /* IE7 only hack */
  width: 10em;
}

ul.menu li ul li:hover {
  background-color: #BBB;
  border-style: outset;
  border-color: #BBB
}

ul.menu li a {
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: white !important;
}

ul.menu li a.selected {
  outline-width: 1px;
  outline-style: dashed;
  outline-color: white;
}

ul.menu li b {
  display: block;
  text-decoration: none;
  font-weight: 500;
  color: white;
}

/* version works on FF3 & IE7 but not yet IE6

ul.menu {
  padding: 0;
  margin: 1em 0 1em 0;
  border-style: none;
  border-width: 0;
  font-family: verdana, arial, helvetica, sans-serif;
  background-color: transparent;
}

ul.h {
  float: left;
  width: 100%;
  margin: 0 1em 0 1em;
}

ul.menu li {
  min-width: 6em;
  list-style-type: none;
  border: 1px solid transparent;
  position: relative;
  margin: 0 !important;

  padding: 1px 1em 1px 1em;
  background-color: transparent;
  opacity: 1;
  color: white;
}

ul.h > li {
  float: left;
  padding: 1px;
}

ul.menu li:hover {
  background-color: #AAAAAA;
  border-color: #BBB;
  border-style: outset;
  z-index: 100;
}

ul.menu ul {
  display: none;
}

ul.menu li:hover > ul {
  display: block;
  position: absolute;
  margin: 0;
  padding: 0;
  left: 0.5em;
  min-width: 6em;
  background-color: #555;
}

ul.h > li:hover > ul {
  top: 100%;
  left: 0.5em;
}

ul.r li:hover > ul {
 top: -1px;
 left: auto;
 right: 95%;
}

ul.menu li:hover ul li {
  background-color: #666;
  min-width: 6em;
  max-width: 18em;
  margin: 0;
  border: 1px solid #555;
  padding: 1px 1em 1px 1em;
  color: white;
}

*+html ul.menu li:hover ul li {      /* IE7 only hack */   /*
  width: 10em;
}

ul.menu li ul li:hover {
  background-color: #BBB;
  border-style: outset;
  border-color: #BBB
}

ul.menu li a {
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: white !important;
}

ul.menu li a.selected {
  outline-width: 1px;
  outline-style: dashed;
  outline-color: white;
}

ul.menu li b {
  display: block;
  text-decoration: none;
  font-weight: 500;
  color: white;
}

*/
