
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
 

body {
  height:400px;
  width:320px;
  overflow: hidden;

}

h1 {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 24px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 13.4px;
}

h2 {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 18.4px;
}

h3 {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 16.4px;
}
p {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 18px;
}
blockquote {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 21px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 30px;
}
pre {
  font-family: 'Book Antiqua', Palatino, 'Palatino Linotype', 'Palatino LT STD', Georgia, serif;
  font-size: 13px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 18.5714px;
}

img {
    display:block;
    position: absolute;
    float:right;
}

/* ---- button ---- */

.button {
  display: inline-block;
  padding: 0.5em 1.0em 0.5em 1.0em;
  margin: 5px;
  background: #B0B0B0;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.button:hover {
  background-color: #875F43;
  color: #fff;
}

.button:active,
.button.is-checked {
  background-color: #968274;
}

.button.is-checked {
  color: white;
  text-shadow: 0 -1px hsla(25, 14%, 52%, 0.8);
}

.button.is-checked-1 {
  color: white;
    background-color: white;

}

.button:active {
  box-shadow: inset 0 1px 10px hsla(25, 14%, 52%, 0.8);
}

/* ---- button-group ---- */



.button-group {
  content: '';
  display: block;
  top: 10px;
  left: 10px;
  z-index: 999;
  clear: both;
  position: absolute;
}

.button-group .filter{
  position:absolute;
  top: 50px;
  left: 10px;
  z-index: 999;
  clear:both;

}

.button-group .sort {
  position:absolute;
  top: 150px;
  left: 10px;
  z-index: 900;
  clear: both;
}

.button-group .button {
  float: left;
  border-radius: 0.5em 0.5em 0.5em 0.5em;
  margin-left: 0;
  margin-right: 1px;
}

.button-group .button:first-child { border-radius: 0.5em 0.5em 0.5em 0.5em; }
.button-group .button:last-child { border-radius: 0.5em 0.5em 0.5em 0.5em; }

/* ---- packery ---- */

.packery {
  border: 0px solid #333;
  display:block;
  position:relative;
  top:115px;
}

/* clear fix */
.packery:after {
  content: '';
  display: block;
  clear: both;
  position:relative;
  top:20px;
}

/* Button Containers */

.button-container {
 position: relative;
 display:block;
  top: 5px;
}
/* ---- .element-item ---- */

.element-item {
  position: relative;
  float: left;
  width: 100px;
  height: 80px;
  margin: 5px;
  padding: 10px;
  background: #888;
  color: #262524;
  display:inline-block;
  overflow: hidden;

}

.element-item-box {
  width: 80px;
  height: 85px;
  overflow: hidden;

}

.element-item-quote {
  width: 170px;
  height: 180px;
  overflow: hidden;

}

.element-item-media {
  width: 330px;
  height: 230px;
  overflow: hidden;

}

.element-item > * {
  margin: 0;
  padding: 0;
}

.element-item .name {
  position: absolute;

  left: 10px;
  top: 50px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: normal;
  color: #ffffff;

}

.element-item-quote .name {
  position: absolute;

  left: 10px;
  top: 140px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: normal;
  color: #ffffff;

}


.element-item .symbol {
  position: absolute;
  left: 8px;
  top: 0px;
  font-size: 38px;
  font-weight: bold;
  color: #ffffff;
}

.element-item .age {
  position: absolute;
  right: 8px;
  top: 5px;
  color: #ffffff;

}

.element-item .town {
  position: absolute;
  left: 10px;
  top: 66px;
  font-size: 11px;
  color: #ffffff;

}

.element-item-quote .town {
  position: absolute;
  left: 10px;
  top: 155px;
  font-size: 11px;
  color: #ffffff;

}

.element-item-quote .quote {
  position: absolute;
  top: 50px;
  left: 10px;
  font-size: 14px;
  color: #ffffff;
  padding-right:3px;
}

.element-item-quote .text {
  position: absolute;
  left: 10px;
  top: 180px;
  font-size: 12px;
  color: #ffffff;
  padding-right: 5px;

}

.element-item-box .text {
  position: absolute;
  left: 10px;
  top: 88px;
  font-size: 12px;
  color: #ffffff;
  padding-right: 5px;

}

.element-item-box .expand {
  height: 50px;
  overflow: hidden;
  -webkit-transition: padding 0.2s ease-in-out;
  -moz-transition: padding 0.2s ease-in-out;
  -o-transition: padding 0.2s ease-in-out;
  transition: padding 0.2s ease-in-out
}

.element-item-quote .expand {
  height: 50px;
  overflow: hidden;
  -webkit-transition: padding 0.2s ease-in-out;
  -moz-transition: padding 0.2s ease-in-out;
  -o-transition: padding 0.2s ease-in-out;
  transition: padding 0.2s ease-in-out
}

.element-item-media .expand {
  height: 50px;
  overflow: hidden;
  -webkit-transition: padding 0.2s ease-in-out;
  -moz-transition: padding 0.2s ease-in-out;
  -o-transition: padding 0.2s ease-in-out;
  transition: padding 0.2s ease-in-out
}

.element-item-box:hover {
  background: #8CF;
  cursor: pointer;
}

.element-item-quote:hover {
  background: #8CF;
  cursor: pointer;
}

.element-item-box.gigante {
  width: 260px;
  height: 300px;
  background: #fff;
  overflow:scroll;
}

.element-item-quote.gigante {
  width: 260px;
  height: 300px;
  background: #fff;
  overflow:scroll;
}

.element-item-media.gigante {
  width: 260px;
  height: 500px;
  background: #fff;
  overflow:scroll;
}

.header{
width:290px;
padding-left:5px;
}

.footer{
width:290px;
padding-left:5px;
top: 520px;
position:absolute;

}



.element-item-box.Recovery          { background: #B36EA6; background: #B36EA6; }
.element-item-box.User  { background: #7A266A; background: #7A266A; }
.element-item-box.Family      { background: #7477AD; background:  #7477AD; }
.element-item-box.Significant_Other        { background: #F9C29A; background: #F9C29A; }
.element-item-box.Friend      { background: a; background: #AA6735; }
.element-item-box.Other { background: #804112; background:#804112; }
.element-item-box.Parent       { background: #313476; background: #313476; }
.element-item-quote.Recovery          { background: #B36EA6; background: #B36EA6; }
.element-item-quote.User  { background: #7A266A; background: #7A266A; }
.element-item-quote.Family      { background: #7477AD; background:  #7477AD; }
.element-item-quote.Significant_Other        { background: #F9C29A; background: #F9C29A; }
.element-item-quote.Friend      { background: #AA6735; background: #AA6735; }
.element-item-quote.Other { background: #804112; background:#804112; }
.element-item-quote.Parent       { background: #313476; background: #313476; }
.element-item-media.Recovery          { background: #804747; background: #804747; }
.element-item-media.User  { background: #B48E8E; background: transparent; }
.element-item-media.Family      { background: #A27171; background:  #A27171; }
.element-item-media.Significant_Other        { background: #673232; background: #673232; }
.element-item-media.Friend      { background: #512020; background: #512020; }
.element-item-media.Other { background: #805F47; background:#805F47; }
.element-item-media.Parent       { background: #B49E8E; background: #B49E8E; }

.element-item.Atlantic
.element-item.Bergen
.element-item.Burlington
.element-item.Camden
.element-item.Cape_May
.element-item.Cumberland
.element-item.Essex
.element-item.Gloucester
.element-item.Hudson
.element-item.Hunterdon
.element-item.Mercer
.element-item.Monmouth
.element-item.Morris
.element-item.Middlesex
.element-item.Ocean
.element-item.Passaic
.element-item.Salem
.element-item.Somerset
.element-item.Sussex
.element-item.Union
.element-item.Warren
