/* additional css - matches Font Aweosme styles */
/* makes the font 33% larger relative to the icon container */
.hw-icon-large:before {
  vertical-align: -10%;
  font-size: 1.3333333333333333em;
}
/* makes sure icons active on rollover in links */
a [class^="hw-icon-"],
a [class*=" hw-icon-"] {
  display: inline;
}
/* increased font size for icon-large */
[class^="hw-icon-"].hw-icon-fixed-width,
[class*=" hw-icon-"].hw-icon-fixed-width {
  display: inline-block;
  width: 1.1428571428571428em;
  text-align: right;
  padding-right: 0.2857142857142857em;
}
[class^="hw-icon-"].hw-icon-fixed-width.hw-icon-large,
[class*=" hw-icon-"].hw-icon-fixed-width.hw-icon-large {
  width: 1.4285714285714286em;
}

.icons-ul .hw-icon-li {
  position: absolute;
  left: -2.142857142857143em;
  width: 2.142857142857143em;
  text-align: center;
  line-height: inherit;
}
[class^="hw-icon-"].hide,
[class*=" hw-icon-"].hide {
  display: none;
}
.hw-icon-muted {
  color: #eeeeee;
}
.hw-icon-light {
  color: #ffffff;
}
.hw-icon-dark {
  color: #333333;
}
.hw-icon-border {
  border: solid 1px #eeeeee;
  padding: .2em .25em .15em;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
.hw-icon-2x {
  font-size: 2em;
}
.hw-icon-2x.hw-icon-border {
  border-width: 2px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.hw-icon-3x {
  font-size: 3em;
}
.hw-icon-3x.hw-icon-border {
  border-width: 3px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.hw-icon-4x {
  font-size: 4em;
}
.hw-icon-4x.hw-icon-border {
  border-width: 4px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}
.hw-icon-5x {
  font-size: 5em;
}
.hw-icon-5x.hw-icon-border {
  border-width: 5px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  border-radius: 7px;
}
.pull-right {
  float: right;
}
.pull-left {
  float: left;
}
[class^="hw-icon-"].pull-left,
[class*=" hw-icon-"].pull-left {
  margin-right: .3em;
}
[class^="hw-icon-"].pull-right,
[class*=" hw-icon-"].pull-right {
  margin-left: .3em;
}
/* BOOTSTRAP SPECIFIC CLASSES
 * -------------------------- */
/* Bootstrap 2.0 sprites.less reset */
[class^="hw-icon-"],
[class*=" hw-icon-"] {
  display: inline;
  width: auto;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  background-image: none;
  background-position: 0% 0%;
  background-repeat: repeat;
  margin-top: 0;
}
/* more sprites.less reset */
.hw-icon-white,
.nav-pills > .active > a > [class^="hw-icon-"],
.nav-pills > .active > a > [class*=" hw-icon-"],
.nav-list > .active > a > [class^="hw-icon-"],
.nav-list > .active > a > [class*=" hw-icon-"],
.navbar-inverse .nav > .active > a > [class^="hw-icon-"],
.navbar-inverse .nav > .active > a > [class*=" hw-icon-"],
.dropdown-menu > li > a:hover > [class^="hw-icon-"],
.dropdown-menu > li > a:hover > [class*=" hw-icon-"],
.dropdown-menu > .active > a > [class^="hw-icon-"],
.dropdown-menu > .active > a > [class*=" hw-icon-"],
.dropdown-submenu:hover > a > [class^="hw-icon-"],
.dropdown-submenu:hover > a > [class*=" hw-icon-"] {
  background-image: none;
}
/* keeps Bootstrap styles with and without icons the same */
.btn [class^="hw-icon-"].hw-icon-large,
.nav [class^="hw-icon-"].hw-icon-large,
.btn [class*=" hw-icon-"].hw-icon-large,
.nav [class*=" hw-icon-"].hw-icon-large {
  line-height: .9em;
}
.btn [class^="hw-icon-"].hw-icon-spin,
.nav [class^="hw-icon-"].hw-icon-spin,
.btn [class*=" hw-icon-"].hw-icon-spin,
.nav [class*=" hw-icon-"].hw-icon-spin {
  display: inline-block;
}
.nav-tabs [class^="hw-icon-"],
.nav-pills [class^="hw-icon-"],
.nav-tabs [class*=" hw-icon-"],
.nav-pills [class*=" hw-icon-"],
.nav-tabs [class^="hw-icon-"].hw-icon-large,
.nav-pills [class^="hw-icon-"].hw-icon-large,
.nav-tabs [class*=" hw-icon-"].hw-icon-large,
.nav-pills [class*=" hw-icon-"].hw-icon-large {
  line-height: .9em;
}
.btn [class^="hw-icon-"].pull-left.hw-icon-2x,
.btn [class*=" hw-icon-"].pull-left.hw-icon-2x,
.btn [class^="hw-icon-"].pull-right.hw-icon-2x,
.btn [class*=" hw-icon-"].pull-right.hw-icon-2x {
  margin-top: .18em;
}
.btn [class^="hw-icon-"].hw-icon-spin.hw-icon-large,
.btn [class*=" hw-icon-"].hw-icon-spin.hw-icon-large {
  line-height: .8em;
}
.btn.btn-small [class^="hw-icon-"].pull-left.hw-icon-2x,
.btn.btn-small [class*=" hw-icon-"].pull-left.hw-icon-2x,
.btn.btn-small [class^="hw-icon-"].pull-right.hw-icon-2x,
.btn.btn-small [class*=" hw-icon-"].pull-right.hw-icon-2x {
  margin-top: .25em;
}
.btn.btn-large [class^="hw-icon-"],
.btn.btn-large [class*=" hw-icon-"] {
  margin-top: 0;
}
.btn.btn-large [class^="hw-icon-"].pull-left.hw-icon-2x,
.btn.btn-large [class*=" hw-icon-"].pull-left.hw-icon-2x,
.btn.btn-large [class^="hw-icon-"].pull-right.hw-icon-2x,
.btn.btn-large [class*=" hw-icon-"].pull-right.hw-icon-2x {
  margin-top: .05em;
}
.btn.btn-large [class^="hw-icon-"].pull-left.hw-icon-2x,
.btn.btn-large [class*=" hw-icon-"].pull-left.hw-icon-2x {
  margin-right: .2em;
}
.btn.btn-large [class^="hw-icon-"].pull-right.hw-icon-2x,
.btn.btn-large [class*=" hw-icon-"].pull-right.hw-icon-2x {
  margin-left: .2em;
}
/* Fixes alignment in nav lists */
.nav-list [class^="hw-icon-"],
.nav-list [class*=" hw-icon-"] {
  line-height: inherit;
}
/* EXTRAS
 * -------------------------- */
/* Stacked and layered icon */
.icon-stack {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 2em;
  line-height: 2em;
  vertical-align: -35%;
}
.icon-stack [class^="hw-icon-"],
.icon-stack [class*=" hw-icon-"] {
  display: block;
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 1em;
  line-height: inherit;
  *line-height: 2em;
}
.hw-icon-stack .hw-icon-stack-base {
  font-size: 2em;
  *line-height: 1em;
}
/* Animated rotating icon */
.hw-icon-spin {
  display: inline-block;
  -moz-animation: spin 2s infinite linear;
  -o-animation: spin 2s infinite linear;
  -webkit-animation: spin 2s infinite linear;
  animation: spin 2s infinite linear;
}
/* Prevent stack and spinners from being taken inline when inside a link */
a .hw-icon-stack,
a .hw-icon-spin {
  display: inline-block;
  text-decoration: none;
}
@-moz-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(359deg);
  }
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
  }
}
@-o-keyframes spin {
  0% {
    -o-transform: rotate(0deg);
  }
  100% {
    -o-transform: rotate(359deg);
  }
}
@-ms-keyframes spin {
  0% {
    -ms-transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(359deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}
/* Icon rotations and mirroring */
.hw-icon-rotate-90:before {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}
.hw-icon-rotate-180:before {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
}
.hw-icon-rotate-270:before {
  -webkit-transform: rotate(270deg);
  -moz-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  -o-transform: rotate(270deg);
  transform: rotate(270deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.hw-icon-flip-horizontal:before {
  -webkit-transform: scale(-1, 1);
  -moz-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  -o-transform: scale(-1, 1);
  transform: scale(-1, 1);
}
.hw-icon-flip-vertical:before {
  -webkit-transform: scale(1, -1);
  -moz-transform: scale(1, -1);
  -ms-transform: scale(1, -1);
  -o-transform: scale(1, -1);
  transform: scale(1, -1);
}
/* ensure rotation occurs inside anchor tags */
a .hw-icon-rotate-90:before,
a .hw-icon-rotate-180:before,
a .hw-icon-rotate-270:before,
a .hw-icon-flip-horizontal:before,
a .hw-icon-flip-vertical:before {
  display: inline-block;
}

/* brand specific colors */
.hw-icon-color-highwire {
  color: #a90533;
}
.hw-icon-color-pdf {
  color: #dd1f12;
}
.hw-icon-color-epub {
  color: #90bf2d;
}
.hw-icon-color-orcid {
  color: #a6ce39;
}

/* custom SVG icon for readcube icons */
.hw-icon-readcube, 
a .hw-icon-readcube {
  display: inline-block;
}
.hw-icon-readcube {
  background: url('../img/readcube.svg') 0 0 no-repeat transparent;
  background-size: 100%;
  height: 1.2em;
  width: 1.2em;
  text-indent: -9999em;
}
