@import url("https://fonts.googleapis.com/css2?family=Fustat:wght@300;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/magneto");

:root {
  --speed: #d93b3a;
  --rust: #eb793d;
  --sky: #c5e4e6;
  --asphalt: #756a7a;
  --tire: #2b2622;
}

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

body {
  font-family: "Fustat", sans-serif;
  background: #000;
  color: var(--sky);
  line-height: 1.6;
}

img {
  object-fit: cover;
  display: block;
}

.website {
  max-width: 1920px;
  margin: auto;
}

.logo:hover {
  color: var(--tire);
  transition: 0.3s ease-in-out;
}

header {
  background: var(--speed);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--speed);
}

header div {
  font-family: "fustat";
  font-size: 1rem;
  font-weight: 700;
  color: whitesmoke;
  text-transform: capitalize;
  letter-spacing: 2px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: whitesmoke;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--tire);
}

.hero-banner {
  background: var(--asphalt);
  aspect-ratio: 1920 / 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Magneto", cursive;
  font-size: 2rem;
  color: whitesmoke;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--speed);
  overflow: hidden;
}

video {
  aspect-ratio: 1920px / 1080px;
  width: 100%;
}

.hero-container {
  position: relative; /* makes hero-logo position relative to this container */
}

.hero-logo {
  position: absolute;
  top: 10px; /* Adjust to sit halfway over header + hero */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.hero-logo img {
  width: 450px; /* adjust size */
  max-width: 90%;
  height: auto;
}

.story-section {
  background: #111;
  padding: 3rem 2rem;
  max-width: 1200px;
  height: 550px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(217, 59, 58, 0.2);
}

.story-title {
  background: var(--speed);
  color: #fff;
  padding: 1rem 2rem;
  display: block;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  text-align: center;
  font-family: "Fustat", sans-serif;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.story-video {
  background: var(--tiret);
  width: 100%;
  overflow: hidden;
  background-repeat: no-repeat;
  margin: auto;
}

.trailer {
  align-content: center;
  margin: auto;
}

.story-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky);
}

.cars-vid-container {
  max-width: 1200px;
  aspect-ratio: 10 / 4.5;
  overflow: hidden;
  margin: auto;
}

.characters-section {
  background: #0a0a0a;
  padding: 3rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--speed);
  font-family: "Fustat", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.character-block {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--tire);
  padding: 2rem;
  box-shadow: 0 0 20px rgba(217, 59, 58, 0.2);
  height: 500px;
}

.character-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.character-name {
  background: var(--speed);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
  font-family: "Magneto";
  text-transform: capitalize;
  letter-spacing: 2px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
}

.character-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sky);
}

.character-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  object-position: center;
  align-items: center;
}

.character-small-image {
  background: #333;
  border: 2px solid var(--speed);
  overflow: hidden;

  img {
    width: 100%;
    object-position: center;
    aspect-ratio: 10 / 5;
  }
}
character-small-image:nth-child(1) img {
  width: 110%;
}

img.doc1 {
  width: 300%;
}

.places-section {
  background: #111;
  padding: 3rem 2rem;
}

.places-container {
  max-width: 1200px;
  margin: 0 auto;
}

.places-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--speed);
  font-family: "Fustat", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

.places-video {
  background: var(--asphalt);
  height: 600px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.location-item {
  text-align: center;
}

.location-image {
  background: #333;
  overflow: hidden;

  img {
    width: 100%;
    object-position: center;
    aspect-ratio: 10 / 5;
  }
}

.location-image img {
  width: 100%;
  aspect-ratio: 10 / 5;
}

.location-name {
  font-size: 0.9rem;
  color: var(--sky);
  text-transform: uppercase;
}

.tracks-section {
  background: #0c0c0c;
  padding: 3rem 2rem;
}

.tracks-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tracks-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--speed);
  font-family: "Fustat", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.track-item {
  text-align: center;
}

.track-image {
  background: var(--asphalt);
  border: 2px solid var(--speed);
  height: 300px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.track2-image {
  background: var(--asphalt);
  border: 2px solid var(--speed);
  height: 300px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.track-image img {
  width: 100%;
  object-position: center bottom;
}

.track2-image img {
  width: 121%;
  object-position: center bottom;
}

.track-name {
  font-size: 0.9rem;
  color: var(--sky);
  text-transform: uppercase;
}

footer {
  background: var(--tire);
  padding: 2rem;
  text-align: center;
  color: whitesmoke;
  font-size: 1rem;
  border-top: 3px solid var(--speed);
}

footer a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--rust);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .story-content,
  .character-block,
  .locations-grid,
  .tracks-grid {
    grid-template-columns: 1fr;
  }
}
