/* ─── IMPORT ROBOTO ─── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* ─── RESET & BASICS ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background: #33004d;
  color: #ffffff;
  /* ─── background-image: url("/static/background/bg-image.png"); ─── */
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: 300px;
}

input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px #ffffff;
}


/* ─── CONTAINER ─── */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── NAV BUTTONS (in-page) ─── */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 42px 0;
}
.nav-button {
  display: block;
  text-align: center;
  padding: 12px;
  background: #E0E7EF;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid #000000;
  border-radius: 0px;
  box-shadow: 4px 4px 0 rgba(0,0,0,1)
}



.nav-button.button-home.about {
display: inline-block;
}
.matchday-links.about-button {
  justify-self: center !important;
}
/* ─── TITLES ─── */
.title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: left;
  margin: 0;
  margin-bottom: 16px;
}

.title.about {
    margin-top: 24px;
}



.matchday-name {
   font-size: 1.1rem;
   text-align: center;
   margin-top: 8px;
   margin-bottom: 8px;
   font-weight: 500;
}

/* ─── TWO-COLUMN GRID ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  column-gap: 48px;
  margin-bottom: 16px;
}
@media (min-width: 550px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── SECTION 1 CARDS ─── */
.section1 .card {
  background: #7CD5F2;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #bde6f3;
}
.section1 .how-to-play h3 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.section .how-to-play p {
    font-size: 1.2rem;
}

.form-cards {
    font-style: italic;
}

.how-to-play p {
    font-style: italic;
}

.section1 .form-cards {
  display: grid;
  gap: 16px;
}

/* ─── MATCH CARDS ─── */
.match-card {
  border: 1px solid #240435;
  border-radius: 5px;
  overflow: hidden;
  /* remove default shadow */
  box-shadow: none;
}

/* top half: day & venue */
.match-card .match-info {
  background: #240435;
  padding: 8px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.match-day {
    margin-top: 6px;
}

/* bottom half: teams & inputs */
.match-card .teams,
.match-card .inputs {
  background: #30143f;
  padding: 6px;
}

/* team flags + codes */
.teams {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0px;
}
.team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-flag {
  width: 24px;
  height: auto;
  margin-right: 8px;
}
.team-code {
  font-weight: 700;
}

/* score separator */
.score-separator {
  margin: 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* prediction inputs container */
.inputs {
  display: flex;
  justify-content: space-between;
}

/* each input takes up one “column” with a small gutter */
.inputs input {
  width: 48%;
  padding: 4px;
  text-align: center;
  font-size: 1rem;
  border: none;
  border-radius: 3px;
  background-color: #240435;
  color: white;
}

/* ─── SUBMIT BUTTON ─── */
.submit-button {
  display: block;
  width: 48%;
  margin: 0 auto 32px auto;   /* center and give bottom spacing */
  padding: 12px;
  background: #7CD5F2;
  color: #000;
  font-size: 1.1rem;
  font-weight: 400;
  border: 1px solid #bde6f3;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,1);
}


/* ─── FOOTER ─── */
.footer {
  text-align: center;
  padding: 16px 0;
  font-size: 0.8rem;
  color: #666;
  margin-bottom:16px;
}

.alert {
    margin-bottom: 16px;
}
/* ─── Custom dropdown styling ─── */
.dropdown-cards .card {
  position: relative;
}
.dropdown-cards .card select {
  appearance: none;
  border: 1px solid #000;
  background-color: #7CD5F2;
  color: #000;
  width: 100%;
  padding: 8px 12px 8px 12px;
  padding-right: 36px;
  cursor: pointer;
}
/* the little arrow on the right */
.dropdown-cards .card::after {
  content: "▾";
  font-size: 0.8rem;
  color: #000;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
/* hide IE11 default arrow */
.dropdown-cards .card select::-ms-expand {
  display: none;
}
.dropdown-cards .card label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}


.score-static {
  background: #240435 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}
.score-static .score-number {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 4px;
}

/* on confirmation page, no arrows */
.confirmation .form-cards .card::after {
  content: none !important;
}

.italic {
    font-style: italic;
    list-style: none;
}

.italic.thin {
  margin-top: 24px;
  margin-left:55px;
  margin-right: 42px;
}


/* Footer credit on confirmation page */
.made-with {
  text-align: right;
  font-size: 0.8rem;
  color: #666;
  margin-top: 16px;
}

/* stack two cards in left column */
.form-cards {
  display: grid;
  gap: 16px;
}

/* Player of the Matchday card (blue) */
.potm-card {
  background: #7CD5F2;
  text-align: center;
  padding: 16px;
}
.potm-card .potm-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Favorite Team card (same blue) */
.favorite-card {
  background: #7CD5F2;
  text-align: center;
  padding: 16px;
}
.favorite-card h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

/* Favorite Team inner layout */
.favorite-team {
  display: flex;
  justify-content: center;
  align-items: center;
}
.favorite-team .team-flag {
  width: 24px;
  margin-right: 8px;
}
.favorite-team .team-code {
  font-size: 1rem;
  font-weight: 700;
}


/* pink Calculate Your Score card stays as you had it */
.score-card {
  background:rgb(255 114 141) !important;
  color: black !important;
  text-align: center;
  padding: 16px;
}
.score-card .score-instructions {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.score-card .score-instructions li {
  margin-bottom: 4px;
}

.ticket-scale {
  transform: scale(0.8);          /* shrink to 70% */
  transform-origin: top center;   /* scale around top center */
  /* Optional: to avoid clipping */
  margin-top: 42px;
  margin-bottom: 24px;
}

/* Only on confirmation page, slim down the match cards */
.ticket-scale .grid-2.section2 {
  gap: 8px;              /* tighter grid */
}

/* inside the ticket-scale, always use 2 columns for .grid-2 */
.ticket-scale .grid-2 {
  grid-template-columns: 1fr 1fr !important;
}

/* optionally tighten up the gaps so cards are thinner */
.ticket-scale .grid-2 {
  gap: 8px !important;
  column-gap: 8px !important;
}

/* shrink match-card padding a bit so they sit narrower */
.ticket-scale .match-card {
  padding: 4px !important;
}

/* shrink fonts slightly inside the ticket */
.ticket-scale {
  font-size: 0.90rem;
}

.h4 {
    font-weight: thin;
}

.matchday-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 16px;

}

.matchday-links.matchdays {
    padding-right: 0px;
    justify-self: center;
    justify-content: space-between;
    /* gap: 0px !important; */
    margin: auto;
}


.matchday-links a {
  padding: 6px 12px;
  background: #7cd5f2;
  text-decoration: none;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px solid #bde6f3;
  border-radius: 3px;
  margin-top: 24px;
}
.matchday-links a.active {
  background: #7CD5F2;

}

.matchday-links .link {
    margin: 8px;
}

.matchday-links.confirm {
  justify-self: center;
}



.link {
    font-size: 0.5rem;
}

.card {

}

/* Center the "Built with ❤️" line */
.built-with {
  justify-self: center;
  margin-top: 42px !important;
  margin: 24px;
}

.copy-card {
  margin-top: 24px;
  margin-bottom: 24px;
}

.header-container {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* space between image and text */
    margin-bottom: 20px; /* spacing under the header */
}

.header-logo {
    width:55px; /* adjust as desired */
    height: auto;
    margin-left: 10px;
}

.title-links-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns items to the left */
}


