body {
    overflow-x: hidden; /* Prevent horizontal scroll during animation */
}

#barn-door-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex; /* Use flexbox to position the two doors */
    overflow: hidden; /* Hide anything outside the doors */
    pointer-events: all; /* Allow interaction with doors until opened */
}

.barn-door {
    width: 50vw; /* Each door takes half the screen width */
    height: 100vh;
    background-size: cover; /* Ensure the image covers the entire door */
    background-position: center; /* Center the background image */
    position: relative; /* For potential future detailing like handles */
    transition: transform 5s ease-out; /* Smooth transition for opening, now slower */
    /* background-blend-mode: multiply; */
    /* background-color: rgba(0,0,0,0.5); */
}

.left-door {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/1.png');
    transform: translateX(0); /* Initial position */
}

.right-door {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/2.png');
    transform: translateX(0); /* Initial position */
}

/* When the container has the 'open' class, the doors move */
#barn-door-container.open .left-door {
    transform: translateX(-100%); /* Move left door completely out of view to the left */
}

#barn-door-container.open .right-door {
    transform: translateX(100%); /* Move right door completely out of view to the right */
}

#welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em; /* Adjust as needed */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 10000; /* Ensure text is above doors but below container if needed */
    opacity: 1;
    transition: opacity 0.7s ease-out; /* Smooth fade out with doors, now earlier */
}

#barn-door-container.open #welcome-text {
    opacity: 0;
}

.barn-door-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centering */
    max-width: 60%; /* Adjust size as needed */
    height: auto;
    opacity: 0.2; /* Lower transparency */
    z-index: 1; /* Ensure it's above door background */
}

.barn-door-logo.left {
    left: 40%;
    transform: translate(-50%, -50%) perspective(500px) rotateY(-10deg); /* Subtle curve */
}

.barn-door-logo.right {
    left: 60%;
    transform: translate(-50%, -50%) perspective(500px) rotateY(10deg); /* Subtle curve */
}

/* Specific styling for the parent of chat bubble */
#tjenester > .text-center.mb-5 {
    position: relative;
}

/* Styles for the artist signature */
#signature-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999; /* Ensure it's above most content */
}

#artist-signature {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    opacity: 0.8; /* Make it slightly subtle */
}