@font-face{
    font-family: 'NotoSans_JP';
    src:url(../materials/Font/Noto_Sans_JP/NotoSansJP-Regular.ttf); 
}
@font-face{
    font-family: 'Zenmaru_bold';
    src:url(../materials/Font/Zen_Maru/ZenMaruGothic-Bold.ttf); 
}
@font-face{
    font-family: 'Zenmaru_medium';
    src:url(../materials/Font/Zen_Maru/ZenMaruGothic-Medium.ttf); 
}
body{
    font-family:'NotoSans_JP';
    font-size: 15px;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow-y: auto;
}
.todo{
    width: 100%; /*para que ocupe todo el ancho de la pantalla*/
    background-image: url("../materials/img/fondo_30opacidad.jpg"); /*.. = es ir a la carpeta anterior para buscar las img*/
    min-height: 100vh;
    position: relative;
    margin: 0 auto; /*para centrar el contenido*/
    padding: 10px 20px 80px 20px; /*para agregar un poco de espacio a los lados del contenido*/
}
#menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 0;
}
.ioconotipo{
    margin: 10px 0px 5px 0px;
    height: 60px;
}
.parte_derecha{
    display: flex;
    align-items: center;
}
.icon_notificacion{
    height: 26px;
    margin: 10px;
}
.btn_registre{
    width: 28px;
    height: 28px;
    margin: 8px 0px 3px 10px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover; /*para que la aimgen ocpe todo sin deformarse*/
    object-position: center; /*para que se centre la img*/
}

/*notificacion*/
.contenedor_noti{
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.noti_visible{
    position: absolute;
    background-color: #E70103;
    color: white;
    border: 2px solid white;
    font-size: 12px;
    font-family: 'Zenmaru_medium';
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    top: 0;
    right: 0;
}

.cont_noti{
    position: fixed;
    display: none;
    height: calc(100vh - 88px); /*ocupa la altura de la pantalla visible, pero le restamo 88px de arriba para que se encaje bien y se pueda ver la parte de arriba. (calc = calcular de 100vh le restamos 88px para que se encaje)*/
    background-color: white;
    padding: 10px 5px;
    top: 88px;
    width: 100%;
    z-index: 2000;
    padding: 20px 10px;
    overflow-y: auto; /*agrega una barra de desplazamiento vertical si el contenido excede la altura del contenedor*/
    box-sizing: border-box; /*para que el padding no haga mas grande el contenedor*/
}
.cont_noti.activo{ /*cuando se activa se hace visible*/
    display: block;
}
/*parte noti que solo esta en php*/
.noti_item{
    display: block;
    text-decoration: none;
    border: 1px solid black;
    color: #000000;
    border-radius: 10px;
    margin: 0px 10px 0px 10px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    font-family:'NotoSans_JP';
}
.noti_item a {
    text-decoration: none;
    display: block; 
}
.leido{
    background-color: rgb(55, 81, 106, 0.4);
}
.noleido{
    background-color: white;
}
.noti_vacia {
    text-align: center;
    font-size: 15px;
    font-family:'Zenmaru_medium';
    color: #E70103;
}
.titulohisotria{
    color: #E70103;
    font-family:'Zenmaru_medium';
}

/*parte noti de html*/
.noti1{
    border: 1px solid black;
    border-radius: 10px;
    margin: 10px 10px 0px 10px;
    padding: 10px;
    font-family:'NotoSans_JP';
    background-color: white;
}
.noti2{
    border: 1px solid black;
    border-radius: 10px;
    margin: 0px 10px 0px 10px;
    padding: 10px;
    background-color: rgb(55, 81, 106, 0.5);
}

/*titulo*/
.titulo{
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-around;
}
.tituloapartado{
    font-size: 29px;
    font-family:'Zenmaru_bold';
    margin: 15px 10px 10px 10px;
    color: #37516A;
}
.atras{
    position: absolute;
    top: 9%;
    left: 0px;
    cursor: pointer;
    background: transparent;
    border: none;
    margin: 10px 0px 0px 0px;
}
.imgbtnatras{
    width: 45px;
    height: 45px;
}
.mensaje_error{
    color: #E70103;
    font-family: 'Zenmaru_bold';
    font-size: 18px;
    padding: 10px;
    margin: 10px 0;
}
/*formulario*/
.form_novahistoria{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}
.cont_superior{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}
/*parte img*/
.cont_img{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    margin: 18px 0px 10px 0px;
    width: 110px;
    height: 170px;
    background-color: rgb(171, 171, 171);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #37516A;
}

.img_label{
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text2{
    width: 285px;
    height: 40px;
    border: 1px solid #37516A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    color: #37516A;
    cursor: pointer;
    background-color: #F0E8D1;
    box-sizing: border-box;
    margin: 50px 10px ;
    pointer-events: none; /* Evita que el botón sea clickeable, permitiendo que el evento se propague al input */
}
.control2{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: pointer;
}
.imagen_prev{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    display: none;
}
/*parte de titulo*/
.cont_todo_info{
    margin-top: 18px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.text{
    font-size: 16px;
    font-family:'Zenmaru_bold';
    color: #37516A;
    margin-top: 2px;
}
.input_titulo{
    font-size: 16px;
    font-family:'Zenmaru_medium';
    border: 2px solid #37516A;
    border-radius: 10px;
    padding: 5px 10px;
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0px;
}
.input_titulocat{
    font-size: 16px;
    font-family:'Zenmaru_medium';
    color: #37516A;
    border: 2px solid #37516A;
    border-radius: 10px;
    padding: 4px 10px;
    box-sizing: border-box;
    width: 100%;
    margin: 5px 0px;
}

/*filtros*/
.primer_filtre{
    display: flex;
    margin: 20px 0px 25px 0px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.dins_nivell{
    width: 165px;
    padding: 15px 20px 20px 10px;
    border: none;
    color: white;
    appearance: none; /*elimina el estilo predeterminado del select*/
    background: url("../materials/Altres_icons_btn/flecha_abajo_rojo.svg"), url("../materials/Elements_grafics/rectangulo_azul2.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: right 12px center, center;  /* flecha a la derecha, fondo centrado */
    background-size: 14px 7px, contain;
    font-family: 'Zenmaru_medium';
    font-size: 12px;
    box-sizing: border-box;
    position: relative;
    right: 0;
    top: 0;
    text-align: center;
}


option{
    background-color: #37516A;
    color: #FCC560;
    font-family: 'Zenmaru_medium';
    font-size: 12px;
    border: none;
    text-align: center; 
}

/*Parte de etiquetas*/
.segon_filtre{
    margin: 8px 0px 0px 0px;
}
.tituloetiqueta{
    font-family:'Zenmaru_bold';
    font-size: 20px;
    margin: 0px 0px 10px 0px;
    color: #37516A;
}
/*parte de la selecion de etiquetas*/
#contenedoretiquetasselecionadas{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0px;
}
.etiquetasvisible{
    border: 2px solid #37516A;
    border-radius: 10px;
    padding: 4px 10px;
    cursor: pointer;
    background: #F0E8D1;
    display: flex;
    align-items: center;
    font-family: 'NotoSans_JP';
    font-size: 13px;
    color: #37516A;
    user-select: none; /* Evita que el texto sea seleccionable */
    width: fit-content; /*que se adapte al ancho del texto*/
}

/*añadir nueva etiqueta*/
.cont_nueva_etiquetas{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0px;
    align-items: center;
    position: relative;
}
.input_etiqueta{
    flex: 1;/* Ocupa el espacio disponible */
    min-width: 0;
    padding: 6px 10px;
    border: 2px solid #37516A;
    border-radius: 10px;
    font-family: 'NotoSans_JP';
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}
.btn_nueva_etiqueta{
    margin-top: 3px;
    background: none;
    border: none;
    cursor: pointer;
}
.img_nueva_etiqueta{
    width: 50px;
    height: 50px;
}

/*parte select filtro*/
.sugerencias{
    display: none;
    position: absolute;
    background-color: #37516A;
    color: #FCC560;
    flex-wrap: wrap; /*si hay mas contenido que el contenedor, se pasa a la siguiente línea*/
    gap: 8px;
    z-index: 100;
    border-radius: 10px;
    margin-right: 14px;
    padding: 5px 5px;
}
.sugerencias.activo{
    display: flex;
}
.sugerenciaetiquetas{
    display: flex;
    align-items: center;
    color: #FCC560;
    padding: 3px 10px;
    font-size: 12px;
    font-family: 'Zenmaru_medium';
    cursor: pointer;
}
.sugerenciaetiquetas.activo{
    background-color: #F0E8D1;
    color: #E70103;
}

/*Parte de descripcion*/
.descripcio{
    width: 100%;
    box-sizing: border-box;
    margin: 0px 0px 10px 0px;
}
.titulodescripcio{
    font-family:'Zenmaru_bold';
    font-size: 20px;
    margin: 0px 0px 10px 0px;
    color: #37516A;
}
#infodescripcio{
    resize: none; /*quitamos la opcion de que usuario pueda hacer mas grande el texarea*/
    overflow: hidden; /*quitamos la barra de bajar*/
}
.infodescripcio{
    width: 100%;
    min-height: 120px;
    line-height: 1.8; /*altura de las lineas del texto*/
    font-size: 13px;
    margin: 0px 0px 10px 0px;
    border-radius: 10px;
    padding: 8px;
    box-sizing: border-box;
    font-family:'NotoSans_JP';
    border: 2px solid #37516A;
}
.btn_crearhistoria{
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: none;
    margin: 8px 0px 40px 0px;
    display: flex;
    justify-content: center;
}
.btn_crearhistoria img{
    width: 163px;
    height: 47px;
}

/*parte menu abajo*/
.menunav{
    position: fixed;
    bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    height: 65px;
    width: 100%;
    background-color: #37516A;
    padding: 5px 0px;
    box-sizing: border-box;
    z-index: 1000;
}
.menunav_dentro{
    display: flex;
    justify-content: space-evenly;/*para que los iconos se distribuyan de manera uniforme en el espacio disponible*/
    align-items: center;
    width: 100%;
}
.icons{
    width: 58px;
    margin: 0px 6px 0px 6px;
}

/*cambiar el color de la linea*/
.input_titulo:focus,  
.input_titulocat:focus, 
.input_etiqueta:focus, 
#infodescripcio:focus{
    outline: none; /* Quita la línea naranja predeterminada del navegador */
    border: 2px solid #E70103;
}
.dins_nivell:focus {
    outline: none; /* Quita la línea naranja predeterminada del navegador */
    border: none;   
}