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

.container {
  border: 0;
  width: 1080px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  padding: 8px;
  margin: 4px auto;
  justify-content: space-between;
}

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

header.title {
  background-color: #fff;
  width: 1280px;
  margin: 0 auto;
  padding: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#headerUserBack {
  margin-right: 0;
}

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

.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 {
  line-height: 25px;
  text-decoration: none;
  text-align: center;
  width: 80px;
  height: 28px;
  background-color: var(--color-black);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 0;
  margin-left: 8px;
}

.file-info {
  padding: 8px;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  background-color: #fff;
  border-radius: 3px;
  display: none;
}

#settingBox fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;

  height: 80px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
  font-size: 14px;
}

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

#compressButton {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background-color: var(--color-blue);
  color: white;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid var(--color-blue);
  transition: all 0.3s ease;
}

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

  display: none;
}

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

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

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

.file-info .qualityRangeBox {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

#qualityRangeLabel {
  visibility: hidden;
}

.file-info #qualityRange {
  width: 150px;
}

.file-info #qualityValue {
  width: 50px;
  color: #000;
}

.file-info #compressButton {
  border-radius: 3px;
  border: 0;
  background: var(--button-color);
  color: #fff;
  width: 60px;
  height: 36px;
  cursor: pointer;
  font-size: 13px;
  visibility: hidden;
}

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


.file-info > * {
  flex: 1;
}

#fileList {
  margin-top: 8px;
  position: relative;
  font-size: 14px;

  height: calc(100vh - 136px);
  background-color: #fff;
  outline: 1px solid var(--black-10);
  border-radius: 3px;
  overflow-x: hidden;
  overflow-y: auto;
}

.fileListHeader {
  font-weight: 500;
  height: 32px;
  background-color: #f9f9f9;
  color: #000;
}

#fileList 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: #333;
  margin-right: 16px;
  margin-left: 3px;
}

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

#app_title {
  align-items: center;
  justify-content: center;
  flex: 1;

  display: none;
}

.downloadBtn {
  color: #0056b3;
  cursor: pointer;
}

#fileInput {
  font-size: 13px;
}

#fileList {
  position: relative;

  list-style: none;
  display: none;
  width: 900px;
}

#fileList button {
  background: #000;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

#fileList button:hover {
  background: #0056b3;
}

#fileList button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#fileList li {
  
  margin: 1%;
  width: 98%;
}

#fileList .file-header {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
}

#fileList .thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 3px;
  object-fit: cover;
}

.file-info .name {
  color: #333;
}

.file-info .meta {
  color: #888;
  font-size: 13px;
}

.status {
  color: #999;
  font-size: 13px;
}

.processing-details {
  font-size: 13px;
  color: #444;
}

#qualityRangeLabel {
  width: 296px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#compressButton:disabled {
  background-color: var(--black-30);
  cursor: default;
  border: 0;
}

#compressButton:hover {
  transform: scale(1.03);

  border: 0;
}

a.compress_single {
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  margin-top: 8px;
   text-decoration: none;
}


#guidePage {
  width: 1280px;

  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

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

#inputFiles {
  display: none;
}

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

.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-top: 64px;
  font-weight: 700;
}

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

#optimizeSize {
  width: 18px;
  height: 18px;
}


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

@media screen and (orientation: portrait) {
  .setting {
    height: 550px;
    margin: 1%;
    padding: 0;
    width: 98%;
    gap: 8px;
    outline: 0;
  }

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

  .container {
    width: 98%;
    padding: 1%;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

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

  .container .file-info {
    width: 100%;
    justify-content: space-between;
    min-height: 36px;
    font-size: 14px;
  }

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

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

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

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

  #fileList {
    width: 100%;
    margin: 8px 0;
    height: 100%;
  }

  #compressButton:hover {
    transform: unset;

    border: 0;
  }

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

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

  .section .file-info {
    flex: unset;
    font-size: 13px;
    width: 100vw;
    padding: 0;
  }

  #fileInput {
    width: 70px;
  }

  #qualityRangeLabel {
    width: 180px;
  }

  .file-info > * {
    flex: unset;
  }

  .file-info #qualityValue {
    width: 16px;
  }

  .file-info #qualityRange {
    width: 100px;
  }

  .section .file-info {
    width: 96dvw;
    margin: 1dvw;
    padding: 1dvw;
    justify-content: space-around;
    outline: 1px solid #aaa;
  }

  .title {
    margin-bottom: 0;
  }

  .fileNameHeader,
  .fileName {
    display: none;
  }

  #fileList .file-header {
    gap: 0;
    font-size: 12px;
  }

  .fileListHeader {
    font-weight: normal;
    background-color: #f9f9f9;
  }

  .section {
    display: block;
  }

  .file-info #compressButton {
    height: 30px;
    font-size: 13px;
  }

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