body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

header {
  background-color: #1e2a38;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-layout {
  position: relative;
  margin-top: 10px;

}

.tagline {
  text-align: center;
  font-size: 1.1rem;
  color: white;
}

.search-bar {
  position: absolute;
  lef: 0;
  top: -10px;
}

.search-bar form {
  display: inline-flex;
  align-items: center;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-bar input[type="text"] {
  padding: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 220px;
}

.search-bar button {
  padding: 10px 14px;
  background-color: #5d7fa3;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.search-bar button:hover {
  background-color: #7f97b5;
}


@media (max-width: 850px) {

.search-bar input[type="text"] {
  width: 150px;
}
}


@media (max-width: 768px) {


header {
  padding: 20px 0 1px 0; 
}
  .search-bar {
    position: static;
    margin-top:8px;
    margin-bottom:8px;
  }

  .search-bar form {
    display: flex;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
  }

  .search-bar input[type="text"] {
    flex: 1;
  }
}

.arrow-up {
  color: green;
  font-weight: bold;
  font-size: 18px;
}

.arrow-down {
  color: red;
  font-weight: bold;
  font-size: 18px;
}

.flag-icon {
  vertical-align: middle;
  margin-right: 6px; 
  width: 20px;
  height: auto;
  border-radius: 2px; 
}

.lineup-icon {
  width: 14px;
  height: 15px;
  vertical-align: middle;
  margin: 0 2px;
}

header p {
   margin:6px;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

a {
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #005fa3;
  text-decoration: none;
}

.nav-container {
  background-color: #34495e;
  padding: 10px 0;
  text-align: center;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  max-width: 100%;
}

.nav-buttons a {
  flex: 1 1 4%;
  min-width: 100px;
  max-width: 120px;
  text-align: center;
  padding: 10px 18px;
  background-color: #5d7fa3;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.nav-buttons a:hover {
  color: #fffff;
  background-color: #7f97b5;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.info-block {
  background-color: #fffbe6;
  border-left: 5px solid #f5c518;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.info-block h3 {
  margin-top: 0;
  color: #a67c00;
} 

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1e2a38;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  align-items: start;
}

.tips-grid .flag-icon {
  margin-left: 4px;
  margin-right:2px;
}


.tip-card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 0;
  transition: transform 0.2s ease, border 0.2s ease;
}

.tip-card.upcoming {
  border-left: 5px solid #28a745; 
}

.tip-card.live {
  border-left: 5px solid #dc3545; 
}

.tip-card.past {
  border-left: 5px solid #6c757d; 
}

.tip-card.imminent {
  border-left: 5px solid #fd7e14; 
}

.tip-card:hover {
  transform: translateY(-3px);
}

.tip-card.selected {
  border: 2px solid #0077cc;
  box-shadow: 0 0 10px rgba(0, 119, 204, 0.3);
}

.tip-content {
  padding: 15px;
  cursor: pointer;
}

.tip-card {
  position: relative;
}

.tip-users {
  position: absolute;
  top: -12px;
  right: 0px;
  background-color: #eef6ff;
  color: #0077cc;
  width:22px;
  height:22px;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tipster-name {
  position: absolute;
  top: -10px;
  left: 2px;
  color: #0077cc;
  background-color: #eef6ff;
  border: 1px solid #cce0f5;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-family: 'Recursive', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  z-index: 2;
  pointer-events: auto; 
}

.tipster-name a.tipster-link {
  color: #0077cc;
  text-decoration: none;
  pointer-events: auto;
}

.tipster-name a.tipster-link:hover {
  text-decoration: underline;
}


@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.tip-users.pop {
  animation: pop 0.3s ease;
}

.tip-extension {
  max-height: 0;
  overflow: hidden;
  background-color: #0077cc;
  padding: 0 15px;
  text-align: center;
  transition: max-height 0.4s ease, padding 0.4s ease;
  display: block;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.tip-card.selected .tip-extension {
  max-height: 100px;
  padding: 16px 15px;
}

.tip-extension:hover {
  background-color: #005fa3;
  color: #f5f5f5;
}

.tip-title {
 font-weight: bold;
 margin-bottom: 8px;
 color: #0077cc;
}

.tip-details {
  font-size: 0.95rem;
  color: #555;
}

.tips-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.tips-table th, .tips-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.95rem;
}

.tips-table th {
  background-color: #1e2a38;
  color: white;
}

.tips-table tr:hover {
  background-color: #f0f8ff;
}

.tips-table .nowrap {
 white-space:nowrap;
}

@media (max-width: 600px) {
  .tips-table th, .tips-table td {
    padding: 7px 8px;
  }
}

.form-button {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-button:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

.form-button:active {
  background-color: #004a80;
  transform: translateY(0);
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

.nav-buttons a {
  padding: 10px 18px;
  background-color: #5d7fa3;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  min-width: 100px;
  max-width: 120px;
}

.nav-buttons a:hover {
  background-color: #7f97b5;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #5d7fa3;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 10;
  min-width: 160px;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  text-align: left;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.dropdown a:hover {
  background-color: #7f97b5;
}


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1e2a38;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: #0077cc;
  outline: none;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sort-form {
    width: 100%;
    justify-content: flex-start;
  }
}

.clickrow {
  cursor: pointer;
}

footer {
  background-color: #1e2a38;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 40px;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #f5c518;
  text-decoration: none;
}
