.whiteBackground {
  background-color: #fff;
}

#SVGinDiv {
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg3columnDisplay {
  /* display: grid; */
  /* Defines three columns: auto-sized for sides, and max-content for main */
  grid-template-columns: auto max-content auto; /* //// */
  align-items: center; /* Vertically centers items in their grid area */
  justify-items: center; /* Horizontally centers items within their columns */
}

.grid {
  display: grid;
  column-gap: 0;
  align-items: center;
  justify-content: center;
}

.center-div {
  /* Prevents the main content from being affected by alignment properties if needed */
  justify-self: center;
}

.left-side {
  /* Ensures the rotated element stays within its grid area bounds */
  justify-self: end;
  justify-content: end;
}

.right-side {
  /* Ensures the rotated element stays within its grid area bounds */
  justify-self: start;
  justify-content: start;
}
#leftBox,
#leftBoxS {
  padding-right: 0;
}

#leftBoxS {
  padding-right: 0.2em;
}
#rightBox,
#rightBoxS {
  padding-left: 0;
}

#leftBoxP {
  margin-right: 0.5em;
}

#rightBoxP {
  margin-left: 0.5em;
}

.lateralBoxes {
  /* padding: 1em; */
  margin: 0;
  overflow: visible;
  display: flex;
}

.lateralBox_p {
  font-size: large;
}

.MiniP_container {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.mini_p {
  font-size: small;
  text-align: center;
  display: flex;
  justify-content: center;
}
/* svg boxes placement: */

#topBox {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#topBox_p {
  display: flex;
  justify-content: center;
}

#boxesADNDsvg {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: auto;
}

#bottomBoxS {
  justify-content: center;
  display: flex;
  flex-wrap: nowrap;
  height: 2em;
}

#bottomBoxP_p {
  margin-top: 0.75em;
}
.orientation {
  writing-mode: sideways-lr;
  margin: 0;
}

#motifPickerDropDown {
  color: light-dark(var(--color6), var(--color1));
  background-color: light-dark(var(--color2), var(--color4));
  font-size: large;
}

#motifPickerDropDown:hover {
  color: light-dark(var(--color3), var(--color3));
  background-color: light-dark(var(--color4), var(--color2));
}

#motifPickerDiv {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#resetColorsBtn {
  height: min-content;
}

#motifsDiv {
  display: flex;
  justify-content: space-evenly;
  width: 90%;
  flex-wrap: wrap;
}

#designDiv {
  padding: 1em 0;
  border-radius: 10px;
  max-width: 100vw;
}

#svgChartDiv {
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
}

.SVGdiv {
  min-height: 100px;
}


/* MEDIA QUERIES */
@media screen and (max-width: 500px) {
  /* Smartphone */
  .boxes_p {
    font-size: 1em;
    overflow: visible;
  }
  input[type="color"] {
    height: 3em;
    width: 3em;
  }
  .mini_p {
    font-size: smaller;
  }
  #leftBoxP {
    margin-right: 0.2em;
  }
  #rightBoxP {
    margin-left: 0.2em;
  }
}

@media screen and (min-width: 501px) and (max-width: 775px) {
  /* small Tablet */
  .boxes_p {
    font-size: small;
    overflow: visible;
  }
  .mini_p {
    font-size: smaller;
  }
  #leftBoxP {
    margin-right: 0.3em;
  }
  #rightBoxP {
    margin-left: 0.3em;
  }
}

@media screen and (min-width: 776px) and (max-width: 976px) {
  /* BIG Tablet */
  .mini_p {
    font-size: small;
  }
}

@media screen and (min-width: 977px) and (max-width: 1028px) {
  /* Desktop */
  .mini_p {
    font-size: normal;
  }
}

@media screen and (min-width: 1029px) and (max-width: 1800px) {
  /* Big screen */
  .mini_p {
    font-size: normal;
  }
}

@media screen and (max-device-width: 650px) {
  #bottomBoxS {
    max-height: 15px;
  }
}


