
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  
  border-radius: 3px;
}


* {
  scrollbar-width: thin;
  
  scrollbar-color: #ccc transparent;
  
}

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

.container {
  border: 0;
  width: 1280px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: row;

  margin: 4px auto;
}

header.title {
  background-color: #fff;
  width: 1264px;
  margin: 0 auto;
  padding: 0 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;
}

.setting {
  gap: 8px;
  background-color: #fff;
  border-radius: 3px;
  min-height: 45px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  width: 360px;
}

.no_preview {
  font-size: 12px;
  line-height: 50px;

  width: 50px;
  display: inline-block;
  color: red;
  height: 50px;
}

.section .setting span {
  color: #fff;
}

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


#file-list {
  margin-bottom: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 6px;
  list-style: none;
  margin-top: 8px;
  background-color: #fff;
  border-radius: 3px;
  height: calc(100vh - 64px);

  width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  align-content: start;
}

#file-list li {
  border-radius: 5px;
  outline: 1px solid #aaa;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 3px;
  padding: 8px;
  font-size: 13px;
  text-align: center;
  gap: 8px;
}

.thumb-box {
  width: 182px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
}

img.thumb {
  width: auto;
  max-width: 182px;
  max-height: 230px;
  object-fit: contain;

  height: auto;
}
.download_compress {
  visibility: hidden;
}


.thumb-box span.format-label {
  position: absolute;
  top: 85%;
  right: 38%;
  background: rgba(233, 30, 99, 0.8);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  pointer-events: none; 
}


.button_count {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 80px;
  font-size: 0.85em;
  font-weight: 700;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  background-color: #e91e63;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0px 3px 4px -2px rgba(233, 30, 99, 0.6);
  transition: background-color 0.2s ease-out;
}

.file-type-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compressed:hover {
 cursor: pointer;
  box-shadow: 0 0 12px #1e88e5;
}
.user_tips {
  color: #555;
  
  background-color: #d4f2ff;
  border-radius: 8px;
  font-size: 14px;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 3%;
  line-height: 20px;
  width: 90%;
  text-align: left;
}

.file-type {
  position: relative; 
  flex: 0 0 calc(25% - 8px);
  text-align: center;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.file-type.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}


.file-type.active::before {
  content: "\2713";       
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 16px;
  color: #fff;
    font-family: Arial, Helvetica, system-ui;  
}

#file-list a {
  text-decoration: none;
  color: #2db7f5;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 3px;
}


.file-list-header {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  color: #000;
  z-index: 10;
  padding: 3px 0;
  font-weight: 500;
}

.file-list-header .col {
  flex: 1;
}


.col.index {
  flex: 0 0 50px;
}

.col.preview {
  flex: 0 0 100px;
}

.col.name {
  flex: 1;
}

.col.orig-size,
.col.status,
.col.new-size,
.col.actions {
  flex: 1;
}


#file-list .col {
  padding: 0.5em;
  text-align: center;
  font-size: 14px;
}

#guidePage {
  width: 1280px;
  text-align: center;
  align-items: center;
  margin-top: 8px;
}

 
#downloadDiv {
  display: flex;
  justify-content: center;
  width: 100%;
}

#format {
  height: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--color-black);
}

.col.actions a {
  text-decoration: none;
}

#settingBox fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 8px 0;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  font-size: 14px;
}

#settingBox fieldset legend {
  padding: 0 5px;
  font-weight: bold;
}

#settingBox label {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 5px;
}

#convertAllBtn {
     width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 10px;
    border: 1px solid #e91e63;
    background: #e91e63;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 16px auto;
    text-decoration: none;
}

#convertAllBtn:hover {
    background: #fff;
    color: #e91e63;
}

#convertAllBtn:disabled {
  background-color: #999;
  cursor: default;
  border: 0;
}

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

#inputFiles {
  display: none;
  padding: 8px;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 3px;
  flex-direction: column;
  outline: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fafafa;
}

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

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

section.panel {
  display: none;
  width: 100%;
  justify-content: space-between;
}

.outputBox {
  padding: 8px;
  font-size: 14px;
  outline: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fafafa;
  margin: 8px 0;
  display: none;
}

.outputBox div {
  height: 28px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

#downloadButton {
  width: 80px;
  height: 28px;
  background-color: var(--color-black);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 0;
  margin-left: 8px;
}

.main_title {
  font-size: 32px;
  font-weight: 700;
  margin-top: 64px;
}
#guidePage h2 {
  font-size: 18px;
  color: #666;
  margin: 16px;
  line-height: 38px;
  font-weight: normal;
  word-break: break-all;
}

#recommnedInfo {
  margin-top: 64px;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
}


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


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

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

#guidePage 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: 16px;
  text-align: left;
}

.common-issues dl dd {
  text-align: left;
  color: #333;
}

.h2_title {
  margin: 32px auto;
  text-align: center;
  border-radius: 5px;
  font-size: 24px;
  padding: 16px;

  color: #333;
  font-weight: 700;
}


    .button_box {
      height: 300px;
      width: 100%;
      position: relative;
      margin-top: 64px;
    }


@media screen and (max-width: 768px) {
  .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;
  }

  #page_footer {
    display: none;
  }

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

 

  .container {
    width: 98%;
    padding: 1%;
  }

  section.panel {
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .image_title {
    font-size: 36px;
  }

  .upload-label {
    margin-bottom: 36px;
  }

  .setting {
    height: 400px;
    margin: 1%;
    padding: 0;
    width: 98%;
    gap: 8px;
    outline: 0;
  }

  #inputFiles {
    width: calc(100% - 16px);
    padding-left: 8px;
    padding-top: 8px;
  }

  #settingBox fieldset {
    margin: 0;
  }

  .outputBox {
    margin: 0;
    padding: 8px;
  }

  #format {
    width: 65px;
  }

  #settingBox fieldset {
    height: 40px;
  }

  #file-list {
    border: 0;
    width: 55%;
    grid-template-columns: repeat(1, 1fr);
    outline: 0;
    height: auto;
    margin: 0 auto;
  }

  #file-list ul {
    border: 0;
  }

  .container {
    height: auto;
  }

  .grid-container {
    width: 90%;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  #convertAllBtn:disabled {
    width: 100%;
    margin: 3px auto;
    background-color: #999;
    cursor: default;
    border: 0;
  }

  #file-list .index,
  #file-list .name {
    display: none;
  }

  #file-list .col {
    padding: 0.5em 0;
    font-size: 12px;
  }

  #downloadDiv {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  #settingBox {
    width: 100%;
  }

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

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

  .button_box {
    width: 100%;
    margin: 0 auto;
  }

  

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

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

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