body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background-image: url('https://i.imgur.com/jnIKzTj.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  
  
  
}

h1{
  font-size: 50px;
  color: #ffffff;
  letter-spacing: 5px;
  position: fixed;
  top: 25%; 
  left: 50%;
  transform: translate(-50%, -50%); 
  z-index: 1;
  
}

input[type="text"] {
  width: 200px;
  padding: 10px;
  margin: 10px;
  border: 5px solid #000000;
  border-radius: 50px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.1); 
  letter-spacing: 2.2px;
  font-weight: bold; 
  color: white; 
}

/*with positioning content, if transform: translate doesn't work first, then try to target the div instead*/

#change-color-btn {
  position: absolute;
  transform: translate(-39%, 143%);
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1); 
  
}

@keyframes flash {
  50%, 20% {
    background-color: rgba(255, 255, 0, 0.2);
  }
  100% {
    background-color: rgba(255, 255, 0, 0.6);
  }
  0%, 90% {
    background-color: rgba(255, 255, 0, 0.9);
  }
  
}

#change-color-btn:active {
  animation: flash 4s ease-in-out; 
}



#sprite-btn{
  height: 50px;
  width: 73px;
  border-radius: 40%;
  background-color: rgba(255, 255, 255, 0.1); 
  margin-top: 10px;
letter-spacing: 2px;
  text-align: center; 
}

label[for="pokemonName"]{
  color: white; 
  letter-spacing: 2px;
  margin-top: 20px;

}

.error-message {
  color: white; 
  letter-spacing: 2px; 
}

.container {
  text-align: center;
  position: relative;

}

label {
  margin-right: 5px;
  
}

input {
  padding: 5px;
}

button {
  padding: 5px 10px;
  cursor: pointer;
  border: 2px solid black; 
  background-color: #696969; 
  color: #ffffff; 
  letter-spacing: 1px;
  
}

.label-input-btn {
  display: flex; 
  flex-direction: row; 
  transform: translate(-1%, 311%);
 
  
}

#pokemonSpriteContainer {
  margin-top: 20px;
}

#pokemonSpriteContainer img {
  width: 150px; 
  height: 150px; 
}

.dynamic-container {
  height: 200px; 
  overflow: hidden;
  position: relative; 
  transform: translate(1%, 98%);

}


/* Bounce Animation */
@keyframes bounce {
  0%, 60%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(2px);
  }
  60% {
    transform: translateY(10px);
  }
}

.bouncing {
  animation: bounce 0.6s infinite;
}

/*looks decent on small screens*/
@media screen and (max-width: 768px) {

  #change-color-btn {
      position: absolute;
      transform: translate(-39%, 59%);
      z-index: 2;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.1);
  }
  #sprite-btn {
      height: 50px;
      width: 73px;
      border-radius: 40%;
      background-color: rgba(255, 255, 255, 0.1);
      margin-top: 10px;
      letter-spacing: 2px;
      text-align: center;
      position: relative;
      top: 43px;
      right: 36%;
  }

  label[for="pokemonName"] {
      color: white;
      letter-spacing: 2px;
      margin-top: 20px;
      position: relative;
      top: -46px;
      right: -13%;
  }

  input[type="text"] {
      width: 200px;
      padding: 10px;
      margin: 10px;
      border: 5px solid #000000;
      border-radius: 50px;
      font-size: 16px;
      background-color: rgba(255, 255, 255, 0.1);
      letter-spacing: 2.2px;
      font-weight: bold;
      color: white;
      position: absolute;
      top: -15%;
      right: 4%;
  }

  .dynamic-container {
      height: 90px;
      overflow: hidden;
      position: relative;
      transform: translate(1%, 288%);
  }
  #pokemonSpriteContainer {
      margin-top: -42px;
  }
   
}


