
section {
  opacity: 0; /* Hide sections initially */
  transform: translateY(50px); /* Move sections down initially */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When sections are in view */
.in-view {
  opacity: 1;
  transform: translateY(0); /* Bring sections up to their natural position */
}

body {
  margin: 0;
  font-family: Orbitron, sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
              url('images/gambling-pattern.jpg') repeat;
  background-size: contain;
  color: #fff;
}

header {
  background-color: #1a1a1a;
  padding: 1rem;
  text-align: center;
}

.slogan {
  color: #fff; /* White text */
  font-size: 1rem; /* Slightly smaller font size */
  text-align: center; /* Center the slogan */
  margin-top: 0.5rem; /* Space between header and slogan */
  font-weight: 300; /* Lighter weight for a subtle effect */
  font-family: Orbitron, sans-serif;
}

.logo {
  height: 60px;
}

main {
  padding: 2rem;
}

section {
  margin-bottom: 2rem;
}


footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 1rem;
  color: #777;
}

/* League Table Styles */
#league {
 padding: 100px;
  margin-top: 100px;
  margin-bottom: 150px;
  background-color: #121212;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1);
  height: auto;
}

#league h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #ffffff;
  border-bottom: 2px solid #ff0000;
  padding-bottom: 50px;
}

.league-section {
  padding: 60px 40px;
  background-color: #111;
  color: white;
  text-align: center;
  overflow: visible;
  height: auto;
  flex-grow: 1;
}

.league-table-container {
  overflow-x: visible;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  margin-top: 30px;
  height: auto;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.league-table th,
.league-table td {
  padding: 15px 10px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.league-table thead {
  background-color: #2a2a2a;
  color: #ff5555;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.league-table tbody tr:hover {
  background-color: rgba(255, 85, 85, 0.1);
  transition: 0.3s ease;
}

.team-logo {
  width: 34px;
  height: 34px;
}

.card {
  background-color: #1a1a1a;
  border: 1px solid #ff0000;
  padding: 1.5rem;
  margin-bottom: 2rem; /* Increased space between each card */
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.card p {
  color: #fff;
  font-size: 2rem;
  margin-top: 1rem;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

#schedule .card {
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3),
              0 0 20px rgba(255, 0, 0, 0.2),
              0 0 30px rgba(255, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease;
}

/* Optional: enhance effect on hover */
#schedule .card:hover {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6),
              0 0 40px rgba(255, 0, 0, 0.4),
              0 0 60px rgba(255, 0, 0, 0.2);
  transform: scale(1.03);
}

#schedule {
  padding: 3rem 5%; /* Add padding around the section */
  margin-top: 2rem;
  height:auto;
}

#schedule h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem; /* Space below the title */
  text-align: center;
  height:auto;
}

#schedule .card img {
  transition: transform 0.3s ease;
}

#schedule .card img:hover {
  transform: scale(1.05);
}

#players {
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3),
              0 0 20px rgba(255, 0, 0, 0.2),
              0 0 30px rgba(255, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

.player-container {
	margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start; /* Ensure cards align to the top */
}

.player-card {
  flex: 1 1 250px; /* Each card takes up 250px of space initially */
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
  padding: 1rem;
  max-height: 600px; /* Set a max height for the card */
  overflow: hidden;
  display: flex; /* Ensure flexbox works for card layout */
  margin-bottom: 1rem; /* Space between each card */
}

.player-card img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
}

.player-description {
  display: none;
  margin-top: 0.5rem;
  color: #ccc;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.player-card.active {
  transform: scale(1.1); /* Slightly enlarge the card */
  max-height: 700px; /* Increase max height when active */
  padding: 2rem; /* Add some padding when expanded */
}

.player-card.active .player-description {
  display: block;
  opacity: 1; /* Fade in the text */
  transform: translateY(0); /* Slide up the text */
}

.player-card.active img {
  transform: scale(1.05); /* Slightly enlarge the image */
}

/* Ensure the container is responsive */
@media (max-width: 768px) {
  .player-card {
    flex: 1 1 100%; /* On smaller screens, make each profile take the full width */
  }
}

.player-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  cursor: pointer;
}

/* Navbar Styling */
header {
  background-color: #1a1a1a; /* Dark background color for the navbar */
  padding: 20px 0; /* Adds padding to the top and bottom */
  position: sticky; /* Make the navbar stick to the top when scrolling */
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a shadow effect under the navbar */
}

/* Container for logo and navbar items */
.navbar-container {
  display: flex;
  justify-content: space-between; /* Place the logo on the left and navigation on the right */
  align-items: center; /* Vertically align items in the center */
  padding: 0 20px; /* Padding on left and right */
}

/* Logo Styling */
.logo {
  height: 70px; /* Set the logo height */
  width: auto; /* Maintain aspect ratio */
}

/* Title Styling */
header h1 {
  color: #ff0000; /* Red color for the team name */
  font-size: 2rem;
  margin-left: 10px; /* Add a little space between the logo and the title */
  display: inline-block; /* Align the title with the logo */
  vertical-align: middle; /* Vertically align with the logo */
}

/* Navbar Menu */
nav {
  text-align: center; /* Center the navigation links */
}

nav ul {
  list-style: none; /* Remove bullets from the list */
  padding: 0;
  margin: 0;
  display: inline-flex; /* Display the menu items in a row */
  gap: 20px; /* Add space between the items */
}

nav ul li {
  display: inline-block; /* Make list items inline */
}

nav ul li a {
  text-decoration: none; /* Remove the underline from links */
  color: #fff; /* White text color */
  font-size: 1.2rem;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
  border-radius: 5px; /* Rounded corners for the links */
}

nav ul li a:hover {
  background-color: #ff0000; /* Red background on hover */
  color: #1a1a1a; /* Dark text color on hover */
}

nav ul li a.active {
  background-color: #ff0000; /* Active link has a red background */
  color: #1a1a1a; /* Dark text color for the active link */
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
}

/* Initially hide navbar */
.nav-hidden {
  top: -80px; /* Adjust this based on your navbar height */
}

/* Show navbar on hover */
nav:hover {
  top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem; /* Reduce font size for the team name on smaller screens */
  }

  nav ul {
    display: block; /* Stack the navigation links vertically on small screens */
    text-align: left; /* Align text to the left */
  }

  nav ul li a {
    display: block; /* Make the links block elements */
    padding: 12px 20px;
  }

  .navbar-container {
    flex-direction: column; /* Stack the logo and navbar vertically on smaller screens */
    align-items: flex-start; /* Align items to the left */
  }
}

#home {
  position: relative;
  background-image: url('images/team-banner.png'); /* Make sure this path is correct */
  background-size: cover;
  background-position: center;
  height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ff0000;
  opacity: 1;
  transform: translateY(0);
}

.home-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.home-content h2 {
  color: #ff0000;
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.home-content p {
  color: #fff;
  font-size: 2.5rem;
}

/* Match Results Section */
#results {
  padding: 3rem 5%; /* Add padding around the section */
  margin-top: 2rem;
}

#results h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem; /* Space below the title */
  text-align: center;
}

#results .card {
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3),
              0 0 20px rgba(255, 0, 0, 0.2),
              0 0 30px rgba(255, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease;
}

#results .card:hover {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6),
              0 0 40px rgba(255, 0, 0, 0.4),
              0 0 60px rgba(255, 0, 0, 0.2);
  transform: scale(1.03);
}

html {
  scroll-behavior: smooth;
}

/* Match Card Layout */
.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  border: 1px solid #ff0000;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.match-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Team Layout */
.match-card .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  text-align: center;
}

.match-card .team img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Match Info in Center */
.match-card .match-info {
  text-align: center;
  width: 40%;
}

.match-card .match-info .score {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.match-card .score.win {
  color: #00ff88;
}

.match-card .score.loss {
  color: #ff5555;
}

.matches-carousel {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
}

.matches-carousel .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
}

.match-card {
  background-color: #1a1a1a;
  border: 1px solid #ff0000;
  border-radius: 10px;
  padding: 1rem;
  width: 738px;
  height: 300px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.match-card .team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.match-card .team img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.match-info {
  margin: 0.5rem 0;
}

.score {
  font-size: 1.2rem;
  font-weight: bold;
}

.score.win {
  color: #00ff00;
}

.score.loss {
  color: #ff0000;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 26, 26, 0.8);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(255, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.scroll-section {
  opacity: 0; /* Hide sections initially */
  transform: translateY(50px); /* Move sections down initially */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Transition effects */
}

/* When sections are in view */
.scroll-section.in-view {
  opacity: 1;
  transform: translateY(0); /* Bring sections up to their natural position */
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
