* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: black;
  font-family: var(--Myfont);
  font-weight: 300;
  font-size: 18px;
}

b,
br {
  color: black;
}

h1 {
  color: white;
}

.Body {
  background: var(--DarkBackground1);
  width: 100%;
  height: 100vh;
  position: relative;
  font-family: Roboto;
  color: black;
}

#Race {
  min-height: 100%;
  opacity: 1;
  animation: noRace2 1s;
  visibility: visible;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

/* animation al abrir */

@-webkit-keyframes noRace2 {
  0% {
    -webkit-transform: translateZ(700px) translateY(-300px);
    transform: translateZ(700px) translateY(-300px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

@keyframes noRace2 {
  0% {
    -webkit-transform: translateZ(700px) translateY(-300px);
    transform: translateZ(700px) translateY(-300px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

/* ANIMACIÓN PHONE */
.animation {
  visibility: hidden;
  height: 0;
  width: 0;
}

/* tablas*/
/* ---------FILA 1 (CONTAINER 1)*/

.container_1 {
  width: 98%;
  background: var(--DarkBackground2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  height: 40px;
  padding: 2px 20px 2px 20px;
  border-radius: 10px 10px 0 0;
  max-width: 90%;
}

.organizar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.s_name {
  padding: 0px 0px 0px 5px;
  color: var(--AzulPixelcom);
}

/* tablas*/
/* ---------FILA 2 (CONTAINER 2)*/

.container_2 {
  width: 98%;
  background: var(--DarkBackground3);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  text-align: center;
  height: 40px;
  max-width: 90%;
  box-shadow: 0px -16px 12px -10px rgba(0, 0, 0, 0.2);
}

.time,
.remaining,
.elapsed,
.laps1,
.remaininglaps,
.elapsedlaps {
  align-self: center;
  font-weight: bold;
}

/* tablas*/
/* ---------FILA 3 (CONTAINER 3)*/

.container_3 {
  width: 98%;
  background: var(--DarkBackground2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  text-align: center;
  height: 40px;
  max-width: 90%;
  margin-bottom: 5px;
}

.time_nr,
.remainingtime_nr,
.elapsedtime_nr,
.laps_nr,
.remaininglaps_nr,
.elapsedlaps_nr {
  align-self: center;
}

/* tablas*/
/* ---------FILA 4 (CONTAINER 4)  linea AZUL */
.container_4 {
  background: var(--AzulPixelcom);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 100px 100px 2fr repeat(5, 1fr);
  text-align: center;
  height: 40px;
  max-width: 90%;
  color: white;
}

.position,
.number,
.laps,
.driver,
.bestlap,
.lastlap,
.gap,
.diff,
.pit {
  align-self: center;
  padding: 0px 2px 0px 5px;
  color: white;
  font-weight: bold;
}

/* tablas*/

.container_5 {
  background: var(--DarkBackground2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 100px 100px 2fr repeat(5, 1fr);

  height: 40px;
  max-width: 90%;
}

.container_5:nth-child(even) {
  background-color: var(--DarkBackground3);
}

.position_list,
.number_list,
.laps_list,
.driver_list,
.bestlap_list,
.lastlap_list,
.gap_list,
.diff_list,
.pit_list {
  align-self: center;
  text-align: center;
  /* padding: 0px 2px 0px 5px; */
}

.driver_list {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bestlap_list {
  color: #ff8800;
}

.lastlap_list {
  color: #0f9960;
}

/* responsive + animations*/

@media screen and (max-width: 1000px) {
  * {
    font-size: 16px;
  }

  .driver_list {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .container_4 {
    background: var(--AzulPixelcom);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50px 50px 50px 2fr repeat(5, 1fr);
    text-align: center;
    height: 40px;
    max-width: 90%;
  }

  .container_5 {
    background: var(--DarkBackground2);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50px 50px 50px 2fr repeat(5, 1fr);
    height: 25px;
    max-width: 90%;
  }

  .container_1 {
    border-radius: 5px 5px 0 0;
    max-height: 35px;
    max-width: 100%;
    width: 99%;
  }

  .container_2 {
    max-height: 37px;
    max-width: 100%;
    width: 99%;
  }

  .container_3 {
    max-height: 25px;
    max-width: 100%;
    width: 99%;
  }

  .container_4,
  .container_5 {
    max-width: 99%;
  }
}

@media screen and (max-width: 556px) {
  * {
    font-size: 14px;
  }

  .gap,
  .gap_list,
  .diff,
  .diff_list {
    visibility: hidden;
  }

  .container_4,
  .container_5 {
    grid-template-columns: 1fr 1fr 1fr 2fr 2fr 2fr 1px 1px 1fr;
    height: 25px;
  }

  .driver_list {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .animation {
    display: block;
    margin: 0 auto;
    margin-bottom: 5%;
    margin-top: 5%;
    height: 20vh;
    width: 20vh;
    opacity: 1;
    animation: effect 4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-delay: 1s;
  }

  @keyframes effect {
    0% {
      margin-bottom: 5%;
      margin-top: 5%;
      height: 20vh;
      width: 20vh;
      opacity: 0;
      visibility: visible;
    }

    20% {
      margin-bottom: 5%;
      margin-top: 5%;
      height: 20vh;
      width: 20vh;
      opacity: 1;
      visibility: visible;
    }

    40% {
      margin-bottom: 5%;
      margin-top: 5%;
      height: 20vh;
      width: 20vh;
      opacity: 1;
      visibility: visible;
    }

    60% {
      margin-bottom: 5%;
      margin-top: 5%;
      height: 20vh;
      width: 20vh;
      opacity: 0;
      visibility: visible;
    }

    90% {
      margin-bottom: 5%;
      margin-top: 5%;
      height: 20vh;
      width: 20vh;
      opacity: 1;
      visibility: visible;
    }

    100% {
      margin-bottom: 0%;
      margin-top: 0%;
      height: 0vh;
      width: 0vh;
      opacity: 0;
      visibility: hidden;
    }
  }
}
