/* ===================== */
/*      General Styles   */
/* ===================== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================== */
/*      Hero Section     */
/* ===================== */
.hero {
  background: linear-gradient(135deg, #00BF63 0%, #29c479 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 300px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1); /* This will make the logo white */
  transition: filter 0.3s ease;
}

.hero-logo:hover {
  filter: brightness(0) invert(0.9); /* Slightly dim on hover */
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-button {
  padding: 12px 30px;
  background-color: white;
  color: #00BF63;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: transform 0.2s;
}

.hero-button:hover {
  transform: translateY(-2px);
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2.5em;
  color: #00BF63;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 0 0 15px;
  color: #333;
}

.feature-card p {
  color: #666;
  margin-bottom: 20px;
}

.card-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #00BF63;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.card-link:hover {
  background-color: #29c479;
}

/* Quick Access Links */
.quick-access {
  background-color: #f8f9fa;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.quick-access h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  background-color: white;
  color: #00BF63;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-size: 0.9em;
  flex-direction: column;
}

.quick-link:hover {
  transform: translateY(-2px);
  background-color: #f8fff8;
}

.quick-link i {
  font-size: 1.5em;
  margin-bottom: 5px;
}

/* ===================== */
/*         Header        */
/* ===================== */
header {
  background: linear-gradient(to right, #00BF63, #29c479);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.left-image-container {
  display: flex;
  align-items: center;
}
.left-image-container img {
  height: 60px;
  margin-right: 15px;
}
.logo-text {
  color: white;
  font-size: 24px;
  font-weight: bold;
}
.navbar-items {
  display: flex;
  align-items: center;
}
.navbar a {
  font-size: 18px;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  transition: background-color 0.3s;
  outline: none;
  border-radius: 5px;
}
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: rgba(255, 255, 255, 0.1);
}
.navbar a:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .navbar-items {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar-items.show {
    display: flex;
  }

  .navbar a,
  .dropdown .dropbtn {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
  }

  .dropdown.dropdown-open .dropdown-content {
    display: block;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .left-image-container {
    width: 100%;
    justify-content: space-between;
  }
  
  .hero {
    padding: 40px 15px;
  }
  
  .hero-logo {
    max-width: 200px;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .quick-link {
    padding: 10px;
  }
  
  header {
    padding: 10px 15px;
    flex-direction: column;
  }
  
  .navbar-items {
    margin-top: 10px;
  }
  
  .navbar a {
    padding: 10px 15px;
    font-size: 16px;
  }
}
.dropdown {
  position: relative;
}
.dropdown .dropbtn {
  background: none;
  border: none;
  font-size: 18px;
  color: white;
  padding: 15px 25px;
  cursor: pointer;
  outline: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
}
.dropdown-content a {
  color: #333;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
  outline: none;
}
.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile dropdown click/touch support */
.dropdown.dropdown-open .dropdown-content {
  display: block;
}

/* Improve touch responsiveness on mobile */
@media (max-width: 768px) {
  .dropdown .dropbtn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  .hamburger-menu {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  /* On mobile, disable hover and use click/touch only */
  .dropdown:hover .dropdown-content {
    display: none;
  }
  
  .dropdown.dropdown-open .dropdown-content {
    display: block;
  }
}

/* ===================== */
/*      Main Content     */
/* ===================== */
.body-content {
  flex: 1;
  padding: 30px;
}

/* ===================== */
/*         Footer        */
/* ===================== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
}

/* ===================== */
/*        Hero Section   */
/* ===================== */
.hero {
  position: relative;
  background: linear-gradient(to right, #00BF63, #29c479);
  padding: 80px 30px;
  margin-bottom: 30px;
  color: white;
  text-align: center;
  border-radius: 10px;
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 22px;
  margin-bottom: 25px;
}

/* ===================== */
/*      Button Styles    */
/* ===================== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-color: #00BF63;
  color: white;
  border: none;
}
.btn-primary:hover {
  background-color: #29c479;
}
.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
}
.btn-danger:hover {
  background-color: #c82333;
}
.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}
.btn-secondary:hover {
  background-color: #5a6268;
}

/* ===================== */
/*        Card Styles    */
/* ===================== */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background-color: white;
  margin-bottom: 30px;
}
.card-body {
  padding: 30px;
}
.card-title {
  font-size: 28px;
  margin-bottom: 15px;
}

/* ===================== */
/*    Input Group Style  */
/* ===================== */
.input-group {
  display: flex;
  margin-bottom: 30px;
}
.input-group input {
  flex: 1;
  padding: 15px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
}
.input-group-append button {
  padding: 15px 25px;
  font-size: 18px;
  border: none;
  background-color: #00BF63;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}
.input-group-append button:hover {
  background-color: #29c479;
}

/* ===================== */
/*  Table (Enhanced Style) */
/* ===================== */
.mystyle {
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 1em;
  min-width: 450px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}
.mystyle thead tr {
  background-color: #00BF63;
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}
.mystyle th,
.mystyle td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.mystyle tbody tr {
  transition: background-color 0.3s;
}
.mystyle tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}
.mystyle tbody tr:hover {
  background-color: #f1f1f1;
}
.mystyle tbody tr.active-row {
  font-weight: bold;
  color: #00BF63;
}

/* ===================== */
/*    Flash Messages     */
/* ===================== */
.flashes {
  list-style-type: none;
  padding: 0;
}
.flashes li {
  border-radius: 5px;
  margin: 15px 0;
  padding: 20px;
  font-size: 18px;
}
.flashes li.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flashes li.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* H2H specific styles */
.bet-row {
    margin-bottom: 5px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
}
.result {
    font-weight: bold;
    font-size: 1.2em;
    color: #00BF63;
}
.non-bold {
    font-weight: normal;
}

@media (max-width: 768px) {
  /* Hero Section Mobile Styles */
  .hero {
    padding: 30px 15px;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
    padding: 0 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-button {
    width: 80%;
    margin: 0 auto;
  }

  /* Feature Cards Mobile Styles */
  .features {
    grid-template-columns: 1fr;
    padding: 30px 15px;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  /* Quick Access Mobile Styles */
  .quick-access {
    padding: 30px 15px;
  }

  .quick-links {
    flex-direction: column;
    gap: 15px;
  }

  .quick-link {
    width: 100%;
    justify-content: center;
  }

  /* Header adjustments for mobile */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .left-image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .left-image-container img {
    height: 50px;
    margin-right: 0;
    order: 2; /* Logo on right */
  }
  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    margin-right: 0;
    align-self: flex-start;
    order: 1; /* Hamburger on left */
  }
  .navbar-items {
    flex-direction: column;
    display: none; /* Hidden by default */
    width: 100%;
  }
  .navbar-items.show {
    display: flex;
  }
  .navbar-items a {
    padding: 10px;
    text-align: left;
    width: 100%;
  }
  .navbar a:focus {
    background-color: #29c479;
  }
  .dropdown {
    width: 100%;
  }
  .dropdown .dropbtn {
    width: 100%;
    text-align: left;
  }
  .dropdown-content {
    width: 100%;
  }
  .dropdown-content a {
    padding: 10px;
    text-align: left;
  }
  .body-content {
    padding: 10px;
  }
  .responsive-image {
    max-width: 80%;
    display: block;
    margin: 0 auto;
  }
  footer {
    padding: 10px;
  }

  /* Adjusted table styles for mobile */
  .mystyle {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.8em;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: background-color 0.3s, box-shadow 0.3s;
  }
  .mystyle thead tr {
    background-color: #4CAF50;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
  }
  .mystyle th,
  .mystyle td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dddddd;
  }
  .mystyle tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.3s;
  }
  .mystyle tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
  }
  .mystyle tbody tr:hover {
    background-color: #f1f1f1;
  }
  .mystyle tbody tr.active-row {
    font-weight: bold;
    color: #009879;
  }
  .mystyle tbody tr:last-of-type {
    border-bottom: 2px solid #4CAF50;
  }

  /* Flash Messages for mobile */
  .flashes {
    list-style-type: none;
    padding: 0;
  }
  .flashes li {
    border-radius: 3px;
    margin: 10px 0;
    padding: 15px 10px;
    font-size: 16px;
  }
  .flashes li.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  .flashes li.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  /* Enhanced Mobile Navigation */
  .navbar {
    position: relative;
  }
  .navbar-items {
    flex-direction: column;
    display: none;
    width: 100%;
    background-color: #00BF63;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }
  .navbar-items.show {
    display: flex;
  }
  .navbar-items a {
    padding: 15px;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .navbar a:focus,
  .navbar a:active {
    background-color: rgba(255,255,255,0.1);
  }
  .dropdown {
    width: 100%;
  }
  .dropdown .dropbtn {
    width: 100%;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .dropdown-content {
    position: static;
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    box-shadow: none;
  }
  .dropdown-content a {
    padding: 15px 25px;
    color: white !important;
    text-align: left;
    background-color: transparent;
  }
  .dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1) !important;
  }
}