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

  overflow-y: unset;
  margin: 1% auto;
}

.section {
  
  display: none;
  flex-direction: column;
  height: 100%;
  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 (orientation: portrait) {
  .grid-container {
    width: unset;
    padding: 16px;
    margin-top: unset;
    grid-gap: 24px;
  }
}

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

#videoContainer,
#mp3Container {
  width: 100%;

  margin: 0 auto;
  border-radius: 10px;

  overflow: hidden;
 
}

#mp3Container {
  margin-top: 100px;
}

.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: 100%;
  margin: 0 auto;
  display: flex;
  text-align: center;
  justify-content: space-between;
  align-items: center;
 
  position: absolute;
  bottom: 0;
}

#controls button.active {
  background-color: #009688;
  color: #fff;
}

#controls button.default {
  background-color: #E91E63;
  font-weight: 700;
  color: #fff;
}

#controls button {
  background-color: #E91E63;
  padding: 8px;
  font-size: 14px;
  color: #fff;
  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: center;
  
}

#controls button svg {
  color: #fff;
  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 button:hover {
  background-color: #009688;
  color: #fff;
}

#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: 80px;
}

#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 (orientation: portrait) {
  
  .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: red;
  color: white;
  border-radius: 5px;
}


.format-option {
  padding: 5px;
  margin: 5px;
  cursor: pointer;
   border: 1px solid var(--header-bgcolor);
  color: var(--header-bgcolor);
 
  cursor: pointer;
  border-radius: 5px;
}

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

.video-rotate-option {
  background: url("/assets/images/video_rotate_angle.svg?v=6dd40e81f187") 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: #4caf50;
  color: white;
  border-radius: 100px;
}

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

.flip-optionY {
  cursor: pointer;
  width: 32px;
  height: 32px;
  background: url("/assets/images/video_v_flip.svg?v=e13dba7dec1a") 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 (orientation: portrait) {
  
  .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 (orientation: portrait) {
  #videoContainer {
    height: calc(100dvh - 396px);
  }

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

  .section .file-info {
    flex-direction: column;
    border: 1px solid #aaa;
    min-height: 54px;
  }

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

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

  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 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

#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 (orientation: portrait) {
  #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 (orientation: portrait) {
  .videoAddImageArea .mergeVideoInfo span:first-of-type {
    display: inline-block; 
    max-width: 10em; 
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}



#imageTipsBox {
  width: 1080px;
  height: 600px;

  text-align: center;

  align-items: center;

  margin: 120px auto;
}

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

#videoInput {
  display: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  width: 90%;
}
.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: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

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


@media screen and (orientation: portrait) {
  .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;
  }

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

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

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


.playControls {
  display: block;
  text-align: center;
  margin: 16px 0;
}