/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
  }
  
  body {
    position: relative;
    top: 100px;
  }
  
  /* header */
  header {
    height: 100px;
    width: 100%;
    background-color: #e8e8e8;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    position: fixed;
    top: 0;
  }
  
  .pokemon-logo {
    padding: 10px 0;
  }
  
  #pokeball {
    height: 130%;
    position: relative;
    width: 80px;
    top: -5px;
  }
  
  /* main */
  
  h1,
  .search-bar {
    font-size: 24px;
    margin: 2%;
  }
  
  h2 {
    font-size: 18px;
  }
  
  /* search bar */
  
  .search-bar {
    margin-bottom: 2%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  
  .search-bar__input,
  .search-bar__button {
    font: inherit;
    font-size: 12px;
    padding: 5px;
    border-radius: 2%;
  }
  
  .search-bar__button {
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid black;
    margin-left: 10px;
  }
  
  /* pokemon list */
  
  .pokemon-list {
    list-style-type: none;
    padding-left: 0px;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    -ms-grid-rows: auto;
    grid-template-rows: auto;
    gap: 10px;
    margin: 10px 50px 10px;
  }
  
  .pokemon-list > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  
  .pokemon-list > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }
  
  .pokemon-list > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
  }
  
  .pokemon-list > *:nth-child(4) {
    -ms-grid-row: 1;
    -ms-grid-column: 7;
  }
  
  .pokemonList__item {
    text-align: center;
    width: 100%;
    border: 1px solid black;
    padding: 30px 0px;
  }
  
  .pokemon__name {
    font-size: 16px;
    border: none;
    background: none;
    font-family: 'Press Start 2P', cursive;
    width: 100%;
    height: 100%;
  }
  
  .pokemon__name:hover,
  .pokemonList__item:hover,
  .search-bar__button {
    cursor: pointer;
    background-color: #cc0000;
    color: white;
  }
  
  /* modal styling */
  
  .modal-dialog {
    height: 80vw;
  }
  
  .modal-content {
    background-color: #3b4cca;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    overflow: auto;
  }
  
  .btn-secondary {
    background-color: #e8e8e8;
    color: black;
  }
  
  .modal-img {
    width: 50%;
    overflow: hidden;
    background-color: #ffde00;
    border-radius: 50%;
    border: 1px solid black;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    margin-bottom: 2%;
  }
  
  .modal-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
    color: white;
  }
  
  .modal-title,
  span {
    color: white;
    float: right;
  }
  
  /* media queries */
  @media all and (max-width: 500px) {
    .pokemon__name {
      font-size: 14px;
    }
  
    .pokemon-list {
      -ms-grid-columns: 1fr;
      grid-template-columns: 1fr;
    }
  }
  
  @media all and (min-width: 500px) and (max-width: 750px) {
    .pokemon-list {
      -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media all and (max-width: 750px) {
    h1 {
      text-align: center;
    }
  
    .search-bar {
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
    }
  }