html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

* {
  box-sizing: border-box;
}

td {
  white-space: pre;
}

.links{
	justify-content: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.soc-link {
  display: flex;
  align-self: center;
  justify-self: end;
  cursor: pointer;
}


.gitimg {
  top: 0;
  right: 0;
  border: 0;
  height: 50px;
  user-select: none;
  pointer-events: none;
}

.fork {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
}


.text {
  text-align: center;
  width: 70%;
  margin: 0 auto;
  padding-top: 3rem;
}

header {
  text-align: center;
}

.logo-title-container {
  grid-template-columns: 1fr 3fr 1fr;
  padding-top: 3rem;
  display: grid;
  justify-content: center;
  align-items: center;

}

.logo {
  display: flex;
  flex-grow: 1;
  height: 4rem;
  background: url('src/img/excelsior-pdf.png') center;
  background-size: contain;
  background-repeat: no-repeat;
}

/*Drag & Drop to input file*/
.file {
  justify-content: center;
  align-items: center;
  display: flex;
  width: 100%;
  height: 175px;
  background: linear-gradient(to bottom right, #95d891, #74bbad);
  z-index: 1;
  color: #fff;
  position: relative;
  text-align: center;
  margin-top: 3rem;
}

.full-page {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  line-height: 100vh;
  z-index: 2;
  font-size: 50px;
  text-align: center;
  background: rgba(218, 215, 215, 0.64);
  opacity: 0;
  display: none;
  transition: opacity .3s ease;
}

.file span {
  font-size: 30px;
  position: relative;
}

.file span:after {
  content: "";
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50px;
  left: 39%;
}

.file input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
}

.file-info {
  height: 80px;
  background-color: #142553;
  text-align: center;
  color: #fff;
  padding-top: 6px;
  opacity: 0;
  transition: opacity .3s ease;
}

@media (max-width: 386px) {
  .file span {
    font-size: 21px;
    position: relative;
  }
}

/*end Drag & Drop to input file*/

/*Flex Cards*/
.cards {
  gap: 60px;
  width: 100%;
  margin: 25px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card>div {
  height: 210px;
  width: 150px;
  background: #fff;
  text-align: center;
  color: white;
  padding: 25px 25px;
  border-radius: 10px;
  border: 1px solid #fff;
  box-shadow: 4px 4px 5px 5px #ccc;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;

}

.card[data-id="06-sales-order"]>div {
  background-image: url(./src/img/samples/06-sales-order.webp);
}

.card[data-id="10-example"]>div {
  background-image: url(./src/img/samples/10-example.webp);
}

.card[data-id="09-watermark"]>div {
  background-image: url(./src/img/samples/09-watermark.webp);
}

.card[data-id="07-multi-table"]>div {
  background-image: url(./src/img/samples/07-multi-table.webp);

}

.card p {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.card a {
  text-decoration: none;
  color: #000;
}

.card.more {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 5px;
  font-weight: bold;
}

.card.selected div {
  outline: 5px solid rgb(0, 255, 170);
}

/*end Flex Cards*/

.hidden {
  display: none !important;
}

.preview-placeholder {
  padding: 3rem;
  background: rgba(218, 215, 215, 0.64);
  display: flex;
  justify-items: center;
  justify-content: center;
  align-items: center;
  color: gray;
}

.preview {
  position: relative;
}

.preview.dim:after {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(218, 215, 215, 0.64);
  content: '';
}

.preview-container {
  gap: 1rem;
  display: flex;
  background: rgba(218, 215, 215, 0.64);
}

.preview-structure {
  position: relative;
  overflow: hidden;
  flex-basis: 50%;
}

.preview-render {
  margin-right: 1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  flex-direction: column;
  padding: 0rem 1rem 1rem 1rem;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  flex-basis: 50%;
  overflow: auto;
}

.preview-render canvas {
  box-shadow: 4px 4px 5px 5px #ccc;
  border-radius: 10px;
}

/* Tabs */
.tabs {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  position: relative;
  display: grid;
  flex-wrap: wrap;
  height: 100%;
}

.tabs label {
  width: min-content;
  order: 1;
  display: block;
  padding: 1rem 2rem;
  margin-right: 0.2rem;
  cursor: pointer;
  font-weight: bold;
  transition: background ease 0.2s;
  color: #000;
}

.tabs .tab {
  grid-column-end: 3;
  grid-column-start: 1;
  overflow: hidden;
  height: 100%;
  order: 99;
  width: 100%;
  display: none;
  padding: 1rem;
  background: #fff;
}

.tabs input[type=radio] {
  display: none;
}

.tabs input[type=radio]:checked+label {
  background: #fff;
  color: #000;
}

.tabs input[type=radio]:checked+label+.tab {
  display: flex;
}

@media (max-width: 45em) {

  .tabs .tab,
  .tabs label {
    order: initial;
  }

  .tabs label {
    width: 100%;
    margin-right: 0;
    margin-top: 0.2rem;
  }
}

/* end Tabs */

.html {
  height: 100%;
  overflow: auto;
  font-size: 10px;
}

.html * {
  font-size: 10px;
}

.pagination {
  align-items: center;
  display: flex;
  padding: 1rem 2rem;
  margin-right: 0.2rem;
  font-weight: bold;
  transition: background ease 0.2s;
  color: #000;
}

.pagination button {
  align-items: center;
  cursor: pointer;
  border: 0px;
  background: none;
  height: 100%;
  padding: 0 0.5rem;
  display: flex;
}

.pagination button:disabled {
  opacity: 0.5;
}


.footer-container {
  padding-top: 2rem;
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 1rem;
}

.footer-logo {
  background-position: center;
  width: 130px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  opacity: 0.3;
}

.unsonet-logo {
  background-image: url(./src/img/brand/unsonet.webp);
}

.excelsior-logo {
  background-image: url(./src/img/brand/excelsior.webp);
}


/*loading bar*/
.preview #progressbar {
  flex-direction: column;
  justify-content: center;
  display: none;
}

.preview.dim #progressbar {
  display: flex;
  z-index: 1;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  background: rgba(159, 159, 159, 0.5);
  border-radius: 10px;
  margin: -0px 0 0 -100px;
  padding: 4px;
}

#loading {
  display: block;
  top: 0;
  left: 0;
  width: 0%;
  height: 20px;
  border-radius: 8px;
  background: #474747;
  position: relative;
  transition: width 500ms ease;
}

#load {
  position: absolute;
  font-family: Arial;
  font-weight: bold;
  text-align: center;
  margin-top: -60px;
  align-self: center;
}

/*end loading bar*/
