/*CSS used for just the header migration.  Needs to be cleaned up and combined with home styles.*/

/* Base */

/* vars */
:root {
  /* --ua-crimson: #990000; */
  --ua-crimson: #900f0f;
}

/* import chosen */
/* @import 'js/chosen_v1.8.7/chosen.min.css'; */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

header.main-header {
  width: 100%;
  z-index: 10;

  font-size: 10px;
}

/** Skip to main content tab **/
.skip-to-content-link {
  left: 50%;
  position: absolute;
  transform: translateY(-100%);
}

.skip-to-content-link {
  background: #ccc;
  color: #900f0f !important;
  font-size: 1rem;
  height: 1.875rem;
  left: 33vw;
  padding: 10px;
  display: flex;
  align-items: center;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
  z-index: 1;
}

.skip-to-content-link:focus {
  transform: translateY(30%);
  height: 1.875rem;
}

/******************************/

a {
  color: var(--ua-crimson);
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  list-style: none;
  margin: 0;
  padding: 0;
}

header img {
  width: 100%;
}

/* Layout & Theme */

/* fix .fa so you can use it on links and spans wrapping content */
.fa {
  font: inherit;
}
.fa:before {
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
}

.skip-link {
  display: none;
}

.screen-reader-visible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.brandbar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 3vw;

  background: #900f0f;
  color: #fff;
  transition: background 0.2s ease-in-out;
}

.brandbar a {
  color: #fff;
  text-decoration: none;
  height: 3.125rem;
}

.brandbar .ua-logo {
  display: flex;
  align-items: center;
  position: relative;
  width: 29vw;
  background-position: 12px center;
  margin-left: -12px;
}

.brandbar .ua-logo a {
  width: 100%;
  height: 100%;

  text-indent: -9999px;
  background: url("../imgs/logos/ua-logo.svg") left center no-repeat;
  background-size: 100%;
}

.brandbar .legends-campaign:before,
.brandbar .legends-campaign:after {
  position: absolute;
  width: 12px;
  height: 100%;
  z-index: 0;

  content: "";
  background: #353535;
  transform: skew(-20deg);
  border-right: 5px solid #353535;
}

.brandbar .legends-campaign:before {
  left: -8px;
}

.brandbar .legends-campaign:after {
  right: -8px;
}

.brandbar .legends-campaign {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 33vw;

  background: #353535;
}

/* @supports (clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%)) {
            .brandbar .legends-campaign:before, .brandbar .legends-campaign:after {
                content: none;
            }
            .brandbar .legends-campaign {
                transform: none;
                clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
                padding: 0 25px;
            }
        } */

/* .brandbar .legends-campaign a {
        width: 92%;
        height: 100%;
        position: relative;
        z-index: 2;
      
        text-indent: -9999px;
        background: #353535
          url("https://stratcomweb01-dev.ua.edu/brandbar/img/legends-sm.png") center
          center no-repeat;
        background-size: 100%;
        color: white;
        text-align: center;
      } */

.brandbar .brandbar-nav {
  display: flex;
  align-items: center;

  font-size: 1.3em;
}

.brandbar .brandbar-nav li a,
.brandbar .brandbar-nav li button {
  display: inline-block;
  min-height: 3.125rem;
  padding: 0 15px;

  line-height: 3.125rem;
}

.brandbar .brandbar-nav li a:hover,
.brandbar .brandbar-nav li a:focus,
.brandbar .brandbar-nav li button:hover,
.brandbar .brandbar-nav li button:focus {
    background: #fff;
    color: #900f0f;
}

.brandbar .brandbar-nav button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3em;
  cursor: pointer;
}

.top-search-container {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 4.125rem;
  z-index: 1100;
  padding: 8px;

  background: #fff;
}

.top-search-active {
  display: flex;
}

.top-search-container form {
  flex: 1 0 100%;
  padding: 5px;
}

.form-control {
  width: 100%;
  border-radius: 5px 0 0 5px;
  background: #fff;
  height: 2.5rem;
  padding-right: 30px;
  color: #666;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  margin: 0;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border: 1px solid #ccc;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  text-transform: uppercase;
  font-weight: bold;
}

.input-group {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input-group-btn {
  height: 2.5rem;
}

.input-group-btn button {
  height: 100%;
  padding: 9px 12px;
  color: #333;
  background-color: #e1e1e1;
  border-color: #d3d3d3;
  border-radius: 0 2px 2px 0;
  background-repeat: repeat-x;
  -webkit-transition: all ease-in-out 0.2s;
  transition: all ease-in-out 0.2s;
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
}

.universal-resources {
  background: #353535;
  color: white;
  display: none;
}

.universal-nav-active {
  display: initial;
}

.universal-resources .universal-nav {
  /* padding: 0 .5em; */

  background: #990000;
  background: #353535;
  /* background-image: linear-gradient( to right, hsl(0, 100%, 30%) 40%, hsl(100, 100%, 100%) 10% ); */
  background-image: linear-gradient(
    to right,
    hsl(0, 81%, 31%) 46%,
    hsl(100, 100%, 100%) 10%
  );
  font-size: 1.6em;
  border-bottom: 1px solid #990000;
  /* border-bottom: 1px solid #c6c6c6; */
}

.universal-resources .universal-nav li {
  transform: skew(-20deg);
}

.universal-resources .universal-nav li a {
  /* display: inline-block; */
  display: flex;
  align-items: center;
  min-height: 4.125rem;
  width: 100%;
  padding: 0 20px;

  color: white;
  line-height: 4.125rem;
  font-weight: 400;
  font-size: 1em;
  text-decoration: none;
  line-height: 100%;
  transform: skew(20deg);
}

.universal-resources .universal-nav li:nth-child(n + 5) {
  background: #353535;
  background: white;
}

.universal-resources .universal-nav li:nth-child(n + 5) a {
  color: #990000;
}

.universal-resources .universal-nav li:hover,
.universal-resources .universal-nav li:focus {
  background: white;
}

.universal-resources .universal-nav li:hover a,
.universal-resources .universal-nav li:focus a {
  color: #990000;
}

.universal-resources .universal-nav li:nth-child(n + 5):hover,
.universal-resources .universal-nav li:nth-child(n + 5):focus {
  background: var(--ua-crimson);
  outline: 1px solid #fff;
}

.universal-resources .universal-nav li:nth-child(n + 5):hover a,
.universal-resources .universal-nav li:nth-child(n + 5):focus a {
  color: white;
}

.alone-primary-nav {
  padding: 0;

  background: rgba(255, 255, 255, 0.9);
}

.alone-primary-nav nav ul {
  justify-content: space-around;
}

.alone-primary-nav a {
  text-decoration: none;
}

.alone-primary-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  margin: 0.5em 0;
  padding: 0 14px;

  line-height: 1.5;
  font-weight: 600;
  font-size: 1.6em;
}

.primary-nav li {
  text-align: center;
  flex: 0 0 100%;
}

.primary-nav a {
  padding: 0.5em 0.8em;
  position: relative;

  color: rgba(0, 0, 0, 0.7);
  font-size: 20px;
  text-align: center;
  text-decoration: none;
}

.primary-nav a::before,
.primary-nav a::after {
  position: absolute;
  height: 0.875rem;
  width: 0.875rem;

  content: "";
  transition: all 0.35s ease;
  opacity: 0;
}

.primary-nav a::before {
  left: 0;
  top: 0;

  content: "";
  border-top: 3px solid #992020;
  border-left: 3px solid #992020;
  transform: translate(-50%, -50%);
}

.primary-nav a:after {
  right: 0;
  bottom: 0;

  content: "";
  border-bottom: 3px solid #992020;
  border-right: 3px solid #992020;
  transform: translate(50%, 50%);
}

.primary-nav a:hover:before,
.primary-nav a:focus:before,
.primary-nav a:hover:after,
.primary-nav a:focus:after {
  color: #333;
  transform: translate(0, 0);
  opacity: 1;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: #333;
}

/* end alone-primary-nav */

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 6.25rem;
  padding: 0 3vw;
  /* padding: 0 40px 0 26px; */

  border-bottom: 1px solid #c6c6c6;
}

.masthead h1 {
  margin: 10px 0 0;
}

.masthead a {
  text-decoration: none;
}

.masthead .title-site {
  display: flex;
  align-items: center;

  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 3.4em;
  letter-spacing: -2px;
}

.masthead .title-site .honorific {
  display: block;

  font-size: 0.6em;
  font-style: italic;
  line-height: 0.6em;
  letter-spacing: -1px;
}

.masthead .title-site .standalone {
  display: block;
  max-width: 11.25rem;

  font-size: 0.7em;
  line-height: 1.3em;
  letter-spacing: -1px;
}

.masthead .primary-nav li a {
  display: inline-block;
  min-height: 6.25rem;
  padding: 0 14px;

  font-weight: 600;
  font-size: 1.6em;
  line-height: 6.25rem;
}

.masthead .primary-nav li a:hover,
.masthead .primary-nav li a:focus {
  background: var(--ua-crimson);
  color: #fff;
}

/* State */
/* component state, not element state (e.g. :hover :active :focus) */

button > span {
  pointer-events: none;
}

.collapse {
  display: none;
  max-height: 0rem;

  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0, 1, 0, 1);
}

.collapse.moving {
  display: block;
}

.collapse.show {
  display: block;
  max-height: 99rem;

  transition: max-height 1.2s ease-in-out;
}

.brandbar.expanded {
  background: #353535 !important;
}

.brandbar.expanded button:focus {
  background: white;
  color: #990000;
}

.brandbar.expanded .brandbar-nav li button:hover,
.brandbar.expanded .brandbar-nav li button:focus {
  background: white;
  color: #990000;
}

.brandbar .ua-logo:before {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1vw;
  display: none;

  content: "";
  background: url("imgs/ua-square-logo.png") center center no-repeat;
  background-size: 100%;
}

.brandbar .legends-campaign {
  display: none;
}

.brandbar .legends-campaign a {
  width: 92%;
  height: 100%;
  position: relative;
  z-index: 2;

  background: #353535 url("imgs/legends-sm.png") center center no-repeat;
  background-size: 100%;
  color: white;
  text-indent: -9999px;
  text-align: center;
}

.brandbar .brandbar-nav li.apply a span,
.brandbar .brandbar-nav li.give a span,
.brandbar .brandbar-nav li.tour a span {
  display: inline-block;
  margin-right: 5px;
}

.brandbar.expanded .brandbar-nav li.expand-universal-nav button {
  background: transparent;
  color: #fff;
}

.brandbar .brandbar-nav .expand-universal-nav .fa-bars.mobile-expand:before {
  content: "\f00d";
}

.universal-resources .universal-nav {
  background: #990000;
  background: #353535;
  background-image: linear-gradient(
    to right,
    hsl(0, 81%, 31%) 48%,
    hsl(100, 100%, 100%) 10%
  );
  font-size: 1.6em;
  border-bottom: 1px solid #990000;
}

.universal-resources .universal-nav ul {
  justify-content: space-between;
  padding: 0 40px;
}

.brandbar-nav .fa-bars.mobile-expand {
  color: #992020;
}

.universal-resources .universal-nav li:nth-child(5) span,
.universal-resources .universal-nav li:nth-child(6) span {
  margin-right: 5px;
}

.alone-primary-nav {
  position: relative;
  z-index: 900;

  background: rgba(255, 255, 255, 0.9);
}

.video-placeholder {
  margin-top: -74px;
  position: relative;
  z-index: -1000;
}

@media screen and (min-width: 20.3125em /*min-width: 325px*/) {
  .primary-nav li {
    flex: 0 0 50%;
  }
}

@media screen and (min-width: 33.4375em /*min-width: 535px*/) {
  .primary-nav li {
    flex: 1 1 auto;
  }
}

@media screen and (max-width: 34.375em /*max-width: 550px*/) {
  .universal-resources .universal-nav li {
    width: 50%;
  }
}

@media screen and (max-width: 48em /*max-width: 768px*/) {
  .universal-resources .universal-nav li:nth-child(n + 5),
  .universal-resources .universal-nav li:nth-child(n + 7) {
    width: 33%;
  }
}

@media screen and (min-width: 48.0625em /*min-width: 769px*/) {
  .top-search-container form {
    flex: 1 0 33%;
  }
}

@media screen and (max-width: 67.5em /*max-width: 1080px*/) {
  .main-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #353535;
  }

  .brandbar {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: rgb(144, 15, 15);
  }

  .universal-resources {
    display: none;
    order: 6;
    position: relative;
    z-index: 2;
  }

  .brandbar .ua-logo {
    position: relative;
    display: flex;
    align-items: center;
    width: 50vw;
    margin-left: 5px;
  }

  .brandbar .brandbar-nav {
    justify-content: flex-end;
  }

  .brandbar .brandbar-nav ul:nth-of-type(1) {
    position: absolute;
    top: 3.125rem;
    left: 0;
    height: 3.125rem;
    width: 100%;
    z-index: 1000;
    display: none;

    background: white;
    border-bottom: 1px solid var(--ua-crimson);
  }

  .brandbar .brandbar-nav ul:nth-of-type(1) li a {
    color: var(--ua-crimson);
    font-size: 1.2em;
  }

  .brandbar .brandbar-nav ul:nth-of-type(1) li a:focus,
  .brandbar .brandbar-nav ul:nth-of-type(1) li a:hover {
    background: transparent;
    color: var(--ua-crimson);
  }

  .brandbar .brandbar-nav ul:nth-of-type(1) li a:hover {
    text-decoration: underline;
  }

  .brandbar .brandbar-nav ul:nth-of-type(2) li:nth-child(1) {
    display: none;
  }

  .brandbar .brandbar-nav li.expand-search {
    order: -2;
  }

  .brandbar .brandbar-nav li.expand-universal-nav {
    order: -1;
  }

  .universal-resources .universal-nav {
    width: 100%;

    background: #990000;
    background: #353535;
    background-image: linear-gradient(
      to right,
      hsl(0, 81%, 31%) 40%,
      hsl(100, 100%, 100%) 10%
    );
    background-image: none;
    font-size: 1.6em;
    border-bottom: 1px solid #990000;
    border-bottom: none;
  }

  .universal-resources .universal-nav ul {
    justify-content: space-around;
    padding: 0;
  }

  .universal-resources .universal-nav li {
    width: 25%;

    transform: none;
  }

  .universal-resources .universal-nav li a {
    transform: none;
  }

  .universal-resources .universal-nav li {
    width: 25%;
    padding: 10px 0;

    background: white;
    background: var(--ua-crimson);
  }

  .universal-resources .universal-nav li a {
    justify-content: center;
    min-height: 3.125rem;
    padding: 0;

    color: var(--ua-crimson);
    color: white;
  }

  .universal-resources .universal-nav li:nth-child(n + 5) {
    padding: 10px 20px;

    background: #353535;
    background: none;
  }

  .universal-resources .universal-nav li:nth-child(n + 7) {
    background: none;
  }

  .universal-resources .universal-nav li:nth-child(n + 5) a {
    color: white;
  }

  .alone-primary-nav {
    padding: 0;
    margin-top: 3.125rem;
    width: 100%;

    display: none;
  }

  .primary-nav {
    width: 100%;

    background: white;
    border-bottom: 1px solid var(--ua-crimson);
  }

  header nav ul {
    width: 100%;
  }

  .alone-primary-nav .primary-nav li a {
    min-height: 2.75rem;
    padding: 0 5px;
  }

  .video-placeholder {
    position: relative;
    margin-top: 0;
    z-index: -1000;
  }

  .mobile-expand {
    width: 100%;
    display: flex;
  }

  header.mobile-expand {
    min-height: 100vh;
  }

  .expand-universal-nav button .fa.mobile-expand {
    color: var(--ua-crimson);
  }

  .brandbar.mobile-expand {
    background: #353535 !important;
  }

  .brandbar .brandbar-nav ul:nth-of-type(1).mobile-expand {
    display: inherit;
  }
}

@media screen and (min-width: 67.5em /*min-width: 1080px*/) {
  .primary-nav li {
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 34.375em /*max-width: 550px*/) {
  .universal-resources .universal-nav li {
    width: 50%;
  }
}
