/* DECORATIVE SECTION */

/* Central Decorative Container */
.decorative {
    width: 100%; /* Full width alignment */
    margin: 0 auto; /* Centers horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1; /* Ensures proper stacking */
    padding: 0; /* No extra padding */
    overflow: hidden;
    box-sizing: border-box;
}

/* Decorative Separator Style */
.decorative-separator {
    width: 100%;
    aspect-ratio: 3200 / 866; /* Modern approach for maintaining ratio */
    background: url('../assets/images/misc/decorative1.png') no-repeat center center;
    background-size: contain;
    box-sizing: border-box;
}

/* Specific Separator for Second Decorative Image */
.decorative-separator-second {
    width: 100%;
    aspect-ratio: 3200 / 362; /* Modern approach for maintaining ratio */
    background: url('../assets/images/misc/decorative2.png') no-repeat center center;
    background-size: contain;
    box-sizing: border-box;
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    gap: 10px; /* Space between flags */
    justify-content: center; /* Center align flags */
    align-items: center;
    margin-top: 1rem; /* Add spacing above */
    z-index: 10; /* Ensure it appears above other elements */
}

.language-selector img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%; /* Circular flags */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-selector img:hover,
.language-selector img:focus {
    transform: scale(1.2); /* Slight zoom effect */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.6); /* Add shadow on hover or focus */
}

/* Additional focus outline for accessibility */
.language-selector img:focus {
    border: 2px solid #fff; /* White border on focus */
}

/* Custom Scrollbars */
.scrollbar {
    position: fixed;
    top: 0;
    width: calc(100vw * (19 / 3200)); /* Proportional scrollbar width */
    height: 100vh; /* Full vertical height */
    background-size: contain;
    background-repeat: repeat-y; /* Repeat vertically */
    z-index: 100; /* Below decorative content */
}

.scrollbar-left {
    left: 0;
    background-image: url('../assets/images/misc/scrollbar-left.png');
}

.scrollbar-right {
    right: 0;
    background-image: url('../assets/images/misc/scrollbar-right.png');
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .decorative {
        width: 100%; /* Full width for smaller screens */
    }

    .decorative-separator,
    .decorative-separator-second {
        background-size: cover; /* Ensure visibility on smaller screens */
        aspect-ratio: unset; /* Adjust dynamically if aspect-ratio causes issues */
        height: auto; /* Allows natural scaling */
    }

    .language-selector img {
        width: 24px;
        height: 24px; /* Smaller flags for smaller screens */
    }
}

@media (max-width: 480px) {
    .decorative-separator,
    .decorative-separator-second {
        height: calc(100vw * (866 / 3200)); /* Fallback ratio-based height */
    }

    .language-selector {
        gap: 5px; /* Reduce gap between flags */
    }
}
