@font-face {
  font-family: "fontPrincipal";
  src: url(../src/fonts/DemiBold.ttf) format("truetype");
}

@font-face {
  font-family: "titleFont";
  src: url(fonts/Pixel.otf) format("opentype");
}

@keyframes changeColors {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

* {
  padding: 0;
  margin: 0;
}

html {
  background: linear-gradient(45deg, palegoldenrod, pink, palegreen, skyblue);
  background-size: 400% 400%;
  position: relative;
  animation: changeColors 5s ease-in-out infinite;
  height: 100%;
}


header,
footer,
main {
  display: flex;
  place-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

body {
  height: 100%;
  display: flex;
  place-content: center;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
}

main {
  gap: 4%;
  height: 100%;
}

.title {
  color: black;
  font-size: 80px;
  font-family: "Jockey One", serif;
  font-weight: 400;
}

footer {
  font-family: "Jockey One", serif;
  font-size: 37px;
  background-color: rgba(0, 0, 0, 0.200);
  color: rgba(0, 0, 0, 0.600);
  height: 8%;
}

header {
  height: 12%;
  background-color: rgba(0, 0, 0, 0.120);
}

textarea[name="user-input"] {
  padding: 10px;
  width: 70%;
  min-height: 55%;
  border-width: 10px;
  border-radius: 10px;
  border-color: rgba(0, 0, 0, 0.200);
  background-color: rgba(255, 255, 255, 0.5);
  font-family: "fontPrincipal";
  font-size: 25px;
}

#reset-button {
  color: black;
  transition-duration: 0.2s;
  font-family: "Jockey One", serif;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 30px;
  border: none;
  padding: 0.5%;
  width: 40%;
  border-radius: 10px;
  background: linear-gradient(45deg, rgb(255, 241, 83), rgb(255, 88, 116), rgb(83, 242, 83), rgb(35, 193, 255));
  background-size: 400% 400%;
  position: relative;
  animation: changeColors 3s ease-in-out infinite;
}

#reset-button:hover {
  color: white;
  font-size: 35px;
}

.metricsContainerPrincipal {
  display: grid;
  width: 70%;
  row-gap: 7%;
  column-gap: 3%;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(20px, auto);
}

.metric-container {
  display: flex;
  align-items: center;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  padding: 30px 15px;
  background-color: rgb(0, 0, 0, 0.5);
}

.metric-container>h1 {
  font-family: "Jockey One", serif;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 29px;
  color: white;
}

/* Estilos para tablets (pantallas entre 600px y 919px) */
@media only screen and (min-width: 600px) and (max-width: 919px) {
  header {
    height: 16%;
  }

  .title {
    font-size: 55px;
  }

  footer {
    font-size: 25px;
    height: 10%;
  }

  textarea[name="user-input"] {
    border-width: 5px;
    font-size: 13px;
    min-height: 45%;
    width: 76%;
  }

  .metricsContainerPrincipal {
    grid-template-columns: repeat(3, 1fr);
    width: 79%;
    row-gap: 10%;
    column-gap: 3%;
  }

  .metric-container {
    padding: 25px 15px;
  }

  .metric-container>h1 {
    font-size: 18px;
  }

  #reset-button {
    font-size: 25px;
    padding: 0.5%;
    width: 28%;
  }

  #reset-button:hover {
    font-size: 28px;
  }

}

/* pc */
@media only screen and (min-width: 920px) {
  header {
    height: 20%;
  }

  .title {
    font-size: 50px;
  }

  footer {
    font-size: 17px;
    height: 10%;
  }

  textarea[name="user-input"] {
    border-width: 5px;
    font-size: 13px;
    min-height: 45%;
    width: 60%;
  }

  .metricsContainerPrincipal {
    grid-template-columns: repeat(3, 1fr);
    width: 61%;
    row-gap: 15%;
    column-gap: 5%;
  }

  .metric-container {
    padding: 15px 15px;
  }

  .metric-container>h1 {
    font-size: 16px;
  }

  #reset-button {
    font-size: 17px;
    padding: 0.5%;
    width: 18%;
  }

  #reset-button:hover {
    font-size: 20px;
  }

}