:root{
    --orange: #cb540e;
    --gray:#a19481;
    --white: #fff;
    text-align: justify;
}

*{
    box-sizing: border-box;
    font-family: 'Lato', 'Times New Roman', sans-serif;
    font-size: 16px; 
    line-height: 24px;      
}

h2{
    color: var(--orange);
    font-weight: bold;
    margin-left: 10px;
}
    
.nav-container {
    width: 100%;
    background-color: var(--gray);
    height: 180px;
}
.navbar {
    display: grid;
    grid-template-columns: 0.2fr auto 1fr;
    align-items: center;
    height: 180px;
    width: 90%;
    max-width: 1720px;
    margin: 0 auto;
}

#navbar-logo {
    justify-self: start;
    margin-left: 20px;
}

#navbar-logo {
    cursor: pointer;
}
.logo img{
    height: 150px;
    justify-content: center;
    top: 2%;
    left: 10%;
}
.nav-menu {
    display: grid;
    grid-template-columns: repeat(7, auto);
    list-style: none;
    text-align: center;
    width: 70%;
    justify-self: end;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 12px;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: #ddd;
    color: black;
    transition: all 0.2s ease-out;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: white;
}
  
.nav-menu a.active {
    background-color: var(--orange);
    color: white;
}


.sub-header {    
    position: relative;
    text-align: center;
    justify-self: center;
    justify-items: center;
    color: white;
}
.comp-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    line-height: 54px;
} 

.comp-name a{
    border: 7px solid var(--orange);
    color: white;
    text-decoration: none;
    background-color: var(--orange);
    border-radius: 4px;
}
.sub-header img{
    height: 60vh;
} 

.home {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 16px;
    margin-top: 16px;
    margin-left: 10%;
    font-family: 'Lato', sans-serif;
    text-justify: distribute;
}

.home p{
    text-align: justify;   
}
    
.tatos { grid-area: 1 / 1 / 2 / 2;      
    font-size: 18px;
    line-height: 33px;
}   
.tatos h2{
    margin-left: 0;
    font-weight: bolder;
}
.intro-img { grid-area: 1 / 2 / 2 / 3; }
.intro-img img{
    width: 500px; 
    border-radius: 5%; 
    margin-left: 16px;
}
.fitting-image { grid-area: 2 / 1 / 3 / 2; }
.fitting-image img{
    width: 500px;
    border-radius: 5%;
}
.tatos-info { grid-area: 2 / 2 / 3 / 3;
    margin-top: 2rem;
    font-size: 18px;
    line-height: 33px;
}
.tatos-info1 { grid-area: 3 / 1 / 4 / 2; 
    margin-top: 2rem;
    font-size: 18px;
    line-height: 33px;
}
.tatos-info2 { grid-area: 3 / 2 / 4 / 3; 
    margin-top: 2rem;
    font-size: 18px;
    line-height: 33px;
}

.about-sub-header{
    height: 50vh;
    background-color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.about-sub-header img{
    width: 400px;
    height: 300px;
    float: right;
    margin-right: 0%;
    position: relative;
}
.comp-about h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 30%;
    left: 10%;
    transform: translate( 0, -50%);
    float: right;
}
.searching{
    margin-left: 30%;
    float: right;
}

.about-company{
    width: 70%;
    font-family: 'Lato', sans-serif; 
    margin: 2% 10%; 
    line-height: 24px; 
    text-justify: distribute;
}

.about-company h2{
    font-family: 'Times New Roman', sans-serif;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 0.5rem;
    font-weight: bolder;
}

.Vision{
    margin-bottom: 16px;
}

.quality-sub-header{
    height: 50vh;
    background-color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.quality-sub-header img{
    width: 400px;
    height: 300px;
    float: right;
    margin-right: 0%;
    margin-top: 0;
    position: relative;
}


.comp-quality h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translate(0 ,-50%);
    float: right;
}

.client-sub-header{
    height: 50vh;
    background-color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.client-sub-header img{
    width: 400px;
    height: 300px;
    margin-right: 0%;
    margin-top: 0;
    position: relative;
}
.community{
    margin-left: 50%;
}
.documents{
    margin-left: 30%;
}
.factory{
    margin-left: 35%;
}
.heavybox{
    margin-left: 35%;
}


.comp-client h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translate(0 ,-50%);
    float: right;
}


.row{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    margin-left: 10%;
} 

.row > .column {
    padding: 0 8px;
}
  
.row:after {
    content: "";
    display: table;
    clear: both;
}
  
.column {
    float: left;
    width: 30%;
}

.row img{
    width:300px;
    margin: 10px;
}
  
/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

.mySlides img{
    width: 100%;  
    height: 50%;
}
  
/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 2%;
}
  
/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}
  
.mySlides {
    display: none;
}
  
.cursor {
    cursor: pointer;
}
  
/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
  
/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
  
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
  
/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
  
.modal img {
    margin-bottom: -4px;
}
  
.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}
  
.demo {
    opacity: 0.6;
}

.demo img{
      margin-right: 10px;
}
  
.active,
.demo:hover {
    opacity: 1;
}
  
.modal img.hover-shadow {
    transition: 0.3s;
}
  
.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


table{
    width: 90%; 
    border-collapse: collapse; 
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 2%;  
}
table img{
    width: 100px;
    height: 50px;      
} 
tr:nth-of-type(even) { 
    background:  var(--gray); 
}
th { 
    background: #796c65; 
    color: white; 
    font-weight: bold; 
}
td, th { 
    padding: 6px; 
    border: 1px solid #ccc; 
    text-align: left; 
}


.comp-product h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translate(0 ,-50%);
    float: right;
}

.product-sub-header{
    height: 50vh;
    background-color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.product-sub-header img{
    width: 400px;
    height: 300px;
    margin-right: 0%;
    margin-top: 0;
    position: relative;
}

.products-container {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    margin-left: 10%;
    margin-top: 2%;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
    text-justify: distribute;
}

.products-container img{
    width: 400px;
    height: 300px;
}

.products-container h2{
    font-family: 'Times New Roman', sans-serif;
    font-size: 24px;
}
.products-container ul{
    list-style: square;
}
.text{
    margin-left: 2rem;
}

.pipes-img{
    display: flexbox;
    flex-wrap: wrap;
    flex-direction: column;
}

.pipes-img img{
    height: 150px;
}
    
.fittings { grid-area: 1 / 1 / 2 / 3; 
    display: flex;
    flex-direction: row;
    align-items: center;
}
.pipes { grid-area: 2 / 1 / 3 / 2; }
.flanges { grid-area: 2 / 2 / 3 / 3; }
.valves { grid-area: 3 / 1 / 4 / 3; 
    display: flex;
    flex-direction: row;
}
.gaskets { grid-area: 4 / 1 / 5 / 2; }
.stud-bolts { grid-area: 4 / 2 / 5 / 3; }
.Others { grid-area: 5 / 1 / 6 / 3; 
    display: flex;
    flex-direction: row;
}


.principal-sub-header{
    height: 50vh;
    background-color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.principal-sub-header img{
    width: 400px;
    height: 300px;
    float: right;
    margin-right: 0%;
    position: relative;
}
.comp-principal h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 30%;
    left: 10%;
    transform: translate(0 ,-50%);
    float: right;
}

h3{
    color: var(--orange);
    text-align: center;
    font-weight: bolder;
    font-family: 'Times New Roman', sans-serif;
    font-size: 16px;
    line-height: 24px;
    margin-top: 2%;
}

.agencies {
    display: grid;
    box-sizing: border-box;
    margin: 2% 5%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    align-items: flex-start;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}

h4{
    font-family: 'Times New Roman', sans-serif;
} 

.galperti { grid-area: 1 / 1 / 2 / 2; }
.valvospain { grid-area: 1 / 2 / 2 / 3; }
.petrofast { grid-area: 1 / 3 / 2 / 4; }
.mempce { grid-area: 2 / 1 / 3 / 2; }
.wh-steel { grid-area: 2 / 2 / 3 / 3; }

.pipes-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
    
.pipes-principals img{
    width: 200px;
    height: 100px;
}

.O.M.P { grid-area: 1 / 1 / 2 / 2; }
.CTA { grid-area: 1 / 2 / 2 / 3; }
.tube-development { grid-area: 1 / 3 / 2 / 4; }
.Rolf { grid-area: 2 / 1 / 3 / 2; }
.Agm { grid-area: 2 / 2 / 3 / 3; }
.Texas-Pipe { grid-area: 2 / 3 / 3 / 4; }
.American-Piping { grid-area: 3 / 1 / 4 / 2; }
.TAL { grid-area: 3 / 2 / 4 / 3; }
   


.fitting-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;    
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
        
.fitting-principals img{
    width: 200px;
    height: 100px;
}

.I.T.M { grid-area: 1 / 1 / 2 / 2; }
.M.E.G.A { grid-area: 1 / 2 / 2 / 3; }
.I.R.C { grid-area: 1 / 3 / 2 / 4; }
.OMR { grid-area: 2 / 1 / 3 / 2; }
.RMA { grid-area: 2 / 2 / 3 / 3; }
.VIAR { grid-area: 2 / 3 / 3 / 4; }
.RC { grid-area: 3 / 1 / 4 / 2; }
.Allied { grid-area: 3 / 2 / 4 / 3; }
    
.Flanges-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
            
.Flanges-principals img{
    width: 200px;
    height: 100px;
} 

.Ulma { grid-area: 1 / 1 / 2 / 2; }
.Officine { grid-area: 1 / 2 / 2 / 3; }
.Metalforch { grid-area: 1 / 3 / 2 / 4; }
.FAD { grid-area: 2 / 2 / 3 / 3; }

.Valves-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
.Valves-principals img{
    width: 200px;
    height: 100px;
}    
        
.JC { grid-area: 1 / 1 / 2 / 2; }
.Pekos { grid-area: 1 / 2 / 2 / 3; }
.Norwegian { grid-area: 1 / 3 / 2 / 4; }
.ABV { grid-area: 2 / 1 / 3 / 2; }
.T3-Energy { grid-area: 2 / 2 / 3 / 3; }
.Velan { grid-area: 2 / 3 / 3 / 4; }
.Starline { grid-area: 3 / 1 / 4 / 2; }
.ARFLU { grid-area: 3 / 2 / 4 / 3; }
.AES { grid-area: 3 / 3 / 4 / 4; }
.scv { grid-area: 4 / 1 / 5 / 2; }
.dpv { grid-area: 4 / 2 / 5 / 3; }
.Mercer { grid-area: 4 / 3 / 5 / 4; }

.Gaskets-principals{
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
                
.Gaskets-principals img{
    width: 200px;
    height: 100px;
}    
.sigs { grid-area: 1 / 1 / 2 / 2; }
.Al-Iman { grid-area: 1 / 2 / 2 / 3; }
.EUROGUARCO { grid-area: 1 / 3 / 2 / 4; }
.James-Walker { grid-area: 2 / 1 / 3 / 2; }
.PSG { grid-area: 2 / 2 / 3 / 3; }

.STUD-principals{
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
                    
.STUD-principals img{
    width: 200px;
    height: 100px;
}

.STUD { grid-area: 1 / 1 / 2 / 2; }
.Rollstud { grid-area: 1 / 2 / 2 / 3; }
.BECK { grid-area: 1 / 3 / 2 / 4; }  

.Bulk-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
.Bulk-principals img{
    width: 200px;
    height: 100px;
}    
            
.Alliance-Supplies { grid-area: 1 / 1 / 2 / 2; }
.Canmec { grid-area: 1 / 2 / 2 / 3; }
.Ahlsell { grid-area: 1 / 3 / 2 / 4; }
.Glamal { grid-area: 2 / 1 / 3 / 2; }
.S3 { grid-area: 2 / 2 / 3 / 3; }
.GEF { grid-area: 2 / 3 / 3 / 4; }
.Gerab { grid-area: 3 / 2 / 4 / 3; }

.pipeing-principals{
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;
}
                        
.pipeing-principals img{
    width: 200px;
    height: 150px;
}    
.Vee { grid-area: 1 / 2 / 2 / 3; }
    

.Others-principals {
    display: grid;
    margin-top: 2%;
    margin-left: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    font-family: 'Lato', sans-serif;
    line-height: 24px;}
    
.Others-principals img{
    width: 200px;
    height: 100px;
}    
            
.OCECO { grid-area: 1 / 1 / 2 / 2; }
.Enardo { grid-area: 1 / 2 / 2 / 3; }
.Rohrback { grid-area: 1 / 3 / 2 / 4; }
.Titan { grid-area: 2 / 1 / 3 / 2; }
.APS { grid-area: 2 / 2 / 3 / 3; }
.Metalmen { grid-area: 2 / 3 / 3 / 4; }
.Kemper { grid-area: 3 / 1 / 4 / 2; }
.Poly { grid-area: 3 / 2 / 4 / 3; }
.Italcontrol { grid-area: 3 / 3 / 4 / 4; }
.Greenheck { grid-area: 4 / 2 / 5 / 3; }


.contact-sub-header{  
    height: 50vh;
    background-color:  var(--gray);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.contact-sub-header img{
    width: 400px;
    height: 300px;
    float: right; 
    position: relative; 
}
.comp-contact h2{
    color: white;
    font-size: 36px;
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translate(0 ,-50%);
    float: right;
}
.contact_us{
    margin-left: 35%;
}

.contact{
    background-color: white;
    width: 100%;
    margin-top: 2%;
}

.contact h2{
    width: 80%; 
    margin: 2% 10%;
}

.office-container{
    width: 80%;
    display: grid;
    grid-template-columns: 50% 50%;
    margin-left: 10%;
    font-family: 'Lato', sans-serif;
}

address{
    line-height: 24px;
}

address a{
    color: var(--orange);
}

address strong{
    font-weight: 700;
}


iframe{
    width: 400px;
    height: 300px;
    margin-left: 2rem;
    margin-right: 10%;
}

.footer-container{
    background-color: var(--gray);
    padding-bottom: 2rem 0 2rem 0;
    margin-top: 16px;
    margin-bottom: 0;
}

.footer{
    width: 80%;
    background-color:#a19481;
    color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    font-family: 'Times New Roman', sans-serif;
}

.footer-heading{
    display: flex;
    flex-direction: column;
    margin: 3rem;
    margin-right: 15%;
}

.footer-heading h2{
    margin-bottom: 2rem;
}

.footer-heading h4{
    color: var(--orange);
    font-weight: bolder;
}
.footer-1{
    margin-top: 6rem;
}

.footer-heading a{
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.text-white{
    color: var(--white);
}

.footer-heading a:hover{
    color:var(--orange);
    transition: 0.3s ease-out;
}
.footer-heading address{
    color: var(--orange);
}

.footer-heading img{
    height: 30px;
}

.media{
    display: flexbox;
    flex-direction: row;
}


@media screen and (max-width:820px){
    .footer{
        padding-top: 2rem;
    }
}

    

@media only screen 
and (max-width: 768px), (min-device-width: 320px) 
and (max-device-width: 1024px)  {
    .parent {
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: auto;
        background: var(--orange);
        margin: 0;
        width: 100%;
        position: absolute;
        top: 170px;
        left: -100%;
        opacity: 0;
        transition: all 0.5s ease;
    }

    #navbar-logo {
        margin-left: 20px;
    }

    .nav-menu.active {
        background: var(--gray);
        left: 0;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 1;
    }

    .nav-link {
        text-align: center;
        line-height: 60px;
        width: 100%;
        display: table;
    }

    .nav-link:hover {
        background-color: #ddd;
        color: black;
        transition: all 0.2s ease-out;
    }

    .navbar {
        width: 100%;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .menu-toggle .bar {
        display: block;
        cursor: pointer;
    }

    .menu-toggle:hover {
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .comp-name {
        position: absolute;
        top: 50%;
        left: 20%;
        transform: translate(-10%, -50%);
        font-size: 28px;
        line-height: 42px;
    } 

    .home{
        display: grid;
        margin-left: 5%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fill, minmax(20%, 1fr));
           
    }

    .home img{
        width: 400px;
        height: 350px;
        margin-left: 0;
        padding-left: 0;
    }

    .tatos { grid-area: 1 / 1 / 2 / 2;}
    .home p{
        text-align: justify;
           
    }
    .intro-img { grid-area: 2 / 1 / 3 / 2; }
    .tatos-info { grid-area: 3 / 1 / 4 / 2; 
        margin-top: 1rem;}
    .fitting-image { grid-area: 4 / 1 / 5 / 2;}
    .tatos-info1 { grid-area: 5 / 1 / 6 / 2; 
        margin-top: 1rem;}
    .tatos-info2 { grid-area: 6 / 1 / 7 / 2; 
        margin-top: 1rem;}

    .about-sub-header img, .quality-sub-header img, .client-sub-header img,
    .product-sub-header img, .principal-sub-header img, .contact-sub-header img{
        width: 200px;
        height: 200px;
        position: relative;
        margin-right: 10%;
        transform: translate( -10% , 5%);
        
    }
    .comp-contact h2, .comp-quality h2, .comp-about h2, .comp-product h2{
        position: relative;
        top: 30%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
    }

    .comp-client h2{
        position: relative;
        top: 30%;
        left: 2%;
        transform: translate(0 ,-50%);
        float: right;
    }
    .comp-principal h2{
        top: 20%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
        text-align: start;
    }

    /* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr {
        display: block;
        min-block-size: 36px;
    }
        
    th{
        line-height: 36px;            
    } 

	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
    }
        

    tr {
      margin: 0 0 16px 0;
    }
      
    tr:nth-child(even) {
      background:  var(--gray);
    }
    
	td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
	}

	td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 0;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: wrap;
	}

	/*
	Label the data
    You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
	*/
	td:nth-of-type(1):before { content: "Client Name"; }
	td:nth-of-type(2):before { content: "commodities"; }
    td:nth-of-type(3):before { content: "values of supplied materials in USD"; }
    
    .row{
        flex-direction: column;
    }

    .agencies{
        display: flex;
        flex-direction: column;
    }

    .pipes-principals{
        display: flex;
        flex-direction: column;
    }

    .fitting-principals{
        display: flex;
        flex-direction: column;
    }

    .Flanges-principals{
        display: flex;
        flex-direction: column;
    }

    .Valves-principals{
        display: flex;
        flex-direction: column;
    }

    .Gaskets-principals{
        display: flex;
        flex-direction: column;
    }

    .STUD-principals{
        display: flex;
        flex-direction: column;
    }

    .Bulk-principals{
        display: flex;
        flex-direction: column;
    }

    .pipeing-principals{
        display: flex;
        flex-direction: column;
    }

    .Others-principals{
        display: flex;
        flex-direction: column;
    }

    .office-container{
        display: flex;
        flex-direction: column;
    }

    iframe{
        width: 350px;
        height: 200px;
        margin-left: 0;
        margin-top: 0.5rem;
        float: left;
    }

    .products-container{
        display: flex;
        flex-direction: column;
    }
    .text{
        margin-left: 0;
    }

    h3{
        color: var(--orange);
        width: 90%;
        text-align: center;
        margin-top: 2%;
        margin-left: 5%;
    }

    .fittings{
        flex-direction: column;    
    }

    .valves{
        flex-direction: column;
    }

    .Others{
        flex-direction: column;
    }

    .footer-4{
        width: 90%;
        margin-right: 5%;
        margin-left: 5%;
    }

    .footer{
        width: 95%;
        display: flex;
        justify-content: flex-start;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .footer-heading{
        margin-right: 0;
    }

}

@media only screen 
  and (device-width: 340px), (min-device-width: 320px)
  and (max-device-width: 600px){
    *{
        box-sizing: border-box;
        font-family: 'Lato', 'Times New Roman', sans-serif;
    } 
    .sub-header img{
        height: 70vh;
    } 
    .about-sub-header, .quality-sub-header, .product-sub-header, .client-sub-header, .contact-sub-header{
        height: 50vh;
    }
    .principal-sub-header{
        height: 55vh;
    }
    .home{
       gap: 0;
       margin: auto;
    }
    .intro-img img, .fitting-image img, .row img, .products-container img, iframe{
        width: 280px;
        margin-right: 5%;
        margin-left: 0%;
    }
    .tatos-info{
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        gap: 0;
    }
    
    .comp-quality h2{
        top: 40%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
    }
    .row {
        margin-left: 3%;
    }
    .comp-client h2{
        top: 45%;
        left: 1%;
        margin-right: 2%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-product h2{
        top: 45%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
    }
    .comp-principal h2{
        top: 20%;
        left: 3%;
        right: 3%;
        transform: translate(0 ,-40%);
        float: left;
    }
    .comp-contact h2{
        top: 45%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
    }
    .footer-container{
        background-color: var(--gray);
        padding-bottom: 1rem 0 1rem 0;
        margin-top: 16px;
        margin-bottom: 0;
        text-align: start;
    }
    .footer{
        width: 90%;
        margin-right: 5%;
        justify-content: left;
        text-align: start;
    }
    .footer-heading{
        display: flex;
        flex-direction: column;
        margin: 2rem;
        margin-right: 15%;
    }    
    .footer-heading h2{
        margin-bottom: 1rem;
    }    
    .footer-1{
        margin-top: 2rem;
    }    
    .footer-heading a{
        margin-bottom: 0.5rem;
    }
    .about-company{
        width: 80%;
    }
    .factory{
        margin-top: 10%;
    }
}

@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) { 
    .sub-header img{
        height: 50vh;
    } 
    .about-sub-header img, .quality-sub-header img, .client-sub-header img,
    .product-sub-header img, .principal-sub-header img, .contact-sub-header img{
        width: 200px;
        height: 200px;
        position: relative;
        margin-right: 10%;
        transform: translate( -10% , 5%);        
    }
    .comp-contact h2, .comp-quality h2, .comp-about h2 .comp-product h2{
        position: relative;
        top: 30%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
    }

    .comp-client h2, .comp-principal h2{
        top: 20%;
        left: 5%;
        transform: translate(0 ,-50%);
        float: right;
        text-align: start;
    }
    
    h3{
        margin-top: 2rem;
    }
}
@media only screen 
and (min-device-width: 414px) 
and (max-device-width: 736px){ 
    .comp-client h2, .comp-product h2{
        top: 30%;
        position: relative;
        left: 3%;
        right: 3%;
        transform: translate(0 ,-50%);
        float: left;
        text-align: start;
    }
    .client-sub-header{
        height: 40vh;
    }
    .contact-sub-header{
        height: 35vh;
    }
}
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px) { 
    .about-sub-header, .quality-sub-header, .client-sub-header, .product-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 35vh;
    }
    .comp-about h2, .comp-quality h2{
        top: 25%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-client h2, .comp-product h2, .comp-principal h2{
        top: 30%;
        transform: translate(0 ,-50%);
        float: left;
    }
}
@media only screen 
  and (device-width: 360px) 
  and (device-height: 640px) {
    .sub-header img{
        height: 50vh;
    }    
    .about-sub-header, .quality-sub-header, .client-sub-header, .product-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 40vh;
    }
    .comp-about h2, .comp-contact h2, .comp-quality h2{
        top: 30%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-client h2, .comp-product h2, .comp-principal h2 {
        top: 35%;
        transform: translate(0 ,-50%);
        float: left;
    }
}
@media only screen 
  and (device-width: 320px) 
  and (device-height: 640px) {
    .sub-header img{
        height: 50vh;
    }    
    .about-sub-header, .quality-sub-header, .client-sub-header, .product-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 40vh;
    }
    .comp-about h2, .comp-contact h2, .comp-quality h2{
        top: 30%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-client h2, .comp-product h2, .comp-principal h2 {
        top: 35%;
        transform: translate(0 ,-50%);
        float: left;
    }
}
@media only screen 
  and (device-width: 480px) 
  and (device-height: 800px) {
    .intro-img img, .fitting-image img, .row img, .products-container img, iframe{
        width: 350px;
    }
}
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) {
    .sub-header img{
        height: 30vh;
    }
      .pipes-principals, .fitting-principals, .Flanges-principals, 
      .Valves-principals, .Gaskets-principals, .STUD-principals, 
      .Bulk-principals, .pipeing-principals, .Others-principals{
          display: flexbox;
          flex-direction: row;
          flex-wrap: wrap;
          margin-right: 8%;
          gap: 5rem;
      }
      iframe{
          width: 350px;
      }
    .comp-client h2{
        top: 20%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .footer{
        margin-left: 5%;
    }
}
@media only screen 
    and (min-device-width: 834px) 
    and (max-device-width: 1112px) {
        .sub-header img{
            height: 40vh;
        }
      .pipes-principals, .fitting-principals, .Flanges-principals, 
      .Valves-principals, .Gaskets-principals, .STUD-principals, 
      .Bulk-principals, .pipeing-principals, .Others-principals{
          display: flexbox;
          flex-direction: row;
          flex-wrap: wrap;
          margin-right: 8%;
          gap: 5rem;
      }
      iframe{
          width: 400px;
      } 
}

@media only screen 
  and (device-width: 601px) 
  and (device-height: 906px) {
      .comp-client h2{
        top: 25%;
        transform: translate(0 ,-50%);
        float: left;
      }     
}
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (orientation: landscape) {
    .sub-header img{
        height: 85vh;
    }    
    .about-sub-header, .quality-sub-header, .client-sub-header, .product-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 85vh;
    }
    .principal-sub-header{
        height: 90vh;

    }
}
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (orientation: landscape) {
    .sub-header img{
        height: 85vh;
    }    
    .client-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 85vh;
    }
    .about-sub-header, .quality-sub-header, .principal-sub-header, .product-sub-header{
        height: 95vh;
    }
    .comp-about h2, .comp-contact h2, .comp-quality h2, .comp-client h2, .comp-product h2{
        top: 60%;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-principal h2{
        top: 65%;
        transform: translate(0 ,-50%);
        float: left;
    }   
}
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px)
  and (orientation: landscape) {
    .sub-header img{
        height: 85vh;
    }    
    .comp-about h2, .comp-contact h2, .comp-quality h2, .comp-client h2, .comp-product h2{
        top: 30%;
        position: relative;
        transform: translate(0 ,-50%);
        float: left;
    }
    .comp-principal h2{
        top: 20%;
        position: relative;
        transform: translate(0 ,-50%);
        float: left;
    }   
}
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px)
  and (orientation: landscape) {
    .sub-header img{
        height: 85vh;
    }    
    .client-sub-header,
    .principal-sub-header, .contact-sub-header{
        height: 85vh;
    }
    .about-sub-header, .quality-sub-header, .principal-sub-header, .product-sub-header{
        height: 95vh;
    }
    .comp-about h2, .comp-contact h2, .comp-quality h2, .comp-product h2{
        top: 30%;
        position: relative;
        transform: translate(-30% ,-10%);
        float: left;
    }
    .comp-client h2, .comp-principal h2{
        top: 20%;
        position: relative;
        transform: translate(-20%,-50%);
        float: left;
    }
}
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 812px)
  and (orientation: landscape) {
    .sub-header img{
        height: 85vh;
    }    
    .client-sub-header,
    .principal-sub-header, .contact-sub-header, .principal-sub-header{
        height: 85vh;
    }
    .about-sub-header, .quality-sub-header, .product-sub-header{
        height: 70vh;
    }
    .comp-about h2, .comp-contact h2, .comp-quality h2, .comp-product h2{
        top: 30%;
        position: relative;
        transform: translate(0 ,-10%);
        float: left;
    }
    .comp-client h2, .comp-principal h2{
        top: 20%;
        position: relative;
        transform: translate(0,-50%);
        float: left;
    }
}



