/* Undo bootstrap causing border-box */
#playarea, #playarea *, #playarea *:before, #playarea *:after {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}

/* Main play area. */
#playarea_wrapper {
  position: relative;
  width: 960px;
  height: 640px;
  margin: 0 -32px -50px;
}

#playarea, #toplayer, .throbber {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#playarea {
  background: url("../../img/006-Mountains01.jpg") top center;
  opacity: 0;
}

.no-js #playarea {
  display: none;
}

#playarea .hidden {
  display: none;
}

#playarea > div {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 2;
}

#toplayer {
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 10;
}


/* Throbber for waiting for the other player to interact. */
.throbber {
  z-index: 500;
  background: rgba(255, 230, 200, 0.5);
  text-align: center;
}
.throbber span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 256px;
  height: 128px;
  line-height: 128px;
  background: url("../img/pulser.gif") center center no-repeat;
}


/* Speech box for interaction. */
.speechbox {
  top: -24px;
  left: 0;
}


/* HP meter. */
.hp, .points {
  width: 122px;
}

.hp:before {
  content: "HP: ";
}

.points:before {
  content: "Points: ";
}

.speechbox, .hp, .points {
  position: absolute;
  background: rgba(90, 40, 0, 0.6);
  color: #ffdbae;
  text-align: left;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 4px 2px rgba(60, 35, 0, 0.75), inset 0 1px 0 rgba(230, 180, 100, 0.85);
  font-size: 16px;
  line-height: 20px;
  padding: 2px 8px;
  white-space: pre;
  z-index: 200;
}


/* Area for static messages. */
#msgarea {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  height: 6em;
  text-align: center;
  font-size: 1.5em;
  white-space: pre;
  color: #ffdbae;

  background: rgba(0, 0, 0, 0.75);
  background: -moz-linear-gradient(top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.35) 90%, rgba(0,0,0,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.75)), color-stop(70%,rgba(0,0,0,0.75)), color-stop(80%,rgba(0,0,0,0.6)), color-stop(90%,rgba(0,0,0,0.35)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 70%,rgba(0,0,0,0.6) 80%,rgba(0,0,0,0.35) 90%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 70%,rgba(0,0,0,0.6) 80%,rgba(0,0,0,0.35) 90%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 70%,rgba(0,0,0,0.6) 80%,rgba(0,0,0,0.35) 90%,rgba(0,0,0,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.75) 70%,rgba(0,0,0,0.6) 80%,rgba(0,0,0,0.35) 90%,rgba(0,0,0,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
}


/* Area for dialog options. */
#dlgarea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: 128px;
  font-size: 1.5em;
  color: #ffdbae;

  background: rgba(0, 0, 0, 0.75);
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 10%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.75) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(10%,rgba(0,0,0,0.35)), color-stop(20%,rgba(0,0,0,0.6)), color-stop(30%,rgba(0,0,0,0.75)), color-stop(100%,rgba(0,0,0,0.75))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 10%,rgba(0,0,0,0.6) 20%,rgba(0,0,0,0.75) 30%,rgba(0,0,0,0.75) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 10%,rgba(0,0,0,0.6) 20%,rgba(0,0,0,0.75) 30%,rgba(0,0,0,0.75) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 10%,rgba(0,0,0,0.6) 20%,rgba(0,0,0,0.75) 30%,rgba(0,0,0,0.75) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 10%,rgba(0,0,0,0.6) 20%,rgba(0,0,0,0.75) 30%,rgba(0,0,0,0.75) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#bf000000',GradientType=0 ); /* IE6-9 */
}

/* Dialog options. */
#dlgarea .w, #dlgarea .a, #dlgarea .s, #dlgarea .d {
  position: absolute;
  text-align: left;
  cursor: pointer;
  height: 32px;
  line-height: 24px;
  vertical-align: middle;
  color: #b69058;
  -webkit-transition: color .2s;
  -moz-transition: color .2s;
  transition: color .2s;
}

#dlgarea > div > div:hover {
  color: #ffdbae;
}

#dlgarea p {
  margin: 0;
  padding-bottom: 8px;
}

/* Dialog option button. */
#dlgarea span,
#roshambolivo span {
  position: absolute;
  top: -6px;
  width: 24px;
  height: 30px;
  text-align: center;
  display: block;
  cursor: pointer;
}
#dlgarea span em,
#roshambolivo span em {
  font-style: normal;
  font-size: 16px;
  line-height: 16px;
  background: #773d18;
  color: #ffdbae;

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  box-shadow: 0 6px 0 #662c00, 0 7px 6px 3px rgba(60, 35, 0, 0.75), inset 0 1px 0 rgba(230, 180, 100, 0.5);

  padding: 4px;
  height: 16px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  -webkit-transition: top .2s, box-shadow .2s;
  -moz-transition: top .2s, box-shadow .2s;
  transition: top .2s, box-shadow .2s;
}
#dlgarea div:hover > span em,
#dlgarea div:focus > span em,
#roshambolivo div:hover > span em,
#roshambolivo div:focus > span em {
  top: 2px;
  box-shadow: 0 4px 0 #662c00, 0 5px 5px 2px rgba(60, 35, 0, 0.75), inset 0 1px 0 rgba(230, 180, 100, 0.5);
}
#dlgarea div.active > span em,
#roshambolivo div.active > span em {
  top: 6px;
  box-shadow: 0 0 0 #662c00, 0 1px 2px 0 rgba(60, 35, 0, 0.75), inset 0 1px 0 rgba(230, 180, 100, 0.5);
}


#dlgarea .w {
  top: 32px;
  left: 0;
  right: 0;
  padding-left: 496px;
}
#dlgarea .w span {
  left: 468px;
}

#dlgarea .a {
  top: 64px;
  left: 0;
  right: 492px;
  text-align: right;
  padding-right: 36px;
}
#dlgarea .a span {
  right: 8px;
}

#dlgarea .s {
  top: 88px;
  left: 0;
  right: 0;
  text-align: center;
}
#dlgarea .s span {
  top: -30px;
  left: 468px;
}

#dlgarea .d {
  top: 64px;
  left: 492px;
  right: 0;
  padding-left: 36px;
}
#dlgarea .d span {
  left: 8px;
}


#roshambolivo {
  background: rgba(0, 0, 0, 0.65);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

#roshambolivo > div {
  background: url("../../img/roshambolivo.png") center center no-repeat;
  position: absolute;
  width: 399px;
  height: 399px;
  left: 280px;
  top: 120px;
}

#roshambolivo span {
  position: absolute;
  left: 20px;
  top: 78px;
}

#roshambolivo > div > div {
  position: absolute;
}

#roshambolivo .rock {
  left: 0;
  top: 140px;
}

#roshambolivo .paper {
  left: 140px;
  top: 0;
}

#roshambolivo .scissors {
  left: 280px;
  top: 140px;
}

#roshambolivo .lizard {
  left: 140px;
  top: 140px;
}

#roshambolivo .vulcan {
  left: 210px;
  top: 280px;
}

#roshambolivo .vulcan span {
  width: auto;
}

#roshambolivo .vulcan em {
  right: auto;
}



#pong {
  background: rgba(0, 0, 0, 0.65);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

#pongtable {
  background: url("../../img/pongtable.png") center center no-repeat;
  position: absolute;
  width: 480px;
  height: 400px;
  left: 240px;
  top: 180px;
  z-index: 60;
}

#pongball {
  position: absolute;
  z-index: 62;
  width: 32px;
  height: 32px;
}

#pongball_shadow {
  position: absolute;
  z-index: 61;
  width: 32px;
  height: 16px;
}

#pong .paddle {
  position: absolute;
}

#mypaddle {
  background: url("../../img/pongpaddle156.png") -96px 0 no-repeat;
  width: 96px;
  height: 156px;
  z-index: 65;
  opacity: 0.75;
}

#otherpaddle {
  background: url("../../img/pongpaddle104.png") -64px 0 no-repeat;
  width: 64px;
  height: 104px;
  z-index: 55;
}

