* {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
:root {
  --border: 0px solid #000;
}
header {
  border-bottom: 5px solid #c1c1c1;
}
#part1,
#part2,
#part3 {
  border: var(--border);
}

#mainbody {
  border: var(--border);
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  align-items: center;

  margin-top: 10px;
}
#part1 {
  display: flex;
  width: 100px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  margin-left: 30px;
}
#part2 {
  margin: auto;
}

#part3 {
  margin: auto;
}
.mySwiperh {
  width: 300px;
  height: calc(300px * 16 / 9);
  padding: 35px 40px;
  padding-right: 55px;
}
.mySwiperh:active {
  cursor: grab;
}
.mySwiperv {
  height: calc(300px * 16 / 9);
  display: block;
}
.mySwiperv:active {
  cursor: grab;
}

.swiper-slideh {
  width: 300px;
  height: calc(300px * 16 / 9);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 5px solid rgb(41, 41, 41);
}
/* 
#swiper-slideh1,
#swiper-slideh2,
#swiper-slideh3 {
  
} */
#swiper-slideh1 {
  background-image: url("./assets/p1.jpg");
}
#swiper-slideh2 {
  background-image: url("./assets/p2.jpg");
}
#swiper-slideh3 {
  background-image: url("./assets/p3.jpg");
}
.swiper-wrapperv {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper-slidev {
  width: 100px;
  height: calc(150px * 16 / 9);
  border: 4px solid rgb(41, 41, 41);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#swiper-slidev1 {
  background-image: url("./assets/p1.jpg");
  background-size: cover;
}
#swiper-slidev2 {
  background-image: url("./assets/p2.jpg");
  background-size: cover;
}
#swiper-slidev3 {
  background-image: url("./assets/p3.jpg");
  background-size: cover;
}
.swiper-button-next,
.swiper-button-prev {
  color: #000;
}
.swiper-pagination-bullet {
  background-color: #000 !important;
}
.swiper-pagination-bullet-active {
  background-color: #000000 !important;
}
#fontfeature {
  border: 1px solid #bbbbbb;
  padding: 10px;

  border-radius: 10px;
  display: block;
}
#ff1,
#ff2,
#ff3,
#ff4,
#ff5 {
  display: flex;
  flex-direction: row;
}
#ff2,
#ff3,
#ff4,
#ff5 {
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.addtextbtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  background-color: #ffffff;
  border: 1px solid #bbbbbb;
  border-radius: 5px;
  margin-left: 10px;
}
.addtextbtn:hover {
  background-color: #f8f8f8;
}
.ttools {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}
.bri {
  background-color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #bbbbbb;
  cursor: pointer;
  text-align: center;
  width: 100px;
}
/* #width,#height{
    
} */
.bri:hover {
  background-color: #f8f8f8;
}
#fontwidth,
#fontsize {
  width: 120px;
  outline: none;
}
#customizebtn {
  border-radius: 15px;
  background-color: #ffffff;
  /* box-shadow: 1px 1px 2px #6d6d6d; */
  border: 1px solid #bbbbbb;
  cursor: pointer;
  padding: 5px 10px;
}
.custcontainer {
  width: 250px;
  margin-left: 5px;
  border: var(--border);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}
#custdiv1 {
  overflow-x: hidden;
  overflow-y: auto;
  height: 450px;
}
#custdiv1::-webkit-scrollbar {
  width: 8px;
}
#custdiv1::-webkit-scrollbar-track {
  background: #e8e8e8;
  border-radius: 4px;
}
#custdiv1::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 4px;
}
#custdiv1::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#custdiv2 {
  text-align: center;
}

#custdiv2 button {
  border: 1px solid #bbbbbb;
  background-color: #ffffff;
  margin: 10px 10px;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
}

#custdiv2 button:hover {
  background-color: #f8f8f8;
}

.custitem {
  height: 200px;
  margin: 10px 0px;
  text-align: center;
  cursor: grab;
  border-radius: 10px;
  width: 250px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
#cust1 {
  background-image: url("./assets/p1.jpg");
}
#cust2 {
  background-image: url("./assets/p2.jpg");
}
#cust3 {
  background-image: url("./assets/p3.jpg");
}
#textcolor {
  width: 40px;
  height: 40px;
  padding: 0px;
  border-radius: 50%;
}
.textareas {
  resize: none;
  font-family: Arial, sans-serif;
  border: 0px solid #000; /* visible border */
  overflow: auto;
  padding: 2px 5px;
  font-size: 16px;
}
.textareas:focus {
  outline: 2px dashed rgb(0, 0, 0); /* highlight when editing */
  background-color: #fff;
}

.textareas:hover {
  background-color: rgba(251, 251, 161, 0.655);
  cursor: move;
}
.textareas:active {
  background-color: rgba(182, 255, 187, 0.655);
  cursor: grab;
}

/* Verticle Guid */
.vertical-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* center of the container */
  width: 0; /* remove solid background width */
  border-left: 2px dashed rgba(0, 0, 0, 0.5); /* dashed vertical line */
  pointer-events: none; /* so dragging works */
  z-index: 999;
}

.textareas.selected {
  outline: 2px dashed red;
}

/* ========== NEW RESPONSIVE & LAYOUT CSS ========== */
@media (max-width: 900px) {
  #mainbody {
    flex-direction: column;
    align-items: center;
  }
  #part1 {
    margin: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* almost full width */
    height: 100vh; /* full height */
    z-index: 999;
    background: #ffffff;
    border: 5px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* scroll if needed */
    display: flex; /* flexbox for centering */
    display: none; /* controlled with JS */
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    gap: 10px; /* space between items (optional) */
  }

  #customizebtn-mobile {
    display: block;
    margin: 10px auto;
    background-color: #ffffff;
    border: 1px solid #bbbbbb;
    padding: 5px 10px;
    border-radius: 15px;
  }
  .btn-wrapper {
    width: 100%; /* wrapper takes full width */
    display: flex;
    justify-content: flex-end; /* pushes button to the right */
  }

  .btn-wrapper button {
    width: auto; /* button stays natural size */
  }

  #closebtn-mobile {
    margin-right: 20px;
  }
}
@media (min-width: 901px) {
  #customizebtn-mobile {
    display: none;
  }
  #closebtn-mobile {
    display: none;
  }
}
