body {
  font-family: Arial, sans-serif;
  margin: 0 auto;
  line-height: 1.6;
}
form{
  height: auto !important;
}
h1{
  max-width: none !important;
  text-align: center;
}
fieldset {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}
legend {
  font-weight: bold;
  padding: 0 10px;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
}
.required label:after {
  content: " *";
  color: red;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}
input:focus, select:focus {
  outline: 2px solid #4CAF50;
  border-color: transparent;
}
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
}
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-option > input{
  width: auto;
  margin: 0 2rem;
  align-self: center;
}
.checkbox-option > label{
  align-self: center;
  margin: 0;
}
.buttons {
  display: flex;
  gap: 10px;
}
button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.submit-btn {
  background-color: #4CAF50;
  color: white;
}
.submit-btn:hover {
  background-color: #45a049;
}
.reset-btn {
  background-color: #f44336;
  color: white;
}
.reset-btn:hover {
  background-color: #d32f2f;
}
.hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

footer > div > a > img {
  transform: rotate(30deg) scale(1.5) skew(10deg, 10deg);
}

input:focus + label,
input:focus ~ label,
textarea:focus + label,
textarea:focus ~ label {
  color: #4CAF50;
  font-weight: bold;
}

input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label {
  color: #4CAF50;
  font-weight: bold;
  text-shadow: 0 0 2px #4CAF50;
}

input[required],
textarea[required] {
  border-color: #4CAF50;
}

dl {
  margin: 3rem 0;
  font-size: 1.6rem;
}
dt {
  font-weight: bold;
  font-size: 2.4rem;
  color: #333;
  float: left;
  margin-right: 1rem;
  initial-letter: 2;
}
dd::before {
  content: "🛈 ";
  color: #4CAF50;
}
dd {
  margin: 0 0 2rem 0;
  color: #333;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}
ul li {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  opacity: 0.7;
}
#pseudo-elements li:nth-child(odd) label {
  background-color: #f0f0f0;
  padding: 0.5rem;
  border-radius: 10px;
}
#pseudo-elements li:nth-child(even) label {
  background-color: #4CAF50;
  color: white;
  padding: 0.5rem;
  border-radius: 10px;
}

button,
input,
textarea,
label {
  transition: all 0.3s ease;
}
button:hover,
button:focus {
  transform: scale(1.1) rotate(-1deg);
  background-color: #4CAF50;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}