* {
  /* margin: 5px; */
  box-sizing: border-box; /* Ensures padding/border don't affect width/height */
}

body {
  background: #2f2f2f;
  font-family: Arial, sans-serif;
  color: #fff;
  text-align: center;
  padding: 0;
  margin: 0;
}

h1 {
  padding-top: 20px;
  color: #00ff9d;
}

.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-hero {
  width: 70%;
  margin: 44px 15% 28px;
  padding: 44px 34px;
  border: 2px solid #00ff9d;
  border-radius: 26px;
  background: #252535;
}

.home-label {
  margin: 0 0 12px;
  color: #57ccfa;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: #f4ff61;
  font-size: 52px;
  line-height: 62px;
}

.home-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #eeeeee;
  font-size: 20px;
  line-height: 30px;
}

.hero-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border: 2px solid #00ff9d;
  border-radius: 12px;
  background: #00ff9d;
  color: #2f2f2f;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.hero-button:hover {
  background: #252535;
  color: #00ff9d;
}

hr {
  width: 70%;
  border: 0;
  border-top: 1px solid #555;
  margin: 0 15%;
}

.preference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  text-align: left;
}

.preference-card {
  padding: 22px;
  border: 1px solid #00ff9d55;
  border-radius: 20px;
  background: #252535;
  text-align: center;
}

.preference-card:hover {
  border-color: #00ff9d;
}

.preference-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #f4ff61;
  font-weight: 800;
}

.preference-pair span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preference-pair strong {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #00ff9d;
  color: #252535;
  font-size: 16px;
}

.preference-pair em {
  color: #57ccfa;
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
}

.preference-card p {
  margin: 0;
  color: #eeeeee;
  line-height: 26px;
}

/* Center Content */
#quick-jump,
section {
  width: 70%;
  margin: 20px 15%;
  padding: 10px 0;
}

nav {
  display: flex;
  background-color: #444;
  padding: 10px 20px;
}

nav p {
  color: #00ff9d;
  font-size: 32px;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

nav ul li {
  display: inline;
  margin: 0 5px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
}

nav ul li a:hover {
  color: #00ff9d;
}

nav i:hover {
  color: #00ff9d;
}

nav .login {
  text-decoration: none;
  color: white;
  font-weight: bold;
  margin: 0 0 0 10px;
}

nav .login:hover {
  color: #00ff9d;
}

.navbar a.active {
  color: #00ff9d;
}

.advice-hero {
  width: 70%;
  margin: 36px 15% 22px;
  padding: 10px 0;
  text-align: center;
}

.advice-label {
  display: inline-block;
  margin: 0 0 14px;
  color: #57ccfa;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.advice-hero h1 {
  margin: 0 0 14px;
  padding: 0;
  color: #f4ff61;
  font-size: 42px;
}

.advice-hero p {
  max-width: 680px;
  margin: 0;
  color: #e8e8e8;
  font-size: 18px;
  line-height: 28px;
}

#quick-jump {
  width: 70%;
  text-align: center;
  padding: 34px;
  border: 1px solid #555;
  border-radius: 24px;
  background: #242424;
}

#quick-jump h2 {
  margin: 0 0 8px;
  color: #f4ff61;
  font-size: 34px;
}

.quick-jump-intro {
  margin: 0 0 24px;
  color: #dddddd;
  font-size: 17px;
}

.type-group {
  display: inline-block;
  width: 45%;
  margin-top: 22px;
  margin-left: 8px;
  margin-right: 8px;
  padding: 20px;
  border: 1px solid #444;
  border-radius: 18px;
  background: #2f2f2f;
  vertical-align: top;
}

#quick-jump h3 {
  margin: 0 0 8px;
  color: #00ff9d;
  font-size: 20px;
  text-transform: uppercase;
}

#quick-jump .type-group p {
  margin: 0 0 14px;
  color: #cccccc;
  font-size: 15px;
}

.card {
  display: inline-block;
  width: 150px;
  min-height: 100px;
  margin: 8px;
  padding: 12px 8px;
  border: 2px solid #2f2f2f;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  vertical-align: top;
}

.card strong {
  display: block;
  font-size: 22px;
}

.card span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: bold;
}

.card:hover {
  border-color: #ffffff;
}

/* Specific Type Colors (Friend's Scheme) */
/* ... (All 16 color definitions must remain here, e.g.) ... */
.infp {
  background: #00ff9d;
  color: #2f2f2f;
}
.infj {
  background: #00ff9d;
  color: #2f2f2f;
}
.enfp {
  background: #00ff9d;
  color: #2f2f2f;
}
.enfj {
  background: #00ff9d;
  color: #2f2f2f;
}
.intj {
  background: #9751b9;
  color: #2f2f2f;
}
.entp {
  background: #9751b9;
  color: #2f2f2f;
}
.entj {
  background: #9751b9;
  color: #2f2f2f;
}
.intp {
  background: #9751b9;
  color: #2f2f2f;
}
.isfj {
  background: #57ccfa;
  color: #2f2f2f;
}
.estj {
  background: #57ccfa;
  color: #2f2f2f;
}
.esfj {
  background: #57ccfa;
  color: #2f2f2f;
}
.istj {
  background: #57ccfa;
  color: #2f2f2f;
}
.istp {
  background: #f4ff61;
  color: #2f2f2f;
}
.isfp {
  background: #f4ff61;
  color: #2f2f2f;
}
.estp {
  background: #f4ff61;
  color: #2f2f2f;
}
.esfp {
  background: #f4ff61;
  color: #2f2f2f;
}

.details {
  width: 70%;
  margin: 34px 15%;
  background: #252535;
  border: 1px solid #555;
  border-radius: 24px;
  padding: 28px;
  color: #f4f4f4;
  text-align: left;
}

.details h2 {
  margin: 0 0 24px;
  color: #00ff9d;
  text-align: center;
  text-transform: uppercase;
  font-size: 28px;
}

.details h2 a {
  color: #00ff9d;
  text-decoration: none;
}

.details h2 a:hover {
  color: #f4ff61;
}

.details img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #00ff9d;
  border-radius: 22px;
  float: left;
  margin: 0 24px 18px 0;
}

.details img:hover {
  border-color: #f4ff61;
}

.details ul {
  list-style-type: none;
  padding: 0;
  margin: 8px 0 18px;
}

.details ul li {
  background: #333344;
  margin: 8px 0;
  padding: 12px;
  border-left: 4px solid #00ff9d;
  border-radius: 10px;
  color: #eeeeee;
  line-height: 24px;
}

.section-title {
  margin-top: 18px;
  color: #57ccfa;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote {
  background: #2f2f2f;
  padding: 14px;
  border-left: 4px solid #f4ff61;
  margin-top: 10px;
  border-radius: 10px;
  color: #ffffff;
  line-height: 24px;
}

.top-button {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 22px;
  border: 2px solid #00ff9d;
  border-radius: 12px;
  cursor: pointer;
  background-color: #00ff9d;
  color: #2f2f2f;
  text-decoration: none;
  font-weight: bold;
}

.top-button:hover {
  background-color: #252535;
  color: #00ff9d;
}

.container {
  width: 70%;
  margin: 48px 15%;
  background: #252535;
  padding: 44px;
  border: 1px solid #00ff9d29;
  border-radius: 28px;
}

.team-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.team-logo {
  width: 220px;
  border-radius: 28px;
  border: 3px solid #00ff9d66;
}

.container h1 {
  margin: 0;
  color: #f4ff61;
  font-size: 64px;
  text-align: center;
}
.intro {
  max-width: 760px;
  margin: 24px 0 36px;
  text-align: center;
  color: #e9dff0;
  font-size: 17.28px;
  line-height: 1.7;
}
.members {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.member {
  min-height: 280px;
  border: 1px solid #ffffff1f;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff12;
}

.member:hover {
  border-color: #00ff9d;
  background: #ffffff1c;
}

.members a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  margin: 0;
}

.member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  margin-top: 16px;
  border-radius: 50%;
  background: #2f2f2f;
  border: 2px solid #00ff9d40;
}

.member h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 20px;
}
.role {
  margin: 0;
  color: #57ccfa;
  font-weight: bold;
}
.mbti {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #00ff9d24;
  color: #00ff9d;
  font-size: 14.4px;
  font-weight: 800;
  letter-spacing: 0.58px;
}

.definition {
  width: 70%;
  margin: 34px 15%;
  background-color: #252535;
  padding: 34px;
  border: 1px solid #00ff9d;
  border-radius: 24px;
  color: #eeeeee;
  line-height: 28px;
}
.definition h2 {
  margin: 0 0 18px;
  color: #f4ff61;
  text-align: center;
  font-size: 30px;
}

.definition p {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 17px;
}

.definition ol {
  text-align: left;
  max-width: 760px;
  margin: 22px 0 0;
  padding: 0 0 0 28px;
}

.definition li {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 4px solid #00ff9d;
  background: #333344;
  border-radius: 10px;
}

.history {
  width: 70%;
  margin: 34px 15%;
  background-color: #333344;
  padding: 34px;
  border: 1px solid #57ccfa;
  border-radius: 24px;
  color: #eeeeee;
  line-height: 28px;
}

.history h2 {
  margin: 0 0 18px;
  color: #57ccfa;
  font-size: 30px;
}

.history p {
  max-width: 800px;
  margin: 0;
  font-size: 17px;
}
.selection.test {
  width: 70%;
  margin: 34px 15% 48px;
  background-color: #f4ff61;
  padding: 34px;
  border: 1px solid #f4ff61;
  border-radius: 24px;
  color: #2f2f2f;
}

.selection.test h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.selection.test p {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 28px;
}

.test-button {
  display: inline-block;
  padding: 12px 20px;
  margin-top: 20px;
  border: 2px solid #2f2f2f;
  border-radius: 12px;
  cursor: pointer;
  background-color: #2f2f2f;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
}

.test-button:hover {
  background-color: #f4ff61;
  color: #2f2f2f;
}

/* sign-up page styling */
.sign-icons {
  margin: 0;
}

.sign-up {
  width: 50%;
  background-color: #2f2f2f;
  margin: 20px 25%;
  padding: 40px;
  border-radius: 30px;
}

.sign-up h1 {
  text-align: center;
  color: #9751b9;
}

.sign-up p {
  text-align: center;
  color: #999;
  margin-bottom: 30px;
}

.sign-up form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.sign-up label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #c8b5d1;
  text-align: left;
}

.sign-up input[type="text"],
.sign-up input[type="email"],
.sign-up input[type="password"] {
  background-color: #3a3a3a;
  color: white;
  height: 55px;
  padding: 0 20px;
  border: 1px solid #555;
  border-radius: 15px;
  outline: none;
  font-size: 15px;
}

.sign-up input[type="text"]::placeholder,
.sign-up input[type="email"]::placeholder,
.sign-up input[type="password"]::placeholder {
  color: #888;
}

.sign-up input[type="text"]:focus,
.sign-up input[type="email"]:focus,
.sign-up input[type="password"]:focus {
  border-color: #c8b5d1;
}

.sign-up button[type="submit"] {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 15px;
  background-color: #9751b9;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

.sign-up button[type="submit"]:hover {
  background-color: white;
  color: #9751b9;
  border: 1px solid #9751b9;
}

.social-login {
  margin-top: 30px;
}

.line-text {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 15px;
}

.line-text::before,
.line-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #dbd9dc;
}

.line-text span {
  color: #999;
  font-size: 14px;
}

.social-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sign-up .social-icons i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #9751b9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
}

.sign-up .social-icons i:hover {
  background-color: white;
  color: #9751b9;
  border: 1px solid #9751b9;
}

.sign-up p {
  margin-top: 15px;
}

.sign-up p a {
  text-decoration: none;
  color: #9751b9;
}
.sign-up p a:hover {
  color: #200f29;
}

/* log-in page styling */

.log-in {
  width: 50%;
  background-color: #2f2f2f;
  margin: 20px 25%;
  padding: 40px;
  border-radius: 30px;
}

.log-in h1 {
  text-align: center;
  color: #57ccfa;
}

.log-in p {
  text-align: center;
  color: #999;
  margin-bottom: 30px;
}

.log-in form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.log-in label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #b8e0ef;
  text-align: left;
}

.log-in input[type="text"],
.log-in input[type="email"],
.log-in input[type="password"] {
  background-color: #3a3a3a;
  color: white;
  height: 55px;
  padding: 0 20px;
  border: 1px solid #555;
  border-radius: 15px;
  outline: none;
  font-size: 15px;
}

.log-in input[type="text"]::placeholder,
.log-in input[type="email"]::placeholder,
.log-in input[type="password"]::placeholder {
  color: #888;
}

.log-in input[type="text"]:focus,
.log-in input[type="email"]:focus,
.log-in input[type="password"]:focus {
  border-color: #b8e0ef;
}

.log-in button[type="submit"] {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 15px;
  background-color: #9751b9;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

.log-in button[type="submit"]:hover {
  background-color: white;
  color: #9751b9;
  border: 1px solid #9751b9;
}

.log-in .social-icons i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #57ccfa;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
}

.log-in .social-icons i:hover {
  background-color: white;
  color: #57ccfa;
  border: 1px solid #57ccfa;
}

.log-in p {
  margin-top: 15px;
}

.log-in p a {
  text-decoration: none;
  color: #57ccfa;
}
.log-in p a:hover {
  color: #276881;
}

/* error styling */
input.error-border {
  border: 2px solid red !important;
}

.error {
  color: red;
  font-size: 12px;
  display: block;
  margin-top: 8px;
}
