/*----------------------------------------------------------------------
Page loader CSS BY HighHay

USAGE:
------
- Add this as an external CSS file and put it before other css links inside
html file
- Add the following tag inside HTML file :
<div class='page-loader'>
    <div><i class='fa fa-spinner  fa-spin'></i><p>loading</p></div>
</div>
------------------------------------------------------------------------*/
/* Full-screen black background */
/* Styling for the loading page */
.page-loader {
    position: fixed;
    z-index: 200;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #000; /* Black background */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centering the content inside the loader */
.page-loader div {
    text-align: center;
    color: #f1f1f1;
}

/* Fixed size for the GIF and center it */
.page-loader div img {
    display: block;
    width: 200px; /* Fixed width for the GIF */
    height: auto;
    margin: 0 auto; /* Center the GIF horizontally */
}

/* Optional: Styling the loading text */
.page-loader div p {
    margin-top: 20px;
    font-size: 14px;
    color: #f1f1f1;
    text-transform: uppercase;
    font-family: 'Roboto', 'Helvetica', sans-serif;
    font-weight: bold;
}

/* Transitions for showing and hiding the loader */
.page-loader,
.page-loader.visible {
    transition: 0.6s;
    opacity: 1;
    visibility: visible;
}

.page-loader.p-hidden {
    visibility: hidden;
    opacity: 0;
}
