body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px 0;
}

/* Container styling */
.container {
  background-color: white;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  border-radius: 8px;
}

/* General form input styling */
input[type="text"], input[type="number"], select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box; /* Makes the padding inside the input field */
  margin: 5px 0 15px 0;
}

/* Styling the name input field specifically */
#name {
  font-size: 16px;
  background-color: #f9f9f9;
  color: #333;
}

/* Add focus effects to the name input */
#name:focus {
  outline: none;
  border-color: #4CAF50; /* Green border on focus */
  background-color: #e9f9e9; /* Light green background */
}

/* Styling the phone number input field */
#phone {
  font-size: 16px;
  background-color: #f9f9f9;
  color: #333;
}

/* Add focus effects to the phone number input */
#phone:focus {
  outline: none;
  border-color: #4CAF50;
  background-color: #e9f9e9;
}

/* Label styling */
label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 5px;
  padding: 5px;
  cursor: pointer;
}

/* Gender and age fields in one line */
.input-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  
}

#gender, #age {
  font-size: 16px;
  background-color: #f9f9f9;
  color: #333;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%; /* Adjust width to fit side-by-side */
}

/* Add focus effects to gender and age inputs */
#gender:focus, #age:focus {
  outline: none;
  border-color: #4CAF50;
  background-color: #e9f9e9;
}

/* Button styling */
button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #45a049;
}

/* Result text styling */
#result {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

/* Styling for correct and incorrect answers */
.correct {
  border: 2px solid green;
  background-color: #d4edda;
  border-radius: 10px;
}

.incorrect {
  border: 2px solid red;
  background-color: #f8d7da;
  border-radius: 10px;
}

h1 {
  font-size: 20px;
  text-align: center;
}
