.a3dsection {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    color: #222;
    text-transform: uppercase;
    font-size: 2.8em;
    font-weight: 700;
}

.full {
    height: 100vh;
    background: #E1BA8E
}

.half {
    height: 50vh;
    background: #E1BA8E;
}

.mini {
    height: 25vh;
    /* background: linear-gradient(#e67e22, #d35400),
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 18px,
            transparent 18px,
            transparent 36px);
    border: 12px solid #2c3e50;
    border-top: 18px solid #2c3e50;
    border-radius: 8px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 8px 12px rgba(255, 255, 255, 0.15); */
        
    background: url(/img/pos/container.png);
      /* background-position: center; */
  /* background-repeat: no-repeat; */
  background-size: cover;
}

.a3dbanner {
    color: #E8E8E8;
    display: flex;
    align-items: stretch;
}

/* first banner */

.banner3d-1 {
    width: 100%;
    perspective: 700px;
    /* why would I do that? well there is a very strange bug with safari, and it fixed it... */
    transform-style: preserve-3d;
}

.banner3d-1-front {
    color: #222;
    padding: 50px;
    background: #E1BA8E;
    transform: translatez(50px);
    transform-style: preserve-3d;
}

.banner3d-1-front:before {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #C99E6D;
    top: -50px;
    transform-origin: center bottom;
    transform: rotatex(90deg);
}

.banner3d-1-front:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #966740;
    bottom: -50px;
    transform-origin: center top;
    transform: rotatex(-90deg);
}

/* second banner */

.banner3d-2 {
    width: 100%;
    perspective: 700px;
    transform-style: preserve-3d;
    z-index: -1;
}

.banner3d-2-front {
    padding: 50px;
    background: #222;
    transform: translatez(-50px);
    transform-style: preserve-3d;
}

.banner3d-2-front:before {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    /* background-color: #BFBFBF; */
    /* background: linear-gradient(#f39c12, #e67e22);
    border-top: 6px solid #2c3e50; */
    background: url(/img/pos/container.png);
    background-position: center;

    top: -50px;
    transform-origin: center bottom;
    transform: rotatex(-90deg);
}

.banner3d-2-front:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    /* background-color: #BFBFBF; */
    /* background:
        linear-gradient(#d35400, #c0392b),
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.2) 0px,
            rgba(0, 0, 0, 0.2) 12px,
            transparent 12px,
            transparent 24px);
    border-left: 14px solid #2c3e50;
    box-shadow: inset 12px 0 8px rgba(0, 0, 0, 0.4); */

    background-color: #C99E6D;

    bottom: -50px;
    transform-origin: center top;
    transform: rotatex(90deg);
}

/* 3rd banner */

.banner3d-3 {
    width: 50%;
    perspective: 700px;
    transform-style: preserve-3d;
}

/* .banner3d-3-front {
    padding:100px 25px;
    text-align:center;
    background:#222;
    transform: translatez(50px);
    transform-style: preserve-3d;
}

.banner3d-3-front:before {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #404040;
    top: -50px;
    transform-origin: center bottom;
    transform: rotatex(90deg);
}

.banner3d-3-front:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #404040;
    bottom: -50px;
    transform-origin: center top;
    transform: rotatex(-90deg);
} */

.banner3d-3-front {
    padding: 100px 25px;
    text-align: center;
    background: #d2b48c;
    /* Kraft cardboard color */
    transform: translatez(50px);
    transform-style: preserve-3d;
}

.banner3d-3-front:before {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #c19a6b;
    /* Slightly darker flap */
    top: -50px;
    transform-origin: center bottom;
    transform: rotatex(90deg);
}

.banner3d-3-front:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #c19a6b;
    /* Slightly darker flap */
    bottom: -50px;
    transform-origin: center top;
    transform: rotatex(-90deg);
}

.banner3d-3-front {
    color: #222;
    background: linear-gradient(#e8d5b8, #d2b48c);
    /* Light to medium kraft */
}

.banner3d-3-front:before,
.banner3d-3-front:after {
    background-color: #bf9b70;
    /* Flap color */
}

.a3dimage {
    width: 50%;
    background: url(/img/pos/gems.png) no-repeat;
    background-size: cover;
    background-position: center;
    /* box-shadow: inset 25px 0px 20px 10px rgba(0, 0, 0, 0.41) */
}


/* fourth banner */

.banner3d-4 {
    width: 60%;
    perspective: 700px;
    transform-style: preserve-3d;
    z-index: -1;
}

.banner3d-4-front {
    padding: 25px;
    background: #222;
    transform: translatez(-50px);
    transform-style: preserve-3d;
}

.banner3d-4-front:before {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #966740;
    top: -50px;
    transform-origin: center bottom;
    transform: rotatex(-90deg);
}

.banner3d-4-front:after {
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    height: 50px;
    background-color: #C99E6D;
    bottom: -50px;
    transform-origin: center top;
    transform: rotatex(90deg);
}

.a3dimage2 {
    width: 60%;
    background: url(/img/pos/fruits.png) no-repeat;
    background-size: cover;
    background-position: center center;
    /* border: 20px solid #E0E0E0; */
    box-sizing: border-box;
}

.salesbox {
    float: right;
    height: 100px;
}

.purchasebox {
    float: right;
    height: 100px;
    position: absolute;
    margin-bottom: -300px;
    margin-right: -420px;
}

.scanbox {
    float: right;
    height: 100px;
    position: absolute;
    margin-left: -440px;
    margin-top: 300px;
}

.pdfbox {
    float: right;
    height: 100px;
    position: absolute;
    margin-top: 700px;
    margin-left: -500px;
}

@media (max-width: 991px) {
    .a3dsection {
        font-size: 2em;
    }

    .a3dbanner {
        flex-direction: column
    }

    .banner3d-3,
    .banner3d-4 {
        width: 100%
    }

    .a3simage,
    .a3dimage2 {
        width: 100%;
        height: 300px;
    }

    .salesbox {
        position: absolute;
        margin-top: -40px;
        margin-left: 140px;
    }

    .purchasebox {
        margin-right: unset;
    }

    .scanbox {
        margin-left: unset;
    }

    .pdfbox {
    margin-left: unset;
}
}