@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Poppins", "Roboto", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  color: white;
  list-style: none;

  @media (max-width: 768px) {
    flex-direction: column !important;
  }

  &::selection {
    background-color: white;
    color: black;
  }

  a:hover {
    filter: brightness(0.8);
    transition: 0.15s;
  }
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  max-width: 1400px;
  background-color: black;
  color: white;
  margin: auto;

  header {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 10vh;
    width: 100%;
    padding: 0 20px;

    nav {
      display: flex;
      justify-content: space-between;
      flex-direction: row !important;
      align-items: center;
      width: 100%;
      height: 100%;

      .menu-btn {
        display: none;

        @media (max-width: 768px) {
          display: block;
          background-color: transparent;
          border: none;
          cursor: pointer;
          padding: 0;
          margin: 0 0 0 5px;
          height: 27px;
          width: 27px;
          line-height: 1;
          font-size: 27px;
        }
      }

      .login-btn {
        filter: invert(1);
        display: none;
        align-items: center;
        justify-content: center;
        margin: 0 5px 0 0;

        @media (max-width: 768px) {
          display: block;
        }

        a {
          display: flex;

          img {
            height: 27px;
          }
        }
      }

      ul {
        display: flex;
        gap: 30px;
        padding: 0;
        margin: 0;

        @media (max-width: 768px) {
          position: absolute;
          top: 10vh;
          left: 2vh;
          background: #232323;
          width: 50vw;
          flex-direction: column;
          gap: 30px;
          padding: 20px;
          font-size: larger;

          display: none;
        }

        li {
          a {
            position: relative;

            &::after {
              content: "";
              position: absolute;
              left: 0;
              bottom: 0;
              width: 0;
              height: 2px;
              background-color: currentColor;
              transition: width 0.3s ease;
            }

            &:hover::after {
              width: 101%;
            }
          }
        }
      }

      div {
        display: flex;
        flex-direction: row !important;
        gap: 10px;

        @media (max-width: 768px) {
          display: none;
        }

        a {
          border: 1px solid white;
          background-color: white;
          color: black;
          padding: 5px 15px;
          border-radius: 10px;
          font-weight: 600;

          &.auth {
            @media (max-width: 768px) {
              display: none;
            }
          }
        }
      }
    }

    hr {
      margin: 0;
      width: 100%;
    }
  }

  main {
    padding: 0 20px;
    width: 100%;
    flex: 1;

    section {
      min-height: 80vh;

      .section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-direction: row !important;

        h2 {
          font-size: 32px;
        }

        img {
          height: 32px;
          width: 32px !important;
        }
      }

      &.home {
        ul {
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          padding: 0;
          gap: 15px;

          li {
            display: flex;
            width: 49%;
            min-width: 500px;
            height: 250px;
            border: 1px white solid;
            gap: 10px;
            cursor: pointer;

            @media (max-width: 1070px) {
              width: 100%;
              min-width: auto;
              align-items: center;
              height: 400px;
              justify-content: center;
            }

            a {
              display: flex;
              padding: 10px 10px 10px 20px;
              align-items: center;
              height: 100%;

              @media (max-width: 1070px) {
                justify-content: space-evenly;
              }

              img {
                width: 40%;
                max-height: 100%;
                object-fit: contain;

                @media (max-width: 1070px) {
                  width: 75%;
                }
              }

              div {
                overflow-y: scroll;
                padding: 0 10px;
                width: 100%;

                h3 {
                  margin: 10px 0;
                }

                p {
                  text-align: justify;
                }
              }
            }
          }
        }
      }

      &#sobre {
        p {
          font-size: 20px;
          text-align: justify;
        }

        img {
          width: 100%;
        }
      }

      &#membro {
        ul {
          display: flex;
          justify-content: space-between;
          padding: 0;
          gap: 15px;

          li {
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 1px solid white;
            width: 32%;
            text-align: justify;
            padding: 10px 20px;

            @media (max-width: 768px) {
              width: 100%;
            }

            div {
              margin-top: auto;
              margin-bottom: 15px;

              button {
                border: 1px solid white;
                background-color: white;
                padding: 5px 15px;
                border-radius: 10px;
                font-weight: 600;
                cursor: pointer;

                &:hover {
                  filter: invert(1);
                  border-color: black;
                  transition: 0.25s;
                }

                &:active {
                  filter: invert(0);
                  transition: 0.01s;
                }

                p {
                  color: black;
                  margin: 5px;
                }
              }
            }
          }
        }
      }
    }
  }

  footer {
    height: 10vh;
  }
}

.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  div {
    width: 100%;

    form {
      display: flex;
      flex-direction: column;
      width: 50%;
      margin: auto;

      @media (max-width: 768px) {
        width: 90%;
      }

      input {
        font-size: 16px;
        border-radius: 10px;
        border: none;
        margin-bottom: 10px;
        padding: 5px 10px;
        color: black;

        &:focus-visible {
          outline: none;
        }

        &::selection {
          background-color: black;
          color: white;
        }
      }

      button {
        background-color: white;
        color: black;
        font-weight: 600;
        font-size: 16px;
        border: none;
        cursor: pointer;
        margin: 20px auto 0;
        width: fit-content;
        border-radius: 5px;
        padding: 5px 15px;
        border: 1px solid white;

        &:hover {
          filter: invert(1);
          border-color: black;
          transition: 0.25s;
        }

        &:active {
          filter: invert(0);
          transition: 0.01s;
        }
      }
    }

    p {
      a {
        position: relative;

        &::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: 0;
          width: 0;
          height: 2px;
          background-color: currentColor;
          transition: width 0.3s ease;
        }

        &:hover::after {
          width: 101%;
        }
      }
    }
  }
}

#episodio {
  margin-top: 20px;
  width: 100%;

  img {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    display: block;
  }

  h2 {
    margin: 0;
  }

  #outrosEpisodios {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    border: 1px solid white;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 350px;
    flex-direction: row !important;


    li {
      display: flex;
      flex-direction: column;
      min-width: 315px !important;
      border: none;
      padding: 5px;
      cursor: default;
      gap: 0;
      justify-content: flex-start;

      a {
        padding: 0;
        height: auto;

        img {
          height: auto;
          border: solid 1px white;
          object-fit: cover;
        }
      }

      h3 {
        margin: 0;
      }

      p {
        margin: 0;
        text-overflow: ellipsis;
      }
    }
  }

  #comentarios {
    display: block;
    width: 100%;

    li {
      display: flex;
      flex-direction: column;
      align-items: baseline;
      width: 100%;
      border: none;
      height: fit-content;
      padding: 10px 0;
      cursor: default;

      h4 {
        margin: 0;
      }

      p {
        margin: 0;
        margin: 0;
        word-wrap: break-word;
        width: 100%;
      }

      button {
        display: flex;
        flex-direction: row !important;
        height: 20px;
        background-color: transparent;
        border: none;
        align-items: center;
        gap: 5px;
        padding: 0;

        img {
          height: 100%;
          cursor: pointer;
        }
      }
    }
  }
}