/* Skip Menu Styling */
.skip-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem 1rem !important;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
}

.skip-menu p {
    width: 100%;
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    color: #ddd;
    text-align: center;
}

/* Container for buttons (horizontal flex) */
.skip-menu-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem 1rem !important;
    width: auto !important;
}

.skip-menu button {
    display: inline-flex !important;
    width: auto !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    padding: 0.35rem 0.85rem;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.skip-menu button:hover,
.skip-menu button:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: 2px solid yellow;
    border-color: yellow;
}

/* Hide when hidden attribute is present or by default */
.skip-menu[hidden] {
    display: none !important;
}

/* Show ONLY when active/visible */
.skip-menu.visible,
.skip-menu.active {
    display: flex !important;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}