@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');


body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1, td, p, span {
  font-family: "Nunito";
}

h1 {  
  visibility: hidden;
  font-size: 1.2rem;
  margin-block-start: 0;
}

td, p {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

img {
  width: 96px;
  height: 96px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

table {  
  width: 80vw;
  background-color: white;
  border-radius: 1rem;
  padding: 1rem 3rem;
}

.button {  
  width: 12rem;
  margin: 0 auto;
  margin-block-start: 3rem;
  padding: 0 1rem;
  border-radius: 1rem;
  cursor: pointer;  
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.generate {
  font-size: 2rem;
  margin-inline-start: 1rem;
}

.pokeball {
  background-image: url(pokeball.svg);
  background-size: cover;
  height: 2rem;
  width: 2rem;
}

.info {
  background-image: url(info.svg);
  background-size: cover;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  margin-block-start: 2rem;
}

.info-expanded {
  background-color: white;
  width: 100vw;
  height: 100vh;
  position: absolute;
}

.info-expanded p {
  width: 80vw;
  margin: 0 auto;  
}

.info-expanded p:first-of-type {
  margin-block-start: 7rem;
}

.close {  
  font-size: 2.5rem;
  position: absolute;
  top: 1rem;
  right: 2rem;
}

@media (min-width: 500px) {

  h1 {
    visibility: visible;
    font-size: 3rem;
    text-align: center;
    margin-block-start: 3rem;
    margin-inline: 2rem;
  }

  td, p {
    font-size: 1.2rem;
  }  
  
  table {
    margin-block-start: 1rem;
    width: 20rem
  }

  .button {
    padding: 0;
  }

  .generate {
    font-size: 1.2rem;
    margin-inline-start: 0.5rem;
  }

  .pokeball {
    width: 2.5rem;
    height: 2.5rem;
  }

  .info {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .info-expanded {
    width: 20rem;
    height: fit-content;
    border-radius: 1rem;
    padding: 1rem;
    position: absolute;
    top: 4rem;
    right: 7%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  }

  .close {
    display: none;
  }

  .info-expanded p {
    width: fit-content;
    margin: 0;  
  }

  .info-expanded p:first-of-type {
    margin: 0;
  }

}
