.red-section {
  background-color: #ff0000;
}

.white-section {
  background-color: #FAFAFA; /* Pale white color */
}

/* Home Page */
.home-page-authenticated {
  display: flex;
  min-height: 100vh;
}

.home-page-authenticated-half-section {
  width: 50%; /* Each section should take half the width */
  height: 100vh;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  display: flex; /* Use Flexbox for centering */
  align-items: center;
}

.home-page-authenticated-club-photo {
  max-width: 80%;
  height: auto;
  padding: 3rem 0; /* you can tweak or remove */
  object-fit: contain;
}

.home-page-authenticated-club-logo {
  max-width: 80%;
  height: auto;
  padding: 3rem 0; /* you can tweak or remove */
  object-fit: contain;
}

.home-page-not-authenticated-background {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.home-page-not-authenticated-half-section {
  width: 50%; /* Each section should take half the width */
  height: 100vh;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  display: flex; /* Use Flexbox for centering */
  align-items: center;
}

.home-page-not-authenticated-club-logo {
  position: absolute; /* 2) pull this element out of the flex flow */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* keep it above the two halves */
}

.home-page-not-authenticated-club-logo img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block; /* removes any inline‐image descent issues */
}

/* Teams Page */
.teams-page {
  /*min-height: 100vh;*/
  /*background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);*/
  /*background-size: 50px 50px;*/
  padding: 3rem;
}


/* 0) (Optional) give the tab list a light background */
#yearTabs {
  /*background-color: #f8f9fa;*/
  border-bottom: 1px solid #dee2e6;
}

/* 1) Ensure .tab-pane is flex‐row & wraps */
.tab-pane {
  flex-direction: row;
  flex-wrap: wrap;
}

/* 2) Base nav‐link styles */
#yearTabs .nav-link {
  color: #333 !important;
  font-size: 2rem;
  padding: 0.75rem 1.5rem;
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}

/* 3) First tab overlaps second */
#yearTabs .nav-item:first-child .nav-link {
  position: relative;
  margin-right: -0.5rem;
  z-index: 2;
}

/* 4) Second tab sits underneath */
#yearTabs .nav-item:nth-child(2) .nav-link {
  z-index: 1;
  border-top-left-radius: 0; /* optional: sharpen inner corner */
}

/* 5) Active‐tab styling */
#yearTabs .nav-link.active {
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  color: #000 !important;
}

/* Wrap the entire tab‐content in a white frame */
#yearTabsContent {
  /* thick white border */
  border: 6px solid #fff;
  /* pull it up 1px so it sits snug under the active tab */
  margin-top: -1px;
  /* give the inside some breathing room */
  padding: 1rem;
  /* force a white background in case your page behind is colored */
  background-color: #fff;
}

.teams-page-team-section {
  width: 50%; /* Each section should take half the width */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  display: flex; /* Use Flexbox for centering */
}

.teams-page-team-photo {
  max-width: 80%;
  height: auto;
  padding: 3rem 0; /* you can tweak or remove */
}

/* 1) Remove table borders and background */
table.table {
  background-color: transparent !important;
  border: none !important;
}

/* 2) Remove all cell borders & backgrounds */
table.table th,
table.table td {
  background-color: transparent !important;
  border: none !important;
}

/* 3) (Optional) If you want to remove the double-thick border that Bootstrap adds under <thead> */
table.table thead th {
  border-bottom: none !important;
}

/* 4) (Optional) Make sure no row hover colors, etc. */
table.table tbody tr,
table.table tbody tr:hover {
  background-color: transparent !important;
}

.general-page-background {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.general-page-half-section {
  width: 50%; /* Each section should take half the width */
  height: 100vh;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  display: flex; /* Use Flexbox for centering */
  align-items: center;
}

.general-page-background .container {
  position: absolute; /* take it out of the flow */
  top: 50%; /* 50% down from the top of the parent */
  left: 50%; /* 50% in from the left of the parent */
  transform: translate(-50%, -50%);
  z-index: 1; /* make sure it floats above the background halves */
  width: 80%; /* or whatever max‐width you want */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  /* make a transparent border that we’ll fill with a gradient */
  border: 5px solid transparent;
  border-radius: 4px;
  padding: 1rem;

  /* border-image is drawn “around” the element in the border area */
  border-image: linear-gradient(
    to right,
    #fff 50%, /* first half of the border white */ red 50% /* second half of the border red */
  ) 1; /* “1” means use the full gradient across the entire border width */
}

#id_password1_helptext ul {
  text-align: left; /* ensure text is flush left */
  list-style-type: disc; /* use discs */
  list-style-position: outside; /* bullet outside the content box */
  margin: 0; /* no extra top/bottom margins */
  padding-left: 1.5rem; /* indent the whole list */
}

#div_id_remember {
  display: flex; /* enable flexbox on this container */
  flex-direction: row; /* make children flow in a row */
  justify-content: center; /* center them horizontally */
  align-items: center; /* center them vertically */
  gap: 0.5em; /* optional spacing between items */
  /* if you need to override Bootstrap’s default, increase specificity or use !important */
}

/* if you want even finer control over the spacing: */
#div_id_remember .form-check-input {
  margin: 0; /* remove any default margins */
}

#div_id_remember .form-check-label {
  margin-left: 0.5em; /* add a little space between checkbox and label */
}

.card-body ul li::marker {
  content: none;
}

.card-body ul li {
  margin-bottom: 0.5em;
}

.alert ul {
  display: flex; /* enable flexbox on this container */
  flex-direction: row; /* make children flow in a row */
  justify-content: center; /* center them horizontally */
  align-items: center; /* center them vertically */
  gap: 0.5em; /* optional spacing between items */
}

.info-page-background {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.info-page-background .container {
  z-index: 1; /* make sure it floats above the background halves */
  width: 80%; /* or whatever max‐width you want */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
  border: 5px solid #fffffa;
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem auto;
}


.match-report-page {
  display: flex;
  min-height: 100vh;
}

.match-report-page-half-section {
  width: 50%; /* Each section should take half the width */
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
}

/* this will size the underline exactly to your text width */
.match-report-page-half-section .header-large {
  display: inline-block;
  padding-bottom: .5em; /* a little breathing room above the line */
  margin-bottom: 1em; /* space below the line */
  border-bottom: 6px solid #000; /* change “6px” to whatever thickness you like */
}

.full-section {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;
}

.nav-full-section {
  width: 100%;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size: 50px 50px;

}

/* Keep the existing styles below */
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.navbar-logo-container {
  max-width: 5%;
  max-height: 5%;
}

.home-logo-container {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

/* === Responsive stack for small screens === */
@media screen and (max-width: 768px) {
  .home-page-authenticated {
    flex-direction: column; /* stack top→bottom */
  }

  .match-report-page {
    flex-direction: column; /* stack top→bottom */
  }

  .home-page-authenticated-half-section {
    width: 100%; /* each child is full width */
    height: auto; /* let content dictate height */
    min-height: 50vh; /* optional: give them at least half a screen each */
  }

  .match-report-page-half-section {
    width: 100%; /* each child is full width */
    height: auto; /* let content dictate height */
    min-height: 50vh; /* optional: give them at least half a screen each */
  }

  .teams-page-team-section {
    position: relative;
    width: 100%; /* Full width on small screens */
    height: 100%; /* Half the height on small screens */
  }

  .teams-page {
    padding: 0.25rem;
  !important;
  }

  .teams-page-team-photo {
    max-width: 100%;
    padding: 1rem 0;
  }

  .home-page-authenticated-club-photo {
    max-width: 100%;
    padding: 1rem 0;
  }

  .home-page-authenticated-club-logo {
    max-width: 100%;
    padding: 1rem 0;
  }

  .d-flex { /* if you really want to repurpose your existing d-flex container */
    display: flex !important;
    flex-direction: column;
  }

  .card-body ul li::marker {
    content: none;
  }
}

@media (max-width: 767px) {
  .mobile-image-padding {
    padding-bottom: 2rem;
  }

  .mobile-text-padding {
    padding-top: 2rem;
  }
}

@media (max-width: 576px) {
  /* Make all text inside that container a bit smaller */
  .general-page-background .container {
    font-size: 0.85rem;
  }

  /* If you have headings you want even smaller: */
  .general-page-background .container h1,
  .general-page-background .container h2,
  .general-page-background .container h3 {
    font-size: 1.25rem;  /* or whatever works for you */
  }

  /* Maybe your buttons and labels need less padding, etc. */
  .general-page-background .container button {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

@media screen and (max-width: 576px) {
  /* 1) hide the two half‐sections */
  .general-page-half-section {
    display: none !important;
  }

  /* 2) make the parent a solid red background */
  .general-page-background {
    background-color: #ff0000;
    position: relative; /* keep the stacking context for the container */
  }

  /* 3) bring your .container back into the normal flow and center it */
  .general-page-background .container {
    position: relative; /* remove absolute positioning */
    top: auto;
    left: auto;
    transform: none; /* cancel the translate(-50%,-50%) */
    margin: 2rem auto; /* center horizontally and give a little vertical space */
    width: 90%; /* or whatever inner max‐width you prefer */
    /*background: #fff;*/
    padding: 1.5rem;
    border-radius: 4px;
    align-content: center;
  }
}
