* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #2f0a0a;
  color: white;
}

header {
  background-color: #2b0d04;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.navigation {
  list-style: none;
  display: flex;
  gap: 4rem;
}

.navigation li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.search-box input {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  height: 60vh;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-title {
  position: absolute;
  top: 40%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
}

.hero-title h1 {
  font-size: 3rem;
}

.hero-title p {
  font-size: 1.2rem;
}

/* Info Cards */
.info-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.card {
  background-color: #311616;
  padding: 2rem;
  border-radius: 12px;
  flex: 1 1 300px;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.driver {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  align-items: center;
}

.position,
.points {
  font-size: 1.3rem;
  font-weight: bold;
}

.card.race img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
}

.card.live img {
  width: 80px;
  margin: 1rem auto;
  display: block;
}

.countdown {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 1rem;
}

.countdown span {
  background-color: #452424;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.countdown strong {
  font-size: 1.2rem;
  display: block;
}

.race-card {
  position: relative;
  width: 650px;
  height: 285px;
  background-image: url('Assets/hungaroring.jpg'); /* ganti dengan path gambar kamu */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: Arial, sans-serif;
  color: white;
  transition: transform 0.3s;
}

.race-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 35%, rgba(0,0,0,0.1));
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.race-overlay h2 {
  font-size: 28px;
  margin: 0 0 10px 0;
}

.race-info p {
  font-size: 16px;
  margin: 5px 0;
}

.race-card:hover {
  transform: translateY(-5px);
}

/* Container Flex */
.info-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* Base Card Style */
.card {
  background-color: #2e1414;
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Standings Card */
.standings-card h3 {
  margin-bottom: 30px;
}

.driver {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.driver .number {
  font-weight: bold;
  width: 30px;
}

.driver .points {
  margin-left: auto;
  font-weight: bold;
}

/* Race Card */
.race-card {
  background-image: url('Assets/hungaroring.jpg'); /* Ganti dengan path gambar kamu */
  background-size: cover;
  background-position: center;
  color: white;
  min-width: 300px;
  max-width: 360px;
  height: 200px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.race-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Countdown */
.countdown-card h3 {
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.countdown div {
  background: #3a1b1b;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  min-width: 60px;
}

.flag-icon {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
}
 ul li a {
  position: relative;
  text-decoration: none;
  color: #fff;
  padding: 5px;
  transition: color 0.3s ease;
}

/* Efek hover garis bawah biru */
 ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #007BFF; /* warna biru */
  transition: width 0.3s ease;
}

 ul li a:hover::after {
  width: 100%;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.buy-ticket {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #007BFF;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.buy-ticket:hover {
  background-color: #0056b3;
}

:root {
  --bg-color: #200000;
  --text-color: #fff;
}
body.light-mode {
  --bg-color: #ffffff;
  --text-color: #111;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}
#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
}

.news-ticker {
  background: #d00;
  color: white;
  padding: 2px 10px;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 2px solid #fff;
}

.info-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap; /* responsive */
  max-width: 1200px;
}

.card {
  background-color: #2b0b0b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 20px;
  flex: 1 1 300px;
  min-width: 280px;
}

.header {
  position: relative;
}

#theme-toggle {
  position: absolute;
  top: 27px;
  right: 250px; /* pindahkan dari pojok kanan biar nggak tabrakan */
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 10;
}

.news-ticker {
  width: 100%;
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 8px 0;
  text-align: center;
  position: relative;
  bottom: 0;
}

.parent-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* ini akan memusatkan child */
}









