* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  font-family: sans-serif;
  justify-content: center;
  background-image: url('poke (3).jpg');
  background-position: center;
  height: 100vh;
  width: 97vw;
  background-size: cover;
  padding: 0;
  background-repeat: no-repeat;
}

.pokedex {
  align-items: flex-end;
  display: flex;
  padding-top: 0.1rem;
  height: 30.5rem;
  margin: 3.12rem;
  width: 67rem;
  padding-left: 22rem;
  padding-right: 1.1rem;
}

.left-container,
.right-container {
  border: 3px solid black;
  width: 50%;
  box-shadow: 1px 1px 6px 6px rgba(0,0,0,.7);
  border-radius: 1rem;
}

.right-container {
  border-left: none;
}

.left-container {
 background: linear-gradient(to right, rgb(173, 57, 3), rgb(228, 111, 2), rgb(255, 166, 0), rgb(228, 111, 2), rgb(173, 57, 3));
  height: 100%;
  width: calc(50% + 3rem);
  
}


.left-container__main-section-container {
  display: flex;
  height: calc(100% - 2.5rem);
}

.left-container__main-section {
  height: 100%;
  padding: 1.5rem;
  width: 30.25rem;
}

.main-section__white {
  background: rgb(194, 192, 192);
  border: 3px solid black;
  box-shadow: inset 0 0 3px 3px rgba(0,0,0,.4);
  height: 23rem;
  border-radius: 0.5rem;
}

.main-section__black {
  background: black;
  height: calc(100% - 3rem);
  margin: 1.5rem;
  padding: 0.55rem;
  width: calc(100% - 3rem);
  border-radius: 0.4rem;
}

.main-screen {
  border-radius: 0.7rem;
  height: 100%;
  padding: 0.7rem;
}

.screen__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.poke-name {
  color: white;
  font-size: 1.7rem;
  font-weight: bold;
}

.poke-id {
  color: rgba(0, 0, 0, .6);
  font-size: 1.25rem;
}

.screen__image {
  display: flex;
  justify-content: space-around;
}

.poke-front-image,
.poke-back-image {
  height: 9.2rem;
  width: 6.8rem;
}

.screen__description {
  display: flex;
  height: 5.2rem;
  justify-content: space-around;
}

.screen__stats {
  background: rgba(0,0,0,.3);
  border-radius: 0.25rem;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
}

.stats__types {
  height: 100%;
  padding: 0.25rem;
}

.poke-type-one,
.poke-type-two {
  background: rgba(255,255,255,.3);
  border-radius: 1.3rem;
  display: block;
  margin-bottom: 0.55rem;
  padding: 0.4rem;
  text-align: center;
}

.left-container__controllers {
  align-items: center;
  display: flex;
  justify-content: space-around;
  margin: 0.55rem 1.1rem 0;
}

.controllers__d-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.d-pad__cell {
  background: black;
  box-shadow: 0 0 2px 2px rgba(0,0,0, .3);
  height: 1.3rem;
  width: 1.3rem;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.d-pad__cell.top {
  border-left: 1px solid dimgrey;
  border-radius: 5px 5px 0 0;
  border-right: 1px solid dimgrey;
  border-top: 1px solid dimgrey;
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.d-pad__cell.left {
  border-bottom: 1px solid dimgrey;
  border-left: 1px solid dimgrey;
  border-radius: 5px 0 0 5px;
  border-top: 1px solid dimgrey;
  grid-column: 1 / span 1;
  grid-row: 2 / span 1;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.d-pad__cell.middle {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.d-pad__cell.right {
  border-bottom: 1px solid dimgrey;
  border-radius: 0 5px 5px 0;
  border-right: 1px solid dimgrey;
  border-top: 1px solid dimgrey;
  grid-column: 3 / span 1;
  grid-row: 2 / span 1;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.d-pad__cell.bottom {
  border-bottom: 1px solid dimgrey;
  border-left: 1px solid dimgrey;
  border-radius: 0 0 5px 5px;
  border-right: 1px solid dimgrey;
  grid-column: 2 / span 1;
  grid-row: 3 / span 1;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.controllers__buttons {
  display: flex;
  justify-content: space-around;
  width: 5.2rem;
}

.buttons__button {
  align-items: center;
  background: black;
  border-radius: 50%;
  border: 1px solid dimgrey;
  box-shadow: 0 0 2px 2px rgba(0,0,0, .3);
  color: rgba(255,255,255,.75);
  display: flex;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.buttons__button a {
color: white;
outline: none;
}

.buttons__button:hover {
  transform: scale(1.2);
  cursor: pointer;
  transition: transform .3s ease;
}

.buttons__button:first-child {
  margin-top: 5px;
}

.buttons__button:last-child {
   margin-top: -5px;
 }

 .left-container__right {
  border-left: 3px solid black;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  width: 3rem;
}

.left-container__hinge {
  background: linear-gradient(to right, rgb(175, 37, 2), rgb(224, 110, 3), rgb(214, 97, 2), rgb(187, 40, 4));
  height: 4.5rem;
  width: 100%;
}

.left-container__hinge:first-child {
  border-bottom: 3px solid black;
}

.left-container__hinge:last-child {
  border-top: 3px solid black;
}

.right-container {
  background: linear-gradient(to right, rgb(177, 58, 3), rgb(228, 111, 2), rgb(255, 145, 0), rgb(228, 111, 2), rgb(177, 59, 4));
  height: calc(100% - 2.4rem);
  padding: 1.3rem;
  width: calc(50% - 2.8rem);
}

.right-container__black {
  background: black;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.3);
  height: 20.2rem;
  padding: 0.5rem;
  border-radius: 0.3rem;
}

.right-container__screen {
  background: linear-gradient(to right, rgb(4, 0, 255), rgb(0, 89, 255), rgb(0, 153, 255), rgb(0, 89, 255), rgb(4, 0, 255));
  border-radius: 0.9rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
  padding: 0.9rem 0.9rem 0;
}

.list-item {
  align-items: center;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  height: 1.7rem;
  overflow-x: hidden;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  width: 53%;
  overflow-x: visible;
}

.list-item:hover {
  background: #85e0f7;
  color: black;
  transform: scale(1.07);
  cursor: pointer;
  transition: transform .3s ease;
  border-radius: 5px;
  box-shadow: 0 0 2pt 2pt black;
}

.list-item:active {
  background: #0754a7;
  color: white;
  outline: none;
}

.right-container__buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 1.8rem;
}

.left-button,
.right-button {
  align-items: center;
  background: rgb(197, 197, 197);
  border-radius: 0.5rem;
  border: 2px solid black;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.3);
  cursor: pointer;
  display: flex;
  font-weight: bold;
  height: 2.1rem;
  justify-content: center;
  text-transform: uppercase;
  width: 6.2rem;
  outline: none;
}

.left-button:hover,
.right-button:hover {
  background: white;
  transform: scale(1.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.left-button:active,
.right-button:active {
  box-shadow: inset 0 0 2px 2px rgba(0,0,0,.3);
}


.hide {
  display: none;
}

.normal {
  background: #BABAAE;
}

.fighting {
  background: #A75543;
}

.flying {
  background: #78A2FF;
}

.poison {
  background: #A95CA0;
}

.ground {
  background: #EECC55;
}

.rock {
  background: #CCBD72;
}

.bug {
  background: #C2D21E;
}

.ghost {
  background: #7975D7;
}

.steel {
  background: #C4C2DB;
}

.fire {
  background: #FA5643;
}

.water {
  background: #56ADFF;
}

.grass {
  background: #8CD750;
}

.electric {
  background: #FDE139;
}

.psychic {
  background: #FA65B4;
}

.ice {
  background: #96F1FF;
}

.dragon {
  background: #8673FF;
}

.dark {
  background: #8D6855;
}

.fairy {
  background: rgb(246, 166, 252);
}