body {
background-color: var(--color-light);
}

header.title {
  background-color: #fff;
  width: min(1080px,98%);
  margin: 0 auto;
  padding: 5px 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
#headerUserBack {
  margin-right: 0;
}
#headerUserBack img {
  background: var(--header-bgcolor);
  padding: 8px;
  border-radius: 8px;
}


.container {
  border: 0;
  flex: 1;
  width: min(1080px,100%);
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  display: block;

  overflow-y: unset;
  margin: 4px auto;
}

.section {
  
  display: none;
  flex-direction: column;

  position: relative;
}

.section .file-info {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #fff;
  border-radius: 3px;

  min-height: 40px;
}


@media (max-height: 600px) {
  .grid-container {
    grid-gap: 0;
    margin-top: 0;
  }
}

.grid-container .grid-item {
  padding: 3px;
  text-align: center;
}

.grid-container .grid-item p {
  font-size: 16px;
  line-height: 20px;
  margin-top: 16px;
  color: #e91e63;
}

img.logo {
  width: 46px;
  height: 46px;
  border-top-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

@media screen and (max-width: 768px) {
  .grid-container {
    width: unset;
    padding: 16px;
    margin-top: unset;
    grid-gap: 24px;
  }
}

#videoPreview {
  background-color: #fff;
  width: 100%;
  object-fit: contain; 
}

#videoContainer {
  margin-top: 8px;
  position: relative;
  width: 100%;
  height: calc(100vh - 360px);
  background-color: #fff;
  overflow: hidden;

  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section .file-info span {
  color: #0056b3;
  margin-right: 16px;
  margin-left: 3px;
}

.grid-item svg {
  width: 54px;
  height: 54px;
  color: var(--color-icon);
}

#app_title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
}

#app_title span {
  display: none;
}

#controls {
  width: 95%;
  margin: 16px auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

 
#controls button.default {
  outline: 1px solid var(--button-color);
  font-weight: 700;
}

#controls button {
  background-color: #fafafa;
  padding: 8px;
  font-size: 14px;
  color: #555;
  width: 100%;
  border: none;
  border-radius: 5px;
  display: flex;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 1;
  height: 32px;
  align-items: center;
  justify-content: flex-start;
  
}

#controls button svg {
  color: var(--color-icon);
  width: 20px;
  height: 20px;
}

#controls button img {
  
  pointer-events: none;
}

#controls button svg {
  
  pointer-events: none;
}


#controls button span {
  pointer-events: none;
  margin-left: 8px;
}

 
#controls input {
  width: 60px;
}

#contentContainer svg.icon {
  width: 26px;
  height: 26px;
}


input[type="number"] {
  width: 100px; 
  padding: 8px 12px; 
  font-size: 14px; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  background-color: #fff; 
  box-sizing: border-box; 
  color: #333;
}


input[type="number"]:focus {
  border-color: #007bff; 
  outline: none; 
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); 
}

#saveBtn {
  background-color: #f33;
  color: #fff;
}

video {
  max-width: 100%;
  height: 550px;
  display: block;
  
  
}

#videoinfo,
#videoInput {
  font-size: 13px;
}
#videoinfo {
  margin-left: 16px;
}

#videoCutInfo {
  width: auto;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  
  color: #f33;
  padding: 5px;
  opacity: 0.7;
  font-size: 13px;
  pointer-events: none;
}

.settingPanel_title {
  font-weight: 900;
  margin-bottom: 0;
  width: 180px;
}

#contentContainer .timeline_step {
  gap: 24px;
  flex-direction: row;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#contentContainer .noUi-horizontal .noUi-tooltip {
  bottom: 130%;
}

#contentContainer .timeline_step {
  width: 600px;
  display: flex;
  flex-direction: row;
  align-items: center;
  
}

#contentContainer .noUI-slider-round {
  width: 600px;
}

#contentContainer .timeline_step img {
  color: #fff;
  cursor: pointer;
  height: 24px;
  width: 24px;
}


.size-option {
  padding: 10px;
  margin: 5px;
  cursor: pointer;
  border: 1px solid red;
  color: red;
  cursor: pointer;
  border-radius: 3px;
}

@media screen and (max-width: 768px){
  
  .videoCropActionArea .size-option:nth-child(6),
  .videoCropActionArea .size-option:nth-child(7),
  .videoCropActionArea .size-option:nth-child(8) {
    display: none;
  }

  #contentContainer .timeline_step {
    width: 360px;
  }

  #contentContainer .noUI-slider-round {
    width: 360px;
  }
}

.size-selected {
  background-color: var(--header-bgcolor);
  color: white;
  border-radius: 5px;
}


.format-option {
  padding: 5px;
  margin: 5px;
  cursor: pointer;

  cursor: pointer;
  border-radius: 5px;

  border: 1px solid var(--header-bgcolor);
  color: var(--header-bgcolor);
}

.selected {
  background: #fff;
  background-color: var(--header-bgcolor);
  color: white;
  border-radius: 5px;
  border: 0;
}

.video-rotate-option {
  background: url("/assets/images/video_rotate_angle.svg") no-repeat;
  background-position: center center; 
  padding: 10px;
  margin: 5px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: #4caf50;
  cursor: pointer;
  text-align: center;
  line-height: 36px;
  font-size: 12px;
  font-weight: 700;
}

.rotate-selected {
  background-color: var(--header-bgcolor);
  color: white;
  border-radius: 100px;
}

.flip-optionX {
  cursor: pointer;
  width: 32px;
  height: 32px;
  background: url("/assets/images/video_h_flip.svg") no-repeat;
  padding: 5px;
}

.flip-optionY {
  cursor: pointer;
  width: 32px;
  height: 32px;
  background: url("/assets/images/video_v_flip.svg") no-repeat;
  padding: 5px;
}



#time-display {
  font-size: 24px;
  font-weight: bold;
}
#time-slider {
  width: 300px;
  margin-top: 20px;
  display: inline-block;
}
.button-container {
  display: inline-block;
  margin-top: 20px;
}
.button-container button {
  font-size: 13px;
}


input[type="file"] {
  font-size: 16px;

  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button {
  background-color: #000000; 
  color: white; 
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #666; 
}


.previewCanvas {
  background: #c0def6;
  width: 100%;
  height: 60px;
  outline: 1px solid #fafafa;
  border-radius: 3px;
  
  box-sizing: border-box;
}




.video-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 550px;
  background: #fff;
  overflow: hidden;
}
video {
  width: 100%;
  height: 550px;
  object-fit: contain;
  z-index: 1;
  position: relative;
  display: block;
}
.crop-box {
  position: absolute;
  border: 1px dashed red;
  background: rgba(255, 0, 0, 0.2);
  cursor: move;
  box-sizing: border-box;
  display: block;
  z-index: 10;
  
  right: -200px;
}
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
}
.resize-handle.tl {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}
.resize-handle.tr {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}
.resize-handle.bl {
  bottom: -5px;
  left: -5px;
  cursor: nesw-resize;
}
.resize-handle.br {
  bottom: -5px;
  right: -5px;
  cursor: nwse-resize;
}
.resize-handle.top {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.resize-handle.bottom {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.resize-handle.left {
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  cursor: ew-resize;
}
.resize-handle.right {
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

#videoAssetInfo {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 20;
  opacity: 0.5;
}

.videoPlayControl {
  box-sizing: border-box;
  background-color: #fff;
  width: 100%;
  height: 30%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  text-align: center;
  position: relative;
  right: -3.3%;
}

.videoPlayControl div {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 33.33%;
  column-gap: 8px;
  color: #ff0000;
}

.videoPlayControl img {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.videoPlayControl div span {
  width: 32px;
  font-size: 13px;
  border-radius: 1px;
  padding: 3px 6px;
  outline: 1px solid red;
  cursor: pointer;
}

.videoPlayControl div span:first-child {
  cursor: unset;
  outline: 0;
}

.videoPlayControl .speed-selected {
  background-color: red;
  color: #fff;
}

.previewCanvasContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 98%;
  overflow: hidden;
  justify-content: center;
  height: 40%;
  position: relative;
  overflow: visible;
}

.videoCropActionArea {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 30%;
  justify-content: center;
  column-gap: 8px;
  width: 98%;
}



@media screen and (max-width: 768px){
  
  .videoPlayControl div span:first-child,
  .videoPlayControl div span:nth-child(5),
  .videoPlayControl div span:nth-child(6) {
    display: none;
  }

  .videoPlayControl {
    width: 90%;
    right: unset;
    padding-top: unset;
  }

  .videoPlayControl div {
    width: unset;
  }

  .videoPlayControl div span {
    padding: 3px 1px;
  }

  .size-selected,
  .size-option {
    font-size: 14px;
  }
}


.videoAddImageArea {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 30%;
  justify-content: flex-start;
  column-gap: 8px;
  width: 98%;
}


.videoAddImageArea .img-container {
  display: inline-block;
  position: relative;
  width: 58px;
  height: 58px;
  margin-right: 5px;
  border: 1px solid red; 
  border-radius: 3px;
}

.videoAddImageArea .img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.videoAddImageArea .delete-btn {
  display: none;
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff0000;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  cursor: pointer;
  font-size: 12px;
}

.videoPlayControl .rightStep,
.videoPlayControl .leftStep {
  padding: 3px 8px;
  color: #068eff;
  width: 48px;
  font-size: 16px;
}

.videoPlayControl .rightStep b,
.videoPlayControl .leftStep b {
  cursor: pointer;

  display: inline-block;
  transform: scale(1.3);

  padding: 0 3px;
}


.previewCanvasContainer .noUi-horizontal .noUi-handle {
  
  border: 1px solid #f33;
  background-color: rgba(255, 51, 51, 1); 

  width: 12px;
  height: 70px;
  right: -5px;
  top: -6px;
  box-shadow: unset;
  cursor: ew-resize;
}

.previewCanvasContainer .noUi-target {
  background: unset;
}

.previewCanvasContainer .noUi-touch-area {
  width: 0;
  height: 50%;
  border-left: 2px solid white; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
}

.previewCanvasContainer .noUi-horizontal .noUi-tooltip {
  bottom: 108%;
  font-size: 13px;
}

.previewCanvasContainer .noUi-tooltip {
  color: #f33;
  outline: 1px solid #f33;
}


@media screen and (max-width: 768px){
  #videoContainer {
    height: calc(100dvh - 396px);
  }

  .container {
    width: calc(100% - 16px);
  }

  .section .file-info {
    flex-direction: column;
 
    min-height: 54px;
  }

  input[type="number"] {
    width: 100%;
  }

  #controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
  }

  input[type="file"] {
    width: 98%;
    font-size: 13px;
    padding: 1%;
  }

  input[type="file"]::-webkit-file-upload-button {
    padding: 12px 18px;

    font-size: 16px;
  }

  video {
    max-width: 100%;
    height: 300px;
    display: block;
  }

  .settingPanel_title {
    text-align: center;
  }
}

input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
}

#end_time,
#start_time {
  width: 75px;
  padding: 3px 20px;
}

@-moz-document url-prefix() {
  #end_time,
  #start_time {
    width: 90px;
  }
}




#videoPreview {
 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
 
}

#info {
  width: 1080px;
  margin: 10px auto;
  padding: 5px;
  border: 1px solid #aaa;
  
  background: #f7f7f7;
}

.edit-box {
  position: absolute;
  box-sizing: border-box;
  cursor: move;
  z-index: 2;
  outline: 2px dashed #ff5722;
  background: rgba(255, 87, 34, 0.5);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 1px,
    rgba(255, 255, 255, 0.4) 2px,
    transparent 2.1px,
    transparent 6px
  );
}

.edit-box:not(.active) {
  border: none;
}

.edit-box.active {
  
}

.edit-box .handle,
.edit-box .rotate-handle {
  display: none;
}

.edit-box.active .handle,
.edit-box.active .rotate-handle {
  display: block;
}

.edit-box img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: block;
}

.handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid #000;
  box-sizing: border-box;
}

.handle.tl {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}
.handle.tr {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}
.handle.bl {
  bottom: -5px;
  left: -5px;
  cursor: nesw-resize;
}
.handle.br {
  bottom: -5px;
  right: -5px;
  cursor: nwse-resize;
}

.handle.tm {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.handle.bm {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.handle.lm {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}
.handle.rm {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.rotate-handle {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #f00;
  border-radius: 50%;
  cursor: pointer;
}

#videoFile,
#imageFile {
  display: block;
  margin: 10px auto;
}


#contentContainer2 .watermark-div {
  width: 58px;
  height: 58px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  position: relative;
  text-align: center;
  line-height: 58px;
  font-size: 20px;
}

#contentContainer2 .videoWatermarkButton {
  border-radius: 3px;
  border: 0;
  background: #000;
  color: #fff;
  width: 72px;
  height: 36px;
  cursor: pointer;
}

@media screen and (max-width: 768px){
  #contentContainer2 .videoWatermarkButton {
    border-radius: 3px;
    border: 0;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    cursor: pointer;
  }
}


.noUI-slider-round {
  height: 10px;
}

.videoImageThumbLine .noUI-slider-round .noUi-connect {
  background: #c0392b;
}

.noUI-slider-round .noUi-handle {
  height: 18px;
  width: 18px;
  top: -5px;
  right: -9px; 
  border-radius: 9px;
}


.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

.noUi-handle-upper .noUi-tooltip {
  bottom: unset; 
}

.videoImageThumbLine .noUi-horizontal .noUi-handle-lower {
  border: 0;
  border: 0;
  right: -8px;
  width: 10px;
  top: -3px;
  background-color: #068eff;
  border: 0;
  height: 64px;
  border-radius: 5px 0 0 5px;
}

.videoImageThumbLine .noUi-horizontal .noUi-handle-upper {
  border: 0;
  right: -8px;
  width: 10px;
  top: -3px;
  background-color: #068eff;
  border: 0;
  height: 64px;
  border-radius: 0 5px 5px 0;
}

.videoImageThumbLine .videoPlaySlider {
  width: 100%;
  position: absolute;
  opacity: 1;
  height: 60px;
  outline: 2px solid #068eff;
}

#contentContainer2 .noUi-connect {
  opacity: 0.5;
  background: #000;
}


.videoAddImageArea .mergeVideoInfo {
  font-size: 13px;
  line-height: 24px;
  flex-wrap: wrap;
  display: flex;
}

.videoAddImageArea .mergeVideoInfo span {
  color: #0056b3;
  margin-right: 16px;
  margin-left: 3px;
}

@media screen and (max-width: 768px){
  .videoAddImageArea .mergeVideoInfo span:first-of-type {
    display: inline-block; 
    max-width: 10em; 
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}



#imageTipsBox {
  width: min(1080px,100%);
 

  text-align: center;

  align-items: center;

 
}

.upload-label {
  margin: 0 auto;
  margin-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
   background-color: var(--black-70);pointer-events: none;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  pointer-events: none;
}

#videoInput {
  display: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  width: 70%;
  padding: 1%;
  margin: 0 auto;
}
.grid-container .grid-item {
  padding: 3px;
  text-align: center;
  margin-top: 48px;
}

.grid-container .grid-item p {
  font-size: 16px;
  line-height: 20px;
  margin-top: 4px;
  color: #333;
}

.image_title {
  font-size: 32px;
  margin-bottom: 32px;
  font-weight: 700;
  margin-top: 60px;
}

.image_title div {
  font-size: 16px;
  color: #555;
  margin: 24px 0;
  line-height: 23px;
  font-weight: normal;
}


@media screen and (max-width: 768px){

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  width: 98%;
  padding: 1%;
  margin: 0 auto;
}

  header.title {
    width: 98%;
    padding: 1%;
  }

  .container {
    display: block;
    padding: 1%;
    width: 96%;
    border: 0;
  }

  .footer {
    gap: 1px;
    height: auto;
    background: #fff;
  }
  .footer button {
    flex: 1 1 30%;
    font-size: 12px;
    padding: 0;
  }
  .controls input[type="range"] {
    width: 80vw;
  }
  .controls label {
    font-size: 14px;
  }
  canvas {
    max-width: 90dvw;
    max-height: 50dvh;
    border-width: 1px;
  }

  #uploadSetting {
    width: 96%;
  }

  
  #image-info > :first-child {
    display: none;
  }

  .controls label {
    width: unset;
    margin: 0;
  }

  #imageTipsBox {
    width: 100%;
    margin: 0 auto;
    margin-top: 36px;
  }

  .grid-container .grid-item {
    margin-top: 12px;
  }

 

  .upload-label {
    width: 196px;
    height: 45px;
    margin-bottom: 24px;
  }

  #imageTipsBox svg.icon {
    width: 54px;
    height: 54px;
  }
}



#recommnedInfo {
  margin: 0 auto;
  margin-top: 64px;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  width: 90%;
}

#imageTipsBox {
  width: 1280px;
}


#imageTipsBox article {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;

  line-height: 1.7;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#imageTipsBox article h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 32px;
  line-height: 1.3;
  text-align: center;
  
}

#imageTipsBox article h3 {
  font-size: 18px; 
  font-weight: 700; 
  color: #111111; 
  margin-bottom: 12px; 
  line-height: 1.3; 
  text-align: left; 
  margin-top: 32px;
}


article section {
  font-size: 1rem;
  color: #333333;
  text-align: center;
  
}

#imageTipsBox article p {
  text-align: left;
  margin-top: 16px;
  color: #333;
}


article strong {
  color: #1a73e8;
  font-weight: 600;
}


article ol {
  margin: 16px 0 0 24px;
  padding: 0;
}

article ol li {
  margin-bottom: 12px;
}

.more-links ul li {
  display: inline-block;
  margin: 8px;
}
.more-links a {
  text-decoration: none;
}

.common-issues dl dt {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  text-align: left;
}

.common-issues dl dd {
  text-align: left;
  color: #333;
}
.recommned-pc {
  margin-bottom: 45px;
  color: #e91e63;
  visibility: hidden;
}

.upload-label {
  font-size: 18px;
  margin: 0 auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 60px;
  background-color: #0088ff;
  pointer-events: auto;
  color: white;
  cursor: pointer;
  border-radius: 3px;
}

header.title {
  width: 1264px;
  padding: 5px 8px;
}
.container {
  width: 1280px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 0;
 
}

.actionPanel {
  display: none;
  width: 420px;
  text-align: center;
  border-left: 1px dashed #ccc;
  margin: 8px 0;
}

#contentPanel {
  width: 800px;
  margin-left: 16px;
}
.section .file-info {
  padding-top: 16px;
  justify-content: center;
}


select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 48px 10px 14px; 
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  font-size: 14px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px; 
}

.inputTips {
  font-size: 14px;
  color: #ff1744;
  margin-top: 8px;
  margin-bottom: 16px;
  display: none;
}

#controls {
  width: 98%;
  display: block;
}

#videoinfo {
  font-size: 14px;
}

#controls button {
  border: 1px solid var(--black-30);
  font-weight: bold;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
}

#controls button.active {
  background-color: unset;
  color: #555;
}

.main_title {
  font-size: 32px;
  font-weight: 700;
  margin-top: 64px;
}

#imageTipsBox h2 {
  font-size: 18px;
  color: #666;
  margin: 16px;
  line-height: 30px;
  font-weight: normal;
}


#videoSizeSelect,
#scaleMode {
  width: 240px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

input[type="number"] {
  width: 103px;
}
input[type="number"]:disabled {
  color: #999;
}


#videoSizeSelect:hover,
#videoSizeSelect:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

h2 {
  margin: 32px;

  font-size: 24px;
  font-weight: 600;
}

.color-option[data-color="blur"] {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #666, #222) !important;
    filter: none !important;   
}


.color-option[data-color="blur"]::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 30%, #aaa 0 15%, transparent 16%),
        radial-gradient(circle at 70% 70%, #777 0 18%, transparent 19%),
        linear-gradient(135deg, #666, #222);
    filter: blur(5px);
    transform: scale(1.2);
}


.color-option[data-color="blur"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    z-index: 1;
    filter: blur(1.5px);
}

.user_tips {
  color: #555; 
  background-color: #d4f2ff;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 32px;
  padding: 8px;
  line-height: 20px;
  width: 78%;
  margin-left: 10%;
  text-align: left;
}

#inputsContainer {
  margin-left: 125px;
  margin-top: 16px;
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

#scaleMode {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 110px;
  margin: 8px 0;
}

#outputFormat {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 240px;
}

.form-label {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 16px;
}

#canvasColor {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 240px;
}

.action-wrapper {
  margin-top: 24px;
  text-align: center;
}

.process-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 120px;
  text-decoration: none;
}


.process-btn:hover {
  background: #fff;
  color: #111;
}


.process-btn:active {
  transform: scale(0.97);
}


.process-btn:disabled {
  background: #e5e5e5;
  border-color: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}


.faq dt {
  cursor: pointer;
  padding: 14px;
  background: #f5f5f5;
  margin-top: 8px;
  border-radius: 6px;
  font-weight: 600;
  position: relative;
  transition: background 0.2s ease;
}

.faq dt:hover {
  background: #eaeaea;
}

.faq dt::after {
  content: "+";
  position: absolute;
  right: 14px;
  font-weight: bold;
}

.faq dt.active::after {
  content: "−";
}

.faq dd {
  font-size: 14px;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 14px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq dd.open {
  padding: 12px 14px;
  max-height: 500px;
  font-size: 14px;
}


#videoEditor {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  gap: 8px;
}

#videoContainer {
  background-color: #000;
  margin-top: 0;
  position: relative;
}

#videoPreview {
  background-color: transparent;
}

#scaleModeButtons button {
  position: relative;
  display: inline-block;
  padding: 0 43px;
  font-size: 14px;
  height: 36px;

  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  
  transition: all 0.3s ease;
}


#scaleModeButtons button:hover {
  background: #fafafa;
  border: 1px solid #333;
  transform: scale(1.02);
}

#scaleModeButtons button.btn-contain {
  background: url("/assets/images/video_contain.svg?v=28f3f8771902") no-repeat 15px center;
  background-size: 24px 24px;
}

#scaleModeButtons button.btn-cover {
  background: url("/assets/images/video_cover.svg?v=640424d9c0b5") no-repeat 18px center;
  background-size: 18px 18px;
}


#canvasLabel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-around;
}

#canvasColorCustom {
  display: flex;
  align-items: center;
  gap: 3px;
}


.color-option {
  border-radius: 31px;
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  outline: 2px solid #000;
}


.custom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}


#customColorBtn {
  padding: 2px 6px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  transition: background 0.2s;
}

#customColorBtn:hover {
  background-color: #e0e0e0;
}


#customColorInput {
  display: block;
  height: 26px;
  width: 30px;
}

#customColorBtn {
  width: 24px; 
  height: 24px; 
  border-radius: 24px;
  border: 0;
  background-color: #fff;

  
  background-image: url("/assets/images/image_color_add.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;

  cursor: pointer;
  transition: background 0.2s;
}

#customColorBtn:hover {
  background-color: #e0e0e0;
  outline: 2px solid #000;
}


@media screen and (max-width: 768px) {
  .main_title {
    margin-top: 32px;
  }

  .inputTips {
    margin-left: -30px;
  }

  #inputsContainer {
    margin-left: 90px;
  }

  #customColorInput {
    height: 26px;
    width: 26px;
  }

  header.title {
    width: 98%;
    padding: 1%;
  }

  .process-btn {
    margin-top: 10px;
    margin-bottom: 60px;
  }

  .actionPanel {
    width: 100%;
  }

  #videoinfo {
    margin: 0;
  }

  .section .file-info span:first-of-type {
    display: block;
    text-align: center;
    margin: 8px auto;
  }

  .section .file-info {
    border: 0;
  }

  #contentPanel {
    width: 100%;
    margin: 0;
  }

  .recommned-pc {
    visibility: visible;
  }

  .more-links ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0; 
  }

  .more-links ul li {
    display: grid;
    margin: 8px;
  }

  article {
    padding: 18px;
  }

  article h2 {
    font-size: 1.5rem;
  }

  .container {
    height: auto;
    width: 100%;
    flex-direction: column;
    min-height: calc(100vh - 96px);
  }

  #imageTipsBox {
    width: 100%;
    margin-top: 0;
  }

 

  .grid-container .grid-item {
    margin-top: 16px;
  }

  .grid-container .grid-item p {
    font-size: 14px;
  }

  #imageTipsBox svg.icon {
    width: 36px;
    height: 36px;
  }
}
