:root {
  --blue: #3B4CCA;
  --darkblue: #172EDA;
  --yellow: #FFDE00;
  --darkyellow: #E0C613;
  --red: #FF0000;
  --darkred: #CC0000;
  --lightpurple: #dad5f2;
  --white: #ffffff;
}



* {
  margin: 0;
  }
  body {
    font-family: 'Mochiy Pop P One', sans-serif;
     background-color: var(--blue);
  }

  .button-style {
        font-family: 'Mochiy Pop P One', sans-serif;
  }
h1 {
  margin-left: 20px;
  font-size: 30px;
}
.container {
  display: flex;
  flex-direction: column;
  background-color: var(--blue);
}

img {
margin-top: 20px;
margin-bottom: 20px;
align-self: center;
}

.pokedex-screen {
  display: block;
  padding: 20px;
  min-width: 300px;
  max-height: 300px;
  overflow: scroll;
  border: 40px solid var(--darkyellow);
  margin: auto;
  justify-content: center;
  border-radius: 20px;
  background-color: var(--blue);
  margin-bottom: 10vh;
  margin-top: 20px;
}
.pokemon-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--borderblue);
}

.button-style {
  background-color: var(--darkyellow);
  min-width: 300px;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 22px;
  margin: 2px 2px;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.2s;
  cursor: pointer;
  color: black;
  border: 6px solid var(--darkred);
  border-radius: 5px;
}
.button-style:first-letter {
  text-transform: capitalize;
}
.button-style:hover {
  transition: 200ms;
  background-color: var(--yellow);
  color: var(--red);
  border-color: var(--darkyellow);

}




#modal-container {
  display: none;
  position: fixed;
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);

  /* to show it above other content */
  z-index: 999;

  /* to allow scrolling if the screen is not high enough*/
  overflow: auto;

  /* this is used to center the modal */

  text-align: center;
}

#modal-container.is-visible {
  display: block;


}

.modal {
  margin-top: 200px;
  margin-left: auto;
  margin-right: auto;
  border: lightgrey;
  border-radius: 20px;
  display: block;
  box-sizing: border-box;
  background: var(--lightpurple);
  padding: 15px;
  width: 100%;
  max-width: 300px;
  min-height: 300px;
  text-align: center;
  animation-duration: 300ms;
  animation-name: fadeIn;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.pokemon-modal-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--white);
  border-radius: 80px;
}

.modal-close {
  float: right;
  -webkit-appearance: none;
  border: 2px solid black;
  border-radius: 5px;
  background: none;
  color: #777;
  font-size: 20px;
}

.modal h1 {
  margin-top: auto;
  display: inline-block;
  font-size: 20px;
  color: black;
  text-transform: capitalize;
}

.modal p {
  margin-bottom: 0;

}

  input {
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    color: black;
    border: 6px solid var(--darkred);
    border-radius: 5px;
    font-size: 20px;
    background-color: var(--yellow);
  }
