/* styles.css */
/* Reset básico para manter a consistência em diferentes navegadores */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
/* Estilo do corpo da página */
body {
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
/* Estilo do cabeçalho */
header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
}
header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}
header input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* Estilo principal */
main {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Estilo das categorias */
#categories-carousel {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}
#carousel-prev,
#carousel-next {
        position: absolute;
        width: 35px;
        height: 35px;
        top: 50%;
        transform: translateY(-50%);
    }
#categories {
    display: flex;
    overflow-x: hidden; /* Altere overflow-x para hidden para remover a barra de rolagem */
    flex-grow: 1;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    gap: 0px;
    cursor: grab;
}
#categories .category {
    background-color: #ddd;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    flex: 0 0 auto; /* Evita que os itens encolham ou cresçam */
}
#categories .category:first-child {
    margin-left: 40px; /* Espaço de 50px à esquerda da primeira categoria */
}
#categories .category:last-child {
    margin-right: 50px; /* Espaço de 50px à direita da última categoria */
}
#categories .selected {
    background-color: #b80f52; /* Alterar para a cor desejada */
    color: white;
}
/* Estilo do grid de notas */
#notes-grid {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    grid-auto-rows: 20px;
    width: 100%;
}
#notes-grid .note {
    background-color: #eee;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 1px;
    border-radius: 5px;
    hyphens: auto; /* Adicionar hifenização se necessário */
    word-wrap: break-word; /* Permitir quebra de palavras longas */
}
/* Forçar quebra de linha nos títulos */
#notes-grid .note h2 {
    word-wrap: break-word;
}
/* Estilo das imagens nas notas */
#notes-grid .note img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
#content img {
    width: 100%;
    margin:0px 0px 10px 0;
    float: left;
    content: '\A';
  white-space: pre;
  }
#content p {
    white-space: pre-wrap; /* Permitir quebra de linha dentro do parágrafo */
    overflow-wrap: break-word; /* Permitir quebra de palavra longa */
  }
/* Estilo dos botões do carrossel */
.carousel-button {
    background-color: #b80f52;
    color: white;
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1; /* Certifique-se de que os botões estão acima das categorias */
}
#carousel-prev {
    left: 0; /* Fixado na extrema esquerda */
}
#carousel-next {
    right: 0; /* Fixado na extrema direita */
}
/* Estilo do botão de adicionar nota */
button#add-note {
    position: fixed;
    bottom: 32px;
    right: 20px;
    background-color: #b80f52;
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#alert-note {
    position: fixed;
    bottom: 0px;
    left: 20px;
    background-color: #fff;
    color: slategray;
    border: none;
    text-align: left;
    width: 100%;
    height: 30px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: left;
}
/* Estilos responsivos */
@media (max-width: 600px) {
    #categories-carousel {
        flex-direction: row;
        overflow-x: hidden; /* Altere overflow-x para hidden para remover a barra de rolagem */
    }
    #carousel-prev,
    #carousel-next {
        position: absolute;
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
    #categories {
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: hidden; /* Altere overflow-x para hidden para remover a barra de rolagem */
    }
    #categories .category:first-child {
        margin-left: 50px; /* Espaço de 50px à esquerda da primeira categoria */
    }
    #categories .category:last-child {
        margin-right: 50px; /* Espaço de 50px à direita da última categoria */
    }
}
.note {
    overflow: hidden;
    word-wrap: break-word; /* Permitir quebra de palavras longas */
    hyphens: auto; /* Adicionar hifenização se necessário */
}
.note p {
    white-space: pre-wrap; /* Permitir quebra de linha dentro do parágrafo */
    overflow-wrap: break-word; /* Permitir quebra de palavra longa */
}
@media (max-height: 500px) {
    .mobile-resolute {
        display: none !important;
    }
}
#pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.pagination-button {
    margin: 0 5px;
    padding: 8px 12px;
    border: none;
    background-color: #b80f52;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.pagination-button.active {
    background-color: #8e0e3d;
    font-weight: bold;
}
.pagination-button:hover {
    background-color: #a00e47;
}
/* Estilos para o modal de bloqueio */
.modal-lk {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Alinha na parte inferior */
  padding-bottom: 20vh; /* Espaço acima do teclado */
  z-index: 10;
}


.modal-content-lk {
  background-color: #fff;
  padding: 20px 20px 10px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 300px;
  text-align: center;
  position: relative;
  top: -100px; /* Esse valor move o modal 100px para cima */
}

    .hidden-lk {
      display: none !important;
    }

    #close-modal-lk {
      position: absolute;
      top: 5px;
      right: 10px;
      font-size: 26px;
      cursor: pointer;
    }

    #close-modal-lk:hover {
      color: red;
    }

    #locked-overlay-lk {
      position: absolute;
      background-color: rgba(255, 255, 255, 0.95);
      width: 100%;
      height: 100%;
      text-align: center;
      padding-top: 40px;
      z-index: 0;
    }

    #locked-overlay-lk img {
      width: 120px;
      cursor: pointer;
      margin-bottom: 10px;
    }
  #tooltip-note {
  position: fixed;
  bottom: 80px;
  right: 50px;
  background-color: #5d5d5d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}