/* layouts.css */
/* These are structural layout rules */

main {
    flex: 1;
}

footer {
    background-color: var(--secondary);
    padding: var(--spacing-base);
    margin-top: auto;
}

/* Logo layout */
.logo-image-container {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-base);
}

.logo-image-container img {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 2rem 0;
}

/* UPDATED: Apply width rules uniformly to all menu sections */
/* Target all sections with class 'container mt-3' instead of specific IDs */
.container.mt-3 {
    width: 100%;
    max-width: var(--container-max-width);
    background-color: var(--background);
}

/* Alternative approach: Target all sections within the menuSection container */
#menuSection > .container {
    width: 100%;
    max-width: var(--container-max-width);
    background-color: var(--background);
}

/* Update clickable-row styles in components.css */
.clickable-row {
    cursor: pointer;
    border: 0;
    color: var(--text-color); /* Updated to use theme-aware variable */
    background-color: green;/*var(--card-background); /* Updated to use theme-aware variable for menu items */
    padding: var(--spacing-base);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-base);
    width: 100%; /* Ensure full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%; /* Make Bootstrap rows full width */
}

/* Content Layout */
.design-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--background); /* Changed from var(--page-background) */
}

.design-wrapper > div {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    padding-top: 10vh;
    padding-bottom: 0vh;
}

.design-wrapper .row.spacing {
    width: 100%;
}

.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    /*background-color: var(--background); /* Added to ensure content wrapper follows theme */
}

.centered-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10vh;
    background-color: var(--background); /* Added to ensure content follows theme */
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Add consistent padding matching the content items */
    padding: 0 var(--spacing-lg);  /* or whatever spacing your content items use */
    width: 100%;
    background-color: var(--background); /* Added to ensure header follows theme */
}

/* Move this entire block to layouts.css */
.bar-menu-row {
    position: sticky;
    top: 0;
    background-color: var(--page-color); /* Changed to use theme variable */
    z-index: var(--z-index-sticky);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    width: 100%;
    padding: var(--spacing-base) 0;
}

@media (max-width: 768px) {
    .bar-menu-row {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    .bar-menu-section {
        flex: 1;
    }
}

.position-relative {
    position: relative;
}
  
.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Adjust color as needed */
    font-size: 1.5rem; /* Adjust size as needed */
}