/**
 * Image replacement
 * Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
 * Additional helpers from http://html5boilerplate.com/docs/css/
 */
.ir {
  /* Kellum Method */
  display: block !important;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  /* Remove the default border from elements like button */
  border: 0;
  /* Crush the text down to take up no space */
  font: 0/0 a;
  /* Remove any text shadows */
  text-shadow: none;
  /* Hide any residual text in Safari 4 and any mobile devices that may need it */
  color: transparent;
  /* Hide the default background color on elements like button */
  background-color: transparent;
}

#topbanner-wrapper {
  background-color: #881c1c;
}

/* UMass Banner -- Large Screens */

#umass-banner {
  padding: 1em 20px 0.9em 20px;
  background-color: #881c1c;
}

/*#umass-banner .container,
#umass-banner #metanav .container {
  max-width: 1200px;
}*/

#umass-banner a:hover,
#umass-banner a:focus { 
  border: none; 
  outline: none;
}

#umass-banner a#wordmark {
  background: url('../images/wordmark.svg') no-repeat;
  height: 1.5em;
  width: 12em;
  float: left;
  background-size: contain;
  font: inherit; /* counteracts font declaration in .ir class */
  margin-top: 0.1em
}

.lt-ie9 #umass-banner a#wordmark {
  background: url('../images/wordmark.png') no-repeat;
} /* fallback for ie8  */

#umass-banner a {
  color:#fff;
}

#umass-banner .metanav-toggle {
  float: right;
  padding: 0.25em 2em 0 0.25em;
  text-decoration: none;
  color: #fff;
  display: block;
}

#umass-banner .metanav-toggle .fa { 
  font-size: 1.3em;
  position: relative;
  top: 0.05em;
}

/*.fa {
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  font-family: FontAwesome;
  font-feature-settings: normal;
  font-kerning: auto;
  font-language-override: normal;
  font-size: inherit;
  font-size-adjust: none;
  font-stretch: normal;
  font-style: normal;
  font-synthesis: weight style;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  text-rendering: auto;
}*/

#umass-banner form {
  float: right;
}

#edit-search-keys {
  border-radius: 0;
}

#metanav-wrapper {
  clear: both;
  display: none;
  background: linear-gradient(to bottom, #303030 50%, #444 100%) #303030;
  background-color: #303030; /* fallback for ie8 & ie9 */
  text-align: right;
}

#metanav li {
  display: inline-block;
}

#metanav a,
#metanav a:link,
#metanav a:visited {
  display: block;
  color:#fff;
  padding: .5em 1em;
  font-size: .8em;
  text-decoration: none;
}

#metanav a:hover,
#metanav a:active,
#metanav a:focus {
  text-decoration: underline;
}

#umass-banner input { 
  font-family: inherit;
  border: none;
  padding: 0.25em;
}

#umass-banner input[type="submit"] {
  background: #881c1c url('../images/search.svg') 0 -2px no-repeat;
  height: 1.75em;
  width: 1.75em;
  background-size: contain;
  text-indent: -9999px; 
  vertical-align: middle;
  box-shadow: none;
}

#metanav ul {
  margin: 0;
  padding: 0;
}


/* UMass Banner -- Small Screens */

@media all and (max-width: 575px) {
  #umass-links-search {
    clear: both;
    width: 270px;
    margin: 0 auto;
  }
  
  #umass-links-search form {
    padding-right: 1.5em;
  }
  
  #umass-banner a#wordmark, 
  #metanav { 
    float: none; 
    margin: 0 auto;
    text-align: center;
    padding: 0;
  }
  
  #umass-banner .metanav-toggle {
    float: left;
    padding-right: 1em;
  }
  
  #umass-banner a#wordmark {
    margin-bottom: 1.2em;
  }
  
  #metanav ul {
    padding: 0;
  }

}
