section {
  padding: 0;
  height: 0;
}

.aiTypeSectio {
  background-color: var(--richBlack);
  color: var(--beige);
}

.mainTypeSection {
  overflow: hidden;
}

#controlPanelDiv {
  opacity: 1;
  transition: opacity 1.4s ease; /* Adjust duration (0.5s) as needed */
}

.cotrolPael {
  bottom: 0;
  z-index: 8;
  width: 95vw;

  z-index: 30;
  position: fixed;
  mix-blend-mode: difference;
  /* Ensure blend mode works across browsers */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cotrolPaelDetail {
  display: flex;
}

.cotrolPaelTop {
  display: flex;
  border-bottom: 1px var(--beige) solid;
  border-left: 1px var(--beige) solid;
  border-right: 1px var(--beige) solid;
  padding: 1rem;
  margin-bottom: 1rem;
  justify-content: space-between;
}

#colTitle {
  justify-content: flex-start;
}

#colTitle2 {
  justify-content: flex-start;
}

.control1 div,
.control2 div,
.control3 div,
.control4 div {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-right: 1rem;
  width: 100%;
}

/** SLIDERS **/
.rSlider {
  color: var(--beige);
  -webkit-appearance: none;
  background-color: var(--black);
  border: none;
  outline: none;
  margin-bottom: 0.5rem;
  height: 0.1px;
}

.rSlider::-webkit-slider-runnable-track {
  /* Turns the cursor into the hand pointer icon when hovering over the slider  */
  cursor: pointer;
  background: var(--beige);
  height: 1px;
  border-radius: 3px;
}

/* .rSlider::-moz-range-track {
  background: var(--beige);
  height: 0.1px;
  border: none;
} */

.rSlider::-webkit-slider-thumb {
  background: var(--richBlack);
  border: 1px solid var(--beige);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-top: -6px;
  -webkit-appearance: none;
  cursor: pointer;
}

.rSlider::-webkit-slider-thumb:hover {
  background: var(--red);
}

/** FONT SELECTOR **/
.fontSelector {
  color: var(--beige);
  -webkit-appearance: none;
  background-color: var(--black);
  border: 0.1px solid var(--beige);
  margin-bottom: 0.5rem;
  padding: 0.3rem;
  width: 100%;
}

.fontSelector:hover {
  background-color: var(--red);
  cursor: pointer;
}

/** COLOUR SLIDERS **/
.colorPicker {
  width: 72px;
  height: 21px;
  padding: 0;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -9999;
}

#canvas {
  transition: filter 0.5s ease; /* Smooth blur transition */
}

.blur {
  filter: blur(20px) brightness(30%);
}

/* EPORT TET */
#overlayText {
  z-index: 9999;
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px; /* Adjust as needed */
  text-align: center;
  display: none; /* Hidden initially */
}

.uploadGalleryBtns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  margin-top: 5rem;
}

.uploadGalleryBtns button {
  width: 125px;
  height: 43px;
  border-radius: 4px;
}

.galleryQ {
  font-weight: 400;
  font-size: 64px;
}

.galleryQ span {
  font-style: italic;
  font-weight: 700;
}

.galleryQ1,
.galleryQ2 {
  position: absolute;
}

.galleryQ2 {
  opacity: 0; /* Initially hide div2 */
  visibility: hidden;
}

.qrCode {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qrcode {
  width: 20vw;
  margin-top: 15px;
  margin: auto;
}

#qrcode img {
  margin: auto;
}

.hidden {
  display: none;
}
