:root {
    --main_color: rgb(85, 170, 170);
}

body {
    background-color: var(--main_color);
    margin: 0;
}

main {
    margin-top: 80px;
}

#pokemonModal {
    position: fixed;
    padding: 20px;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    
    /* 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 */
    display: grid;
    text-align: center;
  }
  
  .modal-content {
    margin: auto;
    display: inline-block;
    box-sizing: border-box;
    background: #fff;
    padding: 15px;
    width: 100%;
    max-width: 700px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .modal-close {
    float: right;
    border: 0;
    background: none;
    color: #777;
    text-decoration: underline;
  }
  
  .modal h1 {
    margin-top: 0;
    text-transform: capitalize;
  }
  
  .modal p {
    margin-bottom: 0;
  }
  
  #pokemonModal {
    display: none;
  }
  
  #pokemonModal.is-visible {
    /* CSS for modal container - add your own desired CSS styles here */
    display: block;
  }



  .pokemon-list {
    margin: 0 20px; /* Equal margin to the side edges */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Define 2 columns with equal width */
    grid-auto-rows: minmax(100px, auto); /* Set automatic row height with a minimum of 100px */
    gap: 10px; /* Gap between grid items */
    list-style: none;
    padding: 0;
}

/* Media Query for 640px to 832px */
@media screen and (min-width: 640px) and (max-width: 832px) {
    .pokemon-list {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}

/* Media Query for to 832px and above */
@media screen and (min-width: 832px) {
    .pokemon-list {
        grid-template-columns: repeat(6, 1fr); /* 6 columns */
    }
}

.button-class {
    display: inline-block;
    text-transform: capitalize;
    color: white; /* Set text color to white */
    background-color: transparent; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Set cursor to pointer */
    text-decoration: underline;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.button-class:hover {
    background-color: rgb(6, 0, 132); /* Change background color on hover */
}

.pokemon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.pokemon-item img {
    margin-bottom: 5px; /* Space between image and button */
}



.headerAll {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(254, 254, 254) rgb(10, 10, 10) rgb(10, 10, 10) rgb(254, 254, 254);
    box-shadow: rgb(223, 223, 223) 1px 1px 0px 1px inset, rgb(132, 133, 132) -1px -1px 0px 1px inset;
    box-sizing: border-box;
    background: rgb(198, 198, 198);
    color: rgb(10, 10, 10);
    position: fixed;
    top: 0px;
    right: 0px;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 3;
}


.headerContent {
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    padding: 4px;
    justify-content: space-between; 
}

.buttonPoké95 {
    box-sizing: border-box;
    background: rgb(198, 198, 198);
    color: rgb(10, 10, 10);
    border: none;
    position: relative;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    height: 36px;
    width: auto;
    padding: 0px 10px;
    font-size: 1rem;
    user-select: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-right: 6px;
    cursor: pointer;
}

.buttonPoké95::before {
    box-sizing: border-box;
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(254, 254, 254) rgb(10, 10, 10) rgb(10, 10, 10) rgb(254, 254, 254);
    box-shadow: rgb(223, 223, 223) 1px 1px 0px 1px inset, rgb(132, 133, 132) -1px -1px 0px 1px inset;
}

.buttonPoké95::after {
    content: "";
    position: absolute;
    display: block;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

.headerMid1 {
    position: relative;
    box-sizing: border-box;
    padding: 2px;
    font-size: 1rem;
    border-style: solid;
    border-width: 2px;
    border-color: rgb(132, 133, 132) rgb(254, 254, 254) rgb(254, 254, 254) rgb(132, 133, 132);
    line-height: 1.5;
}

.headerMid1::before {
    position: absolute;
    left: 0px;
    top: 0px;
    content: "";
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-style: solid;
    border-width: 2px;
    border-color: rgb(10, 10, 10) rgb(223, 223, 223) rgb(223, 223, 223) rgb(10, 10, 10);
    pointer-events: none;
    box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px inset;
}

.headerMid2 {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    width: auto;
    min-height: 36px;
    background: rgb(255, 255, 255); 
}

.headerSearch {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: none;
    font-size: 1rem;
    min-height: 27px;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(10, 10, 10);
    padding: 0px 8px;
    width: 150px;
}