:root {
  --background-color: #111C26;
  --primary-color: #DA00BA;
  --text-color: #ffffff;
  --highlight-color: #E1E8ED;
  --banner-border: 5px solid white;
  --font-family: 'Roboto', sans-serif;
  --header-font-family: 'Sofia Sans Extra Condensed', sans-serif;
}

body,
html {
  font-family: 'Play', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.main-content,
.content {
  padding: 20px;
  height: 100%;
}

.content {
  color: var(--text-color);
  text-align: center;
}

.content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.content p {
  font-size: 1.5rem;
  line-height: 1.6;
}

header,
main {
  margin: 0 auto;
  width: 95%;
  position: relative;
}

.banner {
  position: relative;
  width: 100%;
}

.banner img {
  width: 100%;
  height: auto;
}

.cover-art {
  position: absolute;
  height: 80%;
  width: auto;
  top: 20px;
  left: 20px;
  border: var(--banner-border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1;
}

.cover-art img {
  height: 100%;
  object-fit: cover;
}

nav {
  position: relative;
  z-index: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: #4267B2;
  /* Center the links horizontally */
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  padding: 15px 0;
  display: block;
}

/* Rules Container */
.rules-container {
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 95%;
}

.rules-container h1,
.rules-container h2,
.rules-container h3 {
  font-family: var(--header-font-family);
  color: var(--primary-color);
}

.rules-container h1 {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.rules-container h2 {
  font-size: 2.5rem;
  margin: 30px 0 15px;
}

.rules-container h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.rules-container p {
  font-family: var(--header-font-family);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--highlight-color);
  margin-bottom: 20px;
}

.rules-container ol {
  list-style-type: none !important;
  padding-left: 0;
  margin-left: 0;
  color: white;
}

.rules-container ol li {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.rules-container ul {
  color: var(--primary-color);
  list-style-type: none;
}

.rules-container b {
color: white;
}

.rules-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.rules-logo-container img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  display: inline-block;
}

/* Tabs Container */
.rules-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 15px; /* Add space between tabs */
}

/* Individual Tab Styling */
.rules-tabs .tab {
  text-decoration: none;
  padding: 10px 20px;
  font-family: var(--header-font-family); /* Matches existing font */
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color); /* Use existing primary color */
  border: 2px solid var(--primary-color); /* Matches theme */
  border-radius: 5px;
  background-color: var(--background-color); /* Use background color */
  transition: all 0.3s ease-in-out;
}

/* Hover Effect for Tabs */
.rules-tabs .tab:hover {
  background-color: var(--highlight-color); /* Use highlight color for hover */
  color: var(--background-color); /* Invert text color */
  border-color: var(--highlight-color);
}

/* Active Tab Styling */
.rules-tabs .tab.active {
  background-color: var(--primary-color);
  color: var(--background-color); /* Text contrasts with primary */
  border-color: var(--primary-color);
  cursor: default; /* Indicates it's not clickable */
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
  .rules-tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .rules-tabs .tab {
    width: 80%;
    text-align: center;
  }
}


.recent-matches {
  margin-bottom: 20px;
}

.recent-matches-title {
  color: #ffffff;
  /* White color for the title */
  text-align: center;
  /* Center the title */
}

.team-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.team img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  /* Make it a square, change to 50% for a circle */
  margin: 0 auto;
}

.vs {
  color: #ffffff;
  /* White color for the vs */
  font-size: 1.5rem;
  margin: 0 20px;
}


.twitch-stream {
  text-align: center;
  color: #ffffff;
  margin-top: 20px;
}

.twitch-stream h2,
.twitch-stream h3 {
  margin: 10px 0;
  color: #ffffff;
  /* Ensure text is white */
  text-align: center;
}

.twitch-stream iframe {
  width: 100%;
  /* Make iframe fit its container */
  max-width: 600px;
  /* Set maximum width */
  height: 400px;
  /* Set height */
}

.winners-table {
  width: 100%;
  margin-top: 20px;
  color: #ffffff;
  text-align: center;
}

.crown-logo {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
}

.winners-title {
  color: #D103B8;
  /* Color for h2 */
  font-size: 2rem;
  margin-bottom: 5px;
}

.season-number {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffffff;
  /* Ensure text is white */
}

.winner {
  display: inline-block;
  margin: 20px;
  text-align: center;
}

.winner img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;

}

.vod-item {
    background-color: #0D1924;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.vod-item:hover {
    transform: scale(1.05);
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;

}

.stream-item {
    background-color: #0D1924;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stream-item:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.info {
    display: flex;
    padding: 10px;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.details {
    flex: 1;
}

.title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 0 0;
    color: #ffffff;
}

.username {
    font-size: 1em;
    margin: 5px 0 0 0;
    color: #ffffff;

}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  color: white;
  text-align: center;
}

.post {
  background-color: #0D1924;
  padding: 15px;
  border-radius: 8px;
  min-width: 300px;
}

.map-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.map-grid-item {
    background-color: #0D1924;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
#myChart, #totalMatchesChart {
  width: 100%;
  height: 200px; /* Set the height to 200px */
}


.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* Small Display */
@media (max-width: 992px) {

  .banner {

  }

  .banner img {
    height: 200px; /* Ensures the banner is at least 70px high */
    overflow: hidden; /* This will hide the overflow of the image */
  }

  .main-content,
  .cover-art {
    margin-left: 0px;
  }

  .cover-art {
  position: absolute;
  max-height:170px;
  top: 5px;
  left: 5px;
  border: var(--banner-border);
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
  }

  .cover-art img {
  width: 100%; /* Ensure the image stretches to fill the container */ 
  height: 100%; /* Ensure the image stretches to fill the container */ 
  object-fit: cover; /* Crops and centers the image */
  }

  nav ul {
    display: none; /* Hide the menu items */
    flex-direction: column;
  }

  nav ul.show {
    display: flex; /* Show the menu items when toggled */
  }

  nav ul li {
    margin: 5px 0;
  }

  nav ul li a {
    font-size: 16px;
    padding: 10px 20px; /* Increased padding */
  }

  .menu-icon {
    display: block; /* Show the menu icon */
    font-size: 24px;
    cursor: pointer;
    background-color: #4267B2;
    color: white;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    padding: 0px;
  }
}


/* Small Display */
@media (max-width: 768px) {

  .banner {

  }

  .banner img {
    height: 130px; /* Ensures the banner is at least 70px high */
    overflow: hidden; /* This will hide the overflow of the image */
  }

  .main-content,
  .cover-art {
    margin-left: 0px;
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .cover-art {
  position: absolute;
  max-height:115px;
  top: 5px;
  left: 5px;
  border: var(--banner-border);
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
  }

  .cover-art img {
  width: 100%; /* Ensure the image stretches to fill the container */ 
  height: 100%; /* Ensure the image stretches to fill the container */ 
  object-fit: cover; /* Crops and centers the image */
  }

  nav ul {
    display: none; /* Hide the menu items */
    flex-direction: column;
  }

  nav ul.show {
    display: flex; /* Show the menu items when toggled */
  }

  nav ul li {
    margin: 5px 0;
  }

  nav ul li a {
    font-size: 16px;
    padding: 10px 20px; /* Increased padding */
  }

  .menu-icon {
    display: block; /* Show the menu icon */
    font-size: 24px;
    cursor: pointer;
  }
  .timeline {
    grid-template-columns: repeat(1, minmax(300px, 1fr));
    padding: 0px;
  }

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0px;
}

header, main {
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.main-content, .content {
  padding: 5px 20px;
  height: 100%;
}

}

@media (max-width: 576px) {

  .banner img {
    height: 70px; /* Ensures the banner is at least 70px high */
    overflow: hidden; /* This will hide the overflow of the image */
  }

  .main-content,
  .cover-art {
    margin-left: 0px;
    margin-left: 0px;
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .cover-art {
  position: absolute;
  max-height:50px;
  top: 5px;
  left: 5px;
  border: var(--banner-border);
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
  }

  .cover-art img {
  width: 100%; /* Ensure the image stretches to fill the container */ 
  height: 100%; /* Ensure the image stretches to fill the container */ 
  object-fit: cover; /* Crops and centers the image */
  }

  .post {
    background-color: #0D1924;
    padding: 0;
    border-radius: 8px;
    min-width: 300px;
    margin-top: 5px;
}

  nav ul {
    display: none; /* Hide the menu items */
    flex-direction: column;
  }

  nav ul.show {
    display: flex; /* Show the menu items when toggled */
  }

  nav ul li {
    margin: 5px 0;
  }

  nav ul li a {
    font-size: 16px;
    padding: 10px 20px; /* Increased padding */
  }

  .menu-icon {
    display: block; /* Show the menu icon */
    font-size: 24px;
    cursor: pointer;
  }
  .timeline {
    grid-template-columns: repeat(1, minmax(300px, 1fr));
    padding: 0px;
  }

  .rules-container {
    margin: 0 auto;
    box-sizing: border-box;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
}

.profile-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.grid-container {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
}

.map-stats {
  width: 35%;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(108, 0, 255, 0.3);
  color: #fff;
  text-align: center;
}

.player-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  margin-top: 5px;
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(108, 0, 255, 0.2);
  gap: 7px;
}

}



