.ownedtitle, .ownedavatar, .ownedborder, .ownedrp, .ownedcard, .ownedtrinket {
  margin-left: 10px;
}

#pin_selector {
  background-color: rgba(0,0,0,0.8);
  z-index: 100;
  position: fixed;
  top: 0px;
  height: 100%;
  width: 100%;
  text-align: center;
  color: #fff;
  display: none;
}

#pin_selector_content {
  margin-top: 10%;
}

#cselected {
  width: 420px;
  margin-left: auto;
  margin-right: auto;
  color: #111;
  font-weight: bold;
  font-size: 14px;
  height: 80px;
  text-align: center;
  position: relative;
  border: 2px ridge black;
  margin-top: 2px;
  margin-bottom: 2px;
  background-image: url(img/bg.png);
  background-size: cover;
      -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  user-select: none;
}

.posselect {
  margin-top: 5px;
  width: 120px;
  height: 30px;
  margin-left: auto;
  margin-right: auto;
  background-color: #cca;
  cursor: pointer;
  border: none;
  outline: none;
  transition-duration: 0.4s;
}

.posselect:hover {
  background-color: #0cf1a9;
}

#pins {
  width: 100%;
  display: inline;
}

.pinnedContract {
  display: inline-block;
  width: 30%;
  margin-left: 2%;
  margin-top: 5px;
  height: 80px;
  text-align: center;
  position: relative;
  border: 2px ridge black;
  background-image: url(img/bg.png);
  background-size: cover;
}

.contractContainer {
  display: none;
  width: 420px;
  margin-left: 2%;
  height: 80px;
  text-align: center;
  position: relative;
  border: 2px ridge black;
  margin-top: 2px;
  margin-bottom: 2px;
  background-image: url(img/bg.png);
  background-size: cover;
}

.score {
  position: absolute;
  top: 1px;
  right: 5px;
}

.reward {
  position: absolute;
  bottom: 0;
  left: 14%;
  text-align: center;
  width: 85%;
  background-color: rgba(3,3,3,0.4);
  background: -moz-linear-gradient(left, rgba(3,3,3,0) 25%, rgba(3,3,3,0.4) 30%, rgba(3,3,3,0.6) 50%, rgba(3,3,3,0.4) 60%, rgba(3,3,3,0.0) 75%);
  background: -webkit-linear-gradient(left, rgba(3,3,3,0) 25%, rgba(3,3,3,0.4) 30%, rgba(3,3,3,0.6) 50%, rgba(3,3,3,0.4) 60%, rgba(3,3,3,0.0) 75%);
  background: linear-gradient(to right, rgba(3,3,3,0) 25%, rgba(3,3,3,0.4) 40%, rgba(3,3,3,0.6) 50%, rgba(3,3,3,0.4) 60%, rgba(3,3,3,0.0) 75%);
  padding-right: 4px;
  padding-left: 4px;
  color: #0cf1a9;
}

.pin {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,0);
  color: rgba(0,0,0,0);
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: 4px;
  background-image: url("img/ico/pin.png");
  border: 2px dotted rgba(97, 76, 52, 0.66);
}

.pin:hover {
  cursor: pointer;
  border: 2px dotted rgba(225, 176, 120, 0.66);
}

#contracts {
  width: 98%;
  text-align: center;
  margin-left: 1%;
  margin-right: 1%;
}

.filterDiv {
  margin-left: 80px;
  margin-right: 5px;
  height: 80px;
  overflow-x: hidden;
  color: #222;
  text-align: center;
  background-repeat: no-repeat;
  padding-top: 4px;
  font-size: 12px;
  font-weight: bold;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  user-select: none;
}

.toggler {
  display: none;
}

.toggler+.toggler-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .4s ease-in-out;
}

.toggler:checked+.toggler-content {
  max-height: 20000px;
  opacity: 1;
}

.totalpreview {
  width: 96%;
  padding-top: 10px;
  margin-top: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  text-align: left;
  display: -webkit-box;
  background-color: #38271e;
  background: -moz-linear-gradient(left, #38271e 75%, rgba(3,3,3,0.0) 95%);
  background: -webkit-linear-gradient(left, #38271e 75%, rgba(3,3,3,0.0) 95%);
  background: linear-gradient(to right, #38271e 75%, rgba(3,3,3,0.0) 95%);
  color: #fff;
  margin-bottom: 4px;
  position: inherit;
  display: block;
  font-size: 12px;
}

.totalpreview>b {
  margin-right: 16px;
  font-family: 'Aclonica';
  font-size: 18px;
}

#main {
  margin-top: -40px;
}

.totalpreview>div {
  display: inline;
}

.description {
display: inline-block;
font-weight: lighter;
font-size: 12px;
}

.description>details {
  visibility: hidden;
  display: none;
}

.show {
  display: inline-block;
}

.showBlock {
  display: block;
}

#Filters {
  text-align: center;
  background-color: #38271e;
  padding-top: 6px;
  padding-bottom: 10px;
  position: sticky;
  width: 100%;
  display: inline-block;
  top: 0;
  margin-bottom: 10px;
  z-index: 99;
}

input[type=checkbox] {
  opacity: 0;
  width: 100%;
  height: 0;
}

.ownedToggle {
  width: 80px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;

}

.owned {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain;
  background-repeat: no-repeat;
    -webkit-transition: .2s;
  transition: .2s;
}

.owned.General {
  background-image: url("img/general.png");
}

input:checked+.owned.General {
  background-image: url("img/general_owned.png");
}

.owned.Collection {
  background-image: url("img/collection.png");
}

input:checked+.owned.Collection {
  background-image: url("img/collection_owned.png");
}

.owned.Mastery {
  background-image: url("img/mastery.png");
}

input:checked+.owned.Mastery {
  background-image: url("img/mastery_owned.png");
}

.owned.Arena {
  background-image: url("img/arena.png");
}

input:checked+.owned.Arena {
  background-image: url("img/arena_owned.png");
}

.owned.Levels {
  background-image: url("img/levels.png");
}

input:checked+.owned.Levels {
  background-image: url("img/levels_owned.png");
}

.owned.Ranked {
  background-image: url("img/ranked.png");
}

input:checked+.owned.Ranked {
  background-image: url("img/ranked_owned.png");
}

.owned.Seasonal {
  background-image: url("img/seasonal.png");
}

input:checked+.owned.Seasonal {
  background-image: url("img/seasonal_owned.png");
}

.owned.Tales {
  background-image: url("img/tales.png");
}

input:checked+.owned.Tales {
  background-image: url("img/tales_owned.png");
}

.owned.Journey {
  background-image: url("img/general.png");
}

input:checked+.owned.Journey {
  background-image: url("img/general_owned.png");
}

.rp {
  background-image: url("img/ico/rp.png");
  background-repeat: no-repeat;
  background-position-x: 55%;
  background-size: contain;
}

.avataricon::after {
  position: absolute;
  transform: scale(0.25) translateY(-150%) translateX(-120%);
  content: url("img/ico/avatar.png");
}

.bordericon::after {
  position: absolute;
  transform: scale(0.25) translateY(-145%) translateX(-120%);
  content: url("img/ico/border.png");
}

.titleicon::after {
  position: absolute;
  transform: scale(0.35) translateY(-100%) translateX(-60%);
  content: url("img/ico/title.png");
}

.perk {
  background-image: url("img/ico/prestige.png");
  background-repeat: no-repeat;
  background-position-x: 65%;
  background-size: contain;
}

.cardicon::after {
  position: absolute;
  transform: scale(0.8) translateY(-10%);
  content: url("img/ico/card.png");
}

.trinketicon::after {
  position: absolute;
  transform: scale(0.25) translateY(-145%) translateX(-120%);
  content: url("img/ico/trinket.png");
}

.ore:after {
  content: " Ore";
}

select {
background-color: #cca;
  display: inline;
color: #000;
border: none;
cursor: pointer;
padding-right: 6px;
padding-left: 6px;
min-width: 170px;
font-weight: bold;
font-size: 14px;
  margin-bottom: 2px;
}
option {
  background-color: #cca;
  color: #000;
}
select:hover {
outline: 1px solid #0cf1a9;
}
select:focus {
  background-color: #38271e;
  color: white;
}

#searchBox {
  height: 24px;
  min-width: 25%;
  padding-left: 28px;
  padding-right: 28px;
  background: url("https://trendygwentleman.com/static/img/ui/icons.png") no-repeat;
  background-position: 0px -2px;
  background-size: 28px 86px;
  background-blend-mode: overlay;
  margin-top: 2px;
  margin-left: 0px;
  border: none;
  outline: none;
  background-color: #cca;
      -webkit-transition: background-color .6s;
  transition: background-color .6s;
}

#emptysb {
  width: 26px;
  height: 26px;
  position: relative;
  top: 0px;
  margin-left: 1px;
  background-color: #cca;
  border: none;
  text-indent: -2px;
  color: #38271e;
}

#emptysb:hover {
  background-color: #0cf1a9;
  cursor: pointer;
}

#emptysb:active {
  color: #0cf1a9;
  background-color: #38271e;
  outline: 1px solid #0cf1a9;
  text-indent: -3px;
}

#shareResults {
  width: 26px;
  height: 26px;
  position: relative;
  top: 0px;
  margin-left: 10px;
  background-color: #cca;
  border: none;
  text-indent: -2px;
  color: rgba(200,200,150,0);
  border-radius: 40%;
  background-image: url('https://trendygwentleman.com/static/img/ui/link.png');
  background-size: contain;
  -webkit-transition: background-color .6s;
  transition: background-color .6s;
}

#shareResults:hover {
  background-color: #0cf1a9;
  color: rgba(0,1,0,0);
  cursor: pointer;
}

#searchBox:hover {
  outline: 1px solid #0cf1a9;
  background-blend-mode: initial;
}

#searchBox:focus {
  outline: 1px solid #0cf1a9;
  color: #cca;
  background-color: #38271e;
  background-blend-mode: initial;
}


@media screen and (max-width: 580px) {
  .contractContainer {
   width: 95%; 
  }
  summary {
    width: 90%;
  }
  .totalpreview {
    left: 70%;
  }
  .pinnedContract {
    width: 96%;
  }
}