
/* Body styling */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header styling */
h1 {
  font-size: 2.5em;
  color: #4CAF50;
  margin: 20px 0;
  text-align: center;
  font-weight: bold;
}

/* Courses list container */
#coursesList {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Course card styling */
.course-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Course title styling */
.course-card h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 10px;
}

/* Course description styling */
.course-card p {
  font-size: 1em;
  color: #777;
  margin-bottom: 20px;
}

/* Start Exam button */
.course-card button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.course-card button:hover {
  background-color: #45a049;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  .course-card {
    padding: 15px;
  }

  .course-card h3 {
    font-size: 1.6em;
  }

  .course-card p {
    font-size: 0.9em;
  }

  .course-card button {
    font-size: 1em;
  }
}

/* For very small devices like mobile phones in portrait mode */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }

  #coursesList {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 10px;
  }

  .course-card {
    padding: 10px;
  }

  .course-card h3 {
    font-size: 1.4em;
  }

  .course-card p {
    font-size: 0.8em;
  }

  .course-card button {
    font-size: 0.9em;
    padding: 8px 16px;
  }
}











/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
/*body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
} */

/* Header (Exam Title) */
h1 {
  font-size: 2.5em;
  color: #4CAF50;
  margin: 20px 0;
  text-align: center;
  font-weight: bold;
}

/* Exam description paragraph */
p {
  font-size: 1.2em;
  margin: 10px 0;
  color: #555;
}

/* Timer styling */
#timer {
  font-weight: bold;
  font-size: 1.5em;
  color: #e74c3c;
}

/* Question container styling */
#questionsContainer {
  width: 100%;
  max-width: 800px;
  margin: 30px 0;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Question styling */
.question {
  margin-bottom: 20px;
}

.question p {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.question label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.question input[type="radio"] {
  margin-right: 10px;
}

/* Button styling */
button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Result container */
#resultContainer {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
  text-align: center;
}

#resultContainer h2 {
  color: #333;
}

#resultContainer p {
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  p {
    font-size: 1em;
  }

  button {
    font-size: 1em;
    padding: 8px 16px;
  }

  #questionsContainer {
    padding: 15px;
  }
}

/* For very small devices like mobile phones in portrait mode */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }

  p {
    font-size: 0.9em;
  }

  .question label {
    font-size: 1em;
  }

  button {
    font-size: 1em;
    padding: 10px 18px;
  }
}


/* Global Reset */
/* Global reset for padding, margin, and box-sizing */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




/* Font and body styling */

h1, h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Main container for the certificate preview */
#certificateContainer {
  max-width: 900px;
  width: 100%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 20px;
  position: relative;
}

#certificateContainer h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Certificate Layout */
#certificate {
  width: 100%;
  height: auto;
  padding: 30px;
  border: 10px solid #2c3e50;
  border-radius: 15px;
  background-color: #fff;
  text-align: center;
  position: relative;
}

#certificate h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

#certificate .recipient {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#certificate .exam {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

#certificate .date {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

#certificate .badge {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

#certificate .qr {
  position: absolute;
  left: 10px;
  bottom: 30px;
  width: 70px;
  height: 70px;
}

#certificate .signature {
  position: absolute;
  right: 20px;
  bottom: 70px;
  width: 150px;
}

#certificate .footer {
  font-size: 14px;
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
}

/* Button Styles */
button {
  background-color: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 20px auto;
}

button:hover {
  background-color: #2980b9;
}

button:focus {
  outline: none;
}

/* Input styles */
input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 1.2rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: #3498db;
}

/* Footer styling for small text */
footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 20px;
  color: #777;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  #certificate {
    padding: 20px;
  }

  #certificate h2 {
    font-size: 2rem;
  }

  #certificate .recipient {
    font-size: 2.2rem;
  }

  #certificate .exam {
    font-size: 1.5rem;
  }

  #certificate .date {
    font-size: 1.2rem;
  }

  #certificate .footer {
    font-size: 12px;
  }

  button {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  #certificateContainer {
    padding: 20px;
  }

  #certificate {
    padding: 15px;
    border: 8px solid #2c3e50;
  }

  #certificate .recipient {
    font-size: 2rem;
  }

  #certificate .exam {
    font-size: 1.4rem;
  }

  #certificate .date {
    font-size: 1.1rem;
  }

  #certificate .qr {
    width: 50px;
    height: 50px;
  }

  #certificate .signature {
    width: 120px;
  }

  #certificate .footer {
    font-size: 10px;
  }

  button {
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #certificate {
    padding: 10px;
  }

  #certificate h2 {
    font-size: 1.5rem;
  }

  #certificate .recipient {
    font-size: 1.8rem;
  }

  #certificate .exam {
    font-size: 1.2rem;
  }

  #certificate .date {
    font-size: 1rem;
  }

  #certificate .qr {
    width: 40px;
    height: 40px;
  }

  #certificate .signature {
    width: 100px;
  }

  #certificate .footer {
    font-size: 9px;
  }

  button {
    font-size: 1rem;
  }
}
