/* Kode for scroll menuen på bestil*/

main {
    width: 98%;
}

.menu-scroll {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    /* Enable horizontal scrolling */
    overflow-x: auto;
    overflow-y: hidden;
    /*touch scrolling på iOS */
    -webkit-overflow-scrolling: touch;
    background-color: var(--color-bg);
}

/* Prevent items from shrinking */
.menu-scroll a {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    background-color: var(--color-cta1-bg);
    border-radius: 20px;
    border: 1px solid #D9D9D9;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
}

.menu-scroll {
    scrollbar-width: none;
    /* Firefox */
}

.menu-scroll a:hover {
    background-color: var(--color-cta1-hover);
    color: #D9D9D9;
    border: 1px solid #D9D9D9;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.menu-scroll a.active {
    color: black;
    background-color: var(--color-cta1-clicked);
}


#sushiSubmenu {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 15%;

}

#sushiSubmenu a {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    background-color: var(--color-cta1-bg);
    border-radius: 20px;
    border: 1px solid #D9D9D9;
    width: 18%;
    text-align: center;
}

#sushiSubmenu a:hover {
    background-color: var(--color-cta1-hover);
    color: #D9D9D9;
    border: 1px solid #D9D9D9;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border 0.3s ease-in-out;
}

#sushiSubmenu a.active {
    color: black;
    background-color: var(--color-cta1-clicked);
}


/*Kode for menu boksene */
.toggle-btn {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Flex container */
.card-nav {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

/* Collapsed = horizontal scroll */
.card-nav.collapsed {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Expanded = wrapped grid */
.card-nav.expanded {
    flex-wrap: wrap;
    overflow: visible;
}

/* Hide scrollbar but keep scrolling */
.card-nav::-webkit-scrollbar {
    display: none;
}

.card-nav {
    scrollbar-width: none;
}

/* Individual cards */
.card {
    flex: 0 0 auto;
    width: 200px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Card content */
.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 0.75rem 5px;
    font-size: 1.1rem;
}

.card button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 999px;
    background: var(--color-bestilbutton);
    color: #fff;
    cursor: pointer;
}

.bestilheader {
    align-items: normal !important;
    letter-spacing: 1px;
}

.topbutton {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: block;
    padding: 0.75rem 1.5rem;
    background: var(--color-cta1-bg, #333);
    color: #fff;
    border-radius: 999px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 1000;
    margin: 0;
}

.topbutton:hover {
    background: var(--color-cta1-hover, #555);
    color: #D9D9D9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.menu-section {
    display: none;
    margin-left: 1%;
}