/* ------------- Site Wide ------------- */

* {
    margin: auto;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  body {
    min-width:400px;
    position: relative;
    min-height: 100vh;
    /*max-width: 1440px;*/
    font-family: Arial, Helvetica, sans-serif;
    background-color:#ddd;
    padding-bottom: 160px;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }
  
  .right {
    position: relative;
    right: 20px;
    padding: 10px;
    overflow: auto;
  }

  .center-text {
    text-align: center;
  }

  input[type=text] {
    width: 120px;
    box-sizing: border-box;
    border: 2px solid black;
    font-size: 16px;
    background-color: white;
    background-image: url('images/searchicon.png');
    background-position: 5px 5px; 
    background-repeat: no-repeat;
    background-size: 20px;
    padding: 5px 20px 5px 35px;
  }

  /* Style the content */
.content {
    max-width: 1440px;
    background-color: #ddd;
    padding: 10px;
  }

/* Header */
        .header {
            background-color: rgb(39, 34, 29);
            max-width: none;
        }
        
        .header-container {
            background-color: rgb(39, 34, 29);
            padding: 20px;
            overflow: hidden;
            width: 100%;
        }
        
        .header-logo {
            float: left;
        }
        
        .header-logo img{
            max-height: 80px;
        }
        
        .header-info {
            float: right;
        }
        
        .header-info a {
            padding: 10px;
            text-decoration: none;
            color: #EC3437;
        }
        
        .header-info p {
            padding: 5px;
        }
        
        .logoright{
            overflow: hidden;
            background-color: #333;
            float:right;
            color: #f2f2f2;
            text-decoration: none;
            padding: 14px 16px;
        }
        
        @media only screen and (max-width: 600px) {
            .header-info {
            display: none;
            }
        }
        @media all and (max-width: 1200px) {
            .logoright { display: none; }
        
        }

/* Navigation bar */
        .topnav {
            text-align:left;
            overflow:hidden;
            background-color: #333;
            text-decoration: none;
            margin-left: 0px;
        }
        
        .topnav ul {
            margin-left: -40px;
        }
        
        .topnav a {
            float: left;
            display: block;
            color: #f2f2f2;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        
        .topnav button{
            float:left;
            display: block;
            color: #f2f2f2;
            text-align: center;
            text-decoration: none;
        }
        
        .topnav a:hover {
            background-color: #ddd;
            color: black;
        }

/* Table layout */
        table {
            font-family: arial, sans-serif;
            border-collapse: collapse;
            width: 50%;
            padding: 0px;
        }

        .search_results{
            width: 90%;
        }

        td, th {
            border: 1px solid black;
            text-align: left;
            padding: 8px;
        }
        
        th {
            cursor: pointer;
        }
        
        tr:nth-child(even) {
            background-color: #dddddd;
        }
        
        tr:nth-child(odd) {
            background-color: white;
        }

        @media all and (max-width: 1000px) {
            table { width: 100% }
        }

/* Dropdown */
        .dropbtn {
            background-color: #333;
            color: white;
            font-size: 16px;
            border: none;
        }

        .dropdown {
        float: left;
            display: block;
            color: #f2f2f2;
            text-align: center;
            text-decoration: none;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f1f1f1;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            margin-top: 46px;
        }

        .dropdown-content a {
            float: none;
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: left;
        }

        .dropdown-content a:hover {background-color: #ddd; color:black;}

        .dropdown:hover .dropdown-content {display: block; color:black;}

        .dropdown:hover .dropbtn {background-color: #ddd; color:black;}

/* ------------- Index ------------- */

/* product bar */
        .product-bar {
            text-align: center;
            overflow:hidden;
            background-color: #333;
            text-decoration: none;
            margin-left: 0px;
        }
        
        .product-bar ul {
            margin-left: -40px;
        }
        
        .product-bar a{
            float: left;
            display: inline;
            color: #f2f2f2;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        
        .product-bar a:hover {
            background-color: #ddd;
            color: black;
        }
        
        .product-bar-mobile {
            display: none;
        }


        .index-content {
        max-width: 80%;
        margin: auto;
        border-style: solid;
        border-color: #8c0d0f;
        }

        .index-content p {
        max-width: 70%;
        font-size: 20px;
        }

        .links a{
            text-decoration: none;
            color: #8c0d0f;
        }

        .links span{
            text-decoration: none;
            color: #8c0d0f;
        }

        .blurb {
            text-align: center;
            max-width: 80%;
            border: 3px solid #8c0d0f;
            padding: 10px;
        }
        
        .blurb p {
            max-width: 70%;
            font-size: 20px;  
        }

        @media all and (max-width: 1200px) {
            .blurb{max-width: 95%;}
        }

        @media all and (max-width: 880px) {
            .product-bar { display: none; }
            .product-bar-mobile {display: contents;}
        }
        
/* sliding pictures */
        .mySlides {display: none;}
        .slideshow-container img {
        vertical-align: middle;
        }

        /* Slideshow container */
        .slideshow-container {
        max-width: 1000px;
        position: relative;
        margin: auto;
        }

        /* Caption text */
        .text {
        color: #f2f2f2;
        font-size: 15px;
        padding: 8px 12px;
        position: absolute;
        bottom: 20px;
        width: 50%;
        margin-left: 25%;
        text-align: center;
        background-color: black;
        }

        /* Number text (1/3 etc) */
        .numbertext {
        color: #f2f2f2;
        font-size: 12px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
        }

        /* The dots/bullets/indicators */
        .dot {
        height: 15px;
        width: 15px;
        margin: 10px 2px;
        background-color: #bbb;
        /*cursor: pointer;*/
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
        }

        .active {
        background-color: #717171;
        }

        /* Fading animation */
        .fade {
        -webkit-animation-name: fade;
        -webkit-animation-duration: 1.5s;
        animation-name: fade;
        animation-duration: 1.5s;
        }

        @-webkit-keyframes fade {
        from {opacity: .4} 
        to {opacity: 1}
        }

        @keyframes fade {
        from {opacity: .4} 
        to {opacity: 1}
        }

        /* On smaller screens, decrease text size */
        @media only screen and (max-width: 300px) {
        .text {font-size: 11px}
        }

/* ------------- Services ------------- */
.services-header{
        text-align: center;
        max-width: 60%;
    }
  
.services-header h3{
    margin: auto;
    display: inline-block;
    padding: 10px;
  }
  
.services-header a{
    margin: auto;
    text-decoration: none;
    color: #8c0d0f;
  }

.content-services {
    background-color: #ddd;
    padding: 10px;
    max-width: 720px;
    font-size: larger;
  }

.service_grid {
    width: 85%;
    margin: auto;
  }
  
.service_grid h1 {
    color: #8c0d0f;
}

.col-50 {
    width: 48%;
    padding: 10px;
    float: left;
    margin: 1%;
}

.col-50 img {
    width: 90%;
    margin: auto;
    max-width: 500px;
}

.col-50 p {
    font-size: 20px;
}

.service_grid::after {
    content: "";
    clear: both;
    display: table;
}

@media all and (max-width: 900px) {
    .grid { 
        width: 95%; 
    }
    .col-50 {
        width: 97.5%;
        margin: 1%;
    }
    }

/* ------------- Contact ------------- */
    .contact-content {
        max-width: 70%;
        margin: auto;
    }

    .grid {
        width: 70%;
        margin: auto;
      }
      
    .col-25 {
        width: 22.5%;
        padding: 10px;
        float: left;
        border-radius: 5px;
        border: 2.5px solid #8c0d0f;
        margin: 1%;
        height: 200px;
    }
    
    .col-25 h3 {
        color: white;
    }
    
    .col-25 a {
        font-weight: bold;
        font-size: larger;
        color: white;
        text-align: center;
    }
    
    .col-25 p {
        font-weight: bold;
        
        color: white;
        text-align: center;
    }

    .grid::after {
        content: "";
        clear: both;
        display: table;
    }
    
    @media all and (max-width: 1000px) {
    .grid { 
        width: 95%; 
    }
    .col-25 {
        width: 47.5%;
        margin: 1%;
    }
    }

    .contact-form input[type=mailtext], textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        margin-top: 6px;
        margin-bottom: 16px;
        resize: vertical;
      }
      
      .contact-form {
        border-radius: 5px;
        background-color: #f2f2f2;
        padding: 20px;
      }

/* ------------- About Us ------------- */
.about-content {
    max-width: 70%;
    margin: auto;
}

.about-content p{
    overflow-wrap: break-word;
}


.about-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* ------------- Material Suppliers ------------- */
.center-suppliers {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }

/* ------------- Download Pages ------------- */
.center-downloads {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 420px;
    width: 50%;
}

@media all and (max-width: 1000px){
    .center-downloads {width: 90%;}
}

.download-images{
    display: block;
    margin: 0 auto;
    max-width: 500px;
    width: 90%;
}

/* ------------- Products ------------- */
/* see Contact */


/* ------------- Automation ------------- */

/* ------------- Automotive ------------- */

/* ------------- Electronics ------------- */

/* ------------- Medical ------------- */

/* ------------- Military ------------- */

/* ------------- Packaging ------------- */

/* ------------- Tooling ------------- */

/* ------------- Search ------------- */

.submit_button {
    padding: 14px 20px;
    margin: auto;
    border: none;
    cursor: pointer;
    width: 20%;
    min-width: 120px;
    display: block;
    font-weight: bold;
    font-size: small;
    border: 2px solid #8c0d0f;
}

.submit_button:hover{
    color: #8c0d0f;
    opacity: .8;
}

.search_bar {
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 80%;
}

.search_bar:focus {
    width: 100%;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
  }

.jump_button {
    padding: 14px 20px;
    margin: auto;
    border: none;
    cursor: pointer;
    width: 20%;
    min-width: 120px;
    display: inline;
    font-weight: bold;
    font-size: small;
    border: 2px solid #8c0d0f;
}

.jump_button:hover{
    color: #8c0d0f;
    opacity: .8;
}

/* ------------- Footer ------------- */
    .footer {
        text-align:center;
        background-color: rgb(167, 167, 167);
        padding: 10px;
        position: absolute;
        width: 100%;
        bottom: 0;
    }
  
    .footer ul {
        padding: 5px;
    }
