/* FONT FAMILY */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@import url(../src/assets/fonts/PokemonSolid.ttf);


@font-face {
  font-family: 'PokemonFont';
  src: url('../src/assets/fonts/PokemonSolid.ttf') format('truetype');
}

/* START */
* {
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
}

p {
  margin: 0;
}

.hidden {
  display: none;
}


/* TITLE */

#title {
  background-color: #333;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  padding: 20px 0;
}


/* HEADER */

header {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

#ico {
  margin-left: 1rem;
}


/* MAIN */

.container {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100vh;
} 

.phrases {
  text-align: center;
}

#randomPhraseTitle {
  font-size: 2rem;
}

#randomPhrase {
  font-size: 1.4rem;
}

#phrase p {
  margin: 1rem;
}

.wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.main {
  display: flex;
  flex-grow: 1;
  margin-top: 0.5rem;
  background-color: #f0f0f0;
  padding: 0.3rem;
}

#expectations {
  font-size: larger;
  padding-top: 1rem;
  text-align: center;
}

aside {
  background-color: #f0f0f0;
  border: 0.3rem solid #333;
}

#inicio:hover{
  color: #2ab2ea;
}

a:visited{
  text-decoration: none;
  color: black;
}

.boxMain {
  flex: 85%;
  margin-left: 0.5rem;
  border: 0.3rem solid #333;
}

#phrase, #climate, #pokemon {
  padding: 0.7rem;
}

.boxAside {
  flex: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  gap: 3rem;
  padding-left: 0;
}

li a {
  background-color: rgb(199, 199, 199);
  border-radius: 0.7rem;
  padding: 0.5rem;
  text-decoration: none;
}


/* SHADOW TEXT */

/* Colores sacados de una página web */

.shadow1 {
  color: #4b0082; /* Indigo */
  padding: 15px;
  border-radius: 10px;
  text-shadow: 3px 3px 6px rgba(75, 0, 130, 0.4);
}

.shadow2 {
  color: #8b4513; /* SaddleBrown */
  padding: 10px;
  border-radius: 5px;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.5); 
}

.shadow3 {
  color: #4682b4; /* SteelBlue */
  padding: 10px;
  border-radius: 5px;
  text-shadow: 1px 1px 10px rgba(70, 130, 180, 0.7);
}

.shadow4 {
  color: #2e8b57; /* SeaGreen */
  padding: 10px;
  border-radius: 5px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); 
}

.shadow5 {
  color: #ff4500; /* OrangeRed */
  padding: 10px;
  border-radius: 5px;
  text-shadow: 1px 1px 5px rgba(255, 69, 0, 0.6); 
}


/* FOOTER */

footer {
  border: 0.3rem solid #333;
  display: flex;
  margin: 0.3rem;
  background-color: #f0f0f0;
  align-items: center;
  height: 5%;
}

#footerText {
  margin-left: auto;
  padding-right: 1rem;
}


/* CLIMATE */

#climate {
  height: 100%;
  padding: 0;
  /* Colores sacados de una página web */
  background: #a8ff78;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #78ffd6, #a8ff78);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #78ffd6, #a8ff78); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

#climateBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

#climateSelect {
  display: flex;
  align-items: center;
}

#climateTexts{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#climateSelectForm {
  width: 100%;
  margin: 0;
  padding: 1rem;
  position: relative;
}

/* Datos y colores del slider sacados de internet */
#slider {
  position: absolute;
  top: 0.25rem;
  left: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  transition: transform 0.5s ease, width 0.5s ease;
  z-index: -1;
}

.radioInputs {
  display: flex;
  justify-content: space-between;
  border-radius: 0.5rem;
  background-color: #eee;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 100%;
  font-size: 14px;
  margin-bottom: 5px;
  position: relative;
  flex-wrap: wrap;
}

.radioInputs .radio {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0,3rem;
}

.radioInputs .radio input {
  display: none;
}

.radioInputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem;
  color: rgba(51, 65, 85, 1);
  transition: all 0.15s ease-in-out;
  position: relative;
  z-index: +1;
}

.radioInputs .radio input:checked + .name {
  font-weight: 600;
}

.boxClimate:hover{
  box-shadow: 0px 0px 1rem grey;
}

#animatedIcon {
  width: 5rem;
}

.boxClimate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1; 
  border: 0.2rem solid black;
  margin: 0.5rem;
  text-align: center;
  min-width: 10rem;
  min-height: 15rem;
  border-radius: 1rem;
}

.boxClimate h3{
  padding: 1rem;
}

#box1{
  background-color: rgba(0,0,0,0.767);
  color:azure;  
}

#box2{
  background-color: darkslateblue;
  color:azure;    
  flex-direction: column;
}

#box3{
  background-color: #2ab2ea;
  color:azure; 
  flex-direction: column;
}


/* POKEMON */

#pokemon {
  height: 100%;
  padding: 0;
  /* Colores sacados de una página web */
  background: #F2994A;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #F2C94C, #F2994A);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #F2C94C, #F2994A); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

#pokemonBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#bigBoxPokemon {

  border: 0.2rem solid black;
  background-color: white ;
  margin: 0.5rem;
  text-align: center;
  height: 80%;
  min-width: 40%;
  border-radius: 1rem;
  padding: 1rem;
}

#loadingPokemon {
  display: flex;  
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.dataBoxPokemon {
  display: flex;
  flex-direction:row;
  padding: 0.5rem;
}

.miniBoxPokemon {
  color: #333;
  border-radius: 1rem;
  background-color: rgb(194, 194, 194);
  align-content: center;
  width: 5rem;
  margin: 0 0.4rem;
  padding: 0.2rem 1rem;
}

#idPokemon {
  color: black;
}

#namePokemon {
  font-family: 'PokemonFont', sans-serif;
  font-size: 1.5rem;
  margin: 0.5rem;
  letter-spacing: 0.3rem;
}

#typePokemon {
  background-color: #F2C94C;
  color: black;
}

#heightPokemon, #weightPokemon {
  background-color: lightblue;
  color: black;
}

#imgPokemon {
  width: 45%;
  min-width: 10rem;
  max-width: 18rem;
  margin: -0.7rem;
  padding-top: 0.5rem;
}

#loadingGif {
  max-width: 18vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  left: 0px;
}

.pokemonReset {
  position: relative;
  width: 3em;
  height: 3em;
  transform: rotateX(30deg);
  border-radius: .2em;
  border: 1px solid #3f3f3f;
  box-shadow: 0 .3em 0 .1em #3f3f3f;
  transition: all 150ms;
}

.pokemonReset::after {
  position: absolute;
  content: "f5";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .2em;
  text-align: end;
  color: #3f3f3f;
  min-height: 1rem;
}

.pokemonReset:active {
  transform: rotateX(30deg) translateY(.3em);
  box-shadow: 0 0 0 0 #3f3f3f;
}

/* Colores para cada tipo de Pokemon */
.pokemonTypeNormal {
  background-color: grey;
}

.pokemonTypeFire {
  background-color: firebrick;
  color: white;
}

.pokemonTypeWater {
  background-color: darkblue;
  color: white;
}

.pokemonTypeElectric {
  background-color: yellow;
}

.pokemonTypeGrass {
  background-color: greenyellow;
}

.pokemonTypeIce {
  background-color: lightblue;
}

.pokemonTypeFighting {
  background-color: red;
  color: white; 
}

.pokemonTypePoison {
  background-color:#4b0082;
  color: white;
}

.pokemonTypeGround {
  background-color: rgb(185, 185, 42);
}

.pokemonTypeFlying {
  background-color: #7250ec;
}

.pokemonTypePyschic {
  background-color: rgb(247, 99, 123);
}

.pokemonTypeBug {
  background-color: rgb(43, 148, 43);
  color: white;
}

.pokemonTypeRock {
  background-color: rgb(209, 139, 59);
}

.pokemonTypeGhost {
  background-color: rgb(83, 38, 165);
  color: white;
}

.pokemonTypeDragon {
  background-color: blue;
  color: white;
}

.pokemonTypeDark {
  background-color: rgb(35, 49, 31);
  color: white;
}

.pokemonTypeSteel {
  background-color: steelblue;
}

.pokemonTypeFairy {
  background-color: pink;
}


/* MEDIA QUERYS PARA QUE SE VEA BIEN EN TELÉFONOS O PANTALLAS PEQUEÑAS*/

@media (width<=850px){

  header{
    display: flex; 
    align-items: center; 
  } 

  #title{
    font-size: 1.5rem;
  }
}

@media (width<=740px){

  /* Saca el slider para que funcione bien y lo cambia por un borde de color */
  #slider {
    display: none;
  }

  .radioInputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    background-color: #eee;
    box-sizing: border-box;
    box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
    padding: 0.25rem;
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .radioInputs .radio {
    flex: 1 1 auto;
    text-align: center;
  }
  
  .radioInputs .radio input {
    display: none;
  }
  
  .radioInputs .radio .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    padding: 0.5rem 0;
    color: rgba(51, 65, 85, 1);
    transition: all 0.15s ease-in-out;
  }
  
  .radioInputs .radio input:checked + .name {
    background-color: white;
    font-weight: 600;
  }
}

@media (width<=600px){
  #title {
    font-size: 1.2rem;
  }

  .boxClimate {
    min-height: 10rem;
  }

  .radio {
    padding: 0.2rem;
  }
  
  .name{
    font-size: 1rem;
  }

  #footerText {
    margin: auto;
    padding-right: 1rem;
  }

  #bixBoxPokemon {
    height: auto;
  }
  
}

@media (width<=480px){
  .boxAside {
    padding-top: 0.60rem;
    align-items: normal;
  }

  .miniBoxPokemon {
    width: auto;
  }
}
