/* pixelify-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/pixelify-sans-v1-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Sidebar */
.sidebar {
  font-family: 'Pixelify Sans', sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  width: 30%;
  max-width: 400px;
  border-radius: 10px;
}

.logo {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.logo img {
  width: 100%;
  height: auto;
}

.pokedex-sidebar {
  background-color: #D2232A;
  border: 5px inset #7b2328;
  border-radius: 15px;
  padding: 2px;
  z-index: 999;
}

.pokedex-header {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.pokedex-footer {
  margin-top: 10px;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.pokedex-header img,
.pokedex-footer img {
  width: 100%;
  height: auto;
}

.search {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
}

#search-field {
  width: 90%;
  height: 35px;
  background-color: #d2232a;
  text-align: start;
  padding-top: 15px;
  color: #fff;
  border: none;
}

.pokedex-display-border {
  position: relative;
  background-color: #F1F2F2;
  height: 350px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(45deg, transparent 35px, #F1F2F2 0) bottom left;
}

.red-point {
  border: 2px solid #1C1616;
  background-color: #ED1C24;
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 15px;
  left: 75px;
  content: "";
  border-radius: 50%;
}

.speaker {
  font-family: "Font Awesome 5 Free";
  content: "\f0c9";
  display: inline-block;
  padding-right: 3px;
  vertical-align: middle;
  font-weight: 900;
  position: absolute;
  bottom: 10px;
  right: 25px;
  font-size: 30px;
}

.pokedex-display {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #58595B;
  width: 90%;
  height: 275px;
  border: 3px solid #BEBFBF;
  margin-left: auto;
  margin-right: auto;
}

.filters {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dropdown-filters {
  width: 100%;
  white-space: nowrap;
}

.type-filter,
.abillity-filter,
.weakness-filter {
  flex: 1 3;
}

.poke-body-filter {
  display: flex;
  justify-content: space-around;
  color: white;
}

.weight-filter h3,
.height-filter h3 {
  margin-bottom: 10px;
}

/* Navbar */
:root {
  --highlight: #EE5454;
}

.navbar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  border-bottom: 1px solid #bebfbf;
}

.list-item {
  list-style-type: none;
  flex-basis: 100%;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #555;
  transform: translateY(0);
  transition: transform 0.5s ease, opacity 0.2s ease;
  cursor: pointer;
  color: white;
}

.list-item-name {
  font-size: 13px;
  font-weight: 500;
  position: absolute;
  transform: translate(0, 50px);
  transition: transform 0.5s ease, opacity 0.2s ease;
  opacity: 0;
}

.list-item:hover {
  color: var(--highlight);
  transform: translateY(-6px);

  .list-item-name {
    transform: translateY(20px);
    opacity: 1;
  }
}

@media (max-width: 350px) {
  .list-item {
    flex-basis: auto;
  }

  .list-item:hover {
    .list-item-name {
      transform: translateY(25px);
    }
  }
}

/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Dropdown Button */
.dropbtn {
  font-family: "Pixelify Sans", sans-serif !important;
  background-color: #58595B;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 65px;
  text-align: center;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: flex;
  width: 300px;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #d2232a;
}