/* LTO Barcode Generator CSS */

:root {
  font-family: "Segoe UI", Roboto, sans-serif;
  --primary: #2c3e50;
  --accent: #2980b9;
  --bg: #f4f6f8;
}

body {
  margin: 0;
  padding: 1em;
  background-color: var(--bg);
  color: var(--primary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:visited {
  color: #1c5a88;
}

a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

h1 {
  text-align: center;
  margin-bottom: 1em;
}

form {
  max-width: 700px;
  margin: 0 auto 2em auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1em;
}

label, legend {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2em;
}

legend ~ label {
    font-weight: normal;
}

input[type="text"], select {
  width: 100%;
  padding: 0.4em;
  font-size: 1em;
  box-sizing: border-box;
  border: 1px solid #aaa;
  border-radius: 4px;
  text-transform: uppercase;
}

fieldset {
  border: none;
  padding: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.buttons {
  margin-top: 1em;
  text-align: right;
}

input[type="submit"], input[type="reset"] {
  padding: 0.6em 1.2em;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"] {
  background-color: var(--accent);
  color: white;
}

input[type="reset"] {
  background-color: #ddd;
}

.label-container {
  max-width: 300px;
  margin: 0px auto;
  background: #fff;
  border: 1px solid black;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}

.label-row {
  display: flex;
  justify-content: center;
  border: 0px;
}

.letter {
  flex: 0 0 32px;
  height: 32px;
  width: 32px;
  line-height: 32px;
  border: 1px solid black;
  border-top: 0px;
  border-right: 0px;
  font-size: 18px;
  font-weight: bold;
}

.letter:last-child {
  border-right: 1px solid black;
}

.mediatype {
  flex: 0 0 32px;
  height: 32px;
  width: 32px;
  line-height: 32px;
  font-size: 10px;
  font-weight: bold;
  border-top: 0px;
}

.barcode {
  margin: 0px;
}

.barcode img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.description {
  margin: 3.5em auto;
  max-width: 65pc;
  padding: 1em;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
}

.description h2 {
  margin-top: 0;
}

footer {
  text-align: center;
  margin-top: 2em;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .buttons {
    text-align: center;
  }
}
