body {
  margin: 0;
  font-family: sans-serif;
  color: #fff;
  background: #000;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: url('../images/bg.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(10px);
  z-index: -1;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (max-width: 600px) {
  .overlay {
    padding: 1rem;
  }
}

header {
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
  text-align: center;
  padding-top: 1rem;
}

.custom-select-container {
  position: relative;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.select-selected {
  background-color: #333;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-selected:after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.select-items {
  position: absolute;
  background-color: #333;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 4px 4px;
  display: block;
}

.select-search {
  width: 100%;
  padding: 0.5rem;
  border: none;
  outline: none;
  background-color: #444;
  color: white;
  box-sizing: border-box;
}

.select-search:focus {
  outline: 1px solid #555;
  box-shadow: none;
}

.select-item {
  padding: 0.5rem;
  cursor: pointer;
}

.select-item:hover {
  background-color: #444;
}

.select-items {
  display: none;
}

.select-items.active {
  display: block;
}

.team-info, .extras, .cta {
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 1rem auto;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .team-info, .extras, .cta {
    padding: 0.5rem;
    margin: 0.75rem auto;
    width: calc(100% - 10px);
  }
}

.team-logo {
  width: 100px;
  height: auto;
}

.btn {
  background: #4a4a4a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  background: #5a5a5a;
}

.btn:active {
  transform: scale(0.98);
}

#notificationBtn {
  background: #2e8b57; /* Sea Green */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#notificationBtn:hover {
  background: #3cb371; /* Medium Sea Green - lighter shade */
}

#timer {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  font-family: 'LCD', 'LCD-fallback', monospace;
  background-color: #000;
  padding: 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0, 255, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
  min-height: 75px;
  min-width: 300px;
  justify-content: center;
}

@media (max-width: 600px) {
  #timer {
    font-size: 1.8rem;
    padding: 10px;
    gap: 2px;
    min-height: 60px;
    min-width: 250px;
  }
}

.digit-box {
  background-color: #000;
  padding: 5px 8px;
  border-radius: 4px;
  min-width: 45px;
  text-align: center;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
  position: relative;
  overflow: hidden;
  font-family: 'LCD', 'LCD-fallback', monospace;
  letter-spacing: 2px;
  border: 1px solid #333;
  display: inline-block;
}

.time-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2px;
  min-width: 60px;
}

@media (max-width: 600px) {
  .digit-box {
    min-width: 35px;
    padding: 4px 6px;
    letter-spacing: 1px;
  }

  .time-group {
    min-width: 45px;
    margin: 0 1px;
  }
}

.unit {
  font-size: 0.75rem;
  font-family: sans-serif;
  display: block;
  text-align: center;
  color: #00ff00;
  opacity: 0.7;
  margin-top: 5px;
  letter-spacing: normal;
}

.colon {
  font-size: 2.5rem;
  align-self: flex-start;
  color: #00ff00;
  margin: 0 -2px;
  opacity: 0.8;
  padding-top: 5px;
  height: 45px;
  display: flex;
  align-items: center;
}

.message-box {
  background-color: #000;
  padding: 12px 15px;
  border-radius: 6px;
  min-width: 220px;
  text-align: center;
  color: #00ff00;
  position: relative;
  font-family: sans-serif;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0, 255, 0, 0.2);
}

.full-table {
  max-width: 100%;
  margin: 0;
}

.form-w { color: #00ff00; }
.form-d { color: #ffff00; }
.form-l { color: #ff0000; }

/* Digital LCD Font */
@font-face {
  font-family: 'LCD';
  src: url('https://db.onlinewebfonts.com/t/185c8f22cb14ef6784dc4d7d3dcb3a65.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Fallback for LCD font */
@font-face {
  font-family: 'LCD-fallback';
  src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Toggle Switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-left: auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00ff00;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Container styles */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-container:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* FCM toggle states */
.toggle-container.fcm-loading {
  position: relative;
}

.toggle-container.fcm-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-top: 2px solid #00ff00;
  border-radius: 50%;
  animation: fcm-spinner 0.8s linear infinite;
}

.toggle-container.fcm-success {
  background-color: rgba(0, 255, 0, 0.15);
  transition: background-color 0.3s;
}

.toggle-container.fcm-error {
  background-color: rgba(255, 0, 0, 0.15);
  transition: background-color 0.3s;
}

@keyframes fcm-spinner {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.toggle-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-right: 10px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  background-color: #111;
  margin: 5% auto;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
}

@media (max-width: 600px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  color: #fff;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
}

.close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

#leagueTableModal .modal-content {
  max-width: 700px;
}

#leagueTableModal .modal-body {
  padding: 10px;
}

#fixturesModal .modal-content {
  max-width: 600px;
}

.notification-group {
  margin-bottom: 20px;
}

.notification-group h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.team-info a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.team-info a:hover {
  opacity: 1;
  text-decoration: underline;
}

.fixtures-filter {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.filter-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 5px 15px;
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 4px;
  transition: all 0.2s;
}

.filter-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

.fixture-item {
  padding: 12px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixture-item:last-child {
  border-bottom: none;
}

.fixture-date {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.fixture-teams {
  font-weight: bold;
}

.fixture-venue {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 5px;
}

.home-game {
  border-left: 3px solid #00ff00;
}

.away-game {
  border-left: 3px solid #0088ff;
}

/* Utility classes for inline styles cleanup */
.info-links {
  font-size: 0.9rem;
  opacity: 0.8;
  justify-content: center;
  gap: 1rem;
  margin-top: 6px;
  line-height: 2rem;
}

.fixture-info p {
  margin: 13px 0px 3px;
}

.info-links p {
  margin: 0;
}

.fixture-info {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
}

.recent-result {
  font-size: 0.9rem;
  margin: 0 0 3px;
  opacity: 0.7;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.app-store-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}
/* CSS moved from index.html template */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ff00;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto;
  max-width: 800px;
}

.team-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-links a:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.league-section {
  margin: 2rem auto;
  max-width: 800px;
}

.league-heading {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.league-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .feature-card {
    max-width: 100%;
  }
}

.cta-section {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
}

.cta-section .btn {
  margin-top: 1rem;
}

.hidden-links {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* Global link styles */
a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #3cb371; /* Using the Medium Sea Green from the existing palette */
}
/* Site title link should always be white */
.site-branding a,
.site-branding a:visited {
  color: #fff;
  text-decoration: none;
}

.site-branding a:hover {
  text-decoration: none;
}

/* Footer styles */
footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: all 0.2s;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .footer-links {
    gap: 1rem;
  }

  .footer-social {
    gap: 0.75rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}