:root {
  --primary-dark: #121212;
  --secondary-dark: #1e1e1e;
  --accent-red: #ff3a44;
  --accent-purple: #9c27b0;
  --accent-orange: #ff9800;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
}


body {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-block{
  line-height: 0;
}

.policy{
  padding: 60px 0;
}

.policy h2{
  font-weight: 700;
  font-size: 28px;
}

.policy h3{
  font-weight: 700;
  font-size: 22px;
}

.racing-header {
  background-color: var(--secondary-dark);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.betting-logo {
  width: 160px;
}

.wager-btn {
  background-color: var(--accent-red);
  color: white;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.wager-btn:hover {
  background-color: #ff1a26;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 58, 68, 0.4);
}

.auth-btn {
  background-color: transparent;
  border: 2px solid var(--accent-red);
  color: var(--text-light);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  margin-left: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.auth-btn:hover {
  background-color: var(--accent-red);
  color: white;
}

.hero-section {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.92), rgba(30, 30, 30, 0.92)), url('../img/banner.png') center/cover no-repeat;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-red),
    var(--accent-red) 2px,
    transparent 2px,
    transparent 20px
  );
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  color: var(--accent-red);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  color: var(--text-gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.races-wrapper {
  background-color: var(--secondary-dark);
  padding: 4rem 0;
  position: relative;
}

.races-header {
  text-align: center;
  margin-bottom: 3rem;
}

.races-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.race-category {
  background-color: rgba(18, 18, 18, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-top: 4px solid var(--accent-red);
  transition: transform 0.3s ease;
}

.race-category-horse {
  border-color: var(--accent-red);
}

.race-category-harness {
  border-color: var(--accent-purple);
}

.race-category-greyhound {
  border-color: var(--accent-orange);
}

.race-category:hover {
  transform: translateY(-5px);
}

.race-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.race-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: currentColor;
}

.race-category-horse .race-category-title {
  color: var(--accent-red);
}

.race-category-harness .race-category-title {
  color: var(--accent-purple);
}

.race-category-greyhound .race-category-title {
  color: var(--accent-orange);
}

.race-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.race-tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  font-weight: 600;
}

.race-tab.active {
  opacity: 1;
  position: relative;
}

.race-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: currentColor;
}

.race-category-horse .race-tab.active {
  color: var(--accent-red);
}

.race-category-harness .race-tab.active {
  color: var(--accent-purple);
}

.race-category-greyhound .race-tab.active {
  color: var(--accent-orange);
}

.race-event {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.race-event:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.race-event-time {
  font-weight: 600;
  color: var(--text-gray);
}

.race-event-name {
  font-weight: 600;
}

.race-event-odds {
  font-weight: 700;
}

.race-category-horse .race-event-odds {
  color: var(--accent-red);
}

.race-category-harness .race-event-odds {
  color: var(--accent-purple);
}

.race-category-greyhound .race-event-odds {
  color: var(--accent-orange);
}

.race-tab-content {
  display: none;
}

.race-tab-content.active {
  display: block;
}

.feature-block {
  background-color: var(--primary-dark);
  padding: 5rem 0;
}

.feature-header {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.feature-item {
  background-color: var(--secondary-dark);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: -1;
}

.feature-item:nth-child(1)::before {
  background-color: var(--accent-red);
}

.feature-item:nth-child(2)::before {
  background-color: var(--accent-purple);
}

.feature-item:nth-child(3)::before {
  background-color: var(--accent-orange);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-item:nth-child(1) .feature-icon {
  color: var(--accent-red);
}

.feature-item:nth-child(2) .feature-icon {
  color: var(--accent-purple);
}

.feature-item:nth-child(3) .feature-icon {
  color: var(--accent-orange);
}

.feature-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-item-text {
  color: var(--text-gray);
  font-size: 1rem;
}

.betting-footer {
  background-color: var(--secondary-dark);
  padding: 4rem 0 0;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-disclaimer {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.support-services {
  margin-bottom: 2rem;
}

.support-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.support-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.support-list img{
  max-width: 160px;
  width: auto;
  max-height: 60px;
  height: auto;
}

.support-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

.support-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.copyright-bar {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-light);
}

.copyright-text {
  color: var(--text-gray);
  font-size: 0.9rem;
}


.auth-modal {
  background-color: var(--secondary-dark);
  border-radius: 12px;
  border: none;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.auth-modal-header {
  background-color: var(--primary-dark);
  padding: 1.5rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.auth-modal-close {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.auth-modal-close:hover {
  color: var(--text-light);
}

.auth-modal-body {
  padding: 2rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.auth-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--accent-red);
  background-color: rgba(255, 255, 255, 0.1);
}

.auth-form-submit {
  width: 100%;
  background-color: var(--accent-red);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-form-submit:hover {
  background-color: #ff1a26;
}

.auth-modal-message {
  padding: 2rem;
  text-align: center;
  display: none;
}

.auth-modal-message.success {
  color: #4caf50;
}

.auth-modal-message.error {
  color: var(--accent-red);
}

@media(max-width: 550px){
  .auth-btn{
    font-size: 14px;
    margin-left: 5px;
    padding: 6px 10px;
  }
  .hero-title{
    font-size: 3rem;
  }
}