@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body {
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center; 
  max-width: 100%;
  margin: 10px;
  background-image: url("background.png"), linear-gradient(#f0f0f0, #e0e0e0); /* Subtle background pattern */
}

.form-section, .canvas-section {
  flex: 1; 
  margin: 5px;
}
h1 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.input-container {
  align-items: center;
  margin-bottom: 20px;
}

.input-container label {
  margin-right: 10px;
  color: #333;
}

.input-container input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#name {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.image-upload {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.image-upload label {
  margin-right: 10px;
  color: #333;
}

#image-upload {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#download-button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  background-color: #f0f8ff;
  color: #333;
}

#card-container {
  width: 1240px;
  height: 1240px; /* Ensures 940px x 788px card size */
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url("background-image.png");
  background-repeat: no-repeat;
  background-size: cover;
}

#card-content {
  padding: 30px;
}

#card-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #f00; /* Red for "Happy Birthday" */
}

#name-preview,
.class-preview {
  font-size: 48px;
  font-weight: bold;
  color: #89292f;
  text-transform: uppercase;
}
.class-preview {
  font-size: 32px;
  font-weight: bold;
  color: #89292f;
  margin: 0;
  text-transform: uppercase;
}

.header {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 100px); /* 20px padding on each side */
  padding: 40px;
}
.logo-group {
  display: flex;
  align-items: center;
}
.logo {
  width: 100px;
  height: 100px;
}
.school-name {
  font-weight: bold;
  color: #89292f !important;
}
.school-name h1 {
  font-size: 30px;
  color: #89292f;
  margin: 0;
}
.school-name h2 {
  font-size: 24px;
  color: #89292f;
  margin: 0;
}
.no1 h3,
h6,
p {
  margin: 0;
}
.no1 {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}
.no1 h3 {
  font-size: 24px;
  color: #89292f;
}
.no1 h6,
p {
  font-size: 18px;
}
.student-img {
  width: 500px !important;
  aspect-ratio: 1/1;
  margin-top: 30px !important;
  border: 10px solid #fcce00;
  border-radius: 20px;
  object-fit: cover;
}
.message-preview {
  font-size: 24px;
  color: black;
  margin: 0;
  max-width: 800px;
  margin-top: 10px;
}
.card-footer {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: calc(100% - 40px); /* 20px padding on each side */
  padding: 20px;
  background-color: #89292f;
}
.icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 50%;
  color: #89292f;
}
