/*
* **********************************
* ################################## ESTILOS GERAIS
* **********************************
*/

/*
========================
======================== GLOBAL MASK
========================
*/

#global-mask
{    
    width: 100%;
    height: 100%;
    background-color: #ff2a31;
    position:fixed;
    top:0;    
    z-index: 15;

    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;    
    visibility: hidden;

    -webkit-transition: all 0.3s ease;  
    -moz-transition: all 0.3s ease;  
    -o-transition: all 0.3s ease;  
    -ms-transition: all 0.3s ease;  
    transition: all 0.3s ease;
}
#global-mask.active{
    display: table;

    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
    opacity: 0.90;
    visibility: visible;
}

/*
========================
======================== GLOBAL LOADING
========================
*/

#global-loading {    
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    visibility: hidden;

    border: 5px solid #FFF;
    border-radius: 30px;
    height: 30px;
    left: 50%;
    margin: -15px 0 0 -15px;    
    position: fixed;
    top: 50%;
    width: 30px;
    z-index: 9999999;

    animation: pulsate 1s ease-out;
    animation-iteration-count: infinite;

    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease; 
}
#global-loading.active {        
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
    opacity: 0.90;
    visibility: visible;
}

@keyframes pulsate {
    0% {
        transform: scale(.1);
        opacity: 0.0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/*
========================
======================== BODY
========================
*/

body{
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    color: #313338;
}

/*
========================
======================== HEADING TAGS
========================
*/

h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.75em;
}
h3 {
    font-size: 1.625em;
}
h4 {
    font-size: 1.275em;
}
h5 {
    font-size: 1.125em;
}
h6 {
    font-size: 1em;
}



/*
========================
======================== HTML CHARS
========================
*/

.htmlchars{
    width: 100%;
}

.htmlchars p{
    font-size: 1em;
    line-height: 1.125em;
    margin-bottom: 15px;
}

.htmlchars ul, 
.htmlchars ol {
    margin: 15px;
}

.htmlchars a {
    color: #555;
}

.htmlchars a:hover {
    text-decoration: underline;
}

.htmlchars iframe{
    border:none;
}

/*
========================
======================== PAGINATION
========================
*/

.pagination-links{
    width: 100%;    
    text-align: center;
    margin-top: 20px;
}
.pagination-links li{
    display: inline-block;
    margin: 0 1px;
}
.pagination-links li p,
.pagination-links li a{
    min-width: 33px;
    background: #dbdfe0;
    display: block;
    padding: 7px 13px 7px 13px;
    color: #555;

    border-radius: 50px;
    -webkit-border-radius:50px;
    -moz-border-radius: 50px;

    transition: background-color 0.25s linear 0s;
    -webkit-transition: background-color 0.25s linear 0s;
    -moz-transition: background-color 0.25s linear 0s;
}
.pagination-links li a:hover{
    background: #ff2a31;
    color: #FFF;
}
.pagination-links li.link-current p{
    background: #ff2a31;
    color: #FFF;
}
.pagination-links li.link-disabled p{
    background: #dbdfe0;
}

/*
========================
======================== ALERT HTML
========================
*/

.alert-html{
    background-color: #f1f5f9;
    display: block;
    padding: 20px 0px;
    text-align: center;
    border: 1px solid #dfe4e9;

    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

.alert-html p{
    font-size: 1em;
    color: #555;
    font-weight: 300;
}

/*
========================
======================== SCROLL
========================
*/

.j_scroll {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    height: 52px;
    width: 52px;
    background: #014276;

    border-radius:50%;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;

    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

.j_scroll:hover {
    opacity: 0.5;
}

.j_scroll span{
    display: block;
    font-size: 34px;
    text-align: center;
    color: #FFF;
    line-height: 50px;
}

/*
========================
======================== MODAL CUSTOM
========================
*/

#modal{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    display: none;
    overflow-y: auto;

    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    visibility: hidden;
}

#modal.active{
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
    visibility: visible;
    display: flex;
}

.modal-box{
    background-color: #FFF;
    width: 800px;
    max-width: 90%;
    margin: auto;
    z-index: 100;

    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;

    box-shadow: 0 0 2px 0 rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 0 2px 0 rgba(0, 0, 0, .25);
    -moz-box-shadow: 0 0 2px 0 rgba(0, 0, 0, .25);
}

.modal-header{
    background-color: #e6edec;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.modal-header h1{
    font-size: 1.4em;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.modal-header .j_modal_close {
    background-color: #D90000;
    font-size: 1.8em;
    color: #FFF;
    padding: 2px 5px;
    cursor: pointer;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.modal-header .j_modal_close:hover{
    background-color: #A40000;
}

.modal-content{
    padding: 20px;
}

.modal-infor{
    margin-bottom: 20px;
    text-align: right;
}

.modal-infor .btn{

}

.modal-title{
    text-align: center;
    margin-bottom: 20px;
}

.modal-title h1{
    font-size: 1.6em;
    font-weight: 700;
}



.modal-thumb{
    margin-bottom: 20px;
}

.modal-thumb img{
    min-width: 100%;
    height: 350px;
    object-fit: cover;
}

.modal-gallery ul{
    display: flex;
    flex-wrap: wrap;
}

.modal-gallery li{
    flex-basis: calc(25% - 10px);
    margin: 5px;
}

@media print {
    html, body {
        margin: 0;
        padding: 0;
        border: 0;
    }
    .modal-content {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 14px;
    }
    .modal-content ~ * {
        display: none;
    }
}