* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  margin-bottom: 30px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

h2 {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #2c3e50;
  border-left: 4px solid #2ecc71;
  padding-left: 10px;
}

p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: 0.5s;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

input:focus {
  border-color: #2ecc71;
  outline: none;
}

button {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  display: block;
  margin: 10px auto;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.5s;
}

button:hover {
  background: #27ae60;
}

section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

fieldset {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  border-radius: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

legend {
  font-weight: bold;
  color: #2c3e50;
  padding: 0 10px;
}

fieldset input,
fieldset textarea {
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background: #2ecc71;
  color: white;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #f1f1f1;
}

.quiz-table {
  width: 100%;
}

main {
  flex: 1;
}

@media (max-width:600px) {

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  button {
    max-width: 100%;
  }

}

.progress-container {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
}

.progress-bar {
  height: 10px;
  width: 0%;
  background: #2ecc71;
  border-radius: 10px;
  transition: 0.4s;
}

figure img {
  max-width: 120px;
  display: block;
  margin: 10px auto;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}