#mainbox {
  position: absolute;
  top: 3.1rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1A1A1A;
}

#mainbox .items {
  overflow-y: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#mainbox .hastitle > .items {
  top: 2rem;
}

#mainbox > * > .title {
  height: 2rem;
  background-color: #333;
}

#mainbox > * > .title > .back {
  height: 100%;
  width: 3rem;
  float: left;
  background-image: url('../style/back.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

#mainbox > * > .title > .text {
  float: left;
  width: calc(100% - 3rem);
  height: 100%;
  -moz-box-sizing: border-box;
  font-size: 1.2rem;
  line-height: 2rem;
  color: #f4f4f4;
}

#mainbox > * > * > *:last-child {
  margin-bottom: 3.2rem;
}

#mainbox .station {
  position: relative;
  width: 100%;
  height: auto;
  -moz-box-sizing: border-box;
  overflow-x: hidden;
}

#mainbox .category {
  font-style: italic;
  position: relative;
  width: 100%;
  height: auto;
  -moz-box-sizing: border-box;
  overflow-x: hidden;
}

.station .content {
  margin-right: 20%;
}

.station .title,
.category .title {
  font-size: 1.3rem;
  padding-top: 1rem;
  font-weight: 500;
  color: white;
  -moz-box-sizing: border-box;
  width: 100%;
  white-space:nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.station .title {
  padding-left: 1rem;
}

.category .title {
  padding-left: 2rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.station .listeners {
  padding-left: 1rem;
  padding-bottom: .25rem;
  padding-top: .25rem;
  -moz-box-sizing: border-box;
  width: 100%;
  font-size: 1rem;
  font-style: italic;
  color: white;
  overflow: hidden;
}

.station .description {
  padding: .5rem;
  padding-left: 1rem;
  width: 100%;
  -moz-box-sizing: border-box;
  font-size: .8rem;
  color: white;
  overflow: hidden;
}

.station .toggleFavorite {
  position: absolute;
  top: calc(50% - 2rem);
  height: 4rem;
  left: 80%;
  right: 0%;
  background-image: url('../style/star_off.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 50%;
}

.station .toggleFavorite.favorited {
  background-image: url('../style/star_on.png');
}
