main {
  flex: 1 0 auto; 
  padding:  6vw  0 0 0% ;  
  width: 90%;
  min-height: 80vh;
  justify-self: flex-start;
  align-self: center;
  display: flex;
  flex-direction: row;
  gap: 2%;
  max-height: none;
}

.left-part , .visual , .catalog , .model , .right-part .price , .description , .filter , .all-description , .configure , .little-visual{
  height: 100%;
  width: 100%;
}
.model , .right-part .price  , .brand  , .summary-container {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);

}





.left-part {
  height: 100%;
  width: 39%;
  display: flex ;
  align-items:flex-start;
  flex-direction: column;
  justify-content:space-between;
  align-self: flex-start;
  height: 100%;
}




#viewer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 2vw ;

}




.right-part {
  width: 53%;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr;
  grid-column-gap: 4%;
  grid-row-gap: 4%;
  max-height: min(43vw, 83vh);
  position: fixed;
  right: 5%;
  top:6vw
}

.visual-container { grid-area: 1 / 1 / 2 / 3; }
.summary-container { grid-area: 2 / 1 / 4 / 2; }
.price{ grid-area: 2 / 2 / 3 / 3; }
.brand{ grid-area: 3 / 2 / 4 / 3; }





.visual-container {
  height: 27vw;
  position : relative;
  overflow: hidden;
}
.visual {
  height: 100%;
  position : relative;
  overflow: hidden;
}
.shape-Models {
  filter: drop-shadow(var(--shadow));
}


.summary::-webkit-scrollbar {
  background: var(--background-color);
  border-radius: 0.5vw;
  cursor: pointer;
  width: 0.3vw;
    margin-right: -0.7vw; /* triche visuelle */
}

.summary::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 0.5vw;
  cursor: pointer;
}

.summary::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 0.5vw;
  
}



.summary-container {
  width: 27vw;
  height: 100%;
  padding: 1.5vw  0.8vw 1vw 0.5vw;
  box-sizing: border-box;
  overflow: hidden;
}

.summary {
  height: 100%;
  padding: 0vw 1vw 0.5vw 0.5vw;
  overflow-y: scroll;
  box-sizing: border-box;

}

.summary-content {
  padding-top: 1vw;
}
.summary-content hr{
  background-color: var(--opacity-color2);
  height: 0.01vw;
  width: 100%;
}
.summary .part {
  width: 100%;
  height: auto;
  gap: 0.4vw;
  display: flex;
  flex-direction: column;
}
.summary  .title , .summary  .sub-title{
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}
.title h4 {
  font-weight: 500;
  font-size: 0.8vw;
}
.summary h5 {
  font-size: 0.6vw;
}
.summary img {
  width: 1vw;
  height: 1vw;
  border-radius: 0.2vw;
}

.summary .param {
  display: flex;
  flex-direction: row;
  gap: 1vw;
  height: content;
  align-items: flex-end;
  position: absolute;
  right: 40%;
  top: 50%;
  transform: translateY(-50%);
}

.summary .param .name{
  height: auto;
}


.right-part .price{
  height: 6vw;
}
.right-part .price {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}
.right-part .price p {
  font-size: 2vw;
}
.right-part .price h1 {
  font-size: 3vw;
  font-weight: 200;
  margin: 0;
  align-self: center;
}


.brand {
  background-size: auto 90% ;
  background-repeat: no-repeat;
  background-position: center;
  
}

/* ========================================
   CORRECTIONS POUR LE CARROUSEL
   ======================================== */

/* Conteneur principal du carrousel */


/* Grille de couleurs - Assure-toi qu'elle respecte les limites */
.color-grid {
  display: grid;
  width: fit-content;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  justify-self: flex-start;
  gap: 1vw;
  height: max-content;
  padding: 0.5vw 0;
  position: relative;
  width: 100%;
}
.selection-group {
  width: 100%;
  position: relative;
}

.name-groupe {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1vw;
}
.name-groupe * {
    margin: 0;
}

/* Styles spécifiques pour les briques ouvertes */
.brick.open .brick-content {
  height: min-content; 
}
/* Conteneur principal */
.brick-content {
  
  display: flex;
  justify-content: center; 
}

/* Flèches positionnées par rapport au color-grid */
.carousel-arrow {
  position: absolute;
  top: 58.5%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: none; /* Caché par défaut */
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.2);
}

/* Afficher les flèches seulement quand data-carousel="true" */
.color-grid[data-carousel="true"] ~ .carousel-arrow {
  display: flex;
}

/* Positionnement précis par rapport au color-grid */
.color-grid[data-carousel="true"] {
  position: relative;
}

.carousel-arrow.prev {
  left: -1vw; /* 3vw = espacement */
}

.carousel-arrow.next {
  right:-1vw /* 3vw = espacement */
}

.carousel-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* Icônes SVG dans les boutons */
.carousel-arrow svg {
  width: 1.2vw;
  height: 1.2vw;
  fill: var(--primary-color, #333);
}




/* Positionnement par défaut caché */
.color-tooltip.hidden {
  display: none;
}







.color-tooltip {
  position: fixed; /* Utilisation de fixed pour un positionnement précis */
  background: var(--primary-color);
  color: white;
  padding: 0.5vw 1vw;
  border-radius: 0.5vw;
  font-size: 1vw;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
  transform: translateX(-50%);
  text-align: center;

}

.color-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0.5vw;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
}



.color-item.selected::after {
  content: '';
  position: absolute;
  top: -0.3vw;
  left: -0.3vw;
  right: -0.3vw;
  bottom: -0.3vw;
  box-shadow: 0 0 0 0.15vw var(--primary-color);
  border-radius: 10%;
  pointer-events: none;
  
}




.color-item:hover {
  box-shadow: inset 0 0 0 0.1vw rgba(0, 0, 0, 0.438);
}


/* ========================================
   GESTION DES BOUTONS DE NAVIGATION
   ======================================== */
.pointView {
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2vw;
  border: 0.2vw solid var(--primary-color);
  border-radius: 90vw;
}

.pointView-container {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  padding: 0.5vw 0 0 0.8vw ;
  border-radius: 2vw 0 0 0;
  width: fit-content;
  height: fit-content;
}

/* Décorations visuelles */
.pointView-container:before {
  content: "";
  position: absolute;
  top: -12vw;
  right: -0.02vw;
  height: 12vw;
  width: 4vw;
  border-bottom-left-radius: 2vw;
  background-color: transparent;
  box-shadow: 0 4vw 0 0 var(--background-color);
  transform: scaleX(-1);
}

.pointView-container::after {
  content: "";
  position: absolute;
  bottom: -0.01vw;
  left: -3.9vw;
  height: 12vw;
  width: 4vw;
  border-bottom-left-radius: 2vw;
  background-color: transparent;
  box-shadow: 0 4vw 0 var(--background-color);
  transform: scaleX(-1);
}

/* Slider et boutons */
.pointView .slider {
  position: absolute;
  top: 0.2vw;
  bottom: 0.2vw;
  left: 0.2vw;
  width: calc(50% - 0.2vw);
  border-radius: 90vw;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
  z-index: 0;
}

.pointView button {
  position: relative;
  z-index: 1;
  padding: 0.4vw 1vw;
  border-radius: 90vw;
  background-color: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.9vw;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.pointView button.active {
  color: var(--secondary-color);
}

.pointView button:hover {
  opacity: 0.7;
}

/* ========================================
   SYSTÈME DE LAYOUT DES BRIQUES
   ======================================== */
.brick-container {
  position: relative;
  width: 100%;
  background: #f5f5f5;
  box-sizing: border-box;
  height: 100vh;
}

.brick {
  position: absolute;
  width: calc(var(--w) * 1%);
  height: 3.5vw;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 0.8vw;
  box-sizing: border-box;
  overflow: hidden;
  cursor: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: top 0.4s ease, height 0.4s ease, left 0.4s ease;
}

.brick.open {
  height: var(--h);
}

.brick-header {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5vw 0.5vw 0.5vw 1vw;
  font-weight: 500;
  user-select: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.brick-content {
  padding: 0.5vw 1.5vw 1vw 1.5vw;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}
  .arrow-icon {
  width: 1.2vw;
  height: auto;
}

.brick.open .arrow-icon {
  transform: rotate(180deg);
}


.title-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1vw; 
  
}
.title-header h3 {
  font-size:1.2vw;
  font-weight: 500;
}
/* ========================================
   GESTION DES GRILLES DE COULEURS
   ======================================== */


.color-item {
  position: relative;
  width: 3vw !important;
  height: 3vw !important;
  background-size: 4vw 4vw;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  color: transparent;
  font-size: 0;
  user-select: none;
  justify-self: center;
  cursor: pointer;
  aspect-ratio: 1/1;
    padding: 0.3vw;
}




/* ========================================
   STYLES DU CARROUSEL
   ======================================== */
.brick-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}


.brick-carousel-slide {
  flex: 0 0 100%;
  display: grid;
  gap: 1vw;
  height: fit-content;
  width: 100%;
  box-sizing: border-box;
}

.brick-carousel-item-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: fit-content;
  overflow: hidden;
  position: relative;
  padding: 0.4vw;
  box-sizing: border-box; 
}
.brick-carousel-item-container.empty {
  visibility: hidden;
}


.brick-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  gap: 20%;
}



.arrow-icon {
  pointer-events: auto;
  padding: 0.7vw;
  border-radius: 0.5vw;
  display: flex;
  width: 1.2vw;
  height: auto;
  transition: transform 0.3s ease;
}



.color-item.selected::after {
  content: '';
  position: absolute;
  top: -0.2vw;
  left: -0.2vw;
  right: -0.2vw;
  bottom: -0.2vw;
  box-shadow: 0 0 0 0.15vw var(--primary-color);
  border-radius: 10%;
  pointer-events: none;
  z-index: 1;

}


.color-item-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.color-item {
  position: relative;
  width: 3vw !important;
  height: 3vw !important;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: visible;
}



/* Dans votre fichier CSS */
#tooltip-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.global-tooltip {
  position: absolute;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.2vw 0.6vw;
  border-radius: 0.3vw;
  font-size: 1vw;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 1;
    border: var(--opacity-color2) 0.05vw solid;

}

.global-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5vw solid transparent;
  border-right: 0.5vw solid transparent;
  border-top: 0.3vw solid var(--opacity-color2);
  
}

.item-name {
  font-weight: 600;
  font-size: 0.8vw;
}

.item-price {
  font-size: 0.6vw;
  opacity: 0.9;
}







/* Styles pour les différents modes */
.color-grid[data-presentation="carousel"] {
  position: relative;
  overflow: hidden;
}



/* Flèches seulement pour le mode carousel */
.color-grid[data-presentation="carousel"] ~ .carousel-arrow {
  display: flex;
}

.color-grid[data-presentation="scroll"] ~ .carousel-arrow {
  display: none;
}
/* Styles pour le carrousel */
.color-grid[data-presentation="carousel"] {
  position: relative;
  overflow: hidden;
  display: block;
}

.brick-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.brick-carousel-slide {
  flex: 0 0 100%;
  display: grid;
  gap: 1vw;
  padding: 0.5vw;
}

/* Flèches */
.carousel-arrow {
  position: absolute;
  top: 57%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.2);
}

.carousel-arrow.prev {
  left: -1vw;
}

.carousel-arrow.next {
  right: -1vw;
}

.carousel-arrow svg {
  width: 1.2vw;
  height: 1.2vw;
  fill: var(--primary-color);
}

/* Cacher les flèches par défaut */
.carousel-arrow {
  display: none;
}

/* Afficher seulement pour les carrousels */
.color-grid {
  display: grid;
  gap: 1vw;
  width: 100%;
}

.color-item {
  width: 3vw !important;
  height: 3vw !important;
  min-width: 3vw;
  min-height: 3vw;
  box-sizing: border-box;
}
.color-item img {
  width: 3vw !important;
  height: 3vw !important;
  border-radius: 10%;

}

/* Pour le mode carousel seulement */
.color-grid[data-presentation="carousel"] {
  overflow: hidden;
}

/* Pour le mode scroll seulement */
.color-grid[data-presentation="scroll"] {
  overflow-x: auto;
}
/* Style pour le fill-direction rows */
.color-grid[data-fill-direction="rows"] {
  grid-auto-flow: row;
}

/* Style pour le fill-direction cols (défaut) */
.color-grid[data-fill-direction="cols"] {
  grid-auto-flow: column;
}

/* Style pour le fill-direction dans les carrousels */
.brick-carousel-slide[data-fill-direction="rows"] {
  grid-auto-flow: row;
}

.brick-carousel-slide[data-fill-direction="cols"] {
  grid-auto-flow: column;
}


.color-grid[data-presentation="scroll"] {
  overflow-x: auto;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge Legacy */
}

/* Chrome, Safari, Edge (WebKit) */
.color-grid[data-presentation="scroll"]::-webkit-scrollbar {
  display: none;
}

/* Styles spécifiques pour le mode scroll */
.color-grid[data-presentation="scroll"] {
  -ms-overflow-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: calc(100% + 2vw);
  padding: 3% 1.5vw 5% 3% ;
  margin-left: -3%;
  cursor: grab;
}

.color-grid[data-presentation="scroll"] > div {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Masquer les flèches pour le mode scroll */
.color-grid[data-presentation="scroll"] ~ .carousel-arrow {
  display: none !important;
}
.color-grid[data-presentation="scroll"]::-webkit-scrollbar {
  display: none;
}




/* Style de base */
.checkbox-item {
  width: 8vw;
  height: 9.5vw;
  border-radius: 0.7vw;
  padding: 0.7vw;
  box-sizing: border-box;
  background-size: 70% auto;
  background-repeat: no-repeat;
  background-position: 50% 40%;
  border: var(--opacity-color2) 0.1vw solid;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.6vw;
}
.checkbox-item:hover , .checkbox-item:hover .checkbox-bg{
  border-color: var(--primary-color);
}
.checkbox-item:hover .checkbox-price {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.checkbox-item:hover .checkbox-name {
  color: var(--primary-color);
}

/* Style quand coché */
.checkbox-item.checked {
  border-color: var(--primary-color);
  box-shadow:
    inset 0 -0.4vw 0 -0.1vw var(--primary-color)

}
.checkbox-item.checked .checkbox-price {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.checkbox-item.checked .checkbox-name {
  color: var(--primary-color);
}


.checkbox-price {
  position: absolute;
  top: -0.75vw;
  left: 0.5vw;
  padding: 0.2vw 0.7vw;
  border: var(--opacity-color2) 0.1vw solid;
  border-radius: 100vw;
  background-color: var(--secondary-color);
  font-size: 0.8vw;
  color: var(--opacity-color2);
  font-weight: 500;
  transition: 0.2s ease-in-out;
  
}

.checkbox-name {
  margin: 0;
  text-align: center;
  color: var(--opacity-color2);
  font-weight: 400;
  transition: 0.2s ease-in-out;
}

.checkbox-container {
  position: absolute;
  top: 0.25vw;
  right: 0.3vw;
  --checkbox-size: 1.2vw;
  pointer-events: none;
}

.real-checkbox {
  position: absolute;
  opacity: 0;
}

.checkbox-wrapper {
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: 0.42vw;
  transition: transform 0.2s ease;
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 0.4vw;
  border: 0.10vw solid var(--opacity-color2);
  background: var(--secondary-color);
  transition: all 0.2s ease;
}

.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: var(--secondary-color);
  transform: scale(0);
  transition: all 0.2s ease;
}

.check-path {
  stroke-dasharray: 2.08vw;
  stroke-dashoffset: 2.08vw;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* État coché */
.real-checkbox:checked ~ .checkbox-wrapper .checkbox-bg {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.real-checkbox:checked ~ .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}

.real-checkbox:checked ~ .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}


/* Styles pour checkbox-grid avec les mêmes options que color-grid */
.checkbox-grid {
  display: grid;
  width: fit-content;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  justify-self: flex-start;
  gap: 1vw;
  height: max-content;
  padding: 0.5vw 0;
  position: relative;
  width: 100%;
}

.checkbox-grid[data-presentation="carousel"] {
  position: relative;
  overflow: hidden;
}

.checkbox-grid[data-presentation="scroll"] {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.checkbox-grid[data-presentation="scroll"]::-webkit-scrollbar {
  display: none;
}

.checkbox-grid[data-fill-direction="rows"] {
  grid-auto-flow: row;
}

.checkbox-grid[data-fill-direction="cols"] {
  grid-auto-flow: column;
}

/* Flèches du carrousel */
.checkbox-grid[data-presentation="carousel"] ~ .carousel-arrow {
  display: flex;
}

.checkbox-grid[data-presentation="scroll"] ~ .carousel-arrow {
  display: none !important;
}












.background-color {
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
}


.boxes-container {
  width: 100%;
  height: 100%;
}


/* From Uiverse.io by Nawsome */ 
.boxes {
  --size: 1vw;
  --duration: 800ms;
  height: calc(var(--size) * 2);
  width: calc(var(--size) * 3);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  margin-top: calc(var(--size) * 1.5 * -1);
  transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
    position: absolute;
  top: 55%;
  left: 45%;
  z-index: 1;
  
}

.boxes .box {
  width: var(--size);
  height: var(--size);
  top: 0;
  left: 0;
  position: absolute;
  transform-style: preserve-3d;
  
}

.boxes .box:nth-child(1) {
  transform: translate(100%, 0);
  -webkit-animation: box1 var(--duration) linear infinite;
  animation: box1 var(--duration) linear infinite;
}

.boxes .box:nth-child(2) {
  transform: translate(0, 100%);
  -webkit-animation: box2 var(--duration) linear infinite;
  animation: box2 var(--duration) linear infinite;
}

.boxes .box:nth-child(3) {
  transform: translate(100%, 100%);
  -webkit-animation: box3 var(--duration) linear infinite;
  animation: box3 var(--duration) linear infinite;
}

.boxes .box:nth-child(4) {
  transform: translate(200%, 0);
  -webkit-animation: box4 var(--duration) linear infinite;
  animation: box4 var(--duration) linear infinite;
}

.boxes .box > div {
  --background: var(--secondary-color);
  --top: auto;
  --right: auto;
  --bottom: auto;
  --left: auto;
  --translateZ: calc(var(--size) / 2);
  --rotateY: 0deg;
  --rotateX: 0deg;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--background);
  top: var(--top);
  right: var(--right);
  bottom: var(--bottom);
  left: var(--left);
  transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box > div:nth-child(1) {
  --top: 0;
  --left: 0;
}

.boxes .box > div:nth-child(2) {
  --background: var(--secondary-color);
  --right: 0;
  --rotateY: 90deg;
}

.boxes .box > div:nth-child(3) {
  --background: var(--secondary-color);
  --rotateX: -90deg;
}

.boxes .box > div:nth-child(4) {
  --background: var(--secondary-color);
  opacity: 0.3;
  --top: 0;
  --left: 0;
  --translateZ: calc(var(--size) * 3 * -1);
}

@-webkit-keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(200%, 0);
  }
}

@keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
  }

  100% {
    transform: translate(200%, 0);
  }
}

@-webkit-keyframes box2 {
  0% {
    transform: translate(0, 100%);
  }

  50% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100%, 0);
  }
}

@keyframes box2 {
  0% {
    transform: translate(0, 100%);
  }

  50% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(100%, 0);
  }
}

@-webkit-keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
  }

  100% {
    transform: translate(0, 100%);
  }
}

@keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
  }

  100% {
    transform: translate(0, 100%);
  }
}

@-webkit-keyframes box4 {
  0% {
    transform: translate(200%, 0);
  }

  50% {
    transform: translate(200%, 100%);
  }

  100% {
    transform: translate(100%, 100%);
  }
}

@keyframes box4 {
  0% {
    transform: translate(200%, 0);
  }

  50% {
    transform: translate(200%, 100%);
  }

  100% {
    transform: translate(100%, 100%);
  }
}







