/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self
 *= require home
 *= require forms
 *= require predictions
 *= require footer
 *= require facebox
*/

/* General Page Structure
-------------------------------------------------------------------------------------- */
html {
  background: image-url("bg-tile.gif") repeat top left;
}
body {
  background: transparent image-url("bg-gradient.png") repeat-x top left;
  margin: 0;
  padding: 0px 0 20px;
}
#container {
  margin: 0 auto;
  padding: 0;
  width: 990px;
}
div.wrapper {
  padding: 0 45px;
  width: 900px;
}
#header {
  background: image-url("header.png") no-repeat top center;
  height: 104px;
  padding-bottom: 13px;
  overflow: hidden;
}
#main-wrap {
  background: image-url("content-top.png") no-repeat top center;
  padding-top: 40px;
  position: relative;
}
#main-inner {
  background: image-url("content-bottom.png") no-repeat bottom center;
  padding-bottom: 40px;
}
#main {
  background: image-url("content-inner.png") repeat-y top center;
}

/* General Styles
-------------------------------------------------------------------------------------- */
.clear:after,
form div.row:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}
a img {
  border: none;
}

/* General Typography
-------------------------------------------------------------------------------------- */
body {
  font: 12px/1.5 Arial, Helvetica, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0 0 12px;
}
h1,
h2 {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-weight: normal;
}
h1 {
  color: #363535;
  font-size: 18px;
  word-wrap: break-word;
}
h2 {
  display: inline-block;
  font-size: 15px;
  background-color: #221e1f;
  color: #fff;
  font-weight: normal;
  padding: 3px 10px;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
}
h3 {
  font-size: 12px;
}
a {
  text-decoration: none;
  color: #00c;
}
a:hover {
  background-color: #cee;
}
a:visited {
  color: #808;
}
#content h2 a,
h2 a:visited {
  color: white;
  font-weight: normal;
  text-decoration: underline;
}
h2 a:hover {
  background-color: #ccc;
}
abbr {
  border-bottom: 1px dotted #ccc;
}

/* Buttons
-------------------------------------------------------------------------------------- */
a.button {
  background: image-url("button-purple.png") no-repeat top left;
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: bold;
  height: 25px;
  line-height: 25px;
  outline: none;
  padding-right: 10px;
  text-align: center;
  text-decoration: none;
  width: 167px;
}

/* Header
-------------------------------------------------------------------------------------- */
#main_nav {
  color: #fff;
  height: 29px;
  overflow: hidden;
}

#main_nav a,
#footer a {
  color: #fff;
  background: transparent;
  text-decoration: none;
}

#main_nav a:hover,
#footer a:hover {
  color: #e8e8e8;
  background: transparent;
}

#nav-menu li:hover {
  background-color: #655271;
}

ul#nav-menu {
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0;
}
ul#nav-menu li {
  background: #765b82 image-url("header-tab-shadow.png") repeat-x bottom left;
  display: block;
  height: 29px;
  float: left;
  margin-right: 2px;
}
ul#nav-menu li a {
  display: block;
  height: inherit;
  line-height: 29px;
  outline: none;
  padding: 0 14px;
}
#user-links {
  background: #77ae51 image-url("header-tab-shadow.png") repeat-x bottom left;
  float: right;
  height: 29px;
  margin: 0 8px 0 0;
  line-height: 29px;
  padding: 0 15px;
  list-style: none;
}

#user-links li {
  display: block;
  float: left;
}

#user-links li::after {
  content: "|";
  margin: 0 10px;
}

#user-links li:last-child::after {
  margin: 0;
  content: "";
}

#header-main {
  height: 75px;
  overflow: hidden;
  width: inherit;
}

.preheader {
  background-color: #221e1f;
  color: #fff;
  display: inline-block;
  font-size: 15px;
  font-weight: normal;
  height: 29px;
  margin-bottom: 17px;
  overflow: hidden;
  padding: 8px 0;
  text-align: center;
  width: 100%;
}

.preheader a {
  color: white;
  font-weight: normal;
  text-decoration: underline;
}

.preheader a:hover {
  background-color: #ccc;
}

.preheader a:visited {
  color: white;
  font-weight: normal;
  text-decoration: underline;
}

a#logo {
  float: left;
  margin-right: 10px;
  outline: none;
}
a#logo:hover {
  background-color: inherit;
}
a#logo img {
  display: block;
}
#title {
  text-align: right;
  line-height: 75px;
  margin-right: 3em;
}
#title h1 {
}

/* Content
-------------------------------------------------------------------------------------- */
#content {
  padding: 0 30px;
  position: relative;
  z-index: 10;
}
#content a {
  font-weight: bold;
}

#alert-messages {
  position: absolute;
  margin: 0 30px 5px 30px;
  top: 1em;
  text-align: center;
  width: 83%;
  z-index: 10;
}
#error {
  color: #f22;
  font-weight: bold;
}
#notice {
  color: #2a2;
}

span.correct {
  padding-right: 17px;
  background: image-url("tick.png") top right no-repeat;
}
span.wrong {
  padding-right: 14px;
  background: image-url("cross.png") bottom right no-repeat;
}

.break-word {
  word-wrap: break-word;
}

.prediction-group-prediction {
  border: 1px dotted;
  padding: 12px;
  margin-bottom: 12px;
}

li.group_member {
  form.button_to {
    display: inline;
  }
}

#leaderboard table {
  width: 100%;
  border-spacing: 40px 0;
}

.right-aligned {
  text-align: right;
}

.left-aligned {
  text-align: left;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 600px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  position: absolute;
  z-index: 1;
}

.tooltiptext.brier {
  left: -240px;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.prediction-filter {
  display: inline;
}

/* Tags
-------------------------------------------------------------------------------------- */
.tags a {
  display: inline-block;
  height: 24px;
  line-height: 23px;
  position: relative;
  margin: 0 12px 8px 0;
  padding: 0 12px 0 10px;
  background: #777;
  -moz-border-radius-bottomleft: 5px;
  -webkit-border-bottom-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -moz-border-radius-topleft: 5px;
  -webkit-border-top-left-radius: 5px;
  border-top-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 12px;
  //   font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  //   font-weight: bold;
}

.tags a:before {
  content: "";
  position: absolute;
  top: 10px;
  right: 1px;
  float: left;
  width: 5px;
  height: 5px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background: #fff;
  -moz-box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.4);
}

.tags a:after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-color: transparent transparent transparent #777;
  border-style: solid;
  border-width: 12px 0 12px 12px;
}

.tags a.color1 {
  background: #000000;
}
.tags a.color1:after {
  border-color: transparent transparent transparent #000000;
}
.tags a.color2 {
  background: #655271;
}
.tags a.color2:after {
  border-color: transparent transparent transparent #655271;
}
.tags a.color3 {
  background: #00a6df;
}
.tags a.color3:after {
  border-color: transparent transparent transparent #00a6df;
}
.tags a.color4 {
  background: #77ae51;
}
.tags a.color4:after {
  border-color: transparent transparent transparent #77ae51;
}
.tags a.color5 {
  background: #808;
}
.tags a.color5:after {
  border-color: transparent transparent transparent #808;
}
.tags a:hover {
  background: #222 !important;
}
.tags a:hover:after {
  border-color: transparent transparent transparent #222 !important;
}
