* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button:hover {
  cursor: pointer;
}

.hidden {
  display: none;
}

.blurred-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.filter-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 20vw;
  height: 100%;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

.filter-menu.active {
  transform: translateX(0);
}

.filter-menu {
  display: flex;
  flex-direction: column;
}

.sort-by-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1rem;
}

.sort-by-btns button {
  padding: 0.5rem;
}

.sort-by-btns #sort-by-reverse-list {
  grid-column: span 2;
}

#toggle-all-filters-btn {
  padding: 0.25rem;
  margin: 0.25rem 0;
}

.filter-by-types-cbs {
  overflow-y: scroll;
  flex-grow: 1;
  padding: 1rem;
}

.type-checkbox-field {
  display: flex;
  align-items: center;
  text-transform: capitalize;
}
.type-checkbox {
  margin: 0.25rem;
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-card {
  background-color: white;
}

nav {
  z-index: 1000;

  position: fixed;
  padding: 2rem;
  width: 100%;

  display: flex;
  justify-content: space-between;
  background-color: white;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right {
  flex-grow: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 1.5rem;
}

nav button {
  border: none;
  background: none;
  height: 100%;

  font-size: 1.25rem;

  transition: 0.3s;
}

nav button:hover {
  color: red;
  transition: 0.3s;
}

nav h1 {
  /*TODO: DECORATE THIS*/
}

nav .search-field {
  flex-grow: 1;
  display: flex;
  justify-content: right;
  align-items: center;

  width: 100%;
  max-width: 500px;
}

#search-bar {
  width: 100%;
  padding: 0.5rem;
  border-radius: 20px;
}

#search-btn {
  position: absolute;
  transform: translateX(-0.5rem);
}

main {
  padding: 5rem;
}

#hero-slideshow-container {
  margin: 2rem 0;
  width: 100%;
  border: solid black 2px;
}

.hero-title h2 {
  font-size: 3rem;
  text-transform: uppercase;
}

.hero-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-size: 1.5rem;
  gap: 1rem;
}

.hero-details > * {
  max-width: 300px;
  text-align: center;
  line-height: 1.5;
}

.hero-pokemon-card {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: auto 1fr;

  padding: 2rem;
}

.hero-pokemon-card:hover {
  cursor: pointer;
}

.hero-title {
  order: 0;
}

.hero-title .hero-name {
  display: inline;
}

.hero-hire-img-container {
  order: 2;
}

.hero-hire-img {
  width: 400px;
  height: 400px;
}

.hero-details {
  order: 1;
  grid-row: span 2;
}

.hero-types {
  text-transform: capitalize;
}

#pokemon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

#pager {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

#pager button {
  font-size: 1rem;
  border: none;
  background: none;
}

#pager button:hover {
  color: red;
  transition: 0.3s;
}

.card-container {
}

.card {
  background: white;
  border: solid black 2px;
  padding: 1rem;

  transition: 0.3s;
  width: 100%;
  height: 100%;
}

.card:hover {
  transform: scale(1.05);
  transition: 0.3s;
  cursor: pointer;
}

.card-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  font-size: 1.5rem;
}

.pokemon-id {
  font-size: 1rem;
}

.pokemon-type1,
.pokemon-type2 {
  text-transform: capitalize;
}

.pokemon-pixel-sprite {
  image-rendering: pixelated;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.modal-card {
  padding: 2rem;
  border-radius: 0.5rem;
}

.modal-card-header {
  display: flex;
}

.modal-card-header button {
  height: 100%;
  padding: 0.25rem;
  border: none;
  background: none;
  transition: 0.3s;
}

.modal-card-header button:hover {
  color: red;
  transition: 0.3s;
}

.modal-card-header .js-exit-btn {
  margin-left: auto;
}

.js-favorite-btn span {
  text-shadow: 1px 1px black;
  font-weight: 900;
  color: gray;
}

.modal-card-body {
  display: flex;
}

.modal-card-left {
  position: relative;
}

.modal-name {
  font-size: 3rem;
  text-transform: uppercase;
}

.modal-id {
  font-size: 2rem;
}

.modal-species {
  display: block;
}

.modal-hire-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
}

.modal-types {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  text-transform: capitalize;
}

.modal-types span {
  display: inline-block;
  min-width: 6.25rem;
  text-align: center;
  border: solid black 2px;
  padding: 0.5rem;
  background-color: white;
}

.modal-card-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 400px;
  padding: 1rem;
  gap: 1rem;
}

.modal-card-right h2 {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
}

.modal-description {
  grid-column: span 2;
  text-align: center;
}

.modal-card-right > span {
  border: solid 2px;
  padding: 1rem;
  display: flex;
  align-items: center;
}

/*edit forms*/
.modal-input-form-left input,
.modal-input-form-right input {
  padding: 0.25rem;
}

.drop-zone {
  border: 2px dashed gray;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background-color: rgb(214, 214, 214);

  min-height: 12rem;
  max-width: 20rem;
}

.modal-img-preview {
  margin-top: 0.5rem;
  width: auto;
  height: 100px;
  border-radius: 5px;
  image-rendering: pixelated;
}

.drop-zone label {
  display: block;
}

.modal-input-form-left {
  display: flex;
  flex-direction: column;
  width: 40%;
  gap: 0.5rem;
  padding: 1rem;
}

.modal-name-field,
.modal-id-field,
.modal-species-field {
  display: flex;
  justify-content: space-between;
}

.modal-type1-field select,
.modal-type2-field select {
  text-transform: capitalize;
}

.modal-input-form-right {
  flex-grow: 1;
  padding: 1rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-input-form-right > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-input-form-right h2 {
  grid-column: span 2;
  text-align: center;
  font-size: 2.5rem;
}

.modal-input-form-right .modal-description-field {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.modal-description-field textarea {
  width: 100%;
  flex-grow: 1;
  resize: none;
  padding: 1rem;
  margin-top: 1rem;
}

.modal-save-input-btn {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
}

.modal-save-input-btn:hover {
  color: red;
  transition: 0.3s;
}

/* Favorites Styling */
.modal-favorites-card {
  border-radius: 1.5rem;
  padding: 2rem;
  width: 30rem;
  height: 35rem;
  background-color: white;

  overflow: hidden;
}

.modal-favorites-card h2 {
  margin-bottom: 0.5rem;
  font-family: "arial";
}

.modal-favorites-container {
  width: 100%;
  height: 85%;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  padding: 1rem;
  overflow-y: scroll;
  overflow-x: hidden;
}

.js-favorites-refresh-btn {
  font-size: 1.25rem;
  float: right;
  border: none;
  background: none;
}

.js-favorites-refresh-btn:hover {
  color: red;
  transition: 0.3s;
}

/* delete pokemon*/
.delete-pokemon-content {
  width: 15rem;
  height: 20rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr 2fr 1fr;
  gap: 0.5rem;

  font-family: "arial";
}

.js-delete-warning-symbol {
  width: 100%;
  height: auto;
  grid-column: span 2;
}

.js-delete-warning-symbol img {
  width: 100px;
  height: 100px;
}

.delete-pokemon-content > * {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.delete-pokemon-content h2 {
  text-align: center;
  grid-column: span 2;
  font-size: 2rem;
}

.delete-pokemon-content button {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid rgb(90, 90, 90);
  background-color: rgb(169, 169, 169);
  border-radius: 3px;
  color: white;
}

/*FIX THIS*/
.delete-pokemon-content .js-confirm-delete-btn {
  background-color: rgb(244, 90, 90);
  font-weight: bold;
}

.js-confirm-delete-btn:hover {
  background-color: rgb(255, 0, 0);
}
.delete-pokemon-msg {
  grid-column: span 2;
  font-size: 1.25rem;
}

@media (max-width: 1100px) {
  .filter-menu {
    width: 60%;
    font-size: 1.5rem;
  }

  .filter-menu button {
    font-size: 1.25rem;
  }

  .filter-menu > fieldset {
    padding: 0.25rem;
  }

  .filter-menu button {
    padding: 0.25rem;
  }

  #pokemon-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-hire-img {
    width: 300px;
    height: 300px;
  }
}

@media (max-height: 700px) {
  .drop-zone {
    min-height: 0;
    height: 8rem;
    overflow-y: scroll;
  }

  .drop-zone .modal-img-preview {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 950px) {
  .modal-hire-img {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 860px) {
  #pokemon-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: 90%;
    max-height: 90%;
    overflow-y: scroll;
  }

  .modal-card-body {
    flex-direction: column;
  }

  .modal-card-body .modal-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-card-right {
    max-width: 100%;
  }

  .modal-card-body .modal-types {
    position: relative;
    align-self: flex-end;
  }

  .modal-input-form-left {
    width: 100%;
  }

  .modal-input-form-left .drop-zone {
    position: relative;
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  main {
    padding: 1rem;
  }

  .nav-left {
    justify-content: center;
    margin-right: 1rem;
  }

  .nav-left h1 {
    display: none;
  }

  .nav-right {
    gap: 1rem;
  }

  .nav-right #search-bar {
    min-width: 0;
  }

  #hero-slideshow-container {
    margin-top: 7rem;
    height: 115vh;
  }

  .hero-slide {
    height: 100%;
  }

  .hero-pokemon-card {
    height: 100%;
    grid-template-columns: 1fr;
  }

  .hero-title {
    text-align: center;
  }

  .hero-hire-img-container {
    display: flex;
    justify-content: center;
  }

  .hero-hire-img {
    width: 300px;
    height: 300px;
  }

  .pager-number-navigation {
    display: none;
  }
}

/* mobile screens */
@media (max-width: 600px) and (min-height: 650px) {
  nav button {
    font-size: 1rem;
  }

  .filter-menu {
    font-size: 2rem;
    overflow-y: scroll;
  }

  .filter-menu .sort-by-btns {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow-y: scroll;
  }

  .filter-menu button {
    font-size: 2rem;
  }

  .filter-menu #sort-by-reverse-list {
    grid-column: span 1;
  }

  .type-checkbox-field {
    padding: 1rem;
  }

  .filter-menu .filter-by-types-cbs input[type="checkbox"] {
    zoom: 2;
  }

  .search-field #search-btn {
    display: none;
  }

  .hero-title h2 {
    font-size: 2rem;
  }

  .hero-hire-img {
    width: 225px;
    height: 225px;
  }

  .modal-card-header button {
    font-size: 0.68rem;
  }

  .modal-input-form-right {
    display: flex;
    flex-direction: column;
  }

  .modal-input-form-right h2 {
    font-size: 1.5rem;
  }

  .modal-input-form-right input,
  .modal-input-form-left input {
    max-width: 150px;
  }
}
