@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@400;600&display=swap");

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fdf6e3;
  color: #333;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

header {
  margin-bottom: 40px;
}

header h1 {
  font-family: "Merriweather", serif;
  font-size: 2.5rem;
  color: #d35400;
}

header p {
  font-size: 1.1rem;
  color: #777;
}

main {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.form-container {
  flex: 1;
  max-width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.certificate-container {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#certificate-canvas {
  background-color: #fff;
  border: 2px solid #d35400;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

#download-btn {
  padding: 15px 30px;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background-color: #d35400;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#download-btn:hover {
  background-color: #e67e22;
}

@media (max-width: 1200px) {
  main {
    flex-direction: column;
    align-items: center;
  }
  .certificate-container {
    min-width: auto;
    width: 100%;
  }
  #certificate-canvas {
    width: 100%;
    max-width: 1200px;
    height: auto;
  }
}
