
.portfolio-container{
    display: grid;
    grid-auto-rows: minmax(auto, auto);  
}

.portfolio-text{
    display: flex;
    width: 40%;
    margin: 5% 0 0 15%;
}


.first-div{
  background-image: url("../images/portafolioback.png");
  background-repeat:no-repeat;
  background-size: 100% auto;
}

/******************************NAV**************************************************/


.nav-container{
  display: flex;
  width: 40%;
  margin: auto;
  position: relative;
  min-width: 669px;
  justify-content: space-evenly;
  margin-top: 10%;
}

.nav-container2{
  display: none;
}


.nav-item2{
  cursor: pointer;
  display: grid;
  grid-template-rows: repeat(2,1fr);
}

.nav-selector{
  padding-top: 2%;
  justify-self: center;
  z-index: 55;
}

#logistics-text{
  margin-top: 5%;
}
.carousel-inner{
  text-align: center;
}


#carouselPortfolio{
  display: none;
}
.oswald-nav-text{
  justify-self: center;
  font-family: 'PT Sans', sans-serif;
  color: white;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 5px;
  letter-spacing: 1.5px;

}

.oswald-nav-text-selected{
  justify-self: center;
  font-family: 'PT Sans', sans-serif;
  color: #F58532;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1.5px;

}
/*****************************************************************************************/


.square{
  width: 144px;
  height: 144px;
  position: relative;
  top: 260px;
  z-index: -1;
  left: -95px;
}

/* grid-column-gap: 10px;
grid-row-gap: 1em; */

.portfolio-white-container{
    display: flex;
    position: relative;
    width: 100%;
    background-color: white;
    margin-top: -25px;

}

.image-container{
  width: 50%;
  background-color: blue;
}

.oswald-bold{
    font-weight: 700;
    font-family: 'Oswald', sans-serif;  
    color: #F58532;
    font-size: 65px;
    letter-spacing: 3px;

}

.oswald-regular{
    font-family: 'Oswald', sans-serif;  
    font-size: 65px;
    color: white;
    font-weight: 300;
    letter-spacing: 3px;
}


.pt-sans{
  
  font-family: 'PT Sans', sans-serif;
  color: #757575;
  font-size: 30px;
  margin-top: 10%;
}

.backP{
  position: absolute;
  z-index: 1;
  width: 80%;
  right: -57px;
  
}

.sencha-text{
  width: 80%;
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  font-size: 30px;
  line-height: 37px;
  letter-spacing: 0;
  color: #757575;
  margin-top: -5%;
  margin-bottom: 5%;
}

.partners-images{
  display: flex;
  flex-flow: row;
  min-height: 550px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.wrapper {
  display: flex;
  flex-flow: column;
  width: 35%;
  max-width: 800px;
  min-width: 455px;
  margin-left: 15%;
  align-items: baseline;
  margin-bottom: 10%;
  z-index: 2;
}

#backOrange{
  width: 70%;
  left: 8%;
  right: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  top: -10%;
}

.wrapper2 {
  display: flex;
  flex-flow: column;
  width: 46%;
  align-items: baseline;
  margin-bottom: 10%;
  z-index: 2;

}
 
#retail-wrapper{
  order: 2;
}

#retail-wrapper2{
  margin-left: 15%;
}

#retail-image{
  order: 1;
  z-index: 2;
}
.portfolio-image{
  width: 60%;
  margin: auto;
}

.portfolio-image-container{
  width: 50%;
 
  margin-left: 0%;
  min-width: 390px;
  margin-top: 0%;
  display: flex;
  z-index: 2;
}

.tab-title{
  display: flex;
  flex-flow: column;
}

@media (max-width:1600px){
  .first-div{
    background-image: url("../images/portafolioback.png");
    background-repeat:no-repeat;
    background-size: auto 100%;
  }
  .portfolio-text{
    width: 55%;
  }

  .backP{
    height: 100%;
  }
  #backP{
      width: 100%;
      height: 100%;
    }

}

@media (max-width:900px){


  #backOrange{
    width: 100%;
    left: 0;
    margin-top: 25%;
    padding-bottom: 15%;
  }

  .square{
    width: 50px;
    height: 50px;
    position: relative;
    top: 100px;
    left: unset;
    z-index: -1;
  }

  .wrapper{
    order: 2;
    width: 90%;
    margin: auto;
  }
  .wrapper2{
    order: 2;
    width: 90%;
    margin: auto;
  }
  .portfolio-image-container{
    order: 1;
    width: 90%;
    margin: auto;
    margin-top: 5%;
  }
  .portfolio-white-container{
    flex-flow: column;
    padding-bottom: 10%;

  }
  
  .portfolio-image{
    width: 40%;
    margin: auto;
  }

  .backP{
    width: 100%;
    right: 0px;
    top: 10%;
  }

  .square{
    width: 80px;
    height: 80px;
    position: relative;
    top: 180px;
    left: unset;
    z-index: -1;
  }
}



@media (max-width:550px){


  .square{
    width: 50px;
    height: 50px;
    position: relative;
    top: 100px;
    left: unset;
    z-index: -1;
  }

  #backOrange{
    top: 0;
    margin-top: 15%;
    max-height: 90%;
  }


  #retail-wrapper2{
    margin-bottom: 20%;
    margin-left: 5%;
  }
  
  .partners-images{
    display: none;
  }

  #container2{
    min-height: unset;
    padding-bottom: unset;
    margin-top: -3.3%;
  }
  .first-div{
    background-image: url("../images/portafolioback.png");
    background-repeat: no-repeat;
    background-size: auto 70%;
    background-position-x: -235px;
  }
  .portfolio-text{
    width: 90%;
    margin-left: 5%;
    font-size: 34px;
    display: block;
    margin-top:10%;
    margin-bottom:15%;
  }

  .oswald-regular{
    font-size: 34px;
    letter-spacing: 0px;
  }

  .oswald-bold{
    font-size: 34px;
    letter-spacing: 0px;
  }

  .portfolio-container{
    display: block;

  }
  .wrapper{
    width: 90%;
    flex-flow: column;
    margin-left: 5%;
    margin-top: 0%;
    min-width: unset;
    max-width: unset;

  }
  .wrapper2{
    width: 90%;
    flex-flow: column;
    margin-left: 5%;
    margin-top: 0%;
    min-width: unset;
    max-width: unset;

  }
  .portfolio-white-container{
    flex-flow: column;
    min-height: 550px; 
    padding-bottom: 0%;
  }

  .portfolio-image-container{
    width: 100%;
    min-width: unset;
    margin: auto;
    display: flex;
    margin-bottom: 0%;
    margin-top: 25%;
  }

  #national-insurance{
    margin-top: 0;
  }

  .portfolio-image{
    width: 60%;
    margin: auto;
  }

  .pt-sans{
    font-size: 18px;
  }

  #carouselPortfolio{
    display: block;
    margin-top: 20%;
    margin-bottom: 50%;
  }
  .nav-container{
    display: none;
  }

  .backP{
    width: 100%;
    right: 0;
    left: 0;
  }

  #logi{
    margin-top: 20%;
  }
  .port1{
    flex-basis: 50%;
    text-align: center;
    border-style: none;
    border-width: 3.5px;
    color: rgb(245, 133, 50);
    padding-bottom: 5%;
    cursor: pointer;

  }

  .port1-selected{

    border-style: solid;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 3px;
  }

  .nav-container2{
    display: flex;
    width: 90%;
    margin: auto;
    position: relative;
    justify-content: space-evenly;
    margin-bottom: 6%;
    z-index: 2;
    border-width: 30px;
  }
  .oswald-nav-text{
    font-size: 15px;
  }
  .oswald-nav-text-selected{
    font-size: 15px;
  }

  #retail-image{
    margin-top: 25%;
  }
}
