/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width:100%;
}

/* Viewport settings for responsive design */
html {
  font-size: 100%; /* 16px is default */
}

html, body {
  height: 100%; /* Make sure html and body cover full height of the viewport */
}

.navbarHeader {
  width:100%;
}

.navbar {
  height: auto;
  width: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 5px 15px; 
  z-index: 10;
  justify-content: center;  
  background-color: #ffc107;
  border-bottom: 0.2mm solid rgb(0,0,0);
}

.navbar-nav {
  display: flex;
  justify-content: none;
  width: 100%;
}

.nav-item {
  text-align: center;  
  padding: 0 10px; 
}

.nav-link {
/*   color: #ffffff !important;   */
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.25rem; 
}

.nav-link:hover {
  color: #ff6600 !important;  
}

.navbar-toggler {
  border: none; 
  color: #fff; 
}

.navbar-toggler-icon {
  width: 3rem;
  height: 3rem;
}

.search-bar {
  align-items: right;
}

.homePageImage {
  display: flex; 
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width: auto; 
  max-width: 100%;
  height: auto;
}

/* General styles */
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  -ms-flex: 1;
  flex: 1; 
  display: flex;
  -ms-flex-direction: column; 
  flex-direction: column;
  align-items: center;
}

/* Main content styles */
main {
  display: flex;
  -ms-flex-direction: column; 
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  width: 100%; 
/*   margin-top: 5px; 
  padding: 10px;  */
}

h1, h2, h3, h4, h5, h6 p {
  padding: 10px 10px;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: sans-serif;
  font-weight: 1000;
}
h1 {
  font-size: 3.4375rem; /* 55px */
  color: #000000;
}

h2 {
  font-size: 2.8125rem; /* 45px */
  color: #000000;
  text-decoration: underline;
}

h3 {
  font-size: 1.5625rem; /* 25px */
  color: #000000;
  text-decoration: underline;
}

h4 {
  font-size: 1rem; 
  color: #000000;
  text-decoration: normal;
}

p {
  margin-bottom: 5px;
  padding: 0 10px 5px 25px;
}

/*Home Page*/
.usernameInput {
  margin-bottom: 1.5rem;
}

/*News and Analysis Settings*/
.col-md-4 a, .col-md-3 a {
  color: #000000; /* Black text */
  text-decoration: none; /* Removes underline from links */
}

/*News and Analysis Settings*/
.col-md-4 a:hover, .col-md-3 a:hover {
  text-decoration: underline; /* Adds underline on hover for better user interaction */
}

/*News and Analysis Settings*/
.col-md-4 article {
  font-family: 'Times New Roman', serif; /* Common newspaper-like serif font */
  font-size: 20px; /* Adjust size as needed */
}

/*News and Analysis Settings*/
.col-md-3 .news-list-group-item {
  font-family: 'Times New Roman', serif; /* Common newspaper-like serif font */
  font-size: 18px; 
  margin-left: 1rem;
}

/*News and Analysis Settings*/
.col-md-4 h3, .col-md-3 h3 {
  font-family: Arial, sans-serif; 
  font-size: 18px; 
/*   margin-top: 1.5rem; */
}

/*News and Analysis Settings*/
.mb-3 {
  margin-bottom: 0rem !important;
}

/*News and Analysis Settings*/
.subArticleImage {
  margin-top: 1.5rem;
}

/*News and Analysis Settings*/
h3.latestNews{
  margin-bottom: 1rem;
  padding: 0;
}

/*News and Analysis Settings*/
.list-group-flush {
  border-radius: 0;
  gap: 1rem;
}

/*News and Analysis Settings*/
.bannerImage {
  height: 15%;
  width: 100%;
}

/*News and Analysis Settings*/
.bannerImagePicture {
  height: 100%;
  width:100%;
}

/*News and Analysis Settings*/
.article-main-image {
  float: left;
  margin-top: 1rem;
  width: 30%; 
  margin-right: 15px; 
  margin-bottom: 15px; 
}

/*News and Analysis Settings*/
.articleTitleSection {
  width: 30%; /* Adjust width as needed */
  margin-right: 15px; /* Add space between the image and the text */
  margin-bottom: 15px; /* Add space below the image */
}

/*News and Analysis Settings*/
.articleTitle {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding-top: 15px; 
}

.newsArticleContainer{
  flex-wrap: wrap;
}

.articleContentContainer {
  overflow: hidden;
}

.advertisementSpace {
  background-color: #999999;
  width: 100%;
  margin-bottom: 0.25rem;
}

.advertisementText {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0px;
}

.adImage {
  width: 90% !important; 
  height: 18rem;
  margin-top:0px;
  margin-bottom: 15px;
}

/*Advertisement video settings*/
.ratio {
  min-height: auto; 
}

#leagueInfo {
  display: flex; /* Use flexbox to center the content */
  -ms-flex-direction: column;
  flex-direction: column;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

#rosterInfoSection {
  margin-bottom: 60px; /* Adjust this value based on your footer's height */
}

#rosterInfoSection h2 {
  text-align: center; /* Center align the h2 heading within the section */
}

.card-body {
  width: 50rem;
  max-width: 100%;
}

.image-container {
  display: flex; /* Use flexbox to center the content */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width: 100%; /* Take full width of the container */
/*   max-width: 400px;  */
  height: auto; /* Height will be set automatically based on the width */
}

.image-container img {
  max-width: 100%; /* Make the image max out at the container's width */
  height: auto; /* Keep the aspect ratio */
  display: block; /* Removes any extra space below the image */
  margin: auto; /* This will center the image in the container if it's smaller than the container */
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.input-container {
  text-align: center;
  margin-top: 20px;
}

/* Table styles */
.table-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  width: 100%; /* Full width */
  margin-bottom: 20px; /* Space below the table */
}

table {
  width: 100%; /* Table width as needed */
  border-collapse: collapse; /* Collapse borders for a cleaner look */
  table-layout: auto; /* Allow table to adjust width */
}

/* Styles for the Roster Printout Table */
.roster-table {
  width: 100%; /* Full width of the container */
  table-layout: fixed; /* Fixed table layout */
  border-collapse: collapse; /* Collapse borders for a cleaner look */
}

.roster-table th, .roster-table td {
  text-align: center; /* Center-align text */
  border: 1px solid #ddd; /* Add a light border for clarity */
  padding: 8px; /* Padding for spacing */
}

/* Header styling */
.roster-table th {
  background-color: #f4f4f4; /* Light grey background for headers */
  color: black; /* Text color for headers */
}

.position-average-tile {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px;
  display: inline-block;
  width: 150px; 
  text-align: center;
}

#qbComparisonContainer, #rbComparisonContainer {
  display: flex !important;
  align-items: flex-start;
  -ms-flex-direction: column;
  width: 100%;
  gap: 20px;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

.team-qb-comparison, .team-rb-comparison {
  flex-basis: 45%; /* Each tile takes up roughly half the container width */
  width: 100%; /* Adjust as necessary */
  margin: 10px auto; /* Add some space around each tile and center it horizontally */
  text-align: center; /* Center-align the text inside the tile */
  padding: 20px;
}

.qb-tile, .rb-tile {
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 4px;
}

.tooltip {
  position: relative;
  display: inline-block;
  opacity: 100;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  max-width: 1000px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px; /* Adjust margin-left to ensure the tooltip is centered */
  font-size: larger; /* Make text larger */
  white-space: normal; /* Allow text wrapping */
  overflow-wrap: normal; /*Ensure long words do not overflow */
}

.tooltip:hover .tooltiptext,
.tooltip .tooltiptext.show {
  visibility: visible;
}

#chartContainer {
  width: 1200px;
  height: 600px;
  max-width: 2000px; 
  max-height: 1000px;
  margin: auto; 
}

.circle {
  width: 50px;
  height: 50px;
  background-color: #fffa71f3;
  border-radius: 50%;
  color: rgb(0, 0, 0);
  text-align: center;
  line-height: 50px; /* Center text vertically */
  cursor: pointer;
  margin: 10px;
  display: inline-block;
}

/* Add hover effect for circles */
.circle:hover {
  background-color: #999999;
}

#circleButtons {
/*   display: flex !important; */ /* Use flexbox to center the content */
  display: flex;
  margin: 10px;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;  
}

#dropdownContainer {
  display: flex;
  flex-direction: row;       /* side-by-side instead of stacked */
  justify-content: center;   /* center the row in its parent */
  gap: 1rem;                 /* space between the two dropdowns */
  flex-wrap: wrap;           /* wrap on narrow screens */
  margin-bottom: 1rem;
}

#dropdownContainer select {
  width: 40%;       /* or whatever “normal” width you prefer */
  max-width: 100%;    /* never overflow their parent */
}

.leagueEntryCard {
  margin: 1rem;
  max-width: 100%;
}

.carousel-item img {
  margin: auto; /* Center align the image */
  width: 50%; /* Adjust based on your preference */
  margin-top:0px;
  margin-bottom: 30px;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: #fff; /* White text color */
  border-radius: 10px; /* Rounded corners */
  padding: 20px; /* Add some padding */
}

.carousel-caption h5 {
  font-size: 24px; /* Larger text for the name */
  margin-bottom: 10px; /* Space between name and description */
}

.carousel-caption p {
  font-size: 16px; /* Smaller text for the description/subtitle */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black; /* Change the color to improve visibility */
    border-radius: 50%; /* Circular shape */
    padding: 10px; /* Larger clickable area */
}

.carousel-indicators [data-bs-target] {
  background-color: #000; /* Change the color to something visible */
  width: 15px; /* Make the buttons larger */
  height: 15px; /* Maintain aspect ratio */
  border-radius: 50%; /* Circular shape */
}

.pricing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2rem;
  margin-top: 20px;
  margin-bottom: 100px;
}

.pricing-plan {
  -ms-flex: 1;
  flex: 1;
  max-width: 400px;
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 5px;
  text-align: center;
}

.plan-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  margin-bottom: 20px;
}

.plan-button {
  padding: 10px;
  background-color:#ff6600;
  color: #fff;
  border-radius: 5px;
  border: none;
}

.btn-orange {
  background-color: #ff6600;
  border-color: #ff6600;
  color: #fff;
}

.btn-orange:hover {
  background-color: #e65c00; /* Darker shade for hover effect, adjust as needed */
  border-color: #e65c00;
}

.toast {
  background-color: #ffffff; /* Sets the background to solid white */
}

.toast-image {
  width: 50px;
  height: auto;
  object-fit: cover; /* This property ensures the image covers the area without being stretched. */
}

/* Footer styles */
footer {
  position: relative; 
  bottom: 0; 
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 5px; 
  background-color: #ffc107;
  z-index: 90;
  border-top: .2mm solid rgb(0,0,0);
}

.m-footer--brand-logo {
  align-items: left;
}

.footerContent {
  align-items: center;
  width: 100%;
}

/* Media Queries for Responsive Design */
@media (max-width: 1250px) {
  .pricing-container {
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
  }
}

@media (max-width: 991px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto; 
  }

  .navbar-toggler {
    margin-right: 15px; 
  }

  /* Ensuring the collapsed content is also styled correctly */
  .navbar-collapse {
    margin-top: .5rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #ffc107; /* Ensure consistent background color */
  }

  /* Update link padding for better touch area */
  .nav-link {
    padding: .8rem 1rem; 
  }

  .homePageImage {
    display: flex; 
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: auto; 
    max-width: 100%;
    height: auto;
    margin-top:100px;
  }

  .ratio {
    margin-top: 125px; 
  }
}

@media (max-width: 768px) {
  /* Adjustments for tablet screens and smaller */

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .homePageImage {
    display: flex; 
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: auto; 
    max-width: 100%;
    height: auto;
    margin-top:100px;
  }

  .image-container {
    /* Remove the margin-top if you don't need to push the container down */
    display: flex; /* Use flexbox to center the content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 100%; /* Take full width of the container */
    max-width: 500px; /* Maximum width of the image container */
    height: auto; /* Height will be set automatically based on the width */
  }
  
  .image-container img {
    max-width: 100%; /* Make the image max out at the container's width */
    height: auto; /* Keep the aspect ratio */
    display: block; /* Removes any extra space below the image */
    margin-top: 10rem; /* This will center the image in the container if it's smaller than the container */
  }

  .article-main-image {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .articleTitle {
    padding-top: 0;
  }

  .team-qb-comparison {
    width: 90%; /* Increase width on smaller screens */
    padding: 5px; /* Adjust padding if needed */
    flex-basis: 100%; /* Full width on smaller screens */
  }

  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    max-width: 1000px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px; /* Adjust margin-left to ensure the tooltip is centered */
    font-size: larger; /* Make text larger */
    white-space: normal; /* Allow text wrapping */
    overflow-wrap: normal; /*Ensure long words do not overflow */
  }
  
  .tooltip:hover .tooltiptext,
  .tooltip .tooltiptext.show {
    visibility: visible;
  }

  footer {
    height: auto; 
    padding: 5px; 
    font-size: 0.9rem; 
  }  
  
}

@media (max-width: 480px) {
  /* Adjustments for mobile screens */

  .navbar-collapse {
    justify-content: center;
  }

  .homePageImage {
    display: flex; 
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: auto; 
    max-width: 100%;
    height: auto;
  }

  /* Adjust layout for smaller screens */
  .input-container, .table-container, .image-container {
    max-width: 100%; /* Use more width for these containers */
    padding: 0 2.5%; /* Add padding */
  }

  .table-responsive {
    overflow-x: auto;
  }

  /* Reduce font size in table for smaller screens */
  table, th, td {
    padding: 4px;
    font-size: 0.875rem; /* Smaller font size */
  }

  th, td {
    padding: 4px; /* Reduce padding for smaller screens */
    text-align: left; /* left-align text */
  }

  .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  .table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
  }

  .table th {
    background-color: #f4f4f4;
  }

  .table-container {
    overflow-x: auto;
/*     width: 100%; */
    margin-bottom: 20px;
  }

  table {
    max-width: 100%; /* Ensure table does not exceed the container width */
    min-width: 0; /* Remove any minimum width */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
  }

  #dropdownContainer {
    -ms-flex-direction: column; /*For Internet Explorer version 10 or earlier*/
    flex-direction: column;
  }

  .container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .dropdown-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .teamDropdown {
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
  }
  
  .circle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .circle-btn:hover {
    background-color: #0056b3;
  }
  
  .comparison-container {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #qbComparisonContainer {
    /* Adjust the container's padding or any other properties for small screens */
    padding: 10px;
  }

  .team-qb-comparison {
    /* Make the tiles take more width on small screens for better readability */
    width: 100%;
    margin: 5px auto; /* Reduce margin */
    padding: 5px; /* Adjust padding */
    font-size: 0.9rem; /* Adjust font size if needed */
  }  

  .qb-tile {
    /* Adjust any specific styles for the content inside the tiles */
    padding: 5px;
  }

  /* If you have headings, paragraphs, or other elements inside the tiles */
  .team-qb-comparison h4, .team-qb-comparison p {
    font-size: 0.8rem; /* Smaller text for smaller screens */
    flex-basis: 100%; /* Full width on smaller screens */
  }

  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    max-width: 1000px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px; /* Adjust margin-left to ensure the tooltip is centered */
    font-size: larger; /* Make text larger */
    white-space: normal; /* Allow text wrapping */
    overflow-wrap: normal; /*Ensure long words do not overflow */
  }
  
  .tooltip:hover .tooltiptext,
  .tooltip .tooltiptext.show {
    visibility: visible;
  }

  /* Responsive chart for mobile */
  #chartContainer {
    height: auto; /* Adjust height to auto for flexibility */
    padding: 0 10px; /* Optional: Add padding to give some space around the chart */
  }

  /* Ensure the canvas element is responsive */
  #myChart {
    width: 100%;
    height: 100%;
    max-width: 100%; /* Limit the maximum width */
  }  

  .carousel-caption {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: #fff; /* White text color */
    padding: 10px; /* Some padding */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Centered text */
    max-width: 90%; /* Limit the width and ensure some padding */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust horizontal position */
    bottom: 20px; /* Position from the bottom */
  }

  .carousel-caption h5 {
    font-size: .7rem; /* Larger text for the name */
    margin-bottom: 2px; /* Space between name and description */
  }

  .carousel-caption p {
    font-size: .6rem; /* Smaller text for the description/subtitle */
  }

  .toast {
    position: fixed; /* Fix position to the viewport */
    left: 0; /* Align left edge with viewport */
    right: 0; /* Align right edge with viewport */
    margin-left: auto; /* Center horizontally with auto margins */
    margin-right: auto; /* Center horizontally with auto margins */
    width: 100%; /* Full width to ensure responsiveness */
    max-width: 320px; /* Max width to avoid overly wide toasts */
    bottom: 10px; /* Distance from the bottom */
  }

  footer {
    height: auto; 
    padding: 3px; 
    font-size: 0.75rem; 
  }  
  
}



