body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #fff;
}

#header {
    height: 60px;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    /* position: relative; */

}

/* LEFT and RIGHT groups */
#header-left, #header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#header-left #fullscreenBtn, #header-right #infoBtn {
  display: flex;              /* makes button content a flex container */
  justify-content: center;    /* horizontal centering */
  align-items: center;        /* vertical centering */
  background-color: #1f1f1f;
  border-radius: 4px;
  border: none;               /* cleaner than border-color */
  cursor: pointer;
  margin: 0;
  padding: 4px;               /* optional: adds some breathing room */
}

/* CENTERED TITLE */
#header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.1;
  background-color: #1f1f1f;
  padding: 2px 8px;
  border-radius: 6px;
}

#header-center h1 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1;
}

#header-center p {
  margin: 1px 35px;
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1;
  background-color: rgb(211, 211, 211);
  color: black;
}
#header .logo img {
    width: 18px;
    height: 40px;
}

#header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

#info-ul ul {
  list-style: none;
  padding-left: 0;
}

#openSupportModal {
    background-color: #508043; /* #0070ba */
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.5s;
}

#openSupportModal:hover {
    background-color: #3a5a30; /* #005a8b */
}

#openSupportModal span {
    font-weight: bold;
}

/* Modal base */
#supportModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }

#support-shop{
  background-color: #508043;
  color: white;
  padding: 0.4em 0.8em;
  border-radius: 8px;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.5s;
}

#support-shop:hover {
    background-color: #3a5a30; /* #005a8b */
}
  

  /* Modal Background */
.modal {
  display: block; /* Hidden by default */
  position: fixed;
  z-index: 2000; /* Above map and header */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
}
  
.modal-content {
  background-color: #1e1e1e;
  margin: 10vh auto;
  padding: 20px;
  border-radius: 10px;
  width: 70vw;
  max-height: 70vh;
  max-width: 500px;
  color: white;
  position: relative;
  overflow-y: auto;      /* enable vertical scroll */
}

  /* Close Button */
.modal .close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

  .modal ul {
    padding-left: 1.2rem;
  }

  .modal ul li {
    margin-bottom: 0.5rem;
  }
  
  #supportCloseBtn {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }
  
  .profile {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal center */
  text-align: center;  /* center text under image */
  padding: 1rem;
}

  .profile img {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
  }
  
  .profile h2 {
    margin: 0 0 10px;
  }
  
  .paypal-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #0070ba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }
  
  .paypal-link:hover {
    background-color: #005a8b;
  }
  
  .thanks {
    margin-top: 20px;
  }
  
  .thanks ul {
    list-style: none;
    padding: 0;
  }
  
  .thanks li {
    padding: 5px 0;
  }
  

#map {
    height: calc(100vh - 60px); /* Subtract the header height from 100vh */
    width: 100%;
    margin-top: 60px; /* Push the map below the header */
}
@media only screen and (max-width: 800px) {
  .leaflet-control-zoom {
    display: none !important;
  }
}


#searchBar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    font-size: 16px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}


#modalTeamHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* spacing between logo and name */
  margin-bottom: 10px;
}

.team-logo {
  width: 40px;
  height: auto;
}

.team-name {
  margin: 0;
  font-size: 1.5rem;
}


/* Base modal styles */
#teamModal {
    display: none;
    position: fixed;
    background-color: #1a1a1a;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 1rem;
  }


  #playerListContainer div{
    transition: 0.5s;
  }

  #playerListContainer div:hover{
    background-color: #202020;
    cursor: pointer ;
  }
  
  
  /* Mobile: 60vh from bottom */
  @media (max-width: 768px) {
    #teamModal {
      bottom: 0 ;
      left: 0 ; 
      right: 0 ;
      height: 60vh ;
      /* width: 100% ; */
      transform: translateY(0) ;
      padding: 1rem ;
      border-radius: 16px 16px 0px 0px;
    }
  }
  
  /* Desktop: Centered 50vw */
  @media (min-width: 769px) {
    #teamModal {
      height: 100%;
      left: 0;
      top: 0;
      width: 50vw;
      padding-bottom: 4rem;
    }
  }

  #playerListContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* spacing between players */
  justify-content: flex-start;
}
  
#modalCloseBtn {
  position: absolute;
  background-color: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}


  /* PLAYER POPUP */
  .popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1999;
}

.popup {
  background: rgb(61, 61, 61);
  padding: 20px;
  padding-bottom: 40px;
  border-radius: 8px;
  width: 70vw;
  max-width: 600px;
  max-height: 80%;
  text-align: center;
  position: relative;
  overflow-y: auto;
}

#popupPlayerInfo{
  display: inline-flex;
  align-items: center;
  gap: 6px; /* optional space between text and flag */
  margin-bottom: 10px;
}
.popup #popupPlayerFlag{
  display: inline-block;
  vertical-align: middle;
}

.popup #popupPlayerImage {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #1e1e1e;
}

.stats-table td {
  padding: 4px 8px;
  border: 1px solid #ccc;
}




/* RANDOM TEAM BUTTON */
#randomTeamDiv {
  position: fixed;
  top: 80px;
  right: 20px; /* or 0 if you want it flush to the edge */
  z-index: 1000; /* make sure it's above the Leaflet map */
}


#randomTeamButton {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgb(19, 19, 19);
  border: none;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#randomTeamButton:hover {
  background-color: #333;
}

#basketballIcon {
  width: 28px;
  height: 28px;
  transition: transform 0.6s ease;
}

#basketballIcon.rotate {
  transform: rotate(360deg);
}
