/* Add fade-in state for main content */
main {
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

main.loaded {
    opacity: 1;
}

.main-transition {
    position: fixed;  /* Changed from absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;/* DaisyUI base-100 background */
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.main-transition.active {
    opacity: 1;
}

.main-transition.hidden {
    opacity: 0;
    visibility: hidden;  /* Completely hide when not needed */
}

#page-logo-tranny {
    width: 40px;    /* Match logo size */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease-in;
}

#page-logo-tranny .logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#page-logo-tranny.show {
    opacity: 1;
    transform: scale(2);  /* Slightly larger scale for better visibility */
}

#page-logo-tranny.hide {
    opacity: 0;
    transform: scale(0.8);
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}