:root {
  --primary-color: #ffb6c1; /* Light Pink */
  --secondary-color: #add8e6; /* Light Blue */
  --accent-color: #98fb98; /* Pale Green */
  --text-color: #333333;
  --heading-font: 'Pacifico', cursive;
  --body-font: 'Comfortaa', cursive;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start; /* Align to start for header/nav */
  text-align: center;
  padding: 20px; /* Add some padding around the content */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.5em;
}

header {
  width: 100%;
  padding: 20px 0;
  background-color: var(--primary-color);
  color: white;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  color: white;
  margin: 0;
  font-size: 3em;
}

nav {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-family: var(--body-font);
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

main#app-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 800px;
  flex-grow: 1; /* Allows main content to expand */
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Form Styling */
form {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  padding: 20px;
  background-color: #fff9f9; /* Lighter background for forms */
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

form h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 1em;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 1em;
  color: var(--text-color);
  background-color: white;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(152, 251, 152, 0.5); /* Pale green glow */
}

form button[type="submit"] {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-family: var(--body-font);
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

form button[type="submit"]:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Results Section Styling */
#korean-compat-results,
#mbti-compat-results {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9ff; /* Very light blue background */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 600px; /* Limit width for readability */
}

.mbti-results-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px; /* Space between cards */
  margin-top: 20px;
  width: 100%;
}

/* Styling for custom elements */
cute-character {
  /* Ensure default attributes are respected or overridden */
}

compatibility-result-card {
  width: calc(33% - 10px); /* Three cards per row on larger screens */
  min-width: 150px; /* Minimum width for cards */
}

@media (max-width: 768px) {
  compatibility-result-card {
    width: calc(50% - 10px); /* Two cards per row on medium screens */
  }
}

@media (max-width: 480px) {
  compatibility-result-card {
    width: 90%; /* One card per row on small screens */
  }
}

footer {
  width: 100%;
  padding: 15px 0;
  color: var(--text-color);
  font-size: 0.9em;
  background-color: var(--primary-color);
  border-radius: 15px;
  margin-top: auto; /* Pushes footer to the bottom */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    color: white;
}

/* Basic reset */
* {
  box-sizing: border-box;
}


