/* Reset styles for consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: auto;
  height: auto;
  background-color: grey;
}

a {
  color: rgb(0, 0, 0);
  text-decoration: none;
 }

.sommaire_links {
  text-decoration: underline; /* Ensure the underline is applied */
  text-decoration-color: grey;
  text-decoration-thickness: 1px; /* Set the thickness of the underline */
  text-underline-offset: 5px; /* Optional: Adjust the distance between the text and the underline */
 }

img {
  width: 100%;
}

.display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: grey;
  margin: 0;
}

.ticket {
  z-index: 1;
  width: 160mm; /* Real-life width */
  height: auto; /* Auto to adapt to the content */
  min-height: 100vh; /* A4 length, an example */
  display: block;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  border: 1px solid black;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
}

@font-face{
  font-family: 'BaskervvolBase';
  src: url('fonts/BBBBaskervvol-Base.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('fonts/inconsolata.ttf') format('truetype');
  font-weight: normal; /* Optional: Specify font weight */
  font-style: normal;  /* Optional: Specify font style */
}
@font-face {
  font-family: 'OCRA';
  src: url('fonts/OCRA.ttf') format('truetype');
  font-weight: normal; /* Optional: Specify font weight */
  font-style: normal;  /* Optional: Specify font style */
}
@font-face {
  font-family: 'barcode';
  src: url('fonts/BarcodeFont.ttf') format('truetype');
  font-weight: normal; /* Optional: Specify font weight */
  font-style: normal;  /* Optional: Specify font style */
}
@font-face {
  font-family: 'Arialnarrow';
  src: url('fonts/arialnarrow.ttf') format('truetype');
}

.inconsolata {
  font-family: "Inconsolata", monospace !important;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.OCRA {
font-family: 'OCRA', monospace; /* Example font */
line-height: 1.6;
letter-spacing: 0.05em; /* Mimic printer spacing */
}

.barcode {
  font-family: 'barcode', monospace; /* Example font */
  font-size: 100pt;
  }

h1 {
  font-size: 5em;
}

.header {
  width: 100%;

  padding-top: 10px;
  padding-bottom: 10px;
    text-align: center;
    hyphens: auto;
}

.header .border {
  margin-top: 20px;
  font-weight: bold;
  border-bottom: 4px dashed #000;
  padding-top: 10px;
}


.header_text {
  font-family: 'OCRA', monospace; /* Example font */
  color: #000;
  font-weight: 500;
  font-size: 17pt;
  hyphens: auto;
}
.sommaire {
  font-family: 'OCRA', monospace; /* Example font */
  background-color: transparent; /* Light paper-like background */
  color: #000;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  /* margin: auto; */
}

.sommaire h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.sommaire .item {
  display: flex;
  font-weight: 400;
  font-size: 22pt;
  justify-content: space-between;
}

.sommaire .total {
  margin-top: 20px;
  font-weight: bold;
  border-top: 4px dashed #000;
  padding-top: 10px;
  font-size: 19pt;
}

.mainbarcode {
  font-size: 100pt;
}

.titre {
  font-family: 'Courier New', monospace; /* Monospaced font for receipt style */
  color: #000;
  font-weight: bold;
  font-size: larger;
  font-size: 28pt;

}

.ticket_text {
  /* font-family: 'Courier New', monospace; */
  font-family: Arial, sans-serif;
  color: #000;
  font-weight: 500;
  font-size: 20pt;
  hyphens: auto;
}

.paragraph {
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  font-size: 22pt;
  font-weight:500;
}

.justified {
  text-align: justify !important;
  text-align-last: left;
}

.texte {
margin-top: 2cm;
hyphens: auto;
}

/* Add responsiveness for smaller screens */
@media (max-width: 768px), print {
    .ticket {
      width: 100vw;
      top: 0px;
      background-color: white;
    }
    .barcode {
    font-family: 'barcode', monospace;
    font-size: 50pt;
    }
  .header_text {
    font-family: 'OCRA', monospace; /* Example font */
    color: #000;
    font-weight: 500;
    font-size: 11pt;
    hyphens: auto;
  }
    .ticket_text {
    font-family: Arial, sans-serif;
    color: #000;
    font-weight: 500;
    font-size: 14pt;
    hyphens: auto;
    }
    .paragraph {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    font-size: 16pt;
    font-weight:500;
    }
    .sommaire .item {
    display: flex;
    font-weight: 400;
    font-size: 18pt;
    justify-content: space-between;
    }
    .titre {
    font-family: 'Courier New', monospace; /* Monospaced font for receipt style */
    color: #000;
    font-weight: bold;
    font-size: 25pt;
    }
}