/* On Demand */

.logoMenu {
  float: left;
  width: 30px;
  padding: 15px 0 0;
}

.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.flex-direction-col {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flex-wrap {
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.align-self-center {
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.align-items-center {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.justify-content-center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.on-demand-homepage {
  height: 100%;
  padding-top: 40px;
}

.on-demand-homepage-section {
  border: 2px solid #afafaf;
  margin: 0 auto 20px;
  text-align: center;
  font-weight: 300;
  text-decoration: none;
  position: relative;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 40%;
  -ms-flex: 0 1 40%;
  flex: 0 1 40%;
}

.on-demand-homepage-section a {
  padding: 10px;
  text-decoration: none;
  height: 100%;
}

.on-demand-category-section a::before,
.on-demand-homepage-section a::before {
  content:"";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(228, 125, 8, 0.5);
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
  opacity: 0;
  z-index: 1;
}

.on-demand-category-section a:hover::before,
.on-demand-homepage-section a:hover::before {
  opacity: 1;
}

.on-demand-category-section .section-image,
.on-demand-homepage-section .section-image {
  padding: 0 30px;
}

.on-demand-category-section .wp-post-image,
.on-demand-homepage-section .wp-post-image {
  margin: 20px 0;
}

.on-demand-homepage-section h3 {
  margin-bottom: 55px;
  color: #e47d08;
  font-size: 42pt;
  line-height: 1.2em;
  font-weight: 300;
  text-transform: uppercase;
}

.on-demand-homepage-section p {
  font-size: 26px;
  color: #3f3e40;
}

.on-demand-title,
.on-demand-file-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1 0;
  -ms-flex: 1 0;
  flex: 1 0;
}

.on-demand-mobile-file-title {
  display: none;
}

.on-demand-header {
  padding-top: 10px;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.on-demand-search-input {
  padding: 22px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.on-demand-search-input span {
  background: #e47d08;
  color: #ffffff;
  padding: 6px 15px;
  display: inline-block;
}

.on-demand-search-input input {
  padding: 6px;
  font-size: 1.2em;
  width: 365px;
  background: url('/wp-content/uploads/2018/06/search.png') no-repeat 6px center;
  -webkit-background-size: 26px 26px;
  background-size: 26px;
  border: 1px solid #b4b6b8;
  padding-left: 40px;
}

.on-demand-search-input input::-webkit-input-placeholder {
  color:    #939598;
}
.on-demand-search-input input:-moz-placeholder {
  color:    #939598;
}
.on-demand-search-input input::-moz-placeholder {
  color:    #939598;
}
.on-demand-search-input input:-ms-input-placeholder {
  color:    #939598;
}

.on-demand-category-section {
  background-color: #b4b3b8;
  -webkit-flex-basis: -webkit-calc(33.333% - 20px);
  -ms-flex-preferred-size: calc(33.333% - 20px);
  flex-basis: calc(33.333% - 20px);
  margin: 10px;
  position: relative;
}

.on-demand-category-section .section-image {
  height: 180px;
  background-repeat: no-repeat;
  background-position: top center;
  margin: 20px;
  -webkit-background-size: 80% 80%;
  background-size: 80%;
}

.on-demand-category-section .section-text {
  background: rgba(255,255,255,0.9);
  width: -webkit-calc(100% - 6px);
  width: -webkit-calc(100% - 5px);
  width: calc(100% - 5px);
  position: absolute;
  padding: 10px 3px;
  bottom: 0;
  text-align: center;
}

.on-demand-category-section h3 {
  font-weight: 400;
  color: #231f20;
  margin: 2px 0;
}

.page-template-on_demand_search,
.page-template-on_demand_home h1 {
  text-align: left;
}

.on-demand-product-image {
  -webkit-flex-basis: -webkit-calc(33.333% - 50px);
  -ms-flex-preferred-size: calc(33.333% - 50px);
  flex-basis: calc(33.333% - 50px);
  margin-right: 50px;
}

.on-demand-product-files h1 {
  background: url('/wp-content/uploads/2018/06/folder-icon.png') left center no-repeat;
  padding: 18px 0 18px 80px;
}

.on-demand-navigation {
  padding: 15px 0;
}

.on-demand-navigation a {
  padding: 20px 0;
  text-decoration: none;
}

.on-demand-navigation a:hover {
  text-decoration: underline;
}

.on-demand-home {
  padding: 0 60px 0 20px;
}

.on-demand-home-icon {
  background: url('/wp-content/themes/tynetec/images/homeIcon.png') center center no-repeat;
  background-color: #e47d08;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  width: 40px;
  height: 40px;
  display: inline-block;
}

.on-demand-home-text {
  display: block;
}

.on-demand-back {
  font-size: 1.4em;
}

.on-demand-product-files {
  text-align: left;
  -webkit-flex-basis: 66.666%;
  -ms-flex-preferred-size: 66.666%;
  flex-basis: 66.666%;
}

.on-demand-product-folders {
  position:relative;
  min-height: 264px;
}

.on-demand-video-popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 9999;
  background: rgba(255,255,255,0.6)
}

.on-demand-video-popup-video {
  height: 100%;
}

.on-demand-video-popup-video-wrapper {
  position: relative;
}

.on-demand-video-popup-close {
  font-weight: 700;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background-color: #e47d08;
  font-size: 28px;
  text-align: center;
  line-height: 38px;
  display: block;
  position: absolute;
  top:-20px;
  left:-20px;
  cursor: pointer;
}

.on-demand-folder {
  border: 1px solid #939598;
}

.on-demand-file,
.on-demand-video,
.on-demand-folder {
  display: block;
  padding: 3px 3px 3px 45px;
  line-height: 36px;
  -webkit-background-size: 30px 30px;
  background-size: 30px;
  background-position: 5px center;
  background-repeat: no-repeat;
  border-bottom: none;
}

.on-demand-code {
  min-width: 120px;
}

.on-demand-file-view-link,
.on-demand-file-link-text-title {
  min-width: 80px;
  padding:0 9px;
}

.on-demand-item {
  border: 1px solid #939598;
  border-bottom: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.on-demand-file-link {
  -webkit-box-flex: 1;
  -webkit-flex: 1 0;
  -ms-flex: 1 0;
  flex: 1 0;
}

.on-demand-file-share {
  display:block;
  width: 42px;
  background-color: #eeefef;
  background-image: url('/wp-content/uploads/2018/06/forward.png');
  -webkit-background-size: 42px 42px;
  background-repeat: no-repeat;
  background-position: center center;
  border-left: 1px solid #939598;
}

.on-demand-file-share span {
  display: none;
}

.on-demand-single-file {
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  border: 1px solid #939598;
  border-bottom: none;
}

.on-demand-single-file > span {
  padding: 4px 15px;
}

.on-demand-single-file span.on-demand-file-link-text,
.on-demand-single-file span.on-demand-video-link-text {
  padding: 3px 15px 3px 45px;
  line-height: 44px;
  -webkit-background-size: 30px 30px;
  background-size: 30px;
  background-position: 5px center;
  background-repeat: no-repeat;
}


.on-demand-single-file span:not(:last-child) {
  border-right: 1px solid #939598;
}

a.on-demand-file-link {
  color: #3e3b3c;
  text-decoration: none;
}

a.on-demand-file-link:hover {
  text-decoration: underline;
}

.on-demand-information,
.on-demand-product-folders > div:nth-last-child(2),
.on-demand-folder-content {
  border-bottom: 1px solid #939598;
}

.on-demand-folder {
  font-size: 1.2em;
  background-image: url('/wp-content/uploads/2018/06/folder-icon.png');
  cursor: pointer;
  width: 202px;
}

.on-demand-folder.active {
  font-weight: 700;
}

.on-demand-single-file-title-mobile,
.on-demand-folder:not(.active) .on-demand-folder-icon {
  display: none;
}

.on-demand-file:not(.on-demand-single-file), .on-demand-file-link-text {
  background-image: url('/wp-content/uploads/2018/06/pdf.png');
}

.on-demand-video, .on-demand-video-link-text {
  background-image: url('/wp-content/uploads/2018/06/youtube.png');
}

.on-demand-file:not(.on-demand-single-file-title),
.on-demand-video {
  background-color: #eeefef;
}

.on-demand-folder-content-search-results {
  margin: 30px;
  text-align: left;
  max-width: 600px;
}

@media only screen and (min-width: 996px) {
  .on-demand-folder-content:not(.on-demand-folder-content-search-results) {
    position: absolute;
    width: -webkit-calc(100% - 250px);
    width: calc(100% - 250px);
    right: 0;
    top: 0;
  }
}

@media only screen and (max-width: 995px) {
  .on-demand-homepage-section h3 {
    font-size: 20pt;
  }

  .on-demand-homepage-section p {
    font-size:14px;
  }

  .on-demand-category-section {
    -webkit-flex-basis: -webkit-calc(50% - 20px);
    -ms-flex-preferred-size: calc(50% - 20px);
    flex-basis: calc(50% - 20px);
  }

  .on-demand-category-section h3 {
    font-size: 16px;
  }

  .on-demand-file:not(.on-demand-single-file),
  .on-demand-video,
  .on-demand-folder {
    width: -webkit-calc(100% - 50px);
    width: calc(100% - 50px);
  }

  .on-demand-folder-icon {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    padding: 0px 0 0 4px;
    display:inline-block;
  }

}

@media only screen and (max-width: 767px) {

  .on-demand-homepage-pagebar {
    padding: 5px 0;
  }

  .on-demand-single-file-title,
  .on-demand-search-input span,
  .on-demand-file-title {
    display: none;
  }

  .on-demand-mobile-file-title {
    display: block;
    font-size: 10px;
  }

  .on-demand-single-file-title-mobile {
    display:block;
    padding: 8px 0;
    font-size: 11px;
  }

  .on-demand-file,
  .on-demand-code {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0;
    -ms-flex: 1 0;
    flex: 1 0;
    line-height: 24px;
  }

  .on-demand-homepage-section {
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 80%;
    -ms-flex: 0 1 80%;
    flex: 0 1 80%;
  }

  .on-demand-homepage-section h3 {
    margin-bottom: 20px;
  }

  .on-demand-category-section .section-image {
    -webkit-background-size: 100% 100%;
    background-size: 100%;
  }

  .on-demand-homepage-section .wp-post-image {
    max-width: 150px;
    margin: 0;
  }

  .page-template-on_demand_home .homeTaglineBar {
    display: none;
  }

  .on-demand-video-popup-video iframe {
    width: 300px;
    height: 175px;
  }

  .on-demand-product-image {
    display: none;
  }

  .on-demand-product-files {
    padding: 0 30px;
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .on-demand-search,
  .on-demand-title {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 100%;
    -ms-flex: 1 0 100%;
    flex: 1 0 100%;
  }
  .on-demand-search-input {
    padding: 10px 0;
  }
  .on-demand-search-input input {
    width: -webkit-calc(100% - 80px);
    width: calc(100% - 80px);
  }
}

@media only screen and (max-width: 1100px) {

  .page-template-on_demand_product .logoBar,
  .page-template-on_demand_home .logoBar {
    display: block !important;
  }

  .page-template-on_demand_product .headerBar,
  .page-template-on_demand_home .headerBar {
    display: none !important;
  }

  .page-template-on_demand_product .logoLeft,
  .page-template-on_demand_home .logoLeft {
    margin-top: 0;
  }

  .on-demand-homepage {
    padding-top: 0px;
  }

  .on-demand-category-section .section-image {
    height: 140px;
  }

  .on-demand-header {
    padding-top: 0;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1100px) {
  .page-template-on_demand_home .logoMenu {
    padding-top: 25px;
  }
  .on-demand-homepage-pagebar {
    padding: 20px 0;
  }
}