body
{
  margin: 0;
  padding: 0;
  background: #444;
  background: url("../img/patterns/dark_matter.png");
  color: white;
}
div#wrapper
{
  min-width: 270px;
  margin: 0;
  padding: 0;
}

img
{
  max-width: 100%;
  min-width: 50%;
  height: auto;
}

div#header
{
  background: #444;
  background: url("../img/patterns/darkdenim3.png");
  padding: 0.3em;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  box-shadow: 0px 1px 10px rgba(0,0,0,0.8);
  box-shadow: 0px -2px 10px rgba(0,0,0,0.8), 0px 2px 10px rgba(0,0,0,0.8);
  border-radius:5px;
  margin-left: 10px;
  margin-right: 10px;
}

div#header h1
{
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 2px 1px 5px rgba(0,0,0,0.5);
}

div#content
{
  /*background: rgb(186, 186, 186);*/
  background: rgb(224,224,224); /* Old browsers */

  background: url("../img/patterns/diagonal-noise.png");
  position: relative;
  padding-top: 1.0em;
  padding-bottom: 0.5em;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0px 5px 10px rgba(255,255,255,0.2), 0px -5px 15px rgba(255,255,255,0.2);
  border-radius: 6px;
  margin-left: 7px;
  margin-right: 7px;
}

div#content p.quiztyp
{
  display: block;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 0;
  margin: 0;
  margin-bottom: 0.8em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  color: #222;
}

div#container
{
  position: relative;
  max-width: 400px;
  width: 60%;
  margin: 0 auto;
  margin-bottom: 0.1em;
  text-align: center;
  border: 8px solid #444;
}

p#prev,
p#next
{
  position: absolute;
  top: 47%;
  margin: 0;
  margin-top: -16px;
  padding: 0;
  text-shadow: 2px 2px 7px rgba(0,0,0,0.4);
  opacity: 0.75;
  cursor: pointer;
}

p#prev
{  left: -52px; }
p#next
{  right: -52px; }

p#prev.inactive,
p#next.inactive
{ opacity: 0.3;}

div#imgbox
{
  display: block;
  position: relative;
  margin: 0 auto;
  border: 2px solid #ccc;
  max-width: 400px;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.8),
              3px 3px  8px rgba(0,0,0,0.3);
}

div#imgbox img
{
  display: none;

  /*
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.6),
              5px 5px  8px rgba(0,0,0,0.7); */
}

div#imgbox img.first
{
  display: block;
}

div#controls
{
  position: relative;
  clear: both;
  /*width: 65%;*/
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}

div#controls
{
  text-align: center;
}
div#controls p.index
{
  display: inline-block;
  margin: 0;
  margin-top: 0.5em;
  margin-left: 0.3em;
  margin-right: 0.3em;
  background: none repeat scroll 0 0 rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9) inset;
  cursor: pointer;
  height: 25px;
  width: 25px;
}

div#controls p.index.active
{
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7) inset;
  background: none repeat scroll 0 0 rgba(80, 80, 80, 0.75);
}

div#footer
{
  clear: both;
  background: #444;
  background: url("../img/patterns/darkdenim3.png");
  color: white;
  padding: 1em;
  height: 100%;
  margin: 0;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  text-align: center;
  box-shadow: 0px -2px 10px rgba(0,0,0,0.8), 0px 2px 10px rgba(0,0,0,0.8);
}

div#footer a
{
  color: white;
  background: #4776d0;
  background: rgb(103,135,217); /* Old browsers */
  background: -moz-linear-gradient(top,  rgba(103,135,217,1) 0%, rgba(38,95,230,1) 50%, rgba(23,74,175,1) 51%, rgba(103,135,217,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(103,135,217,1)), color-stop(50%,rgba(38,95,230,1)), color-stop(51%,rgba(23,74,175,1)), color-stop(100%,rgba(103,135,217,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(103,135,217,1) 0%,rgba(38,95,230,1) 50%,rgba(23,74,175,1) 51%,rgba(103,135,217,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(103,135,217,1) 0%,rgba(38,95,230,1) 50%,rgba(23,74,175,1) 51%,rgba(103,135,217,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(103,135,217,1) 0%,rgba(38,95,230,1) 50%,rgba(23,74,175,1) 51%,rgba(103,135,217,1) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(103,135,217,1) 0%,rgba(38,95,230,1) 50%,rgba(23,74,175,1) 51%,rgba(103,135,217,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6787d9', endColorstr='#6787d9',GradientType=0 ); /* IE6-9 */

  border: 2px solid rgba(0,0,255,0.2);
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  padding: 0.15em 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 20px rgba(0,0,0,0.5);
  text-shadow: 2px 1px 5px rgba(0,0,0,0.4);

}
