body {
  background-color: #da4a75;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/*        card        */

h3 {
  color: #fff;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
}

.form-container,
.preview-container {
  background-image: url(card\ backdround.webp);
  color: #42804d;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  text-align: center;
}

h1 i {
  font-size: 30px;
  text-align: center;
  padding-top: 10px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

label {
  margin-top: 10px;
  font-family: serif;
}

input[type="text"],
input[type="number"] {
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:hover,
input[type="number"]:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-image: linear-gradient(45deg, #ff8c00, #ff0080) 1;
  box-shadow: 0px 0px 15px rgba(255, 140, 0, 0.5);
}

input[type="file"] {
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="file"]:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

input[type="file"]:focus {
  border-image: linear-gradient(45deg, #00f260, #0575e6) 1;
  box-shadow: 0px 0px 15px rgba(0, 162, 232, 0.5);
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button i {
  font-size: 20px;
}

button:hover {
  background-color: #45a049;
}

.preview-container {
  text-align: center;
}

.id-card {
  border: 1px solid #fff;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  margin-top: 20px;
}

.photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.details {
  text-align: left;
}

/*      Responsive    */

@media (max-width: 600px) {
  body {
    flex-direction: column;
    justify-content: center;
    padding: 20px;
  }

  h3 {
    position: absolute;
  }

  .form-container,
  .preview-container {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .form-container {
    margin-top: 50px;
  }

  .preview-container {
    width: 85%;
  }

  .id-card {
    width: 80%;
    align-items: center;
    padding-left: 10%;
  }

  .photo img {
    width: 80px;
    height: 80px;
  }
}
