/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --hue: 174;
  --sat: 63%;
  --first-color: hsl(var(--hue), var(--sat), 40%);
  --first-color-alt: hsl(var(--hue), var(--sat), 36%);
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #FFF;

  /*========== Font and typography ==========*/
  --body-font: 'Open Sans', sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --tiny-font-size: .625rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 10px;
}

.section__height {
  height: 30px;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: 0.5rem;
  margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  z-index: var(--z-fixed);
  transition: .4s;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__img {
  width: 25px;
  border-radius: 50%;
}
.nav_img {
  padding-top: 10px;
  width: 180px;
  border-radius: 0%;
}

.nav__logo {
  color: var(--title-color);
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--container-color);
    box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: .4s;
  }
}

.nav__list, 
.nav__link {
  display: flex;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__list {
  justify-content: space-around;
}

.nav__name {
  font-size: var(--tiny-font-size);
  /* display: none;*/ /* Minimalist design, hidden labels */
}

.nav__icon {
  font-size: 1.5rem;
}

/*Active link*/
.active-link {
  position: relative;
  color: var(--first-color);
  transition: .3s;
}

/* Minimalist design, active link */
/* .active-link::before{
  content: '';
  position: absolute;
  bottom: -.5rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
} */

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
  .nav__name {
    display: none;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__list {
    justify-content: center;
    column-gap: 3rem;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .section {
    padding: 7rem 0 2rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
  }
  .nav__img {
    display: none;
  }
  .nav__icon {
    display: none;
  }
  .nav__name {
    font-size: var(--normal-font-size);
    /* display: block; */ /* Minimalist design, visible labels */
  }
  .nav__link:hover {
    color: var(--first-color);
  }

  /* First design, remove if you choose the minimalist design */
  .active-link::before {
    content: '';
    position: absolute;
    bottom: -.75rem;
    width: 4px;
    height: 4px;
    background-color: var(--first-color);
    border-radius: 50%;
  }

  /* Minimalist design */
  /* .active-link::before{
      bottom: -.75rem;
  } */
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}
 /*=============== BETTING TICKETS ===============*/
.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  position: relative;
  border: 1px solid var(--title-color);
  border-radius: 10px;
  width: 320px;
  padding: 1rem;
  background-color: var(--container-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex: 1 1 300px;
}

.card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  max-width: 200px;
  max-height: 200px;
  background-image: url('watermark.png'); /* Replace with your watermark path */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  transform: translate(-50%, -50%) rotate(-30deg);
  pointer-events: none;
  z-index: 0;
}

.card * {
  position: relative;
  z-index: 1;
}

.league-name {
  font-weight: 600;
  font-size: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--first-color);
  margin-bottom: 1rem;
  color: var(--title-color);
}
.league-name2 {
  font-weight: 500;
  font-size: 1.05rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--first-color);
  margin-bottom: 1rem;
  color: var(--title-color);
}

.card table {
  width: 100%;
  border-spacing: 0 12px;
}

.card td {
  padding: 0.3rem;
  vertical-align: middle;
  font-size: var(--normal-font-size);
}

.teams {
  text-align: left;
  line-height: 1.6;
}

.teams span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
}

.bet-btn {
  background: #28a745;
      color: white;
      border: none;
      padding: 0.6rem 2.5rem;
      font-size: 1rem;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s;
}

.bet-btn:hover {
  background-color: var(--first-color-alt);
}

.bet-btn2 {
  background-color: var(--first-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 0.3rem;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}
.score-tip {
  text-align: right;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-color);
}

.tip {
  color: var(--first-color);
  font-weight: bold;
}
@media screen and (max-width: 576px) {
  .container {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}


/* Hide watermark on small screens for clarity */
@media screen and (max-width: 480px) {
  .card::before {
    display: none;
  }
}
/*modal*/
     .ticket-button {
      background-color: #fff;
      border: 2px solid #000;
      color: #000;
      padding: 1px 5px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .ticket-button:hover {
      background-color: #f0f0f0;
    }

    /* Modal wrapper */
  .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding-top: 5rem; /* slightly more space from top */
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  max-height: 80vh;
  width: 90%;
  max-width: 600px;
  overflow-y: auto;
  position: relative;
  transition: margin-top 0.3s ease;
}

    .modal-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 10px;
      color: #000;
    }

    .modal-text {
      font-size: 15px;
      margin-bottom: 20px;
      color: #333;
    }

    .close-btn {
      position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
    }

    @media screen and (max-width: 480px) {
      .modal-content {
        width: 90%;
        padding: 18px;
      }

      .modal-title {
        font-size: 18px;
      }

      .modal-text {
        font-size: 14px;
      }
    }
    /* Animation keyframes */
@keyframes modalFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal content animation */
.modal-content {
  animation: modalFadeSlide 0.4s ease-out;
}
