/* General style and structure for desktop */

html {
  height: 100%;
}

body {
  background-image: url('./images/fond-page.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  justify-content: space-around;
  height: 100%;
  width: 100%;
  font-family: sans-serif;
}

#overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#center, #leftPokemonCards, #rightPokemonCards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30%;
  height: 100%;
}


/* Style for center */

#logo {
  align-self: center;
  padding-bottom: 10%;
  width: 50%;
}

#centerPokemonCard {
  align-self: center;
  border: 4px solid #FFE557;
  border-radius: 8px;
  width: 50%;
  height: 50%;
}

#allPokemons {
  display: inline-block;
  height: 100%;
  overflow: auto;
}

#pokemonHead, .choosenPokemon div:first-child {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8% 5% 0% 5%;
}

#pokemonImage, .choosenPokemon div:nth-child(2) {
  margin: 5%;
  position: relative;
}

#pokemonImageBackground {
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  height: 30%;
  width: 100%;
  border: 1px solid rgb(0, 0, 0);
}

#pokemonFigure {
  position: absolute;
  top: -10%;
  left: 25%;
  width: 50%;
}

#pokemonAbilities div, .choosenPokemon div div, p {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0% 5% 3% 5%;
}

h2, h3 {
  margin: 0%;
  font-size: 70%;
}

p {
  font-size: 0.5em;
}

h2:first-child::first-letter, h3::first-letter, p::first-letter {
  text-transform: uppercase;
}

#pokemonAction {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 80%;
}

button {
  border: none;
  border-radius: 8px;
  box-shadow: 0px 0px 10px #000;
  padding: 1%;
  margin: 5% 0 0 0;
  width: 60%;
  height: 40px;
}

#start {
  background-color: #FFCB05;
}

#stop {
  background-color: #CB5252;
  color: #FFFFFF;
}


/* Style for deck */

.number {
  color: rgba(255, 255, 255, 0.3);
  align-self: center;
  width: 50%;
  margin: 3%;
}

.number h1 {
  font-style: bold;
  font-size: 1.5em;
  text-align: center;
  margin: 0%;
}

.borderPokemonCard {
  border: 7px solid rgba(255, 255, 255, 0.3);
  padding: 10%;
}

.borderPokemonCard div:only-child {
  width: 100%;
  height: 160px;
  color: #000;
  border: 4px solid #FFE557;
  border-radius: 8px;
  background-color: white;
}

.choosenPokemon {
  overflow: auto;
  width: 100%;
  height: 100%;
}


/* General style and structure for mobile */

@media only screen and (max-width: 700px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  #leftPokemonCards, #rightPokemonCards {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .borderPokemonCard {
    margin: 10px;
  }
  
}