#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;
  }
}
