
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f0f0f0;
  color: #000;
  transition: background 0.5s, color 0.5s;
  text-align: center;
  min-width: 320px; 
  min-height: 600px; 
  margin: 0;
}

#typingHeading {
  font-family: 'Arial', sans-serif;
  font-size: 3rem;
  text-align: center;
  color: #007BFF;
  margin-top: 50px;
  letter-spacing: 2px;
  font-weight: bold;
  min-height: 60px;
  display: inline-block;
}

#cursor {
  font-size: 3rem;
  color: #007BFF;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}


.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  min-width: 300px; 
}


#idCard {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 10px 10px 70px;
  margin-top: 10px;
  margin: 30px auto;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: whitesmoke;
  transition: background 0.5s, color 0.5s;
  text-align: left;
  position: relative;
  width: 505px;
  height: 300px;
  background-image: url('./asset/id\ card\ bc.jpg');
  background-size: cover;
  background-position: center;
  line-height: 1;
  color: #0a3d62;
  min-width: 350px; 
  min-height: 250px; 
}


.card {
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  background-color: whitesmoke;
  border-radius: 8px;
  transition: background 0.5s, color 0.5s;
  min-height: 200px; 
}

.card.dark {
  background-color: #333;
  color: #fff;
}


.flag {
  width: 50px;
  height: 30px;
}


input, select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  min-width: 200px; 
}

input:focus, select:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


@media screen and (max-width: 768px) {
  
  .container {
      padding: 10px;
  }

  #idCard {
      flex-direction: column; 
      width: 100%;
      height: auto; 
  }

  .container888 {
      width: 100%;
      left: 0;
      margin-top: 10px;
  }

  #generateBtn {
    padding: 12px 24px;
    font-size: 18px;
    color: #fff;
    background: #6e8efb;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #6e8efb, #a777e3);
    border-image-slice: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
  }
  
  #generateBtn:hover {
    background: #a777e3;
    border-image: linear-gradient(45deg, #a777e3, #6e8efb);
    border-image-slice: 1;
  }
  

  input, select {
      width: 100%; 
      min-width: 300px; 
  }
}


@media screen and (max-width: 480px) {
  
  body {
      padding: 5px;
      font-size: 14px;
  }

  .container, #idCard {
      padding: 10px;
  }

  #generateBtn {
      padding: 10px;
  }

  .watermark {
      font-size: 0.8em;
  }

  #generateBtn {
    position: relative;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 0 10px #6e8efb, 0 0 20px #a777e3;
  }
  
  #generateBtn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    animation: shine 2s infinite;
  }
  
  @keyframes shine {
    0% {
      transform: rotate(0deg) translateX(-50%) translateY(-50%);
    }
    100% {
      transform: rotate(360deg) translateX(-50%) translateY(-50%);
    }
  }
  
  #generateBtn:hover {
    background: linear-gradient(135deg, #a777e3, #6e8efb);
    box-shadow: 0 0 15px #a777e3, 0 0 30px #6e8efb;
  }
  

  footer {
      font-size: 0.8rem; 
  }
}


  #idCard.dark {
    background-color: #333;
    color: #fff;
  }
  
  #idCard .info {
    flex: 1;
  }
  
  #photoPreview {
    width: 190px;
    height: 190px;
    border: 1.8px solid #000;
    object-fit: contain;
    position: absolute;
    top: 30%;
    right: 20px;
    width: 120px;
    height: auto;
    transform: translateY(-10%);
  }
  
  .container121 { 
    width: 200px;
    height: 200px;
  }

  #flagDisplay {
    margin-bottom: 10px;
  }
  
  .watermark {
    font-style: italic;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 10px;
    text-align: left;
    position: absolute;
    bottom: 10px; 
    left: 10px; 
    text-align: center;
    z-index: 10; 
  }

  #downloadBtn {
    margin-top: 10px;
    color: #000;
    cursor: pointer;
    border-radius: 4px solid black;
  }

  .id {
    text-align: end;
    margin-top: -9%;
  }
  
  #kuku {
    margin-bottom: 4px;
  }

  .container90 {
    gap: 5px;
    padding: 2px;
    
  }

  #barcode {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;      
    height: 30px;      
  }
  
  #barcode svg {
    width: 100%;
    height: 100%;
  }
  
  #countryName {
    padding: 5px;
  }

  #verticalText {
    position: absolute;
    top: 70%;
    left: 10px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    padding: 5px 10px;
    
  }
  
  #verticalText .blue {
    color: #0066B3; 
  }
  
  #verticalText .red {
    color: #F47C00; 
  }
  
  