/*fuentes original de la app*/
@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); 
}

/*fuentes para escoger al editor*/
@font-face{
    font-family: 'Kosugi_Regular';
    src:url(../materials/Font/Kosugi_Regular.ttf); 
}
@font-face{
    font-family: 'MPLUSU_VariableFont';
    src:url(../materials/Font/MPLUSU-VariableFont_wght.ttf); 
}
@font-face{
    font-family: 'KiwiMaru_Medium';
    src:url(../materials/Font/KiwiMaru_Medium.ttf); 
}
@font-face{
    font-family: 'BIZUDPGothic_Regular';
    src:url(../materials/Font/BIZUDPGothic_Regular.ttf); 
}
@font-face{
    font-family: 'Yomogi_Regular';
    src:url(../materials/Font/Yomogi_Regular.ttf); 
}
@font-face{
    font-family: 'HachiMaruPop_Regular';
    src:url(../materials/Font/HachiMaruPop_Regular.ttf); 
}
@font-face{
    font-family: 'ShipporiMincho_Medium';
    src:url(../materials/Font/ShipporiMincho_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 90px 20px; /*para agregar un poco de espacio a los lados del contenido*/
}
/*interior historia*/
.interior_historia{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    margin-top: 15px;
}

/*baarra_edicion*/
.baarra_edicion{
    display: none;
    align-items: center;
    gap: 4px;
    background-color: #37516A;
    border-radius: 10px;
    padding: 6px 10px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    position: fixed;
    margin: 0 auto;
    /*margin: 0px 20px 10px 20px;*/
    z-index: 1000;
    -webkit-transform: translateZ(0); /*evitamos parpadeos en el movil*/
    transform: translateZ(0);
}
body.barra_activa .baarra_edicion{
    display: flex;
}
body.barra_activa{
    padding-bottom: 0;
}
/*parte select tipo*/
.edicionfuentee{
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    background-image: url('../materials/Altres_icons_btn/flecha_abajo_rojo.svg');
    background-repeat: no-repeat;
    background-position: right 1px center;
    background-size: 20px 14px;
    appearance: none;
    font-family: 'Zenmaru_medium';
    font-size: 17px;
    text-align: center;
}
.seleciontipo{
    color: #FCC560;
    width: 100%;
    border: none;
    background-color: transparent;
    font-family: 'NotoSans_JP';
    font-size: 10px;
    padding: 4px 24px 4px 8px;
    appearance: none;
    cursor: pointer;
}
.seleciontipo:focus, .seleciontipo:active{
    outline: none;
    border: none;
}
.escogertipo{
    width: 100%;
    background-color: #37516A;
    color: #F0E8D1;
    border-radius: 10px;
    border: none;
}

/*botones*/
.btn_ponserimg, .btn_resaltar, .btn_ponerbold, .btn_ponseritalic, .btn_ponsersubrallado {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 0;
}

.btn_ponerbold.btn-activo, .btn_ponseritalic.btn-activo, .btn_ponsersubrallado.btn-activo, .btn_ponserimg.btn-activo, .btn_subrallar.btn-activo{
    background-color: rgba(252, 197, 96, 0.35) !important; /* daurat suau = format actiu */
}

.btn_ponserimg:hover, .btn_resaltar:hover, .btn_ponerbold:hover, .btn_ponseritalic:hover,
.btn_ponsersubrallado:hover{
    background-color: rgba(240, 232, 209, 0.15);
}
/*cuando esta activo el boton, hacmeos que se mantenga el hover*/
.btn_ponerbold.btn-activo:hover, .btn_ponseritalic.btn-activo:hover, 
.btn_ponsersubrallado.btn-activo:hover, .btn_ponserimg.btn-activo:hover, 
.btn_subrallar.btn-activo:hover{
    background-color: rgba(252, 197, 96, 0.55) !important; /* daurat suau = format actiu */
}


/* separador de los demas botones */
.edicionfuentee ~ .btn_ponserimg, .btn_ponserimg + .btn_ponerbold,
.btn_ponerbold + .btn_ponseritalic,
.btn_ponseritalic + .btn_ponsersubrallado {
    border-left: 3px solid #F0E8D1;
    border-radius: 2px;
    padding-left: 4px;
    margin-left: 4px;
}
/*aqui hacemos que podamos hacer scoll sin tener que tapar el texto*/
.titulo_editable, .nota_autor_editable, .infohistoria{
    scroll-margin-bottom: 70px;
}

/*parrte superior*/
.parte_superior{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-bottom: 15px;
}
/*btn atras*/
.btn_atras {
    display: flex;
    align-items: center;
}
.atras{
    cursor: pointer;
    background: transparent;
    border: none;
}
.imgbtnatras{
    width: 45px;
    height: 45px;
}
.selectorcap{
    width: 50%;
    min-width: 130px;
    max-width: 220px;
    position: relative;
}
.dins_caps{
    width: 100%;
    background-color: #F0E8D1;
    background-image: url('../materials/Altres_icons_btn/flecha_abajo_rojo.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding: 10px 15px 10px 7px;
    border: 1px solid #37516A;
    border-radius: 10px;
    appearance: none;
    position: relative;
    font-family: 'Zenmaru_medium';
    font-size: 17px;
    text-align: center;
}
option{
    background-color: #37516A;
    color: #FCC560;
    font-family: 'Zenmaru_medium';
    font-size: 13px;
    text-align: center;
}

/*zoom*/
.btn_zoom{
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-right: 10px;
}
.btn_zoom img{
    width: 75px;
    height: 75px;
    display: block;
}
.pestanya_zoom{
    position: absolute;
    top: 65px;
    right: 0px;
    display: none;
    background-color: white;
    border-radius: 10px;
    padding: 10px 25px;
    border: 1px solid #37516A;
    align-items: center;
    gap: 12px;
}
.pestanya_zoom.activa{
    display: flex;
}
.nom_zoom{
    font-size: 18px;
    font-family: 'NotoSans_JP';
}
.dentro_zoom{
    background-color: rgb(55, 81, 106, 0.2);
    border-radius: 15px;
    display: flex;
}
.numero_zoom{
    padding: 3px 6px;
    margin: 0px 15px;
    font-size: 15px;
    text-align: center;
    font-family: 'NotoSans_JP';
}
.btn_menos, .btn_mas{
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    background-color: #37516A;
    color: #FCC560;
    font-family:'Zenmaru_bold';
    font-size: 20px;
    text-align: center;
}

.contnota, .titulCap, .historia{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
/*titulo*/
.titulo_editable, .nota_autor_editable {
    width: 100%;
    background: transparent;
    border-radius: 10px;
    border: 2px solid #37516A;
    margin-top: 10px;
    padding: 7px 5px;
    color: black;
    resize: none; /*quitamos la opcion de que usuario pueda hacer mas grande el texarea*/
    overflow: hidden; /*quitamos la barra de bajar*/
    outline: none;
}      
.titulo_editable{
    text-align: center;
    font-size: 26px;
    font-family:'Zenmaru_bold';
    height: auto;
    line-height: 1.3;
}
.nota_autor_editable{
    text-align: center;
    font-size: 13px;
    font-family: 'Zenmaru_medium';
}
.infohistoria{
    width: 100%;
    font-size: 15px;
    min-height: 150px;
    height: auto;
    font-family: 'NotoSans_JP';
    line-height: 1.8; /*altura de las lineas del texto*/
    text-align: start;
    background: transparent;
    border-radius: 10px;
    border: 2px solid #37516A;
    margin-top: 10px;
    padding: 10px;
    color: black;
    outline: none;
    box-sizing: border-box;
}
.infohistoria img{
    max-width: 88%;
    max-height: 800px;
    height: auto;
    width: auto;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}
/*placeholder de info historia*/ 
/*como placeholder no es aceptable en contenteditable se usa esta linea content: attr(placeholder); para coger el atributo de placeholder del html y mostrarlo. */
.infohistoria[contenteditable="true"]:empty::before {
    content: attr(placeholder);
    color: #9a9a9a;
    pointer-events: none;
    font-size: 14px;
}

/*cambio capitulo*/
.btn_guardar{
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guardar{
    width: 171px;
    background: none;
    border: none;
}
.btn_guardar1{
    width: 90px;
}

/*pantalla de carga*/
.pantalla_cargando{
    position: fixed;
    top: 0;
    left: 50%; /*se centra en el centro de la pantalla*/
    transform: translate(-50%); /*acaba de centrarce bien*/
    width: 100%;
    height: 100%;
    background: #37516A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden; /*que no se vea el contenido*/
    transition: opacity 0.4s ease; /*que la trancicion sea suave y tarde 4s*/
}
.pantalla_cargando.activa{
    opacity: 1;
    visibility: visible;
}
.cont_confirmacion{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 80%;
    max-width: 300px;
}

.ani_logo{
    width: 194px;
    opacity: 0;
    transition: opacity 3s ease;
}
.ani_logo.mostrar{
    opacity: 1;
}
.text_cargando{
    font-family: 'Zenmaru_medium';
    font-size: 32px;
    color: #F0E8D1;
}
.texto_guardado{
    display: none;
    color: #F0E8D1;
    font-size: 32px;
    font-family: 'Zenmaru_medium';
}
/*cambiar el color de la linea*/
.titulo_editable:focus, 
.nota_autor_editable:focus, 
.infohistoria:focus {
    outline: none; /* Quita la línea naranja predeterminada del navegador */
    border: 2px solid #E70103;
}