/* Include Code  */

/* RedHatDisplay-Black */
@font-face {
  font-family: "RedHatDisplayBlack";
  src: url("./fonts/RedHatDisplay-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-BlackItalic */
@font-face {
  font-family: "RedHatDisplayBlackItalic";
  src: url("./fonts/RedHatDisplay-BlackItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-Bold */
@font-face {
  font-family: "RedHatDisplayBold";
  src: url("./fonts/RedHatDisplay-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-BoldItalic */
@font-face {
  font-family: "RedHatDisplayBoldItalic";
  src: url("./fonts/RedHatDisplay-BoldItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-ExtraBold */
@font-face {
  font-family: "RedHatDisplayExtraBold";
  src: url("./fonts/RedHatDisplay-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-ExtraBoldItalic */
@font-face {
  font-family: "RedHatDisplayExtraBoldItalic";
  src: url("./fonts/RedHatDisplay-ExtraBoldItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-Italic */
@font-face {
  font-family: "RedHatDisplayItalic";
  src: url("./fonts/RedHatDisplay-Italic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-Light */
@font-face {
  font-family: "RedHatDisplayLight";
  src: url("./assets/fonts/RedHatDisplay-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-LightItalic */
@font-face {
  font-family: "RedHatDisplayLightItalic";
  src: url("./fonts/RedHatDisplay-LightItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-Medium */
@font-face {
  font-family: "RedHatDisplayMedium";
  src: url("./fonts/RedHatDisplay-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-MediumItalic */
@font-face {
  font-family: "RedHatDisplayMediumItalic";
  src: url("./fonts/RedHatDisplay-MediumItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-Regular */
@font-face {
  font-family: "RedHatDisplayRegular";
  src: url("./fonts/RedHatDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-SemiBold */
@font-face {
  font-family: "RedHatDisplaySemiBold";
  src: url("./fonts/RedHatDisplay-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* RedHatDisplay-SemiBoldItalic */
@font-face {
  font-family: "RedHatDisplaySemiBoldItalic";
  src: url("./fonts/RedHatDisplay-SemiBoldItalic.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

/* Clases CSS para cada fuente importada */

/* Clase para RedHatDisplayBlack */
.RedHatDisplayBlack {
  font-family: "RedHatDisplayBlack";
}

/* Clase para RedHatDisplayBlackItalic */
.RedHatDisplayBlackItalic {
  font-family: "RedHatDisplayBlackItalic";
}

/* Clase para RedHatDisplayBold */
.RedHatDisplayBold {
  font-family: "RedHatDisplayBold";
}

/* Clase para RedHatDisplayBoldItalic */
.RedHatDisplayBoldItalic {
  font-family: "RedHatDisplayBoldItalic";
}

/* Clase para RedHatDisplayExtraBold */
.RedHatDisplayExtraBold {
  font-family: "RedHatDisplayExtraBold";
}

/* Clase para RedHatDisplayExtraBoldItalic */
.RedHatDisplayExtraBoldItalic {
  font-family: "RedHatDisplayExtraBoldItalic";
}

/* Clase para RedHatDisplayItalic */
.RedHatDisplayItalic {
  font-family: "RedHatDisplayItalic";
}

/* Clase para RedHatDisplayLight */
.RedHatDisplayLight {
  font-family: "RedHatDisplayLight";
}

/* Clase para RedHatDisplayLightItalic */
.RedHatDisplayLightItalic {
  font-family: "RedHatDisplayLightItalic";
}

/* Clase para RedHatDisplayMedium */
.RedHatDisplayMedium {
  font-family: "RedHatDisplayMedium";
}

/* Clase para RedHatDisplayMediumItalic */
.RedHatDisplayMediumItalic {
  font-family: "RedHatDisplayMediumItalic";
}

/* Clase para RedHatDisplayRegular */
.RedHatDisplayRegular {
  font-family: "RedHatDisplayRegular";
}

/* Clase para RedHatDisplaySemiBold */
.RedHatDisplaySemiBold {
  font-family: "RedHatDisplaySemiBold";
}

/* Clase para RedHatDisplaySemiBoldItalic */
.RedHatDisplaySemiBoldItalic {
  font-family: "RedHatDisplaySemiBoldItalic";
}

.navbar-brand img {
  height: 5.5rem;
  width: auto;
}

.icon-back {
  height: 1rem !important;
  width: auto;
}

.navbar-light .navbar-toggler {
  color: rgba(0, 0, 0, 0.1);
  border-color: white;
  background: white;
}

.text-title-name {
  color: white;
}

.text-pts {
  color: #ffce00;
}

.text-items-nav {
  color: #ffce00 !important;
}

.navbar-nav .nav-link.active {
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: red;
  border-radius: 2px;
  transform: translateY(-250%);
}

.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: red;
  border-radius: 2px;
  transform: translateY(-250%);
}

@media (max-width: 767.98px) {
  ul.navbar-nav.ms-auto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px !important;
  }

  .items-menu-mobile {
    background: #000c4b;
    color: #fff;
    text-transform: uppercase;
    border: 2px solid #ffce00;
    border-radius: 0.5rem;
    font-size: 1.5rem !important;
    width: 60%;
    text-align: center;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link.active {
    background: #ffeb00;
    color: #000c4b !important;
    text-transform: uppercase;
    border: 3px solid #000c4b;
    border-radius: 0.5rem;
    margin: 0px;
    padding: 0px;
    width: 100%;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    border-radius: 2px;
    transform: translateY(-250%);
  }

  .navbar-nav .nav-link:hover {
    background: #ffeb00;
    color: #000c4b !important;
    text-transform: uppercase;
    border: 3px solid #000c4b;
    border-radius: 0.5rem;
    margin: 0px;
    padding: 0px;
    width: 100%;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .navbar-nav .nav-link:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    border-radius: 2px;
    transform: translateY(-250%);
  }
}

@media (max-width: 991.98px) {
  .navbar-expand-md {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  ul.navbar-nav.me-auto {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 992px) {
  ul.navbar-nav.ms-auto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto !important;
  }
}

.message h1 {
  color: #e74c3c;
  margin: 0;
}

.message p {
  color: #888;
  margin: 5px 0 20px;
}

@keyframes flipTop {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(-180deg);
  }
}

@keyframes flipBottom {
  0% {
    transform: rotateX(180deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

.counter-container {
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
}

.counter-title {
  background: white;
  width: 160%;
  margin-left: -95px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 20px 8px rgba(0, 0, 0, 0.2);
  margin-top: -40px;
}

.text-margin {
  margin-top: -10px;
  font-size: 20px;
}

.span {
  font-size: 20px;
}

.external-container-inicio {
  width: 100%;
  height: 100vh;
  padding: 2rem;

  background-position:
    center top,
    center bottom,
    center center;

  background-size:
    100% auto,
    100% auto,
    cover;

  background-repeat: no-repeat;

  background-attachment:
    fixed,
    fixed,
    fixed;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  margin: 0;
  position: relative;
}

.state-intro .external-container-inicio,
.state-scream-setup .external-container-inicio {
  background-image:
    url(assets/cancha-superior.png),
    url(assets/cancha-copa.png),
    url(assets/Fondo.png);
}

.state-game .external-container-inicio,
.state-scoring .external-container-inicio,
.state-final-image .external-container-inicio,
.state-final-buttons .external-container-inicio {
  background-image:
    url(assets/cancha-superior.png),
    url(assets/cancha-balon.png),
    url(assets/Fondo.png);
}

.state-final-image #counterScore,
.state-final-buttons #counterScore {
  display: none !important;
}

#counterScore .card {
  width: 70%;
}

.title-card-score,
#adviserScream h1 {
  font-size: 40px !important;
  font-weight: bold;
  margin-bottom: 3rem;
}

.position-relative {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-fluid-mic {
  max-width: 90%;
  height: auto;
  margin: 5rem 0;
}

.img-fluid-other-mic {
  max-width: 30%;
  height: auto;
}

.custom-button {
  position: absolute;
  bottom: -30px;
  background: linear-gradient(to bottom, #ffdd33, #ffa800);
  border: none;
  border-radius: 40px;
  color: #693300;
  padding: 19px 100px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 12px #e68e0a;
  transition: all 0.2s ease;
  margin-right: 7px;
}

.custom-button-gol {
  position: absolute;
  bottom: -40px;
  background: linear-gradient(to bottom, #ffdd33, #ffa800);
  border: none;
  border-radius: 40px;
  color: #693300;
  padding: 5px 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 7px #e68e0a;
  transition: all 0.2s ease;
  margin-right: 7px;
}

.custom-button:hover {
  background: linear-gradient(to bottom, #ffa800, #ffdd33);
}

.custom-button-gol:hover {
  background: linear-gradient(to bottom, #ffa800, #ffdd33);
}

.custom-button:active {
  box-shadow: 0 6px #d17e00;
  /* Adjusted shadow for active state */
  transform: translateY(6px);
  /* Adjusted translation for active state */
}

.custom-button-gol:active {
  box-shadow: 0 6px #d17e00;
  /* Adjusted shadow for active state */
  transform: translateY(6px);
  /* Adjusted translation for active state */
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  color: #f60000;
  text-align: center;
  background-color: #000000e5;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.countdown-container .countdown {
  font-size: 5rem;
}

* {
  font-family: Helvetica;
}

#counter {
  padding-top: 0px;
  /* margin-top: 40px; */
  font-size: 128px;
  height: 100px;
  line-height: 1em;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  background: #444;
  color: white;
  border-radius: 10px;
}

.digit {
  overflow: hidden;
  height: 80px;
  /* altura de un solo número */
  width: 69px;
  border-radius: 10px;
  background: #666;
  margin: 5px;
  position: relative;
}

.digit-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-out;
}

.card-number {
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 70px;
  color: white;
}

.mt-15 {
  margin-top: -10px;
}

.foreground {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: linear-gradient(white 5%,
      transparent 35%,
      transparent 60%,
      white 85%);
}

@keyframes rotateUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

.w-120 {
  width: 120% !important;
  top: 10px;
  z-index: 1;
}

.title-score {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0px;
}

.d-title-score {
  margin-bottom: 15px;
  font-size: 25px;
  color: red;
  font-weight: 100;
}

.moving-background {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 170vw;
  height: 100vh;
  overflow: hidden;
}

.moving-image {
  position: absolute;
  bottom: 0rem;
  left: 0;
  width: 40%;
  animation: moveDiagonalReverse 30s linear infinite;
}

@keyframes moveDiagonalReverse {
  0% {
    transform: translateX(-100%) translateY(0%);
  }

  100% {
    transform: translateX(300%) translateY(-100%);
  }
}

.custom-puntaje {
  background: #f50000;
  background: linear-gradient(90deg,
      rgba(245, 0, 0, 1) 0%,
      rgba(207, 14, 135, 1) 100%);
  border: none;
  border-radius: 40px;
  color: white;
  padding: 5px 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 7rem 0;
}

.title-puntaje {
  font-weight: bold;
  font-size: 22px;
}

.btn-back {
  position: absolute;
  bottom: -80px;
  background: linear-gradient(to bottom, #ffdd33, #ffa800);
  border: none;
  border-radius: 40px;
  color: #693300;
  padding: 5px 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 7px #e68e0a;
  transition: all 0.2s ease;
  margin-right: 7px;
}

.btn-startGame,
.second-custom-button-gol {
  background: #f50000;
  background: linear-gradient(90deg,
      rgba(245, 0, 0, 1) 0%,
      rgba(207, 14, 135, 1) 100%);
  border: none;
  border-radius: 40px;
  color: white;
  padding: 5px 40px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 7rem 0;
}

.btn-startGame:hover,
.second-custom-button-gol:hover {
  background: linear-gradient(to bottom, red, red);
  color: #6ed4e1;
  border: 1px solid white;
}

.btn-thanks {
  margin-top: 2rem;
  background: linear-gradient(to bottom, red, red);
  border: none;
  border-radius: 40px;
  color: white;
  padding: 5px 40px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 7px;
  border: white;
}

.text-avianca {
  color: #f60000;
}

.hidden-desktop {
  display: block;
}

.hidden-mobile {
  display: none;
}

.introSection h1 {
  font-size: 50px;
}

.introSection h2 {
  font-size: 22px;
}


#finalImageSection img {
  width: 100%;
  height: 80%;
  padding: 2rem;
  object-fit: contain;
}

#gameSection h1 {
  font-size: 25px;
}

#gameSection {
  position: relative;
}

#footerImage {
  justify-content: end;
}

#footerImage img {
  width: 7rem;
  margin-right: 1rem
}

@media (min-width: 769px) {

  .title-puntaje {
  font-size: 2rem;
}

  .countdown-container .countdown {
    font-size: 10rem;
  }


  .img-fluid-mic {
    max-width: 60%;
  }

  .state-final-buttons #footerImage {
    justify-content: center;
  }

  .state-final-buttons #footerImage img {
    width: 25rem;
    margin-bottom: 5rem;
    margin-right: 0;

  }

  #footerImage img {
    width: 15rem;
    margin-right: 4rem;
  }

  .hidden-desktop {
    display: none;
  }

  .hidden-mobile {
    display: block;
  }

  .btn-startGame,
  .second-custom-button-gol {
    font-size: 40px;
  }

  .second-custom-button-gol {
    width: 50%;
  }



  .introSection h1 {
    font-size: 5rem;
    margin: 3rem 0;
  }

  .introSection h2,
  #gameSection h1 {
    font-size: 3rem;
  }

  .external-container-inicio {

    background-position:
      center right,
      center left,
      center center;

    background-size:
      auto 100%,
      auto 100%,
      cover;

    background-repeat: no-repeat;

    background-attachment:
      fixed,
      fixed,
      fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    margin: 0;
    position: relative;
  }

  .state-intro .external-container-inicio {
    background-image:
      url(assets/cancha-der-home.png),
      url(assets/cancha-izq-copa-2.png),
      url(assets/Fondo.png);
  }

  .state-scream-setup .external-container-inicio {
    background-image:
      url(assets/cancha-der-setup.png),
      url(assets/cancha-izq-copa.png),
      url(assets/Fondo.png);
  }

  .state-game .external-container-inicio,
  .state-scoring .external-container-inicio,
  .state-final-buttons .external-container-inicio {
    background-image:
      url(assets/cancha-der-game.png),
      url(assets/cancha-izq-balon.png),
      url(assets/Fondo.png);
  }


  .state-final-image .external-container-inicio {
    background-image:
      url(assets/cancha-der-final.png),
      url(assets/cancha-izq.png),
      url(assets/Fondo.png);
  }

  .container-text-final {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: first baseline;
    align-items: center;
    text-align: center;
  }

  .title-view-final h1 {
    background: #f50000;
    background: linear-gradient(90deg,
        rgba(245, 0, 0, 1) 0%,
        rgba(207, 14, 135, 1) 100%);
    font-size: 3.5rem;
  }

  .title-view-final {
    margin-bottom: 5rem;
  }

  .row-elements-final {
    display: flex;
    gap: 1rem;
    color: #f60000;
  }

  .row-elements-final div {
    gap: 2rem;
  }

  .text-thanks-end {
    font-size: 3rem;
  }

  .text-thanks-end strong {
    font-weight: bold;
  }

  .img-fluid-other-mic {
    max-width: 20%;
  }

  #counterScore .card {
    width: 100%;
  }

  .title-card-score,
  #adviserScream h1 {
    font-size: 5rem !important;
  }
}