/** 
 * The basic layout of Carrot Search Circles demo pages.
 */

html {
  height: 100%;
  /** IE7 hack for proper sizing of 100% height iframes */
  *margin-bottom: 40px;
  overflow: auto;
}

body {
  min-width: 1000px;
  position: relative;
  height: 100%;
}

/** Visualization area */
#main {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 400px;
  border-right: 1px solid black;
  background-image: url(../img/checker.png);
  
  /** IE7 hack for proper sizing of 100% height iframes */
  *margin-bottom: -40px;
}

#gradient {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color: rgba(255, 0, 0, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.9;
  filter: alpha(opacity = 90);
}

#swfcontainer {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  bottom: 20px;
    
  /** To avoid scroll bars in the otherwise unsupported IE6- */
  -left: 0px;
  -right: 0px;
  -top: 0px;
  -bottom: 0px;  
}

#swf {
  outline: none;
}

/** Cropmarks */
.cropmark { background-color: rgba(255, 0, 0, 0.5); position: absolute; }
.cropmark.horizontal { width: 40px; height: 1px; }
.cropmark.vertical { width: 1px; height: 40px; }
.cropmark.topleft.horizontal { top: -1px; left: -10px; }
.cropmark.topleft.vertical { top: -10px; left: -1px; }
.cropmark.bottomright.horizontal { bottom: -1px; right: -10px; }
.cropmark.bottomright.vertical { bottom: -10px; right: -1px; }

/** Sidebar area */
#sidebar {
  position: absolute;
  top: 30px;
  right: 10px;
  bottom: 10px;
  width: 380px;
  
  /** IE7 hack for proper sizing of 100% height iframes */
  *height: 100%;
}

#settings {
  overflow-y: auto;
  overflow-x: hidden;
  zoom: 1;
  height: 100%;
}

/** Main navigation */
#navigation {
  position: absolute;
  right: 14px;
  top: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  
  background-color: #333;
  background-image: -moz-linear-gradient(bottom, #111, #444);
  background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #444),color-stop(1, #111));
  border: 1px solid #222;
  border-top: none;
  -moz-border-radius-bottomleft: 3px;
  -moz-border-radius-bottomright: 3px;
  -webkit-border-bottom-left-radius: 3px;
  -webkit-border-bottom-right-radius: 3px;
  border-radius-bottomleft: 3px;
  border-radius-bottomright: 3px;
  -moz-box-shadow: 0px 0px 10px #111;
  -webkit-box-shadow: 0px 0px 5px #000;
  box-shadow: 0px 0px 5px #000;
}

#navigation > li {
  float: left;
  padding: 3px 1px 1px 1px;
  border-right: 1px solid #222;
}
#navigation > li:last-child {
  border: none;
}
#navigation li > a {
  padding: 0px 5px;
  text-shadow: 0px 0px 3px #222;
  color: #ccc;
  text-decoration: none;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}
#navigation > li > a.active {
  color: #ffac52;
}
#navigation > li > a:hover {
  color: #ff6a10;
}

#browser, #local, #swf > div, noscript, #open-group-tip, #close-group-tip {
  position: absolute;
  left: 25px;
  color: black;
  z-index: 5;
  display: block;
  border: 1px solid #dc9e27;
  background-color: #fff3b7;
  padding: 5px;
  padding-left: 25px;
  background-image: url("../img/icon-error.gif");
  background-repeat: no-repeat;
  padding: 1px 4px 1px 22px;
  background-position: 3px 0px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  font-size: 10px;
  margin: 3px;
}
#local {
  top: 25px;
  display: none;
}
#open-group-tip, #close-group-tip {
  top: 25px;
  left: auto;
  right: 426px;
  display: none;
  background-image: url("../img/lightbulb.png");
  background-position: 3px 1px;
}
#browser {
  top: 75px;
}
noscript {
  top: 75px;
}
#swf > div {
  left: 5px;
  top: 30px;
}

#swf > div a,
#browser a,
#local a {
  color: #666;
}

#copyright {
  position: absolute;
  bottom: 5px;
  left: 5px;
  margin: 0;
  padding: 0;
  font-size: 10px;
  
  /** IE7 hack for proper sizing of 100% height iframes */
  *bottom: -35px;
  -bottom: 5px;
}
#copyright > span {
  padding: 0 5px;
}
body.dark > #copyright,
body.dark > #copyright > a {
  color: #666;
}
body.dark > #copyright > span {
  color: #444;
}

body.dark #gradient {
	background-color: #252423;
  background-image: url(../img/gradient.jpg);
  background-image: -webkit-gradient(radial, center center, 0, center center, 450, from(#858178), to(#252423), color-stop(150, #56534e));
  /*
  CSS3 gradients are nice, but they slow the animation down quite a bit on Firefox.
  background-image: -moz-radial-gradient(center 45deg, circle closest-side, #858178 0%, #56534e 35%, #252423 90%);
  */
}
