@font-face {
  font-family: "rick-and-morty";
  src: url("fonts/rick-and-morty.ttf") format("truetype");
}

html {
  height: 100%;
}

:root {
  --first-color: #7ac34e;
  --second-color: #00b0c7;
  --first-color-light: #d9ffc1;
  --second-color-light: #6cc6d2;
  --third-color: #34274c;
  --fourth-color: #4d7b31;
}

body {
  font-size: 65%;
  font-family: "Noto Sans JP", sans-serif;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  color: white;
  background-color: var(--third-color);
}

/* ----------- HEADER ----------- */

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--first-color);
  height: 5rem;
  width: 100%;
  top: 0;
  left: 0;
}

.navbar {
  display: flex;
  gap: 0.5rem;
}

.header--logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerFont {
  display: flex;
  align-items: center;
  font-family: "rick-and-morty", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.8rem;
}

.facelogo {
  padding-top: 0.5rem;
  height: 7rem;
}

.logoimg {
  width: 10rem;
  height: 4rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

/*----------- MAIN -----------*/

.main {
  display: flex;
  /* margin-top: 5rem; */
}

/*----------- ASIDE -----------*/

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.episodeListTitle {
  font-family: "rick-and-morty", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
  padding: 1rem;
  background-color: var(--fourth-color);
}

.episodeList {
  width: 15%; /* Establece el ancho del contenedor según tus preferencias */
  height: 84.5%; /* Establece la altura del contenedor según tus preferencias */
  overflow-y: auto; /* Habilita la barra de desplazamiento cuando sea necesario */
  background-color: var(--first-color);
  position: absolute;
}

.episodeList-item {
  border-bottom: solid #006471 0.05rem;
}

.episodeList-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.text {
  padding: 0.8rem;
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
}

.nameText {
  display: flex;
  justify-content: center;
  color: var(--first-color);
  font-weight: 800;
  font-size: 1rem;
}

.episodeTitle {
  font-size: 2.5rem;
  font-family: "rick-and-morty", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--first-color);
}

.mainContainer {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin-left: 15%;
  margin-bottom: 2rem;
}

.mainContainer-page {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  width: 70%;
  height: 60%;
  margin: 3rem auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "rick-and-morty", sans-serif;
  font-size: 4rem;
  border-radius: 0.6rem;
}

.mainContainer-page-mainImage {
  margin-top: 1rem;
  width: 40%;
}

.mainContainer-page-welcomeText {
  color: var(--first-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 3rem;
}

.infoCard {
  width: 90%;
  margin-bottom: 1rem;
}

.characterCards-container {
  display: flex;
  flex-direction: column;
  width: 20%;
  margin: 0.5rem;
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  text-align: center;
}

.characterCards-avatar {
  width: 100%;
  margin: 0;
  padding: 0;
}

.characterCards-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: black;
}

/*CUSTOM SCROLLBAR*/

/* width */
::-webkit-scrollbar {
  width: 0.8rem;
}

/* Track */
::-webkit-scrollbar-track {
  background: #888;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #703ca0;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.btnLoad {
  background-color: var(--third-color);
  border: none;
  border-radius: 0.3rem;
  color: white;
  padding: 0.6rem;
  width: 8rem;
  margin: 0.3rem;
}

.btnLoad:hover {
  background: rgba(0, 0, 0, 0.6);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 8%;
  text-align: center;
  justify-content: center;
  background-color: var(--fourth-color);
  margin-top: auto;
  padding: 1rem;
}

/*RESPONSIVE DESIGN*/

.dropdown {
  display: none;
  margin: 3rem;
  margin-right: 10rem;
}

.dropbtn {
  padding: 0.5rem;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: absolute;
  background-color: var(--fourth-color);
  border-radius: 0.3rem;
  color: white;
  font-family: "rick-and-morty", sans-serif;
}

.dropbtn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hide {
  display: none;
}

@media screen and (max-width: 812px) {
  .header {
    justify-content: left;
  }
  .dropdown {
    display: block;
  }
  .dropdown-content {
    height: 20rem;
    overflow-y: auto;
  }

  .episodeListTitle {
    display: none;
  }
  .episodeList {
    display: none;
  }
  .episodeList-dropdown {
    background-color: #9ceb6e;
    width: 9.5rem; /* Establece el ancho del contenedor según tus preferencias */
    height: 20rem; /* Establece la altura del contenedor según tus preferencias */
    overflow-y: auto; /* Habilita la barra de desplazamiento cuando sea necesario */
    top: 4rem;
    margin-left: 3rem;
    position: absolute;
    border-radius: 0.5rem;
    color: black;
  }

  .mainContainer {
    margin-left: 0;
  }
  .episodeTitle {
    font-size: 2rem;
  }
  .characterCards-container {
    width: 40%;
  }
}
