html {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

body {
  width: 996px;
  margin: 0 auto;
  padding: 0;
  font-family: verdana,arial,helvetica,sans-serif;
  position: relative;
  background: url('images/bg.jpg');
}

h1 {
  margin: 0;
  width: 470px;
  height: 170px;
  text-indent: -9999px;
  background: url('images/header.png') 0 0 no-repeat;
}

h1:before, h1:after {
  content: "";
  display: block;
  position: absolute;
  width: 150%;
  height: 65px;
  background: url('images/headerbar.png');
}

h1:before{
  right: calc(150% - 498px);
  right: -webkit-calc(150% - 498px);
  top: 105px;
}

h1:after{
  left: 470px;
  top: 105px;
}

h1 a:first-child {
  display: block;
  position: absolute;
  width: 100px;
  height: 100px;
  left: 40px;
  top: 5px;
}

h1 a:last-child {
  display: block;
  position: absolute;
  width: 190px;
  height: 80px;
  left: 195px;
  top: 35px;
}


#topbar {
  position: absolute;
  display: inline-block;
  padding: 0 15px 0 0;
  top: 112px;
  right: 0px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
}

#topbar a {
  color: #fff;
  text-decoration: none;
}

.you {
  position: relative;
  top: -2px;
  left: 0;
  display:inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background: url('images/homeyou.png') 0 0 no-repeat;
}

.home {
  position: relative;
  top: -2px;
  left: 0;
  display:inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background: url('images/homeyou.png') -20px 0 no-repeat;
}

.subreddit {
  position: relative;
  top: -2px;
  left: 0;
  display:inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background: url('images/homeyou.png') -40px 0 no-repeat;
}

.random {
  position: relative;
  top: -2px;
  left: 0;
  display:inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background: url('images/homeyou.png') -60px 0 no-repeat;
}

.tools {
  position: relative;
  top: -2px;
  left: 0;
  display:inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background: url('images/tools.png') 0 0 no-repeat;
}

#searchbar {
  display: block;
  width: 520px;
  height: 120px;
  margin: 30px auto 0 auto;
  position: relative;
  background: url("images/searchbar.png");
}

#searchbar form {
  position: absolute;
  left: 168px;
  top: 38px;
  width: 220px;
}

#searchbar input[type=submit] {
  cursor: pointer;
  display: block;
  position: absolute;
  width: 70px;
  height: 92px;
  left: 210px;
  top: -27px;
  border: 0;
  text-indent: -9999px;
  background: url("images/magnify.png");
}

#userinput {
  width: 100%;
}

#notfound {
  display: block;
  width: 600px;
  margin: 30px auto 0 auto;
  padding: 20px 0;
  text-align: center;
  position: relative;
  background: #f0ede9;
  border-radius: 3px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  font-size: 20px;
  color: #333;
}

#searchbox {
  position: absolute;
  width: 150px;
  left: 450px;
  top: 108px;
}

#searchbox input[type=submit] {
  cursor: pointer;
  display: block;
  position: absolute;
  width: 35px;
  height: 46px;
  left: 150px;
  top: -10px;
  border: 0;
  text-indent: -9999px;
  background: url("images/magnify.png") 0 0 no-repeat;
  background-size: 100% 100%;
}

h2 {
  text-indent: -9999px;
  position: absolute;
  left: -30px;
  top: -20px;
  width: 140px;
  height: 110px;
  background: url('images/ribbons.png') 0 0 no-repeat;
}

#wishlists h2 {
  background: url('images/ribbons.png') 0 -110px no-repeat;
}

#badges h2 {
  background: url('images/ribbons.png') 0 -220px no-repeat;
}

#tools h2 {
  background: url('images/ribbontools.png') 0 0 no-repeat;
}

#foolery h2 {
  background: url('images/ribbonfoolery.png') 0 0 no-repeat;
}

#bio {
  width: 270px;
  margin: 30px 0 0 30px;
  padding: 75px 15px 15px 15px;
  float: left;
  border-radius: 3px;
  position: relative;
  background: #F0EDE9;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  font-size: 12px;
  color: #333;
  word-wrap: break-word;
}

#bio h3 {
  font-size: 14px;
  color: #333;
  margin: 10px 0;
}

#maxcount {
  display: inline-block;
  width: 100%;
  text-align: right;
  padding: 0 20px 0 0;
  margin: 0;
  font-size: 11px;
  position: relative;
}

#wishlists {
  width: 290px;
  min-height: 500px;
  margin: 30px 0 0 35px;
  padding: 70px 0 0 0;
  float: left;
  border-radius: 3px;
  position: relative;
  background: #F0EDE9;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

#tools {
  width: 855px;
  min-height: 250px;
  margin: 30px 0 0 35px;
  padding: 90px 45px 40px 40px;
  float: left;
  border-radius: 3px;
  position: relative;
  background: #F0EDE9;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  font-size: 12px;
}

#tools h3 {
  font-size: 14px;
  margin: 10px 0;
}

#foolery {
  width: 855px;
  min-height: 250px;
  margin: 30px 0 0 35px;
  padding: 90px 45px 60px 40px;
  float: left;
  border-radius: 3px;
  position: relative;
  background: #F0EDE9;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  font-size: 12px;
}

#foolery h3 {
  font-size: 18px;
  margin: 10px 0;
}

#badges {
  width: 260px;
  min-height: 500px;
  margin: 30px 0 0 35px;
  padding: 75px 0px 20px 45px;
  float: left;
  border-radius: 3px;
  position: relative;
  background: #F0EDE9;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

#badgesinner {
  overflow: auto;
  max-height: 75vh;
}

.badge {
  display: block;
  float: left;
  width: 100px;
  height: 100px;
  margin: 20px 20px 0px 0px;
  text-align: center;
  vertical-align: middle;
}

.badge > span {
  height: inherit;
  width: inherit;
  text-indent: -9999px;
  display: table-cell;
  vertical-align: middle;
}

.badge > span:hover {
  text-indent: 0px;
  font-size: 11px;
  font-weight: bold;
  background-color:rgba(240,237,233,0.75);
  cursor: default;
}

.plus {
  position: absolute;
  left: 0px;
  bottom: 0px;
}

#listlist {
  list-style-type: none;
}

.list {
  position: relative;
}

.list > a {
  display: block;
  width: 220px;
  height: 80px;
  text-indent: -9999px;
}

.wlhover {
  position: absolute;
  right: 0px;
  top: 25px;
}

.pencil {
  text-indent: -9999px;
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("/images/icons.png") no-repeat 0 0;
}

#bio .pencil {
  display: block;
}

.wlhover .trash {
  text-indent: -9999px;
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("/images/icons.png") no-repeat -30px 0;
}

.wleditbox {
  display: block;
  background: url("/images/tag.png") no-repeat 0 0;
  width: 155px;
  height: 104px;
  padding: 25px 45px 0 30px;
  margin: 0px;
  text-align: center;
  position: absolute;
  left: 150px;
  top: 0px;
  z-index: 10;
}

.wleditbox input,
.wladdbox input,
.wladdbox select {
  width: 100%;
  margin-bottom: 4px;
}

.wladdbox {
  display: block;
  background: url("/images/tag.png") no-repeat 0 0;
  width: 155px;
  height: 107px;
  padding: 12px 45px 0 30px;
  margin: 0px;
  text-align: center;
  position: absolute;
  left: 0px;
  top: -60px;
  z-index: 10;
}

.addlist {
  display: block;
  text-indent: -9999px;
  background: url("images/icons.png") -120px 0 no-repeat;
  width: 30px;
  height: 30px;
  margin: 10px;
}

.aboutitem {
  display: block;
  position: relative;
  width: 100%;
  min-height: 30px;
}

.aboutitem input {
  width: 200px;
}

.aboutitemradio {
  display: block;
  position: relative;
  width: 100%;
  min-height: 30px;
}

.check {
  display: inline-block;
  text-indent: -9999px;
  background: url("images/icons.png") -60px 0 no-repeat;
  width: 30px;
  height: 30px;
}

.redx {
  display: inline-block;
  text-indent: -9999px;
  background: url("images/icons.png") -90px 0 no-repeat;
  width: 30px;
  height: 30px;
}

#bio .check {
  position: absolute;
  right: 30px;
  top: -8px;
}

#bio .redx {
  position: absolute;
  right: 0px;
  top: -8px;
}

.aboutitem:last-of-type {
  position: static;
}

#bio textarea + .check {
  margin-left: 210px;
}

#bio textarea + .check,
#bio textarea + .check + .redx {
  position: static;
}

#tools ul {
  list-style-type: none;
  padding: 0px;
}

#tools li {
  margin-bottom: 10px;
}

#tools li a {
  text-decoration: none;
  color: #000;
}

#tools li:nth-child(1) a {
  display: block;
  padding-left: 110px;
  height: 54px;
  background: url("images/toolicons.png") 0 0 no-repeat;
}


#tools li:nth-child(2) a {
  display: block;
  padding-left: 110px;
  height: 38px;
  background: url("images/toolicons.png") 0 -54px no-repeat;
}
