* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a0307;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    direction: rtl;
}

/* Floating top menu */
.floating-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 55px;
    background-color: #2b050c;
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    -webkit-overflow-scrolling: touch;

    /* Horizontal scrollbar styling */
    scrollbar-color: #6b0f23 #2b050c;
    scrollbar-width: thin;
}

.floating-menu::-webkit-scrollbar {
    height: 4px;
}

.floating-menu::-webkit-scrollbar-track {
    background: #2b050c;
}

.floating-menu::-webkit-scrollbar-thumb {
    background: #6b0f23;
    border-radius: 2px;
}

.floating-menu button {
    background: #4a0a15;
    color: #e5c158;
    border: 1px solid #e5c158;
    padding: 8px 16px;
    margin-left: 8px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Hover only on devices that really support it (avoids sticky yellow after a tap on phones) */
@media (hover: hover) {
    .floating-menu button:hover {
        background: #e5c158;
        color: #2b050c;
    }
}

/* Button of the section you are currently viewing */
.floating-menu button.active {
    background: #e5c158;
    color: #2b050c;
}

/* Scroll container spans FULL width so scrolling anywhere works */
#scroll-container {
    width: 100%;
    height: calc(100vh - 55px);
    height: calc(100dvh - 55px);   /* correct height on phones and tablets */
    margin-top: 55px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    direction: rtl;
    scrollbar-color: #6b0f23 #1a0307;
    scrollbar-width: thin;
}

/* Burgundy scrollbar styling for Chrome, Edge, Safari */
#scroll-container::-webkit-scrollbar {
    width: 6px;
}

#scroll-container::-webkit-scrollbar-track {
    background: #1a0307;
}

#scroll-container::-webkit-scrollbar-thumb {
    background: #6b0f23;
    border-radius: 3px;
}

#scroll-container::-webkit-scrollbar-thumb:hover {
    background: #8e1530;
}

/* Menu image stays centered and restricted in size */
#menu-image {
    max-width: 650px;             /* Constrains image width */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;               /* Centers the image */
}