body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4;
  flex-direction: column;
}

header {
  position: absolute;
  top: 10px;
  left: 20px;
  display: flex;
  align-items: center;
}

header img {
  height: 100px;
  width: auto;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 60%;
  max-width: 1100px;
}

h1 {
  color: #4caf50;
}

form {
  max-width: 400px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}

input[type="text"],
input[type="email"],
input[type="file"],
button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  background-color: #4caf50;

  color: white;
  border: none;
}

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

.qr-code-container {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px dashed #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  animation: fadeIn 1s forwards;
  overflow: hidden;
}

.qr-code-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qr-text {
  font-size: 16px;
  color: #888;
  text-align: center;
  width: 100%;
}

.download-button {
  position: absolute;
  bottom: 230px;
  left: 830px;
  width: 10%;
}

.success-message {
  color: green;
  font-weight: bold;
}

.error-message {
  color: red;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}
.copyright {
  margin-top: 30px;
  font-size: 12px;
  text-align: center;
  color: #aaa;
  width: 100%;
  position: fixed;
  bottom: 0;
  padding: 10px 0;
  background-color: transparent;
  box-shadow: 0 -4px 8px rgba(230, 226, 226, 0.1);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    flex-direction: column;
    width: 90%;
    height: 90%;
    gap: 20px;
  }

  header img {
    height: 50px;
    margin-left: 15%;
  }

  .qr-code-container {
    width: 150px;
    height: 150px;
  }

  form {
    width: 80%;
    padding: 15px;
  }
  label {
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="file"],
  button {
    font-size: 14px;
    width: 100%;
  }
  .download-button {
    position: relative;
    margin: 0;
    margin-left: -1000px;
    margin-top: 250px;
    width: 350px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: -10px;
    margin-top: -200px;
    position: fixed;
    bottom: -70px;
  }
}
