body {
  font: 14px/18px Helvetica Neue, Helvetica, Arial, sans-serif;
  background-color: #fff;
}

table.model td {
  padding: 3px;
}

#wrapper {
  margin: 0 auto;
  max-width: 850px;
}

#content {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #eee;
  opacity: .85;
  filter: alpha(opacity=85);
  border-radius: 10px;
  -moz-border-radius: 10px;
  min-width: 400px;
  max-width: 850px;
  float: left;
}

#photocredit {
  float: right;
  clear: right;
  margin-right: 30px;
  font-size: 80%;
}

#photocredit, #photocredit a {
  color: #ccc;
}

form#model {
  float: left;
  max-width: 600px;
  margin: 0 20px 20px 0;
}

#smileys {
  float: left;
  width: 252px;
  color: #777;
  font-size: 70%;

}

#smileys img {
  margin: 0;
}

h1 {
  letter-spacing: -0.05em;
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
}

abbr {
  border-bottom: 1px dotted #666;
  font-variant: normal;
  cursor: help;
}

img {
  border: none;
}

img.logo {
  float: left;
}

.credit {
  margin: 2em 0;
  font-size: smaller;
  color: #888;
  float: left;
  margin-top: 20px;
  clear: left;
}

.result {
  color: red;
  font-size: 120%;
}

/* Responsive */

@media (max-width:479px) {
  #content, #photocredit, #smileys, form#model, img.logo, .credit {
    float: none;
    min-width: 0;
  }


  #smileys {
    margin-top: 20px;
  }

  #content {
    margin: 5px;
  }
}

/* http://osvaldas.info/elegant-css-and-jquery-tooltip-responsive-mobile-friendly */

#tooltip
{
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 0.875em;
  text-align: center;
  text-shadow: 0 1px rgba( 0, 0, 0, .5 );
  line-height: 1.5;
  color: #fff;
  background: #333;
  background: -webkit-gradient( linear, left top, left bottom, from( rgba( 0, 0, 0, .7 ) ), to( rgba( 0, 0, 0, .9 ) ) );
  background: -webkit-linear-gradient( top, rgba( 0, 0, 0, .7 ), rgba( 0, 0, 0, .9 ) );
  background: -moz-linear-gradient( top, rgba( 0, 0, 0, .7 ), rgba( 0, 0, 0, .9 ) );
  background: -ms-radial-gradient( top, rgba( 0, 0, 0, .7 ), rgba( 0, 0, 0, .9 ) );
  background: -o-linear-gradient( top, rgba( 0, 0, 0, .7 ), rgba( 0, 0, 0, .9 ) );
  background: linear-gradient( top, rgba( 0, 0, 0, .7 ), rgba( 0, 0, 0, .9 ) );
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border-top: 1px solid #222;
  -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
  -moz-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
  box-shadow: 0 3px 5px rgba( 0, 0, 0, .3 );
  position: absolute;
  z-index: 100;
  padding: 15px;
}

#tooltip:after
{
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #333;
  border-top-color: rgba( 0, 0, 0, .8 );
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  margin-left: -10px;
}

#tooltip.top:after
{
  border-top-color: transparent;
  border-bottom: 10px solid #333;
  border-bottom-color: rgba( 0, 0, 0, .6 );
  top: -20px;
  bottom: auto;
}

#tooltip.left:after
{
  left: 10px;
  margin: 0;
}

#tooltip.right:after
{
  right: 10px;
  left: auto;
  margin: 0;
}
