@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,500');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  border-top: 4px solid #DC0000;
  background: #15151E;
  color: #fff;
  font-family: 'Rubik', sans-serif;
}

.track-data-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #FF4500;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.track-data-button:hover {
  background-color: #FF6347;
}

.live-indicator-block {
  padding-top: 20px;
}

a {
  text-decoration: none;
  color: #fff;
}

.live-indicator-block .live-indicator {
background: #ea2429;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    font-weight: normal;
    width: auto;
}
.live-indicator-block .live-indicator .blink {
  animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
  margin-right: 5px;
  vertical-align: baseline;
}

@keyframes blinker {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

table {
    background-color: #1E1E2E;
    border-radius: 5px;
  /* position relative to include a band on the left of the container */
  margin: auto;
  position: relative;
  /* cap the width of the table, allowing for a sizeable portion of white space if allowed by the viewport */
  width: 90vw;
  max-width: 800px;
  /* spacing to separate the table rows vertically */
  border-spacing: 0 1rem;
}
/* with a pseudo element add a band with a repeating linear gradient */
table:before {
  position: absolute;
  content: '';
  right: calc(100% + 1rem);
  top: 0;
  height: 100%;
  width: 1.5rem;
  border-radius: 5px;
  border: 1px solid #38383F;
  background: repeating-linear-gradient(-45deg, #15151E 0px, #15151E 4px, #38383F 4px, #38383F 8px);
}
/* center every element nested in a table row */
table tr > * {
  text-align: center;
  padding: 0.5rem;
}
/* align every second item of each row to the left */
table tr > *:nth-child(2) {
  text-align: left;
}


/* style the headings to have thin uppercase titles for the columns */
table th {
  font-weight: 300;
  letter-spacing: 0.04rem;
  font-size: 0.9rem;
  color: #eee;
  text-transform: uppercase;
}

/* slightly increase the weight of the cell describing the position */
table td.position {
  font-weight: 500;
}

.header-content {
    text-align: center;
    background: #1E1E2E;
    margin-bottom: 50px;
}

.header-info {
    text-align: center;
    padding-bottom: 50px;
}

.logo {
    width: 200px;
}

/* style the cell with the driver visually separating the first, last name and team */
table td.driver {
  padding-left: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
}
table td.driver strong {
  text-transform: uppercase;
  font-weight: 500;
}
table td.driver span {
  text-transform: capitalize;
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: #999;
  letter-spacing: initial;
}

/* style the span nested in the last cell to have the gap in a rounded rectangle */
table td.gap span {
  background: #38383F;
  border-radius: 30px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.karting-points {
  background-color: #1E1E2E;
  padding: 15px 25px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  max-width: 800px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.karting-points h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  text-align: center;
  color: #ffffff;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.point-item {
  background-color: #3C3C4C;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  color: #E0E0E0;
}

.point-item strong {
  color: #ff9898;
  font-weight: 500;
}

.bonus {
  background-color: #4C4C5C;
  color: #FFD700;
  font-weight: bold;
}

footer {
  background-color: #1E1E2E;
  padding: 20px;
  text-align: center;
  color: #ccc;
  margin-top: 30px;
  width: 100%;
}

h1, h2 {
    font-weight: normal !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content p {
  margin-bottom: 10px;
}

.social-icons a {
  color: #ccc;
  margin: 0 10px;
  font-size: 1.2rem;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ffffff;
}

@media (max-width: 500px) {
  .points-grid {
    grid-template-columns: 1fr;
  }
  table tr > * {
      width: 10px;
  }
}

/* on smaller viewports remove the third column from sight */
@media (max-width: 500px) {
  table tr > *:nth-child(3) {
    display: none;
  }
}