@font-face {
    font-family: 'Ndot47';
    /* Adding a leading slash / guarantees it searches from your root repository directory */
    src: url('/pdf.guga/fonts/ndot-47-inspired-by-nothing.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    src: url(fonts/SourceCodePro-VariableFont_wght.ttf);
    font-family: sourcecode;
}

/* ==========================================
   GLOBAL RESET & GLOBAL FORCED CURSOR REMOVAL
   ========================================== */
* {
    margin-bottom: 1%;
    font-family: sourcecode, "helvetica", sans-serif;
    font-weight: normal;
    text-decoration: none;
    box-sizing: border-box;
    cursor: none !important; /* Strips browser pointer across every tag */
}

/* ==========================================
   BASE & STRUCTURE ELEMENTS
   ========================================== */
body {
    background-color: #f5f5f5;
    max-width: 1500px;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s, transform 0.5s cubic-bezier(0.87, -0.01, 1, 1);
}

body.loaded {
    opacity: 1;
}

.container {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    background-color: #f5f5f5;
    padding: 1%;
}

.container div {
    background-color: #f1f1f1;
    border: 1px solid black;
    padding: 10px;
    font-size: 30px;
    text-align: center;
}

.mae {
    display: flex;
    margin: 0;
}

.mae2 {
    display: block;
}

.grupo {
    width: 25%;
    position: relative;
    margin-left: 1%;
    margin-right: 3%;
}

p {
    font-size: 0.8em;
}

/* ==========================================
   IMAGES & MEDIA TARGETS
   ========================================== */
img {
    max-width: 50%;
}

#img-main {
    max-width: 25%;
}

#img2 {
    max-width: 75%;
    margin: auto;
    margin-top: 15%;
}

#gallery-content {
    max-width: 50%;
    margin-bottom: 0;
}

/* Standard static preview behavior */
.gallery-img {
    transition: opacity 0.2s ease;
}

.gallery-img:hover {
    opacity: 0.4; /* Slightly dims the static stack photo so you know which one is targeted */
}

/* --- THE OVERLAY POPUP LAYER CONTAINER --- */
#image-popup-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(245, 245, 245, 0.85); /* Matches your site background color with an 85% opacity overlay backdrop */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998; /* Places popup directly behind your custom cursor ring, but above everything else */
    pointer-events: none; /* Allows the mouse to read the items under it */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#image-popup-window.visible {
    opacity: 1;
}

/* Centered popping element configuration */
#image-popup-window img {
    max-width: 60vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    transform: scale(1.3); /* Forces the popup preview windows to display 30% larger */
    transition: transform 0.3s ease;
}

/* ==========================================
   TYPOGRAPHY & ACTIONS
   ========================================== */
#texto1 {
    position: absolute;
    bottom: 0;
}

h2 {
    font-family: 'Ndot47', "helvetica", sans-serif;
    position: fixed;
    font-size: 3em;
    font-style: none;
    background-color: #032068;
    color: white;
    width: fit-content;
    top: 2%;
    right: 3%;
}

h2:hover {
    background-color: #f1f1f100;
    color: #032068;
}

h3 {
    color: white;
    width: fit-content;
    background-color: #F2BB06;
    font-size: 1.6vw;
}

.link {
    color: #B80529;
    text-decoration: underline;
}

.transition-link {
    font-size: 1.3em;
    border: none;
    background-color: #f5f5f5;
    color: #F2BB06;
}

.transition-link:hover {
    background-color: #F2BB06;
    color: white;
}

#destaque {
    background-color: white;
    font-weight: 600;
}

#titulohide {
    font-size: 3vw;
    font-style: none;
    background-color: #032068;
    color: white;
    width: fit-content;
    margin-top: 13%;
    margin-right: 10%;
    display: none;
}

#fixedbutton {
    font-family: Ndot47, source code, "helvetica", sans-serif;
    font-size: 1.5em;
    position: fixed;
    bottom: 2%;
    right: 3%;
    background-color: #032068; 
    color: white;
}

#fixedbutton:hover {
    background-color: white;
    color: #032068;
}

/* ==========================================
   PAGE TRANSITION OVERLAY
   ========================================== */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: #f2bb0600;
    opacity: 0;
    z-index: 9997; 
    pointer-events: none;
    transition: left 0.6s ease, opacity 0.1s ease;
}

#transition-overlay.active {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================
   CUSTOM MOUSE CURSOR SETUP
   ========================================== */
#custom-cursor {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    
    /* System resets to align coordinates with viewport */
    position: fixed;       
    top: 0;                
    left: 0;               
    margin: 0;             
    
    background-color: #F2BB06; 
    border: 2px solid #F2BB06;     
    pointer-events: none;  
    z-index: 99999;        
    will-change: transform;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1800px) {
    .container {
        grid-template-columns: auto auto auto auto;
    }
}

@media (max-width: 600px) {

    #custom-cursor {
    background-color: #F2BB0600; 
    border: 2px solid #F2BB0600;
    }
    
    .mae {
        display: flex;
        flex-direction: column;
    }

    .grupo {
        width: 100%;
    }

    img {
        max-width: 100%;
    }

    #img-main {
        max-width: 100%;
    }

    p {
        font-size: 3vw;
    }

    h2 {
        display: none;
    }

    h3 {
        font-size: 4vw;
        margin-top: 5%;
    }

    #texto1 {
        position: relative;
        margin-bottom: 5%;
        margin-top: 2%;
    }

    #textoIG {
        display: none;
    }

    #titulohide {
        font-size: 5vw;
        margin-top: 3%;
        margin-right: 2%;
        position: absolute;
        display: block;
    }

    #fixedbutton {
        font-size: 4vw;
        bottom: 2%;
        right: 5%;
    }

    .container {
        grid-template-columns: auto;
    }

    #img2 {
        max-width: 100%;
        margin-top: 5%;
    }
    #gallery-content {
    max-width: 50%;
    }
}
