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

.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;
  list-style: none;
  margin-top: 8px;
  background-color: #fff;
  border-radius: 3px;
  height: calc(100vh - 86px);

  width: 900px;
  margin-top: 0;
}

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

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

#convertAllBtn {
     width: 160px;
    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;
}

 
.button_box {
  margin: 32px;
}



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


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

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


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

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

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

div.dpiValue {
  font-weight: 600;
}

.col.orig-size {
  width: 80px;
}


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

#file-list .thumbbox {
  justify-content: center;
  align-items: center;
  display: flex;
  border-radius: 5px;
  margin: 8px;
  border: 1px solid #aaa;
    overflow: hidden; 
  width: 200px;
  height: 125px;
}

img.thumbnail {
  width: 100%;    
  height: 100%;   
  object-fit: contain; 
  display: block;    
}

img.thumb {
  width: 50px;
  height: 50px;
  border-radius: 3px;
  object-fit: cover;
}

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

 

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

#format {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  
  
  width: 160px;
  height: 40px; 
  padding: 0 35px 0 14px; 
  
  
  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 {
  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;
}

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

.downloadBtn {
  color: var(--color-blue);
  cursor: pointer;
}

#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-around;
  margin: 0 5px;
}

 

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

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

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

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



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


@media screen and (max-width: 768px)  {
  header.title {
    width: 98%;
    padding: 1%;
  }

  .image_title {
    margin-top: 32px;
  }
 

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

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

  .image_title {
    font-size: 36px;
  }

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


  #file-list {
    height: calc(100vh - 286px);
  }

  .setting {
    height: 600px;
    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;
  }

  #settingBox fieldset {
    height: 40px;
  }

  #file-list {
    width: calc(100% - 4px);
 
    outline: 0;
  }

  .grid-container {
    width: 90%;
  }

 

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

  #file-list .col {
    padding: 8px 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: 8px;
  }

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

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

  .image_title div {
    margin: 8px 16px;
  }
}
