* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

/*  H E A D E R   */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 16px;
  z-index: 1000; /* Ensure it stays on top */
  border-bottom: solid 1px rgb(186, 186, 186);
  border-top: solid 1px rgb(186, 186, 186);
}

/*  box1   */

.box1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 144px;
  height: 24px;
  cursor: pointer;
  margin-right: 50px;
  gap: 20px;
}
.box1 i {
  font-size: 24px;
  color: black;
  margin-left: 5px;
}
.box1 img {
  height: 100%;
  object-fit: cover;
}

.menu-toggle {
  border-radius: 50%;
  padding: 10px;
  background: white;
}
.menu-toggle:hover {
  border-radius: 50%;
  padding: 10px;
  background: rgb(242, 242, 242);
}

/*  box2   */

.box2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  max-width: 620px;
  width: 100%;
}
.search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 40px;
}
.box2 .search form {
  width: 100%;
}

.box2 .search form input {
  border: solid 1px black;
  border-right: none;
  border-radius: 20px 0px 0px 20px;
  height: 40px;
  width: 100%;
  padding: 7px;
}
.box2 button {
  border-radius: 0px 20px 20px 0px;
  border: solid 1px rgb(132, 132, 132);
  padding: 1px;
  width: 55px;
  height: 40px;
  cursor: pointer;
}

.mic {
  border: none;
  background: #eee;
  border-radius: 50%;
  width: 45px;
  padding: 10px;
  cursor: pointer;
  margin-left: 10px;
}

/*  box3   */
.box3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 20px;
  margin-right: 10px;
}
.box3 ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px; /* Space between icons */
}

.box3 ul li i {
  cursor: pointer;
}

.box3-aux {
  display: none;
}

/*   MAIN CONTAINER  */

.main-container {
  display: flex;
  justify-content: flex-start;
  width: 100vw;
  height: 100vh;
  margin-top: 56px; /* To avoid overlap with fixed header */
  padding: 20px;
  border: solid 1px black;
}

.left-bar {
  border: none;
  width: 20%;
  height: 100%;
  min-width: 240px;
  margin-right: 5px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.left-bar.active {
  display: none;
}

.left-bar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
}
.left-bar hr {
  border-top: solid 2px #eee;
}
.item,
.item-home {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 50px;
  padding-left: 20px;
  border-radius: 12px;
  cursor: pointer;
}
.item span,
.item-home span {
  margin-left: 30px;
}

.item-home {
  background: rgb(205, 205, 205);
}
.item:hover,
.item-home:hover {
  border: none;
  background: #eee;
}

.left-bar h3 {
  color: #575757;
  margin-left: 15px;
}

.item img {
  width: 24px;
  border: none;
  border-radius: 50%;
}

.left-bar-aux {
  display: none;
}
.left-bar-aux.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.left-bar-aux ul li i:hover {
  border-radius: 50%;
  padding: 10px;
  background: rgb(242, 242, 242);
  cursor: pointer;
}

.left-bar-aux ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 70px;
  padding: 0;
  margin-top: 13px;
  gap: 22px;
}

.left-bar-aux i {
  margin: 0px 20px 0px 20px;
}

.card-container {
  width: 100vw;
  background: rgb(242, 242, 242);
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
}

.card {
  width: 350px;
  height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 40px;
  padding-left: 20px;
}
.card img {
  width: 100%;
  border-radius: 20px;
}
.card img:hover {
  transition: 0.5s;
  border-radius: 0px;
}

.description {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.description img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
}
.description .texto {
  display: flex;
  flex-direction: column;
}
.description .texto h3 {
  font-size: 15px;
}
.description .texto span {
  font-size: 10px;
  color: #808080;
  font-weight: 100;
  margin-top: 3px;
}

/*   Hasta aqui todo chequeado*/
/* Mobile View */
@media only screen and (max-width: 599px) {
  .box3 {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
    margin-right: 10px;
  }
  .box3 ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 20px; /* Space between icons */
    position: absolute; /* Position relative to navbar */
    top: 80px; /* Position below the navbar */
    left: 85vw;
    right: 0;
    border-radius: 16px;
    width: 40px;
    background: #cbcbcb;
    z-index: 1;
  }

  .box3 ul li i {
    cursor: pointer;
  }

  .box3-aux {
    display: block;
  }

  .box3.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-left: 0px;
    margin-right: 0px;
  }

  .left-bar-aux {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 14vw;
  }

  .left-bar-aux ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
  }

  .left-bar-aux ul li i {
    margin-left: 0.5em;
    /*  margin-left: 12px;  */
    margin-right: 0px;
    padding-right: 0px;
  }

  .left-bar {
    display: none;
  }
}
/* Tablet View */
@media only screen and (max-width: 899px) and (min-width: 600px) {
  .left-bar-aux {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .left-bar-aux ul li i {
    margin-left: 12px;
    margin-right: 0px;
  }

  .left-bar {
    display: none;
  }
}
/* Desktop View */
@media only screen and (min-width: 900px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
