img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(220, 220, 220);
}

section {
  display: none;
}

.show {
  display: block;
  animation: show 0.5s forwards;
}

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

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

.header-container {
  background: linear-gradient(
    rgba(255, 0, 0, 0.2) 0%,
    rgba(255, 0, 0, 0.2) 10%,
    rgb(220, 220, 220) 10%,
    rgb(220, 220, 220) 30%,
    rgba(255, 0, 0, 0.2) 30%,
    rgba(255, 0, 0, 0.2) 40%,
    rgb(220, 220, 220) 40%,
    rgb(220, 220, 220) 60%,
    rgba(255, 0, 0, 0.2) 60%,
    rgba(255, 0, 0, 0.2) 70%,
    rgb(220, 220, 220) 70%,
    rgb(220, 220, 220) 90%,
    rgba(255, 0, 0, 0.2) 90%
  );
}

.header {
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  margin: 20px auto 20px auto;
  opacity: 1;
}

.header img {
  max-height: 50px;
}

.img-principal {
  max-height: 400px;
  margin: 0 auto;
}

.equipes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.card-logo {
  width: 90px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.3);
  transition: 0.6s;
}

.equipes img {
  max-width: 90px;
}

.equipes li a {
  display: block;
  background-color: rgb(236, 236, 236);
  border-radius: 10px;
  transition: 0.6s;
}

.equipes li a:hover {
  transform: scale(1.3);
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  position: relative;
  padding-left: 20px;
}

h1:before {
  content: "";
  width: 10px;
  height: 40px;
  background-color: red;
  position: absolute;
  left: 0;
  top: 2px;
  border-radius: 10px;
}

.conteudo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.equipe-stats {
  grid-column: 1/-1;
  position: relative;
  z-index: 1;
  margin-top: 30px;
  margin-bottom: 10px;
  border-top: 4px solid red;
  border-bottom: 4px solid red;
}

.equipe-stats li,
.piloto-stats li {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5rem;
}

.equipe-stats li + li,
.piloto-stats li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.equipe-stats span,
.piloto-stats span {
  font-weight: normal;
}

.img-piloto,
.img-piloto2 {
  object-fit: cover;
}

.pilotos {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
}

.pilotos h2 {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
}

.pilotos img {
  border-radius: 0px;
}

.piloto-stats {
  grid-column: 1/-1;
  border-top: 4px solid red;
  border-bottom: 4px solid red;
}

.footer {
  background-color: red;
  color: white;
  padding: 20px;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 30px;
}

#alfa-romeo:before,
#alpha-tauri:before,
#alpine:before,
#aston-martin:before,
#ferrari:before,
#hass:before,
#mclaren:before,
#mercedes:before,
#red-bull:before,
#williams:before {
  content: " ";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 400px;
}

#alfa-romeo:before {
  background-image: url(../img/logos/alfaromeo.png);
  background-size: 300px;
}

#alpha-tauri:before {
  background-image: url(../img/logos/alphatauri.png);
}

#alpine:before {
  background-image: url(../img/logos/alpine.png);
}

#aston-martin:before {
  background-image: url(../img/logos/astonmartin.png);
}

#ferrari:before {
  background-image: url(../img/logos/ferrari.png);
  background-size: 290px;
}

#hass:before {
  background-image: url(../img/logos/hass.png);
  background-size: 300px;
}

#mclaren:before {
  background-image: url(../img/logos/mclaren.png);
}

#mercedes:before {
  background-image: url(../img/logos/mercedes.png);
  background-size: 300px;
}

#red-bull:before {
  background-image: url(../img/logos/redbull.png);
}

#williams:before {
  background-image: url(../img/logos/williams.png);
}

@media (max-width: 1000px) {
  .container-1000 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .equipes {
    display: grid;
    grid-template-columns: repeat(5, 90px);
  }
}

@media (max-width: 700px) {
  .conteudo {
    grid-template-columns: 1fr;
  }

  .img-piloto,
  .img-piloto2 {
    max-height: 400px;
    object-position: top;
  }
  .img-piloto2 {
    grid-row: 4;
  }
}

@media (max-width: 500px) {
  .equipes {
    grid-template-columns: repeat(5, 70px);
  }
  .card-logo {
    width: 65px;
  }
  .pilotos img {
    border-radius: 0px;
    max-width: 67px;
  }
  #alfa-romeo:before,
  #alpha-tauri:before,
  #alpine:before,
  #aston-martin:before,
  #ferrari:before,
  #hass:before,
  #mclaren:before,
  #mercedes:before,
  #red-bull:before,
  #williams:before {
    opacity: 0.1;
  }
}

@keyframes show {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
