@import url('./../fonts/dm-sans.css');
@import url('./../fonts/crimson-text.css');

:root {
    --serif-font: "Crimson Text", Georgia, 'Times New Roman', Times, serif;
    --sans-serif-font: "DM Sans", Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--sans-serif-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

/* Inhabilita el arrastrar imagenes de las páginas web */
img {
    -webkit-user-drag: none;
    /* user-drag: none; */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.text-justify {
    text-align: justify;
}


/* Aplica bordes redondeados en las esquinas superior e inferior izquierdo de la celda inicial de cada fila de la tabla */
table.table-rounded-rows tbody tr td:first-child,
table.table-rounded-rows tbody tr th:first-child {
    border-radius: 5px 0 0 5px;
}

/* Aplica bordes redondeados en las esquinas superior e inferior derecho de la última celda de cada fila de la tabla */
table.table-rounded-rows tbody tr td:last-child,
table.table-rounded-rows tbody tr th:last-child {
    border-radius: 0 5px 5px 0;
}

/* Suaviza el efecto hover en las filas de tablas */
table tr td {
    transition: all 350ms ease-in-out;
}

table tr:hover td {
    transition: all 350ms ease-in-out;
}


.cursor-pointer {
    cursor: pointer;
}

.cursor-help {
    cursor: help;
}

label.form-label {
    margin-bottom: 0.3rem;
}

label.form-label-required::after {
    content: "*";
    color: red;
    margin: 0 3px;
}

label.form-label-required+sup.fa-circle-question {
    margin-left: 0;
}

sup.fa-circle-question {
    margin-left: 3px;
}

svg.icon-100px {
    height: 100px !important;
    width: 100px !important;
}

.nav-link.active {
    /* border-bottom: 3px orange solid; */
    font-weight: 600;
}

section#main-content::after {
    content: '';
    display: block;
    clear: both;
}

#masonry::after {
    content: '';
    display: block;
    clear: both;
}

.image-gallery-item {
    position: relative;
    transition: transform 0.3s ease-in-out;

    float: left;
}

.image-gallery-item:hover {
    transform: scale(1.1);
}


.cover-book-item {
    position: relative;
}

.cover-book-item img,
#current-cover img {
    border-radius: 5px;
    /* transition: all 350ms ease-in-out; */
    /* outline: 3px solid rgba(255, 0, 0, .5); */
}

.cover-book-item img:hover,
#current-cover img:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    outline: 3px #5BA0FF solid;
    /* transition: all 350ms ease-in-out; */
}

.cover-book-item .button-area:hover+img,
#current-cover:focus-within img {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.cover-book-item .button-area {
    padding: 15px;
    box-sizing: border-box;
}


/* Estilos personalizados para suneditor */
.__se__format__replace_h2,
.__se__format__replace_h3 {
    font-weight: 900 !important;
}

.__se__format__replace_h2 {
    font-size: 12pt !important;
}

.__se__format__replace_h3 {
    font-size: 10pt !important;
}

.__se__format__replace_p {
    font-size: 13px !important;
}



/* Mosaico efecto google photos */
section.mosaic {
    display: flex;
    flex-wrap: wrap;
}

section.mosaic::after {
    content: '';
    flex-grow: 999999999;
}

section.mosaic div.image-item {
    /* margin: 2px; */
    /* background-color: violet; */
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
    flex-grow: 1;
    height: 200px;
    position: relative;
    /* transition: all 350ms ease-in-out; */
}

section.mosaic div.image-item:hover {
    outline: 3px #5BA0FF solid;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    /* transition: all 350ms ease-in-out; */
}

section.mosaic div.image-item div.description {
    background-color: #FFFFFF;
    bottom: 0;
    box-sizing: border-box;
    color: #000000;
    left: 0;
    padding: 10px;
    position:absolute;
    text-overflow: ellipsis;
    width: 100%;
    opacity: 0.8; 
	-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity= 50); /* // for IE8 */
	filter: alpha(opacity= 50); /* //for IE5-7 */
}

section.mosaic div.image-item img {
    height: 200px;
    max-width: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
}