@font-face {
  font-family: "Formula1 Display-Regular";
  src: url("https://db.onlinewebfonts.com/t/7a45cffcf1eee0797d566deb425ebaa9.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/7a45cffcf1eee0797d566deb425ebaa9.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  background-color: #000000;
}

body {
  font-family: "Formula1 Display-Regular", sans-serif;
  background-color: #000000;
  margin: 0;
}

body,
html {
  height: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  align-content: center;
}

.site-nav {
  min-height: 76px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #ffffff;
  font: inherit;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ff0000;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../media/strip.webp");
  height: 65%;
  border: 2px solid #ffffff;
  border-top: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.track-info {
  padding: 40px 5%;
  text-align: center;
}

.track-info h2 {
  margin: 0 0 24px;
}

.track-layout {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 35%);
  justify-content: space-between;
  align-items: stretch;
}

.trackmap {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
}

.metrics {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.metrics h1,
.metrics p {
  margin: 0;
}

.standings {
  padding: 40px 5%;
}

.standings h2 {
  margin: 0 0 24px;
  text-align: center;
}

.standings-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #1a1a1a;
  color: #ffffff;
}

.standings-table th,
.standings-table td {
  padding: 12px 16px;
  border: 1px solid #38383f;
  text-align: center;
}

.standings-table th {
  background-color: #ff0000;
}

.driver-slots {
  display: grid;
  grid-template-rows: repeat(2, minmax(36px, auto));
  padding: 0 8px;
}

.driver-slots span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-slots span + span {
  border-top: 1px solid #38383f;
}

button {
  background-color: #ff0000;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  opacity: 0.8;
  font-family: inherit;
}

button:hover {
  opacity: 1;
}


@media (max-width: 480px) {
  .site-nav {
    min-height: 68px;
    padding: 0 20px;
  }

  .site-logo img {
    width: 96px;
  }

  .nav-links {
    gap: 24px;
    font-size: 13px;
  }
}

@media (max-width: 700px) {

  .track-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .trackmap,
  .metrics {
    width: 100%;
    max-width: 100%;
  }

  .metrics {
    gap: 24px;
  }
}

hr {
  margin: 40px;
}

.site-footer {
  padding: 48px 5% 24px;
  background-color: #15151e;
  border-top: 4px solid #e10600;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 48px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-group h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.footer-group a,
.footer-bottom a {
  color: #c7c7ca;
  font-size: 13px;
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #38383f;
  color: #c7c7ca;
  font-size: 13px;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    gap: 36px;
  }

  .footer-links {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .footer-bottom {
    margin-top: 32px;
  }
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  line-height: 40px;
}
