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

#guidePage {
  flex-direction: column;
  display: flex;
  gap: 16px;
  width: 1280px;
  height: auto;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 32px;
}


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

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

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

.setting fieldset legend {
  padding: 0 5px;
  font-weight: bold;
  color: var(--color-black);
}

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

#guidePage h2 {
  font-size: 18px;
  color: #666;
  margin: 16px;
 
  font-weight: normal;
  line-height: 32px;
  word-break: break-word; 
}

.setting fieldset {
  min-height: 36px;
 
  border-radius: 5px;
  margin: 8px 0;

 
  border-radius: 5px;
  padding: 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}





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

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

.setting label {
  display: block;

  margin: 0 8px;
}

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

  margin: 4px auto;
  height: calc(100% - 86px);
}

.file-info {
  padding: 0 8px;

  align-items: center;
  justify-content: space-between;
  column-gap: 16px;

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

  margin: 8px 0;
}

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;

  padding: 8px;
  display: flex;
  flex-direction: column;
  width: 350px;
}

.file-info #download_zip {
  border-radius: 3px;
  border: 0;
  background: #000;
  color: #fff;
  width: 120px;
  height: 36px;
  cursor: pointer;
  font-size: 13px;
  display: none;
}

.file-info #download_zip:disabled {
  background-color: #999;
  cursor: default;
}

.fileListHeader {
  font-weight: bold;
  height: 32px;
  background-color: #eee;
}

#slogan li.fixed-header {
  margin: 0;
  width: 100%;
}

.fileListHeader div {
  flex: 1;
}

.fileListItem > * {
  flex: 1;
}

.fixed-header {
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fileListItem {
  font-weight: normal;
}

.section .file-info span {
  color: #fff;
}

.grid-item svg {
  width: 54px;
  height: 54px;
  color: #00b578;
}

#fileInput {
  font-size: 13px;
}

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

#downloadButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



 


#file-list li {
  display: flex;
  align-items: center;
}


.file-list-header {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  z-index: 10;
  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;
  width: 60px;
  word-break: break-all;
}

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


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

 .h2_title {
    margin: 16px auto;
    text-align: center;
    border-radius: 5px;
    font-size: 24px;
    padding: 16px;
    color: #333;
    font-weight: 700;
}

button {
  padding: 0.3em 0.6em;
  margin-right: 0.5em;
}

.status {
  color: #999;
}

#convertAllBtn {
  border-radius: 3px;
  border: 0;
  background: #000;
  color: #fff;
  width: 80px;
  height: 36px;
  cursor: pointer;
  font-size: 13px;
  visibility: hidden;
}

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

.button_box {
  width: 180px;
  text-align: right;
}

#inputFiles {
  width: 180px;
}

#format {
  height: 30px;
}

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

#settingBox {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#settingBox input[type="radio"] {
  margin: 0;
  padding: 0;
}

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

#pixelGroup input {
  width: 60px;
}

.upload-label {
  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;
  margin: 0 auto;
}

#inputFiles {
  display: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 36px;
  width: 60%;
  margin: 0 auto;
  margin-top: 48px;
}

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

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

.image_title {
  font-size: 32px;
  font-weight: 700;
}

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


#processBtn {
     width: 190px;
    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;
}

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

.download_compress {
  visibility: hidden;
  text-decoration: none;
}

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

    appearance: none;
  -webkit-appearance: none;
  outline: none;
    
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
    font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--color-black, #555);
}

.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(--black-90);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 0;
  margin-left: 8px;
}

.fileBox {
  flex-direction: column;

  margin-bottom: 8px;
  border-radius: 3px;
}

.file-action {
  text-align: center;
  margin-bottom: 16px;
}

.file-action input[type="range"] {
  width: 360px;
}

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

#file-list a.disabledA {
  visibility: hidden;
  color: gray;
  
  pointer-events: none;
  
  cursor: default;
  
  text-decoration: none;
  
  opacity: 0.6;
  
}


#hoverPreview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
  
  border: 1px solid #ccc;
  background: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#hoverPreview img {
  max-width: 500px;
  max-height: 500px;
  min-width: 100px;
  min-height: 100px;
}

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

 

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


  .image_title {
    margin-top: 0;
  }
  .setting fieldset {
    padding: 8px;
  }

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

  #guidePage {
    width: 100%;
    margin: 32px auto;
  }

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

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

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

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

  #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;
    width: calc(100% - 16px);
  }

  #processBtn,
  .outputBox {
    margin-top: 0;
  }

  .setting fieldset {
    margin: 0;
  }

  .container .file-info {
    width: 98%;

    padding: 1%;
    justify-content: space-between;
    display: flex;
    font-size: 14px;
  }

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

  #format {
    width: 80px;
  }

 

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

  .file-info > :nth-child(2) {
    text-align: center;
  }

  .grid-container {
    width: unset;
    margin-top: 0;
    grid-gap: 8px;
  }

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

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

  .button_box {
    width: 70px;
    text-align: right;
  }

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

  #hoverPreview img {
    max-width: 360px;
    max-height: 360px;
    min-width: 100px;
    min-height: 100px;
  }
}
