.docContainer {
  padding-left: 60px;
  padding-right: 60px;
}

.listDescription {
  /* max-width: 800px;
  text-align: center; */
  margin: 20px auto 0;
}

.tagAndArticle {
  display: grid;
  grid-template-columns: 290px auto;
  grid-gap: 70px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.tags label {
  display: block;
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 10px;
}

.tags i {
  display: inline-block;
  font-style: normal;
  font-size: 14px;
  line-height: 30px;
  border: 1px solid #DDDDDD;
  background: #F5F5F5;
  padding: 0 7px;
  margin-right: 10px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;
}

.tags i:hover {
  border-color: #fe8e14;
  background: #ffffff;
  color: #fe8e14;
}

.tags i.active,
.tags i.active:hover {
  border-color: #fe8e14;
  background: #fe8e14;
  color: #ffffff;
}

#resultNum {
  background: #F5F5F5;
  height: 36px;
  line-height: 36px;
  padding-left: 18px;
  margin-bottom: 15px;
  font-size: 14px;
}

#resultNum .selectTagList {
  display: inline-block;
  margin-left: 30px;
}

#resultNum .selectTagList i.tagItem {
  height: 24px;
  line-height: 24px;
  border: 1px solid #323234;
  padding: 0 10px;
  font-size: 14px;
  color: #323234;
  font-style: normal;
  cursor: pointer;
}

#resultNum .selectTagList i.tagItem  i {
  margin-left: 10px;
  display: inline;
}

.GoBack {
  display: inline-block;
  font-size: 24px;
  cursor: pointer;
}

.articleSwitchs {
  max-width: 1045px;
  width: 100%;
  margin: 40px auto 60px;
  padding: 0px 0 20px;
  font-size: 18px;
}

.articleSwitchs span {
  cursor: pointer;
}

.articleSwitchs span em {
  font-style: normal;
}

.articleSwitchs span img {
  width: 26px;
  margin: -3px 5px 0;
}

.articleList {
  margin-bottom: 100px;
}

.flexAritcleContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flexAritcleContainer:after {
  content: '';
  width: 30%;
}

.aritcleWrapper {
  display: inline-block;
  width: 31%;
  vertical-align: top;
}

.aritcleWrapper:nth-of-type(3n) {
  margin-right: 0;
}

.aritcleWrapper.not-in-search {
  display: none;
}

.descriptionWrapper {
  background: #f5f5f5;
  padding: 20px 18px;
  position: relative;
  padding-bottom: 60px;
  min-height: 234px;
}

.descriptionWrapper h2 {
  margin-top: 0;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #323234 !important;
}

.descriptionWrapper .content {
  font-size: 14px;
  line-height: 24px;
  min-height: 80px;
  overflow: hidden;
}

.singleArticle .descriptionWrapper .content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.descriptionWrapper .content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
}

.descriptionWrapper .pageTags {
  padding: 10px 18px;
  background: #eeeeee;
  color: #606060;
  font-size: 14px;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aritcleWrapper .descriptionWrapper .pageTags {
  overflow: unset;
  text-overflow:unset;
  white-space: unset;
}

.descriptionWrapper .pageTags .myTag {
  display: inline;
}

.aritcleWrapper .descriptionWrapper .pageTags .myTag {
  display: inline-block;
}

.descriptionWrapper .pageTags .myTag::after {
  content: " / ";
}

.descriptionWrapper .pageTags .myTag:last-child::after {
  content: "";
}

.descriptionWrapper .pageTags .myTag span::after {
  content: ", ";
}

.descriptionWrapper .pageTags .myTag span:last-child::after {
  content: "";
}

.imageWrapper {
  position: relative;
  height: auto;
}

.imageWrapper:hover .hoverLine {
  display: block;
}

.imageWrapper .hoverLine {
  display: none;
  position: absolute;
  width: 100%;
  height: 40px;
  line-height: 40px;
  color: #FFFFFF;
  background: #000000;
  opacity: 0.7;
  text-align: center;
  bottom: 0;
  font-size: 14px;
}

.imageWrapper .hoverLine i {
  top: 3px;
  margin-left: 5px;
}

.imageWrapper .dotBox {
  position: absolute;
  width: 100%;
  bottom: 10px;
  text-align: center;
}

.imageWrapper .mySlides {
  display: none;
  text-align: center;
}

.imageWrapper img {
  vertical-align: middle;
  height: 224px;
  width: 100%;
  object-fit: cover;
}

/* Slideshow container */
.imageWrapper .slideshow-container {
  position: relative;
  margin: auto;
  height: 224px;
}

/* Next & previous buttons */
.imageWrapper .prev,
.imageWrapper .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #FFFFFF!important;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.imageWrapper .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.imageWrapper .prev:hover,
.imageWrapper .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.imageWrapper .dot {
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 3.5px;
  background-color: #FFFFFF;
  opacity: 0.27;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.imageWrapper .active,
.imageWrapper .dot:hover {
  opacity: 0.85;
}

/* Fading animation */
.imageWrapper .fadeInOut {
  animation-name: fade;
  animation-duration: 1.5s;
}

.pagination {
  display: block;
  background-color: #f5f5f5;
  color: #606060;
  padding: 12px 42px;
  text-align: right;
}

.pagination span {
  line-height: 25px;
  margin-right: 20px;
}

.pagination span em {
  font-style: normal;
}

.pagination i {
  display: inline-block;
  position: relative;
  height: 25px;
  width: 25px;
  font-size: 16px;
  text-align: center;
  margin-left: 10px;
  font-style: normal;
  border: 1px solid #aaaaaa;
  vertical-align: top;
  cursor: pointer;
  user-select: none;
}

.pagination i.prevBtn::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid #606060;
  transform: rotate(45deg);
  top: 7px;
  border-top: 0;
  border-right: 0;
  left: 10px;
}

.pagination i.nextBtn::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid #606060;
  transform: rotate(45deg);
  top: 7px;
  border-bottom: 0;
  border-left: 0;
  left: 5px;
}

.pagination i.prevBtn:hover,
.pagination i.nextBtn:hover,
.pagination i.prevBtn:hover::after,
.pagination i.nextBtn:hover::after {
  border-color: #fe8e14;
}

.pagination i.disabled,
.pagination i.disabled::after {
  border-color: #ddd !important;
}

.generateBtn,
.copyBtn,
.imageAddBtn,
.searchBtn {
  border: 0;
  height: 40px;
  line-height: 40px;
  background: #fe8e14;
  color: #ffffff;
  border-radius: 0;
  padding: 0 13px;
  font-size: 18px;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.pageTags {
  margin-top: 20px;
}

i.close-circle {
  display: none;
  position: relative;
  top: -1px;
  margin: 0;
  margin-left: 5px;
  font-size: 16px;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
}
i.close-circle:hover {
  background: transparent;
  color: #ffffff;
}
.tags i.active i.close-circle {
  display: inline;
}

.orangeBtn {
  background: #fe8e14;
  height: 34px;
  line-height: 34px;
  border: 0;
  outline: none;
  padding: 0 15px;
  box-shadow: none;
  color: #ffffff;
  font-size: 16px;
}

.orangeBtn.decodeBtn {
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  padding: 0 30px;
  outline: none;
  border: 0;
  float: right;
  width: 120px;
}

.orangeBtn.decodeBtn:focus {
  outline: none;
}

.orangeBtn:hover {
  opacity: 0.6;
}

.uploadBtn {
  width: auto;
  color: #323234;
  background: #E9E9E9;
  height: 68px;
  line-height: 68px;
  box-shadow: none;
  outline: none;
  border: 0;
  font-size: 16px;
  text-align: center;
  margin-left: 20px;
  padding: 0 10px;
}

.uploadBtn:hover {
  background: #dddddd;
}

.uploadBtn:focus {
  outline: none;
}

.add-circle-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url(../img-icon/add-circle.svg) no-repeat center center;
  background-size: contain;
  margin-top: 20px;
  vertical-align: top;
}

.mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2000;
}

.wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1080px;
  height: 660px;
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: 0px 3px 6px #00000029;
  z-index: 2050;
  padding: 65px 25px 40px 35px;
}

#barcodeFile {
  display: none;
  outline: none;
  border: 0;
  box-shadow: none;
}

.decodeDemo {
  display: flex;
  gap: 20px;
  width: 100%;
}

.decodeDemo .leftContainer,
.decodeDemo .rightContainer {
  flex: 1;
  width: calc(50% - 10px);
}

.decodeDemo .uploadImgContainer {
  flex: 1;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  height: 350px;
  text-align: center;
}

.decodeDemo .templateContainer {
  margin-top: 25px;
}

.decodeDemo .templateContainer textarea {
  outline: none;
  border: 1px solid #cccccc;
  width: 100%;
  height: 145px;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 20px;
}

#intermediateResults {
  height: 350px;
  background: #FFFFFF;
  border: 1px solid #cccccc;
  text-align: center;
}

#resultSVG,
#intermediateResults img {
  max-width: 100%;
  max-height: 349px;
}

.decodeDemo #status {
  font-size: 14px;
  vertical-align: bottom;
  margin-left: 20px;
  line-height: 20px;
  height: 20px;
}

#decodeDemoMask,
#decodeDemoWrap {
  display: none;
}

#decodeDemoWrap .close-icon {
  position: absolute;
  right: 30px;
  top: 14px;
  font-size: 30px;
  padding: 5px;
  cursor: pointer;
}

.barcode-polygon {
  fill: rgba(85, 240, 40, 0.4);
  stroke: green;
  stroke-width: 5;
}

.barcode-polygon:hover {
  fill: rgba(85, 240, 40, 0.6);
  stroke: green;
  stroke-width: 5;
}

div::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  position: absolute;
}

div::-webkit-scrollbar-track {
  background: rgb(239, 239, 239);
  border-radius: 2px;
}

div::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

div::-webkit-scrollbar-thumb:hover {
  background: #999;
}

div::-webkit-scrollbar-corner {
  background: #179a16;
}


#barcode-test-sheet {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

#barcode-test-sheet div:first-child {
  flex: 1;
  margin-right: 230px;
}

#barcode-test-sheet a {
  display: inline-block;
  padding: 12px 34px;
  font-size: 18px;
  background-color: #fe8e14;
  color: white;
  font-family: Oswald-Regular;
  transition: 0.1s all ease-in-out;
}

#barcode-test-sheet a:hover {
  transform: translate(8px, -8px);
  box-shadow: -8px 8px 0 0 #323234;
}

#barcode-test-sheet img {
  max-width: 100%;
}

.selections {
  display: none;
}

.singleArticle {
  display: block;
  width: 100%;
  margin: 20px auto 60px !important;
}

.singleArticle .descriptionWrapper .content p,
.singleArticle .descriptionWrapper h2 {
  display: block;
  margin-bottom: 10px;
}

.singleArticle .descriptionWrapper .content p {
  font-size: 16px;
}

.singleArticle ol,
.singleArticle ul {
  margin-bottom: 10px;
  padding-left: 15px;
}
.singleArticle ol,
.singleArticle ol > li {
  list-style: decimal;
  font-size: 14px;
}

.singleArticle ul,
.singleArticle ul > li {
  list-style: disc;
  font-size: 14px;
}

.singleArticle .descriptionWrapper .pageTags {
  background: transparent;
  padding: 0;
}
.singleArticle .descriptionWrapper {
  padding: 40px 20px;
}

.singleArticle .descriptionWrapper .description {
  padding: 20px 35px;
}

.singleArticle .descriptionWrapper .pageTags {
  position: relative;
}

.singleArticle .imageWrapper,
.singleArticle .imageWrapper img,
.singleArticle .imageWrapper .slideshow-container {
  height: 662px;
  width: 100%;
  object-fit: cover;
}

.decodeDemo .imageWrap {
  display: flex;
}

.decodeDemo .imageSelector {
  display: flex;
  border-right: 0;
  margin-top: 15px;
  width: 100%;
}

.decodeDemo .imageSelector > div:first-child {
  display: flex;
  width: calc(100% - 140px);
}

.decodeDemo .articleImgsWrap {
  display: flex;
  height: 68px;
  width: auto;
  overflow: auto;
  white-space: nowrap;
  scrollbar-color: #bfbfbf rgb(239, 239, 239);
  scrollbar-width: thin;
  gap: 20px;
  max-width: calc(100% - 70px);
}

.decodeDemo .articleImgsWrap img {
  display: block;
  height: 100%;
  max-height: 100px;
  width: auto;
  border: 1px solid transparent;
}

.decodeDemo .articleImgsWrap img:hover {
  border: 1px solid #fe8e14;
}

.decodeDemo .articleImgsWrap img.choosed {
  border: 1px solid #fe8e14;
  box-shadow: 0 0px 7px 2px #fe8e1444;
}

.decode {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.parameter-anchor {
  text-decoration: underline!important;
  cursor: pointer;
}

.templateContainer {
  width: calc(50% - 10px);
}

.templateContainer #template {
  width: 100%;
  height: calc(100% - 34px);
  min-height: 420px;
  max-height: 600px;
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  outline: none;
  --jse-theme-color: rgb(62,62,64);
  --jse-theme-color-highlight: rgb(91, 88, 83);
}

.templateContainer #template:focus {
  outline: none;
  border-color: #fe8e14;
}

.singleArticle .descriptions {
  padding-top: 32px;
  width: calc(50% - 10px);
}

.singleArticle .content strong {
  font-family: OpenSans-Semibold;
}

.singleArticle .descriptionWrapper .pageTags {
  background-color: #EBEBEB;
  white-space: normal;
  padding: 16px 25px;
}

.singleArticle .descriptionWrapper .pageTags .myTag {
  display: inline-block;
  font-size: 16px;
  line-height: 22px;
  background-color: #EBEBEB;
  margin-right: 40px;
  margin-bottom: 10px;
}

.singleArticle .descriptionWrapper .pageTags .myTag:nth-child(3) {
  margin-right: 0;
}

.singleArticle .descriptionWrapper .pageTags .myTag:nth-child(4),
.singleArticle .descriptionWrapper .pageTags .myTag:nth-child(5) {
  width: 100%;
  margin-right: 0;
}

.singleArticle .descriptionWrapper .pageTags .myTag:nth-child(5) {
  margin-bottom: 0;
}

.singleArticle .descriptionWrapper .pageTags .myTag label {
  font-size: 16px;
  color: #323234;
  margin-right: 5px;
  line-height: 22px;
}

.singleArticle .descriptionWrapper .pageTags .myTag::after {
  display: none;
}

.singleArticle .descriptionWrapper .descriptions p {
  font-size: 14px;
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .imageWrapper .prev,
  .imageWrapper .next,
  .imageWrapper .text {
    font-size: 11px;
  }
}

@media (max-width: 1679px) {
  .docContainer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .imageWrapper,
  .imageWrapper .slideshow-container,
  .imageWrapper img {
    height: 185px;
    object-fit: cover;
    width: 100%;
  }
  .descriptionWrapper h2 {
    font-size: 18px;
  }
  .descriptionWrapper .pageTags {
    font-size: 12px;
  }

  .tagAndArticle {
    grid-template-columns: 280px auto;
    grid-gap: 25px;
  }

  .singleArticle .descriptionWrapper .content .resultContainer p {
    height: 48px;
  }
}

@media (max-width: 1399px) {
  .docContainer {
    padding-left: 10px;
    padding-right: 10px;
  }

  #barcode-test-sheet div:first-child {
    margin-right: 100px;
  }

  .tagAndArticle {
    grid-template-columns: 245px auto;
    grid-gap: 25px;
  }

  .tags i {
    font-size: 12px;
    line-height: 26px;
  }

  .aritcleWrapper {
    width: 32%;
  }

  .descriptionWrapper {
    min-height: 224px;
  }

  .descriptionWrapper h2 {
    font-size: 16px;
    line-height: 25px;
  }

  .imageWrapper,
  .imageWrapper .slideshow-container,
  .imageWrapper img {
    height: 165px;
    object-fit: cover;
    width: 100%;
  }
}

@media (max-width: 1399px) {
  .decodeDemo .articleImgsWrap {
    height: 50px;
    gap: 10px;
  }

  .uploadBtn {
    height: 50px;
    line-height: 50px;
    margin-left: 10px;
  }

  .add-circle-icon {
    margin-top: 11px;
  }

  .orangeBtn.decodeBtn {
    padding: 0 10px;
    width: 90px;
  }

  .decode {
    position: relative;
    width: 80px;
    margin-left: auto;
    justify-content: center;
    flex: none;
  }

  .decodeDemo #status {
    position: absolute;
    left: 100px;
    width: max-content;
    margin: 0;
  }
}

@media (max-width: 1199px) {
  .aritcleWrapper {
    width: 47.5%;
  }
  .aritcleWrapper:nth-of-type(3n) {
    margin-right: 5%;
  }
  .aritcleWrapper:nth-of-type(2n) {
    margin-right: 0%;
  }

  .singleArticle .imageWrapper,
  .singleArticle .imageWrapper img,
  .singleArticle .imageWrapper .slideshow-container {
    height: 500px;
  }

  .decodeDemo .resultContainer p {
    font-size: 14px;
  }

  .descriptionWrapper {
    min-height: 200px;
  }

  .uploadBtn {
    font-size: 14px;
  }

  .orangeBtn.decodeBtn {
    height: 50px;
    line-height: 50px;
    width: 80px;
        font-size: 16px;
  }

  .singleArticle .descriptionWrapper .content p {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .aritcleWrapper {
    width: 100%;
  }
  .singleArticle .imageWrapper,
  .singleArticle .imageWrapper img,
  .singleArticle .imageWrapper .slideshow-container {
    height: 400px;
  }

  .singleArticle .descriptionWrapper {
    padding-bottom: 40px;
  }

  .singleArticle ol,
  .singleArticle ol > li,
  .singleArticle ul > li {
    font-size: 14px;
  }

  #barcode-test-sheet {
    flex-direction: column;
  }

  #barcode-test-sheet div:first-child {
    margin: 0 0 20px 0;
  }

  .imageWrapper, .imageWrapper .slideshow-container, .imageWrapper img {
    height: 235px;
    object-fit: cover;
    width: 100%;
  }

  .aritcleWrapper:nth-of-type(3n) {
    margin-right: 0;
  }

  .templateContainer, .singleArticle .descriptions {
    width: 100%;
  }

  .templateContainer #template {
    font-size: 12px;
  }

  .decodeDemo {
    display: block;
  }

  .decodeDemo .rightContainer {
    margin-top: 20px;
  }

  .decodeDemo .leftContainer, .decodeDemo .rightContainer {
    width: 100%;
  }

  .singleArticle .descriptionWrapper .content .resultContainer p {
    height: auto;
  }

  .decodeDemo .imageSelector {
    display: block;
  }

  .decodeDemo .imageSelector > div:first-child {
    width: 100%;
  }

  .decode {
    width: 100%;
    text-align: left;
    display: flex;
    margin-top: 20px;
    align-items: flex-start;
  }

  .orangeBtn.decodeBtn {
    float: none;
    height: 40px;
    line-height: 40px;
    width: 80px;
    font-size: 16px;
  }

  .decodeDemo #status {
    right: unset;
    left: 90px;
  }
}

@media (max-width: 767px) {
  .aritcleWrapper {
    width: 100%;
    margin-right: 0 !important;
  }

  .singleArticle .imageWrapper,
  .singleArticle .imageWrapper img,
  .singleArticle .imageWrapper .slideshow-container {
    height: 300px;
  }

  .singleArticle .descriptionWrapper {
    padding-bottom: 20px;
  }

  .wrapper {
    overflow: auto;
  }

  .tagAndArticle {
    display: block;
    max-width: 400px;
    margin: 50px auto;
  }

  .tagAndArticle .tags {
    display: none;
  }

  #resultNum .selectTagList {
    display: none;
  }

  .selections {
    display: block;
  }

  .selections > div {
    margin-bottom: 15px;
  }

  .selections > div:first-child {
    width: 48%;
    float: left;
  }
  .selections > div:nth-child(2) {
    width: 48%;
    float: right;
  }

  .selections > div label {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 8px;
  }

  .selections > div .selectResult {
    width: 100%;
    height: 30px;
    line-height: 30px;
    border: 1px solid #AAAAAA;
    background: #F5F5F5;
    padding: 0 10px;
    outline: none;
    font-size: 14px;
  }

  .singleArticle .descriptionWrapper .content {
    grid-template-columns: 100%;
    grid-gap: 0;
    align-items: unset;
  }
  
  .templateContainer {
    max-width: 100%;
  }

  .templateContainer #template {
    height: 400px;
  }

  .decodeDemo {
    grid-column-start: unset;
  }

  .decodeDemo .articleImgsWrap {
    height: 50px;
    gap: 10px;
    width: calc(100% - 100px);
  }
}


@media (max-width: 500px) {
  .imageWrapper, .imageWrapper .slideshow-container, .imageWrapper img {
    height: 200px;
  }
}
