/* Sticky container */
.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 0;
    margin: 0;
    contain: layout style paint;
    overflow: hidden;
}

.sticky-wrapper h1 {
    margin: 0;
    padding: 0.25rem 0;
    line-height: 1.2;
}

/* Timed images */
.timed-images img{
    width: 100%;
    border-radius: 8px;
}

/* Container voor alle content */
.audio-stop {
    max-width: 400px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Audio player */
#audio-player {
    width: 100%;
    max-width: 400px;
    height: 40px;
    margin: 0.25rem auto;
    display: block;
}

/* Navigatie */
.stop-navigation {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: left;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0.25rem 0;
}

.nav-slot {
    display: flex;
    align-items: center;
}

.nav-slot:first-child {
    justify-content: flex-start;
}

.nav-slot:nth-child(2),
.nav-slot:nth-child(3) {
    justify-content: center;
}

.nav-slot:last-child {
    justify-content: flex-end;
}

/* Knoppen */
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

.nav-button img {
    width: 32px;
    height: 32px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-button img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Description toggle */
.description {
    font-family: "Open Sans", sans-serif;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: z-index 0.1s, background 0.2s;
}

.description.expanded {
    position: relative;
    z-index: 101;
    background: white;
    padding: 1rem;
    margin: -0.5rem -0.5rem 0 -0.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Help & AVO widgets */
.help-widget,
.avo-widget {
    position: fixed;
    right: 10px;
    z-index: 9999;
}

.help-widget {
    top: 100px;
}

.avo-widget {
    top: 200px;
}

.help-button,
.avo-button {
    background: rgba(0,0,155,0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.help-button {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.avo-button {
    border-radius: 20%;
    width: 50px;
    height: 36px;
}

.close-help,
.close-avo {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 18px;
    width: 100px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.help-popup,
.avo-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    max-width: 300px;
}

.help-content,
.avo-content {
    font-family: "Open Sans", sans-serif;
}


.hidden {
    display: none;
}

/* Mobile */
@media (max-width: 600px) {
    .audio-stop {
        padding: 0.5rem;
    }

    #audio-player {
        width: 100%;
        max-width: 800px;
        margin: 1rem auto;
        display: block;
    }

    .stop-navigation {
        grid-template-columns: 1fr auto auto 1fr;
        column-gap: 1rem;
    }

    .nav-button {
        width: 48px;
        height: 48px;
    }
}
