/* Brand Text Colors */

.midland-red {
    color: #BE1E2D;
}

.midland-blue {
    color: #2A3261;
}

.midland-light-blue {
    color: #007bab;
}

.midland-grey, .midland-gray {
    color: #bebebe;
}

.midland-light-grey {
    color: #f2f2f2;
}

#content-wrapper {
    width: 90%;
    margin: auto;
}
.left-nav-bar {
  padding-left: 2rem;
  box-sizing: border-box;
}

.top-search { display:block; }
.user-auth { float:right; }

.invalid-input {
  position: relative;
  display: block;
  height: 0px;
  margin: 0;
  padding: 0;
  border: 1px solid #fbc4c4;
  background-color: #ffe9e9;
  color: #de5959;
  line-height: 0px;
  transition: all 0.2s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

.invalid-input::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: calc(50% + 1px);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffe9e9;
}


.invalid-input::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #fbc4c4;
}

.invalid-input.active {
  display: inline-block;
  height: auto;
  margin: 1em 0;
  padding: 0.5em;
  line-height: normal;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

#wrapper {
    width: 80%;
    margin:auto;
    background: white;
    box-shadow: none;
    border: none;
    padding: 0px;
}

body {
    background: white;
}

@media (max-width:768px) {
    .top-search { width: 90%; }
    .user-auth { float:none; padding: 0 0 10px 10px; }
}


@media only screen and (min-width: 960px) {
    .MessageAlert {
        clear:left;
        width:32%;
        float:left;
    }

    .RightDiv {
        width:45%;
        text-align:right;
        float:right;
    }
  }

  @media only screen and (max-width: 767px) {
    .MessageAlert {
        clear:both;
        width:60%;
        margin:auto;
    }
    .RightDiv {
        text-align:center;
        margin:auto;
        margin-bottom:10px;
    }

    .page-title {
      margin-top: 2rem !important;
    }
  }
  @media only screen and (min-width: 768px) and (max-width: 959px) {
    .MessageAlert {
        clear:both;
        width:60%;
        margin:auto;
    }
    .RightDiv {
        text-align:center;
        margin:auto;
        margin-bottom:10px;
    }
  }

  @media only screen and (max-width:480px) {
    #content, #nav-container {
        float: none;
        width: 95%;
        margin: 0 auto;
    }

    .left-nav-bar {
        display: none;
    }
/* 
    .nav-menu {
        padding: 1rem 2rem;
    } */
    #main-page-video-container {
        margin-top:0px;
    }
    #wrapper,
    #footer,
    #footer-bottom {
      width: 100vw;
    }

    .container {
      width: 90vw;
    }
    .MessageAlert {
        clear:both;
        width:100%;
        margin:auto;
    }
    .RightDiv {
        text-align:center;
        margin:auto;
        margin-bottom:10px;
    }
  }
  .MessageAlert {
    text-align:center;
    background-color:salmon;
    margin-top:10px;
    margin-bottom:10px;
    border-radius:5px;
    }

  .LogoDiv {
    float:left;
  }

  .container {
      width: 100%;
  }

  .container.floated {
      width: 100%;
  }

  .blank.floated {
      width: 100%;
      border: none;
      background: none;
      padding: 0px;
      float: none;
      -webkit-box-shadow: none;
      box-shadow: none;
  }

  @media (min--moz-device-pixel-ratio: 1.3),
	   (-o-min-device-pixel-ratio: 2.6/2),
	   (-webkit-min-device-pixel-ratio: 1.3),
	   (min-device-pixel-ratio: 1.3),
	   (min-resolution: 1.3dppx) {
            .instagram {background: url(/images/social/instagram@2x.png) no-repeat 50%; background-size: 50%; }
       }

.instagram {background: url(/images/social/instagram.png) no-repeat 50%;}



@media only screen and (min-width:1278px) {
    /* nav {
        width: calc(100% - 270px - 8em);
        font-size: 14pt;
        float: right;
    } */
    #content, #nav-container {
        float: right;
        width: calc(100% - 270px);
        padding: 0 1rem;
        box-sizing: border-box;
    }
}

@media only screen and (max-width:1277px) and (min-width:1138px) {
    /* nav {
        width: calc(100% - 270px - 8em);
        font-size: 12pt;
        float: right;
    } */
    #content, #nav-container {
        float: right;
        width: calc(100% - 270px);
    }
}

@media only screen and (max-width:1138px) and (min-width:1000px) {
    /* nav {
        width: calc(100% - 270px - 8em);
        font-size: 10pt;
        float: right;
    } */
    #content, #nav-container {
        float: right;
        width: calc(100% - 270px);
    }


}

@media only screen and (max-width:1136px) {
    #wrapper {
        width: 90%;
    }
    
}
@media only screen and (max-width:1014px) {
    #wrapper {
        width: 98%;
    }
    
}

@media only screen and (min-width:931px) {
    .left-nav-bar {
        float:left;
        width:250px;
        font-size:16pt;
    }



    .left-nav-bar .header-for-item {
        background: #2A3261;
        padding:10px;
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        border:2px solid #2A3261;
        text-align:center;
        color:white;
        font-weight:bold;
    }

    .left-nav-bar .header-for-item.new-products {
        background: #BE1E2D;
        border:2px solid #BE1E2D;
    }

    .left-nav-bar .body-for-item.new-products {
        border:none;
    }

    .left-nav-bar .body-for-item {
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        border:2px solid #2A3261;
        padding-top:10px;
        padding-bottom:10px;
        padding-left:10px;
        padding-right:10px;
        margin-bottom: 20px;
    }

    .left-nav-bar .body-for-item ul {
        font-size:14pt;
    }

    .left-nav-bar .body-for-item li {
        font-size:14pt;
        margin-bottom: 10px;
    }
}



@media only screen and (max-width:930px) and (min-width:600px) {
    /* nav {
        width: calc(100% - 170px);
        font-size: 8pt;
        float: right;
    } */

    .nav-menu {
        padding: 1.5rem 0px;
    }
    #content, #nav-container {
        float: right;
        width: calc(100% - 170px);
    }

    .left-nav-bar {
        float:left;
        width:150px;
        font-size:10pt;
    }



    .left-nav-bar .header-for-item {
        background: #2A3261;
        padding:5px;
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        border:2px solid #2A3261;
        text-align:center;
        color:white;
        font-weight:bold;
    }

    .left-nav-bar .header-for-item.new-products {
        background: #8B8B8B;
        border:2px solid #8B8B8B;
    }

    .left-nav-bar .body-for-item.new-products {
        border:none;
    }

    .left-nav-bar .body-for-item {
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        border:2px solid #2A3261;
        padding-top:5px;
        padding-bottom:5px;
        padding-left:10px;
        padding-right:10px;
        margin-bottom: 20px;
    }

    .left-nav-bar .body-for-item ul {
        font-size:8pt;
    }

    .left-nav-bar .body-for-item li {
        font-size:8pt;
        margin-bottom: 5px;
    }
    
}


@media only screen and (min-width:600px) {
    #main-page-video-container {
        margin-top:10px;
    } 
}

@media only screen and (max-width:566px){
    /* #nav-menu-list {
        flex-flow: column;
        font-size: 16pt;
    }

    #nav-menu-list .nav-item {
        margin-bottom: 5px;
        margin-top: 5px;
        border-bottom: 1px solid grey;
        padding-bottom: 5px;
        width:100%;
    }

    #nav-menu-list li:last-of-type {
        border: none;
    } */

    #main-page-category-list {
        display:flex;
        flex-direction:column;
        align-items: center;
    }

    /* .nav-menu {
        text-align: center;
        justify-content: center;
    } */

    #main-page-video-container {
        display: none;
    }

    /* .sub-menu-button {
        display: inline-block;
    } */

    #logo-div {
        width:90%;
        margin-bottom: 10px;
    }
    #login-div {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 14pt;
    }

    #search-parts {
        width: calc(100% - 10px);
        margin: auto;
    }

    #header-search-submit {
        margin-right: 2rem;
    }

    #header-search::placeholder {
        font-size: 10pt;
    }
}

@media only screen and (max-width: 480) {
    
}

@media only screen and (min-width: 567px) {
    #main-page-video-container {
        display:flex;
    }

    /* .nav-menu {
        justify-content: space-between;
    } */
}

#main-page-video-container {
        width:100%;
        justify-content:center;
        
    }


@media only screen and (max-width:999px) and (min-width: 481px) {
    /* nav {
        width: calc(100% - 6em);
        font-size: 8pt;
        float:none;
    } */
    #content, #nav-container {
        float: none;
        width: calc(100%);
    }

    .left-nav-bar {
        display: none;
    }

    /* .nav-menu {
        padding: 1rem 2rem;
    } */
    #main-page-video-container {
        margin-top:0px;
    }
}


#left-marketing-arrow, #right-marketing-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: ghostwhite;
    font-size: 2em;
    text-shadow: 2px 2px 2px black;
    font-weight:bolder;
    background-color: rgba(0,0,0,0.8);
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#left-marketing-arrow:hover, #right-marketing-arrow:hover {
  background-color: #BE1E2D;
}

#left-marketing-arrow {
    left: 0;
    border-radius: 3px 0 0 3px;
}

#right-marketing-arrow {
    right: 0;
    border-radius: 3px 0 0 3px;
}

#marketing-tools {
    margin-top:20px;
    margin-bottom:20px;
    display:flex;
    flex-flow: row wrap;
    justify-content: center;
    position:relative;
}


.marketing-tool-item {
    border:1px solid grey;
    /* width:350px;
    height:180px; */
    margin-right:10px;
    margin-bottom:20px;
    zoom: 1;
    display:inline-flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    
    overflow: hidden;
}

.marketing-tool-text {
    width:170px;
    white-space:normal;
    font-size: 0.9em;
    line-height: 1.3em;
    display: inline-flex;
    justify-content: center;
    align-content: center;
}

.marketing-tool-image {
    width: 170px;
    
    display: inline-block;
}

.marketing-tool-image img {
    max-width: 100%;
    max-height: 170px;
    display: inline-block;
}

.marketing-tool-title {
    color:#368BC1;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom:5px;
    display: inline-flex;
    align-self: center;
    text-align: center;
}

.button-container {
    display: flex;
    width: 50%;
    justify-content: flex-end;
    margin-left: auto;
  }

  .button-container a {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    padding: 0.25rem 1rem;
    background-color: #BE1E2D;
    border: 2px solid #BE1E2D;
    border-radius: 0.25rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
  }
  
  .button-container a:hover {
    background-color: transparent;
    color: #BE1E2D;
    transition: all 0.2s ease-in-out;
  }

  .button-container a .icon-next {
    fill: currentColor;
    height: 0.8rem;
    width: 0.8rem;
    margin-left: 1rem;
  }

  .new-product-line-item {
    display:inline-flex;
    justify-content:space-between;
    align-content:center;
    padding: 5px;
    background: #f2f2f2;
}

.new-product-line-item-image-div {
    width:75px;
    height:75px;
    display:inline-flex;
    justify-content:center;
    align-content:center;
}

.new-product-line-item-image-div img {
    max-width:75px;
    max-height:75px;
    align-self:center;
}

.new-product-line-item-text-div {
    padding-left:5px;
    display:inline-block;
    height:fit-content;
    align-self:center;
}

.page-header {
    background-color: #27295F;
    position:relative;
}

.page-header h1 {
    text-transform: uppercase;
}

.landing-page-header h1 {
    text-transform: uppercase;
}

.page-header img {
    width:100%;
    
}

.header-image {
    content: url('/images/FittingsBanner.png');
}

.page-header h1 {
    position: absolute;
    text-align:center;
    color: white;
    font-size: 4rem;
    width:100%;
    top: calc(50% - 2rem);
}

@media only screen and (max-width: 1600px) {
    .page-header h1 {
        font-size: 4vw;
    }
}

