.khula-light {
  font-family: "Khula", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.khula-regular {
  font-family: "Khula", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.khula-semibold {
  font-family: "Khula", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.khula-bold {
  font-family: "Khula", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.khula-extrabold {
  font-family: "Khula", sans-serif;
  font-weight: 800;
  font-style: normal;
}

:root {
  --club-primary: #1f9bd1;
  --club-primary-strong: #0c78b0;
  --club-secondary: #183153;
  --surface-strong: #0f172a;
  --surface-card: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(148, 163, 184, 0.24);
  --surface-muted: #5b6b84;
  --text-strong: #102033;
  --text-soft: #5f7087;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.12);
  --pico-background-color: transparent;
  --pico-color: var(--text-strong);
  --pico-muted-color: var(--text-soft);
  --pico-primary: var(--club-primary);
  --pico-primary-hover: var(--club-primary-strong);
  --pico-primary-focus: rgba(31, 155, 209, 0.18);
  --pico-primary-inverse: #f8fbff;
  --pico-card-background-color: rgba(255, 255, 255, 0.92);
  --pico-form-element-background-color: rgba(255, 255, 255, 0.96);
  --pico-form-element-border-color: rgba(148, 163, 184, 0.28);
  --pico-form-element-active-border-color: rgba(31, 155, 209, 0.55);
  --pico-form-element-focus-color: rgba(31, 155, 209, 0.14);
  --pico-border-radius: 16px;
}

html {
  background:
    radial-gradient(
      circle at top left,
      rgba(104, 188, 234, 0.18),
      transparent 26rem
    ),
    linear-gradient(180deg, #1e3662 0%, #1b3159 48%, #162949 100%);
}

body {
  min-height: 100vh;
  background: transparent;
  color: var(--text-strong);
  font-family: "Manrope", sans-serif;
}

main.container.site-shell {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

body,
main.container,
header {
  color: var(--text-strong);
}

header h1 a,
#login-form-container,
#login-form-container a {
  color: var(--text-strong);
}

.site-header {
  margin-bottom: 1.5rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-content {
  padding: 1rem 0 0;
}

.base-header-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.base-header-auth {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.base-header-auth p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .base-header-grid {
    grid-template-columns: 1fr auto;
  }
}

#login-form-container form,
#login-form-container fieldset[role="group"] {
  margin: 0;
}

#login-form-container input,
#login-form-container select,
#login-form-container button,
.site-content input,
.site-content select,
.site-content textarea,
.site-content button {
  font-size: 0.95rem;
}

button,
[type="submit"],
[role="button"] {
  width: auto;
  min-width: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  box-shadow: none;
}

button.secondary,
button.outline {
  border: 1px solid var(--surface-border);
}

select,
input,
textarea {
  margin-bottom: 0;
  border-radius: 14px;
  min-height: 3.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

label {
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.team-shell {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0;
}

.team-card {
  position: relative;
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 251, 255, 0.9)
  );
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(31, 155, 209, 0.2),
    rgba(31, 155, 209, 0)
  );
  pointer-events: none;
}

.team-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.team-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--club-primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-title {
  margin: 0;
  color: var(--surface-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.team-description {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.team-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}

.team-label {
  margin: 0;
}

.team-select-wrap {
  position: relative;
}

.team-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid rgba(16, 32, 51, 0.55);
  border-bottom: 2px solid rgba(16, 32, 51, 0.55);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.team-select-wrap select {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1rem;
  appearance: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(240, 246, 252, 0.92)
  );
  color: var(--text-strong);
  font-weight: 600;
}

.team-submit {
  justify-self: start;
  padding-inline: 1.35rem;
  color: #f8fbff;
  background: linear-gradient(
    135deg,
    var(--club-primary) 0%,
    var(--club-primary-strong) 100%
  );
}

@media (max-width: 640px) {
  main.container.site-shell {
    width: min(100% - 1rem, 980px);
    padding-top: 1.2rem;
  }

  .site-header {
    margin-bottom: 1rem;
  }

  .team-card {
    border-radius: 22px;
    padding: 1.2rem;
  }

  .team-form,
  .team-copy {
    max-width: none;
  }
}

#squad-image:before {
  content: url("/static/profiles/mjfcbackground.png");
}

#squad-image {
  margin: 0 auto; /* Center the div horizontally */
  width: 800px; /* Ensure it takes up the full width of the container */
  position: relative; /* Ensure it is relatively positioned */
  display: inline-block; /* Ensure it is treated as an inline-block element */
  text-align: center; /* Center the image */
}

.playernumber {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #68bcea;
  font-family: "Khula", sans-serif;
  font-weight: 700;
  color: black;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  margin-right: 10px;
  padding-top: 3px; /* Adjust the value as needed */
}

.playerfirstname {
  color: white;
}

.playerlastname {
  color: #68bcea;
}

table,
tr,
td {
  background-color: #1e3662 !important;
  border: none !important;
  margin-bottom: 20px;
}

.code-picture {
  text-align: center;
}

.code-picture img {
  margin: 1em 0;
  border: 1px solid #cecece;
  max-width: 80%;
  padding: 1em;
}

p.team {
  position: absolute; /* Position it absolutely within the parent */
  top: 80px; /* Adjust the value as needed */
  left: 42px; /* Adjust the value as needed */
  color: white; /* Set the text color */
  font-size: 80px; /* Set the font size */
  font-weight: 800; /* Set the font weight */
  font-family: "Khula", sans-serif; /* Set the font family */
}

p.opponent {
  position: absolute; /* Position it absolutely within the parent */
  top: 155px; /* Adjust the value as needed */
  left: 50px; /* Adjust the value as needed */
  color: white; /* Set the text color */
  font-size: 20px; /* Set the font size */
}

p.location {
  position: absolute; /* Position it absolutely within the parent */
  top: 380px; /* Adjust the value as needed */
  left: 14px; /* Adjust the value as needed */
  color: #1e3662; /* Set the text color */
  font-weight: 800; /* Set the font weight */
  font-family: "Khula", sans-serif; /* Set the font family */
  font-size: 30px; /* Set the font size */
}

.matchteamimage {
  background-image: url("/static/profiles/half-pitch.png") !important;
  background-size: cover; /* Or contain, 100% 100%, etc. */
  background-repeat: no-repeat; /* Or repeat, repeat-x, repeat-y */
  background-position: center; /* Or top, bottom, left, right, etc. */
  height: 300px;
}

div.matchteamimage table,
div.matchteamimage table tr,
div.matchteamimage table td {
  background-color: transparent !important; /* Or: background-color: initial; */
  padding-top: 35px;
  color: white;
  font-family: "Khula", sans-serif;
  font-size: x-large;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  border: 1px white solid;
}

.small-login-form {
  display: flex;
  align-items: center; /* Vertically center items */
  width: fit-content; /* Adjust width as needed */
  font-size: smaller; /* Make text smaller */
  gap: 1rem; /* Spacing between items */
  justify-content: flex-start; /* Align items to the left */
}

.small-login-form input[type="text"] {
  width: 120px; /* Or any size you prefer */
}

/* Alert styles */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid transparent;
}

.alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

/* Form group styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group .help-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.contact-seller {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
}

.contact-seller:hover {
  background-color: #0056b3;
}

.seller-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.breadcrumb {
  margin: 1rem 20px;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: inline-block;
  clear: both;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
