.pecas {
    display: grid;
    justify-content: center;
}
.guarda-pecas {
    background: url(/img/fundo-pecas.webp)no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 30px 80px;
    border-radius: 20px;
    position: relative;
    bottom: 100px;
    text-align: center;
}
.guarda-pecas > h2 {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: "ethnocentric", sans-serif;
    font-size: 1.45rem;
}
.guarda-pecas > h3 {
    font-weight: 600;
    font-style: italic;
}
.guarda-pecas > p {
    font-size: 1.09rem;
    margin-top: 10px;
}
.pecas-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    grid-gap: 70px;
}
.pecas-grid a:nth-child(1) {
    transition: .3s;
    background: url(/img/alternador.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(2) {
    transition: .3s;
    background: url(/img/capo.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(3) {
    transition: .3s;
    background: url(/img/console.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(4) {
    transition: .3s;
    background: url(/img/cabecote.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(5) {
    transition: .3s;
    background: url(/img/farois.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(6) {
    transition: .3s;
    background: url(/img/retrovisores.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(7) {
    transition: .3s;
    background: url(/img/portas.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(8) {
    transition: .3s;
    background: url(/img/kitair.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(9) {
    transition: .3s;
    background: url(/img/compressor.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(10) {
    transition: .3s;
    background: url(/img/catalisador.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}
.pecas-grid a:nth-child(11) {
    transition: .3s;
    background: url(/img/lanternas.webp) no-repeat center center;
    box-shadow: 0px 0px 0px 2px #000;
    border-radius: 8px;
    background-size: cover;
    position: relative;
    text-align: center;
}

.pecas-grid a img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transition: .3s;
}
.pecas-grid a h2 {
    color: #E9E011;
    margin-top: 10px;
    font-family: "ethnocentric", sans-serif;
    text-shadow: 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000,
    0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000, 0px 0px 2.5px #000;
}
.pecas-grid a:hover img {
    animation: move 3s infinite;
}
.pecas-grid a {
    padding: 10px;
    width: 390px;
    height: 235px;
}
.pecas-grid a:hover  {
    transform: scale(1.04);
    box-shadow: 0px 0px 0px 3px #000;
}
@keyframes move {
    25%{
       transform: translateX(-8px);  }
    50%{
      transform: translateX(0px);  
    }
    75%{
      transform: translateX(8px); 
    }
    100%{
      transform: translateX(0px); 
    }
  }

  @media only screen and (min-width:481px) and (max-width:1030px) {

    .pecas-grid {
        display: grid;
        margin-top: 20px;
        grid-template-columns: 1fr;
        justify-items: center;
        grid-gap: 70px;
    }

    .guarda-pecas {
        padding: 20px 30px;
    }
    
  }
  @media only screen and (min-width:360px) and (max-width:480px) {

    .pecas-grid {
        display: grid;
        margin-top: 20px;
        grid-template-columns: 1fr;
        justify-items: center;
        grid-gap: 70px;
    }

    .guarda-pecas {
        padding: 20px 30px;
    }
    .pecas-grid a {
        padding: 10px;
        width: 280px;
        height: 165px;
    }
    .pecas-grid h2 {
        font-size: .7rem;
    }
    
  }
  @media only screen and (min-width:0px) and (max-width:359px) {

    .pecas-grid {
        display: grid;
        margin-top: 20px;
        grid-template-columns: 1fr;
        justify-items: center;
        grid-gap: 70px;
    }
    .guarda-pecas > h2 {
        font-size: 1.2rem;
    }
    .guarda-pecas > p {
        font-size: .75rem;
    }
    .guarda-pecas > h3 {
        font-size: .75rem;
    }

    .guarda-pecas {
        padding: 20px 10px;
    }
    .pecas-grid a {
        padding: 10px;
        width: 220px;
        height: 135px;
    }
    .pecas-grid h2 {
        font-size: .6rem;
    }
    
  }