
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');


body{
  margin:0;
  padding:20px;
  font-family:sans-serif;
  background:#e6e6e6;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.container{
  margin: 0 auto;
}
#logo {
  display: inline-block;
  position: relative; /* или absolute если нужен абсолютный сдвиг */
  margin-right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  background-image: url("images/logo.png");
  background-size: contain; /* чтобы картинка вписалась */
  background-repeat: no-repeat; /* без повторов */
  background-position: center;

}
.header {
  border-bottom: 2px solid #4CAF50;
  color: #333;
  padding-bottom: 5px;
}
.wrap{
  display:flex;
  gap:30px;
  height: 750px;
}

.card-wrapper {
  position: relative;
  width: 550px;
  height: 750px;
  overflow: hidden;
  background-color: #eee; /* на случай, если bg.jpg не загрузится */
}

.noise-layer {
  position: absolute;
  top: 0px; left: 0;
  z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image: url('images/noise.jpg'); /* маленькая текстура шума */
  border-radius: 0px;
  opacity: 0.2; /* регулируем интенсивность */
  mix-blend-mode: overlay; /* или multiply, soft-light */
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


.card{
  width:450px;
  height:650px;
  background:#fff;

  top: 40px;
  left: 40px;
  position:relative;
  overflow:hidden;
  border-radius: 10px;

  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2); 
}


.layers{
  position:relative;
  width:450px;
  height:650px;
}
#paperTexture{
  position:absolute;
  top:0;
  left:0;
  width:450px;
  height:650px;
  pointer-events:none;
}
.photo-box{
  position:absolute;
  width:120px;
  height:155px;
  overflow:hidden;
  top:404px;
  left:18px;
}
.photo-box img{
  width:120px;
  height:155px;
  object-fit:cover;
}
.text-preview{
  position:absolute;
  left:158px;
  top:363px;
  width:275px;
  color:#1b1b1b;
  font-weight:100;
  text-transform:uppercase;
}
.text-preview .line{
  font-size:11.5px;
}
.text-preview .small{
  font-size:11.5px;
}
#passportNo {
    position:absolute;
    left: 170px;
    font-size:12px;
}

#signatureBox {
    position: absolute;
    top: -100px;
}

#lastName {
    position: absolute;
    top: 23px;
}

#firstName {
    position: absolute;
    top: 46px;
}

#birthDate {
    position: absolute;
    top: 93px;
}

#placeBitrh {
    position: absolute;
    top: 117px;
}

#gender {
  position: absolute;
  top: 117px;
  left: 225px;
}

#issueDate {
    position: absolute;
    top: 141px;
}

#expirationDate {
    position: absolute;
    top: 164px;
}

#Endorsements {
    position: absolute;
    top: 185px;
    left: 12px;
}

#botLine1 {
    position: absolute;
    top: 225px;
    left: -145px;
}

#botLine2 {
    position: absolute;
    top: 247px;
    left: -145px;
}


.mrz.char, .mrz.symbol {
    display: inline-block;
    width: 9px; /* фиксированная ширина символа */
    text-align: center;
}

.mrz.symbol {
    font-size:16px;
    font-weight: 600;
    width: 9px;
    font-family: "Zilla Slab", serif; /* или оставь дефолтный */
}

.controls{
  width:auto;
  display:flex;
  flex-direction:column;
  gap:5px;
  height: 100%;
}
.controls > * {
  flex: 1; /* каждый элемент занимает равную часть высоты */
}
.controls input[type="text"],
.controls input[type="file"],
.controls input[type="range"]{
  width:100%;
}
.expotBtns {
  display: flex;
  gap: 10px;
}
.tools{
  display:flex;
  gap:10px;
}

#noiseRange {
  background-color: #1b1b1b;
}

button{
  margin-top:5px;
  width:100%;
  padding:6px;
  border:none;
  background:#4CAF50;
  color:#fff;
  cursor:pointer;
  border-radius:4px;
}
button:hover{
  background:#000;
}

input[type=range] {
  -webkit-appearance: none; /* убираем стандартный стиль */
  width: 100%;
  height: 8px;
  background: #ddd; /* фон трека */
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #4CAF50; /* цвет ползунка */
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
  margin-top: -4px; /* выравниваем по треку */
}

input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  background: #aaa; /* трек */
  border-radius: 4px;
}

input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #4CAF50;
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
}

input[type=range]::-moz-range-track {
  height: 8px;
  background: #aaa;
  border-radius: 4px;
}

input[type=range]::-ms-thumb {
  width: 16px;
  height: 16px;
  background: #4CAF50;
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
}

input[type=range]::-ms-track {
  height: 8px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

#bgBtn {
  display: inline-block;
  padding: 8px 14px;
  background-color: #5566ff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: 0.2s;
}

#bgBtn:hover {
  background-color: #3344dd;
}

#bgInput {
  display: none;
}
