* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Kumbh Sans", sans-serif;
}

/* Set the page (body) background to black */
body {
  background-color: #121212;
  color: rgba(255, 255, 255, 0.87);
}

/* ==================================================
   3. Navbar Styles
================================================== */

.navbar {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #2a2a2a;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: relative;
  z-index: 1000;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 50px;
  padding-left: 50px;
}

#navbar__logo {
  background: rgba(255, 255, 255, 0.87);
  /* Deep blue → soft blue → very light blue */

  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}

.fa-gem {
  margin-right: 0.5rem;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: rgba(255, 255, 255, 0.87);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
  white-space: nowrap;
}

.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #f77062;
  color: rgba(255, 255, 255, 0.87);
}

.button:hover {
  background: #4837ff;
  transition: all 0.3s ease;
}

.navbar__links:hover {
  color: #f77062;
  transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
  .navbar__toggle {
    position: relative;
    z-index: 1002;
  }

  .navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 1;
    transition: all 0.5s ease;
    height: 50vh;
    z-index: -1;
  }

  .navbar__menu.active {
    background: #131313;
    top: 100%;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1001;
    height: 70vh;
    font-size: 1.6rem;
  }

  #navbar__logo {
    padding-left: 25px;
  }

  .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.87);
  }

  .navbar__item {
    width: 100%;
  }

  .navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }

  .navbar__btn {
    padding-bottom: 2rem;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80px;
    margin: 0;
  }

  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Main Content CSS */
.main {
  position: relative;
  overflow: hidden;
  background-image: url("../images/SupercrossBackground.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/*
.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  z-index: 0; 
}*/

.main__container {
  position: relative; /* Ensure the content is positioned relative to the .main element */
  display: flex;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  height: 72vh;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin-left: 100px;
  padding-right: 50px;
  padding-left: 50px;
}

.main__container::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/left/right/bottom: 0 */
  background: rgba(0, 0, 0, 0.6);
  z-index: -1; /* sits behind the content in this container */
}

.main__content {
  color: rgba(255, 255, 255, 0.87);
  width: 100%;
}

.main__content h1 {
  font-size: 3.9rem;
  background-color: #ff8177;
  background-image: linear-gradient(-20deg, #ffffff 0%, #ffffff 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.main__content h2 {
  font-size: 3rem;
  margin-top: 10px;
  background-color: #ff8177;
  background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.main__content p {
  margin-top: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.main__btn {
  font-size: 1rem;
  background-image: linear-gradient(to top, #f77062 0%, #fe5196 100%);
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.87);
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  transition: all 0.35s;
  outline: none;
}

.main__btn a {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.87);
  text-decoration: none;
}

.main__btn:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #4837ff;
  transition: all 0.35s;
  border-radius: 4px;
}

.main__btn:hover {
  color: rgba(255, 255, 255, 0.87);
}

.main__btn:hover:after {
  width: 100%;
}

.main__img--container {
  text-align: center;
}

#main__img {
  height: 80%;
  width: 80%;
}

.main__img--container {
  display: flex;
}

/* Featured Pool Styles */
.featured-pool-container {
  background: #1a1a1a;
  text-align: center;
  padding: 3rem 1rem;
  margin: 2rem 0;
  color: #f0f0f0;
}

.featured-pool-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.featured-pool-card {
  display: inline-block;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  max-width: 320px;
  width: 100%;
}

.featured-pool-name {
  font-size: 1.5rem;
  margin: 0;
  color: #e0e0e0;
}

.pool-tagline {
  font-size: 1rem;
  margin: 0.5rem 0 1.5rem;
  color: #bbb;
}

@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");

.pool-features {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  color: #ccc;
  text-align: left;
  display: inline-block;
}

.pool-features li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1.75rem;
  font-size: 1rem;
}

.pool-features li::before {
  content: "✗";
  font-family: "Permanent Marker", cursive;
  position: absolute;
  left: 0;
  top: 0;
  color: #e63946; /* same red as your button */
  font-size: 1.25rem;
  line-height: 1;
}

.btn-join {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #e63946; /* bold accent */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: background 0.2s ease-in-out;
}

.btn-join:hover {
  background: #c5303f;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .main__container {
    display: grid;
    grid-template-columns: auto;
    align-items: center;
    justify-self: center;
    width: 100%;
    margin: 0 auto;
    min-height: 60vh;
    height: auto;
  }

  .main__content {
    text-align: center;
    margin-bottom: 2rem;
  }

  .main__content h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .main__content h2 {
    font-size: 2.25rem;
    margin-top: 0.5rem;
  }

  .main__content p {
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }

  .main__btn {
    margin-top: 1rem;
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .main__img--container {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .main__container {
    min-height: auto;
    padding: 1.5rem 1rem;
  }
  .main__content h1 {
    font-size: 1.75rem;
    margin-top: 1.25rem;
  }
  .main__content h2 {
    font-size: 1.75rem;
    margin-top: 1rem;
  }
  .main__content p {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
  .main__btn {
    margin-top: 1.5rem;
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .main__img--container {
    display: none;
  }
}

.HowToPlaymain {
  background-image: url("../images/SupercrossBackground.avif");
  background-size: cover; /* Ensure the image covers the entire container */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

.HowToPlaymain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 50% black overlay */
  z-index: 0; /* Ensure the overlay is behind the content */
}

.HowToPlay__container {
  position: relative; /* Ensure the content is positioned relative to the .main element */
  display: flex;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  height: 90vh;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin-left: 100px;
  padding-right: 50px;
  padding-left: 50px;
}

.HowToPlay__content {
  color: #fff;
  width: 100%;
}

.HowToPlay__content h1 {
  font-size: 3.9rem;
  background-color: #ff8177;
  background-image: linear-gradient(-20deg, #ffffff 0%, #ffffff 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.HowToPlay__content h2 {
  font-size: 3rem;
  margin-top: 10px;
  background-color: #ff8177;
  background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.HowToPlay__content p {
  margin-top: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

/* Predictions Section CSS */
.prediction__container {
  color: rgba(255, 255, 255, 0.87);
  display: flex;
  flex-direction: column;
  /*grid-template-columns: 1fr 1fr;*/
  align-items: center;
  justify-content: center;
  height: auto;
  background-color: #1f1f1f;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  padding-left: 10px;
  padding-top: 40px;
  padding-right: 10px;
  padding-bottom: 40px;
  font-size: 1.5rem;
  font-weight: 500;
}

.race-info-card {
  background-color: #2a2a2a;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.race-info-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.race-info-timer {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #cfcfcf;
  margin-bottom: 0.5rem;
}

.race-info-timer .label {
  font-weight: 600;
  color: white;
  margin-right: 0.3rem;
}

.race-info-locked {
  display: none;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #aaaaaa;
  margin-top: 0.75rem;
}

/* Align labels and select boxes horizontally */
.prediction__container .form-group {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.prediction__container label {
  width: auto;
  margin-right: 20px;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  white-space: nowrap;
}

.prediction__container select {
  text-align: left;
  width: 200px; /* Set a fixed width for all select boxes */
  padding: 0.5rem;
  font-size: 1rem;
  margin-left: auto;
}

.prediction__container h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  white-space: nowrap;
  overflow: hidden;
}

.firstplace select,
.secondplace select,
.thirdplace select,
.fourthplace select,
.fifthplace select,
.sixthplace select,
.seventhplace select {
  font-size: 1rem; /* Ensure consistent font size */
  cursor: pointer;
  position: relative;
  transition: all 0.35s;
  outline: none;
  padding: 5px;
  margin-left: 0; /* Remove individual margins */
}

/* Center the submit button */
.prediction__container .submitpredictions__btn {
  display: block;
  margin: 2rem auto; /* Center horizontally with auto margins */
  padding: 14px 32px;
  font-size: 1rem;
  background-image: linear-gradient(to top, #f77062 0%, #fe5196 100%);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.87);
  cursor: pointer;
  transition: all 0.35s;
  outline: none;
}

.submitpredictions__btn:hover {
  background: #4837ff;
  transition: all 0.3s ease;
}

.error-highlight {
  border: 2px solid red;
}

.popup {
  display: none;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  color: white;
  border-radius: 5px;
  text-align: center;
  transition: opacity 1s;
}

.popup-success {
  background-color: #4caf50; /* Green background for success */
}

.popup-error {
  background-color: #f44336; /* Red background for error */
}

/* ==================================================
   Leaderboard Page Styles
================================================== */

.display_results {
  color: rgba(255, 255, 255, 0.87);
  align-items: center;
}

.results-container {
  /* This is the main container on the page */
  color: rgba(255, 255, 255, 0.87);
  background-color: #131313;
  width: 100%;
  padding: 70px 10px 160px 10px;
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 20px;
}

.results-container table {
  width: 100%;
  border-collapse: separate; /* Needed for border-radius to work */
  border-spacing: 0;
  margin-bottom: 20px;
  table-layout: fixed;
  background-color: #1e1e1e; /* A slightly lighter dark shade */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Adds depth */
}

.results-container th,
.results-container td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #333;
}

.results-container th {
  background-color: #2a2a2a; /* A distinct header color */
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Gives text some depth */
}

.results-container td {
  background-color: #1c1c1c;
  color: #e0e0e0;
}

/* Alternate row shading for better readability */
.results-container tr:nth-child(even) td {
  background-color: #191919;
}

/* Hover effect for interactive feedback */
.results-container tr:hover td {
  background-color: #262626;
  transition: background-color 0.3s ease;
}

.pool-name-container {
  text-align: center;
  margin-bottom: 30px;
}

/* Race Dropdown Selector */
.race-dropdown-header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.race-dropdown-header form {
  display: inline-block; /* So the form is centered by the parent's text-align */
}

.race-dropdown {
  padding: 7px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  width: 100%;
  max-width: 150px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.race-dropdown:focus {
  border-color: #256ce1;
  outline: none;
  box-shadow: 0 0 5px rgba(37, 108, 225, 0.5);
}

.user-rank {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.87);
}

/* Mobile toggle container: buttons centered at the top */
.mobile-toggle-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.mobile-toggle-btn {
  padding: 12px 5px;
  font-size: 1rem;
  /*font-size: clamp(0.6rem, 2vw, 1.5rem);*/
  width: 120px;
  cursor: pointer;
  background-color: #8b8b8b;
  color: rgba(255, 255, 255, 0.87);
  border: none;
  border-radius: 5px;
}
.mobile-toggle-btn.active {
  background-color: #2196f3;
}

.mobileLeaderboards {
  margin-top: 20px;
}

/* Global Leaderboard AKA Season Standings Table */
.global-leaderboard-header {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

.global-leaderboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.race-totals-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.highlight {
  background-color: rgb(56, 56, 0);
}

/* Mobile Sections - always displayed */
.mobile-section {
  display: block;
  width: 100%;
  padding: 0 10px;
}

/* Table Styles for Mobile View */
.full-results-table,
.leaderboard-table {
  width: 100%;
  font-size: clamp(1rem, 2vw, 1.5rem);
  border-collapse: collapse;
  margin: 0 auto;
}

/* Optionally, force fixed column widths for predictions table */
.predictions-details th:nth-child(1),
.predictions-details td:nth-child(1) {
  width: 24%;
}
.predictions-details th:nth-child(2),
.predictions-details td:nth-child(2) {
  width: 50%;
}
.predictions-details th:nth-child(3),
.predictions-details td:nth-child(3) {
  width: 24%;
}

/* Table Headings */
.full-results-header,
.race-totals-header,
.global-leaderboard-header {
  text-align: center;
  margin-bottom: 10px;
}

@media screen and (min-width: 769px) {
  .results-container {
    width: 60%;
    margin: 0 auto; /* Center the container on desktop */
  }
}

/* New styles for predictions dropdown table */
.predictions-table {
  width: 90%;
  margin: 10px auto;
  border-collapse: collapse;
  background-color: #2a2a2a; /* A contrasting dark background */
  border: 2px solid #f77062; /* A vibrant border to stand out */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.predictions-table th {
  padding: 10px;
  background-color: #f77062; /* Bright header background */
  color: #ffffff;
  font-size: 1.2rem;
}

.predictions-table td {
  padding: 10px;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
}

.predictions-table tr:nth-child(even) td {
  background-color: #3c3c3c;
}

/* Remove the bottom border of the leaderboard row when its dropdown is active */
.leaderboard-table tr.active-dropdown td {
  border-bottom: none;
}

/* ==================================================
   Create Pools Page Styles
================================================== */

/* Create Pool Page Styles */
.create-pool-options-container h1 {
  margin-bottom: 20px;
}

.create-pool-container {
  max-width: 600px;
  margin: 0 auto; /* Centers container on the page */
  padding: 20px;
  background-color: #121212;
  color: rgba(255, 255, 255, 0.87);
  border-radius: 10px;
  font-family: "Kumbh Sans", sans-serif; /* Or your chosen font */
}

.create-pool-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.feedback-message {
  text-align: center;
  margin-bottom: 20px;
  color: #f77062; /* You can change this color as desired */
}

.create-pool-container .form-group {
  margin-bottom: 15px;
}

.create-pool-container .form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.create-pool-container .form-group input,
.create-pool-container .form-group select {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.create-pool-container form button {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  background-color: #f77062;
  border: none;
  color: rgba(255, 255, 255, 0.87);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.create-pool-container form button:hover {
  background-color: #fe5196;
}

/* ==================================================
   Mobile-First Styles for User Pools Page
================================================== */

.pools-container {
  max-width: 800px;
  margin: 30px auto; /* Center container with some vertical margin */
  padding: 20px;
  background-color: #121212; /* Dark background */
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.87); /* Soft white text */
  font-family: "Kumbh Sans", sans-serif;
  text-align: center; /* Center text for mobile */
}

.pools-container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Container for the list of pools */
.user-pools-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

/* Each pool row - mobile (default) stacking */
.pool-row {
  background-color: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pool information */
.pool-info {
  text-align: center;
}

.pool-info h2 {
  font-size: 1.5rem;
}

.pool-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.pool-id {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Pool entry count */
.pool-entry-count {
  text-align: center;
}

.entry-number {
  font-size: 1.2rem;
  margin: 0;
}

.entry-text {
  font-size: 1rem;
  margin: 0;
}

/* Buttons - stack vertically on mobile */
.pool-buttons a {
  display: block;
  text-decoration: none;
  background-color: #2a2a2a;
  color: rgba(255, 255, 255, 0.87);
  padding: 10px;
  border-radius: 5px;
  margin: 5px auto;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Toggle button base style */
.toggle-button {
  background-color: #2a2a2a;
  color: rgba(255, 255, 255, 0.87);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: "Kumbh Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.toggle-button:hover {
  background-color: #3a3a3a;
  transform: translateY(-2px);
}

/* Active state */
.toggle-button.active {
  background-color: #4a90e2; /* A blue highlight for active state */
  color: #ffffff;
}

/* ==================================================
   Desktop Styles (min-width: 768px)
   Revert to current horizontal layout
================================================== */
@media (min-width: 768px) {
  .pools-container {
    text-align: left;
    margin: 30px auto;
    padding: 20px;
  }
  .pool-row {
    flex-direction: row; /* Layout elements in a row */
    align-items: center;
    justify-content: space-between;
  }
  .pool-info {
    text-align: left;
  }
  .pool-buttons a {
    display: inline-block;
    margin: 0 5px;
  }
  /* Ensure pool entry count remains centered */
  .pool-entry-count {
    text-align: center;
  }
  .toggle-buttons {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin-bottom: 20px;
  }
}

/* ==================================================
    User Admin . PHP
    ================================================== */

/* Pool Admin Page Styles */
.user-admin-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #121212;
  color: rgba(255, 255, 255, 0.87);
  border-radius: 10px;
  font-family: "Kumbh Sans", sans-serif;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.user-admin-container h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.user-admin-container h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.admin-content {
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 5px;
  font-size: 1rem;
}

.admin-content h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.admin-content p {
  margin-bottom: 20px;
}

.invitation-header {
  text-align: center;
  margin-bottom: 5px;
}

.pool-name {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 5px;
}

.invitation-context {
  text-align: center;
  margin-bottom: 50px;
}

.how-to-play h3 {
  text-align: center;
  margin-bottom: 5px;
}

.how-to-play p {
  text-align: center;
  margin-bottom: 30px;
}

.how-to-play li {
  text-align: center;
  margin-bottom: 10px;
  margin-right: 30px;
  margin-left: 30px;
}

.how-to-join h3 {
  text-align: center;
  margin-bottom: 5px;
}

.how-to-join h4 {
  text-align: center;
  margin-bottom: 5px;
}

.how-to-join p {
  text-align: center;
  margin-bottom: 10px;
}

.invite-links {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #2e2e2e;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.invite-links a {
  color: rgba(255, 255, 255, 0.87);
}

/* Settings item container */
.settings-poolname {
  margin: 20px 0;
  padding: 20px;
  height: 150px;
  border: 1px solid #ccc;
  background-color: #121212;
  color: rgba(255, 255, 255, 0.87);
}

/* Heading for each settings item */
.settings-poolname h3 {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.87);
}

/* Textbox for the pool name */
.settings-poolname input[type="text"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  margin-bottom: 10px;
}

.settings-signupdeadline {
  margin: 20px 0;
  padding: 20px;
  height: 150px;
  border: 1px solid #ccc;
  background-color: #121212;
  color: rgba(255, 255, 255, 0.87);
}

/* Container for the Save and Cancel buttons */
.pool-name-buttons {
  margin-top: 0px;
}

/* Styling for the buttons */
.pool-name-buttons button {
  margin-right: 5px;
  padding: 5px 10px;
  font-size: 14px;
}

/* ==================================================
    User . PHP
    ================================================== */

.pool-entry-count {
  flex: 1;
  text-align: center;
  font-weight: bold;
}

.pool-entry-count .entry-number {
  font-size: 1.5em;
  margin: 0;
}

.pool-entry-count .entry-text {
  font-size: 1em;
  margin: 0;
}

.admin-button {
  background-color: #f77062;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.admin-button:hover {
  background-color: #fe5196;
}

/* Professional Entries Table Styling */
/* Dark Mode Sleek Entries Table */
.entries-table {
  width: 100%;
  border: 1px solid #333; /* Outer border in dark grey */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Ensure rounded corners on child elements */
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background-color: #2a2a2a; /* Base background a bit lighter than #1e1e1e */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Subtle depth */
}

.entries-table th,
.entries-table td {
  padding: 12px 15px;
  text-align: left;
}

.entries-table thead th {
  background-color: #3a3a3a; /* Lighter header background */
  color: #ddd; /* Light grey text for headers */
  font-size: 1.1rem; /* Slightly larger for headers */
  font-weight: bold;
}

.entries-table tbody tr:nth-child(odd) {
  background-color: #2a2a2a; /* Base row background */
}

.entries-table tbody tr:nth-child(even) {
  background-color: #242424; /* Slightly darker alternating rows */
}

.entries-table tbody tr {
  font-size: 1rem;
  color: #ccc; /* Soft grey text for rows */
}

/* Container for the Create Pool Options Page */
.create-pool-options-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #121212;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.87);
  text-align: center;
  font-family: "Kumbh Sans", sans-serif;
}

.pool-option {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #1e1e1e;
  border-radius: 5px;
}

.pool-option h2 {
  margin-top: 0;
}

.pool-option-buttons {
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #f77062;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn.learn-more {
  background-color: #313131;
}

.btn:hover {
  background-color: #fe5196;
}

/* ==================================================
   Create Pools Page Styles
================================================== */

.create-pool-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background-color: #121212;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.87);
  font-family: "Kumbh Sans", sans-serif;
}

.create-pool-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.create-pool-container .form-group {
  margin-bottom: 15px;
}

.create-pool-container .form-group label {
  display: block;
  margin-bottom: 5px;
}

.create-pool-container .form-group input,
.create-pool-container .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.create-pool-container form button {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  background-color: #f77062;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.create-pool-container form button:hover {
  background-color: #fe5196;
}

/* ==================================================
   Check Email Page - Login Redirect
================================================== */

/* Check Email Page Styles 
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
*/
.redirect-container {
  background: #121212;
  color: rgba(255, 255, 255, 0.87);
  padding: 50px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.redirect-container h1 {
  margin-bottom: 20px;
}

.info-container {
  margin-top: 30px;
  background-color: #262626;
  color: rgba(255, 255, 255, 0.87);
  padding: 20px;
  border-radius: 5px;
}

/* ==================================================
   Join Pool Page CSS
================================================== */

.join-container {
  color: rgba(255, 255, 255, 0.87);
  background-color: #131313;
  width: 100%;
  padding: 70px 10px 160px 10px;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0px;
}

.join-container h1 {
  text-align: center;
  margin-bottom: 5px;
}

.join-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.join-details-container {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  margin-top: 50px;
  text-align: left;
}

.join-details-container h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  text-align: center;
}

.join-details-container .form-group {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.join-details-container label {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 5px;
}

.join-details-container input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 5px;
}

/* Submit and Join Button Styling */
button[type="submit"] {
  width: 100%;
  padding: 15px;
  font-size: 1.5rem;
  background-color: #f77062;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #fe5196;
}

#deadline-message {
  text-align: center; /* centre inline content (the <p> and <a>) */
  padding: 1.5rem 2rem; /* 1.5rem top/bottom, 2rem left/right */
  margin-bottom: 20px;
}

/* Increase space under the paragraph */
#deadline-message p {
  margin-bottom: 1rem;
  font-size: 1.3rem; /* keep your desired font size */
}

#deadline-message .view-leaderboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 768px) {
  .join-container {
    max-width: 600px; /* Set the desired max width */
    margin: 70px auto 160px; /* Center the container and keep your vertical margins */
  }
}
