* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@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;
  background: #dedede;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

button,
input {
  font-family: "Poppins", sans-serif;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 40px 40px rgba(0, 0, 0, 0.15);
}



h1 {
  color: #000000e7;
  text-align: center;
  margin: 12px 0px ;
}

.form-section,
.quiz-section,
.result-section {
  display: none;
}

.form-section.active,
.quiz-section.active,
.result-section.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group p {
  opacity: 0.6;
  font-style: oblique;
  margin-top: 8px;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #764ba2;
}

.question {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.question h3 {
  color: #333;
  margin-bottom: 15px;
}

.question p {
  margin-bottom: 8px;
}

.option {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.option:hover {
  border-color: #764ba2;
  background: #f0f0f0;
}

.option input[type="radio"] {
  margin-right: 10px;
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  margin-top: 16px;
}

#resultMessage p:first-child{
    margin-top: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

button:active {
  transform: translateY(0);
}

.result-section {
  text-align: center;
}

.score {
  font-size: 48px;
  font-weight: bold;
  color: #764ba2;
  
}

.igMessage{
    font-size: 14px;
    font-weight: 600;
    opacity: .7;
    margin: 4px 0px 28px;
}

#certificateCanvas {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.download-btn {
  background: #28a745;
  margin-top: 10px;
}

.download-btn:hover {
  background: #218838;
}

.retry-btn {
  background: #6c757d;
}

.retry-btn:hover {
  background: #5a6268;
}


@media screen and (max-width: 767px) {
  body {
    padding: 40px 16px 60px;
  }
  .container {
    padding: 20px;
  }
  .igMessage{
    font-size: 3.6vw;
  }
}