/* Styles from driver cards*/

#pilotsInfo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  align-self: center;
  justify-self: center;
  padding: 3em;
  gap: 3em;
}

.cardId {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-self: center;
  justify-self: center;
  border-radius: 10%;
  padding: 0.25em;
  margin: 1em;
  box-shadow: 0.25em 0.25em 0.5em rgba(0, 0, 0, 0.3);
}

.id-driver {
  align-self: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.driver-name {
  padding-top: 0.7em;
  font-size: 1em;
  text-align: center;
  font-weight: 900;
}

.driver-link {
  align-self: center;
  justify-self: center;
}

.driver-image {
  width: 65%;
}

/*  container styles for scheduled races */
.container-races {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: center;
}

.race {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  margin: 1em;
  width: 20vw;
  min-height: 450px;
  text-align: center;
  border-radius: 0.5em;
  box-shadow: 0.15em 0.15em 0.5em rgba(0, 0, 0, 0.3);
}

.circuit-image {
  margin: 1em 0;
  width: 30%;
  align-self: center;
}

.race h4 {
  color: #fa0f0f;
  padding: 0 2em;
  font-size: 2rem;
  text-shadow: 0.05em 0.05em 0.1em rgba(0, 0, 0, 0.3);
}

/* styles from team card id */
.container-constructors {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  /* grid-template-rows: 1fr; */
  align-items: center;
  justify-content: center;
}

.constructors-card {
  align-items: center;
  justify-content: center;
  border-radius: 10%;
  margin-top: 1em;
}

.constructors-card h2 {
  color: #fa0f0f;
  text-align: center;
  padding: 1em;
}

.team-items {
  height: 250px;
  width: 250px;
  border-radius: 10%;
  border: 1px #dddd solid;
}

.container-constructors img {
  width: 8em;
  height: fit-content;
  align-self: center;
  justify-content: center;
  border-radius: 2%;
  padding: 0.25em;
  margin-bottom: 1em;
}

/* styles from standing info teams & drivers */
#constructor-standings,
#driver-standings {
  display: flex;
  flex-direction: row;
  align-self: center;
  justify-self: center;
  width: 50%;
  gap: 3em;
  padding: 1.5em;
}

section {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
}

.position,
.points,
.wins,
.constructor,
.driver-card {
  font-weight: bold;
}

.constructor-card,
.driver-card {
  text-align: center;
  background-color: transparent;
  border-bottom-right-radius: 30%;
  border-top-left-radius: 30%;
  width: 80%;
  padding: 1em;
  box-shadow: 0.25em 0.25em 0.5em rgba(0, 0, 0, 0.2);
  border: 1px #ddd solid;
}

/* .constructor-card {
  width: 30%;
} */

.constructor-card h2,
.driver-card h2 {
  margin: 0.5em 0;
  color: #fa0f0f;
  font-size: 1.5em;
  font-weight: bold;
}

.constructor-card p,
.driver-card p {
  margin: 0.5em 0;
  color: #1a1b22;
}

/* styles from news  */
#feed-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  text-align: center;
  margin: 3rem auto;
  gap: 2rem;
  place-items: center;
  justify-content: center;
  max-width: 80%;
}

article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20vw;
  height: 50vh;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.4);
  background-color: transparent;
  border: 1px #ddd solid;
}

.news-card {
  height: 32vh;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.4);
  background-color: transparent;
  text-align: justify;
}

.article-image {
  height: 200px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

.news-title {
  margin-bottom: 1em;
  text-align: center;
  color: #fa0f0f;
}

.news-date {
  font-weight: 500;
}

/* styles from next race info */
.next-race-info {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  width: 30vw;
}

.next-race {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  width: 35vw;
  border-radius: 10px;
  margin: 1em;
  padding: 1em;
  text-align: center;
  box-shadow: 0.25em 0.25em 0.5em rgba(0, 0, 0, 0.4);
  border: 1px #ddd solid;
}

.next-race img {
  align-self: center;
  justify-self: center;
  border-radius: 5%;
  background-color: #f1f1f1;
}

/* styles from about index section */
.about-title {
  margin-top: 5rem;

}

.about {
  display: flex;
  flex-direction: row;
  font-size: 1em;
  justify-self: center;
}

.about p {

  margin-left: 4em;
  margin-right: 4em;
}