/* https://www.w3schools.com/howto/howto_css_modal_images.asp */
/* https://www.w3schools.com/howto/howto_css_image_sticky.asp */

.recent-card-content
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-card-buttons a {
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-flow: column;
    background-color: var(--backgroundcolor);
    border-radius: 10px;
    padding: 0;
    text-decoration: none;
    width: auto;
    padding: 0px 20px;
    height: 30px;
}

.recent-card-text p {
    padding: 5px;
    width: auto;
}

.recent-card-scrollable-container {
    position: relative;    
    display: flex;
    flex-direction: row;
    padding: 20px;
    flex-grow: 1;
    gap: 20px;
    overflow-y: auto;
    justify-content: center;
}

.recent-card-text {
    width: auto;
}

/* smaller than 600px */
@media (max-width: 600px) {

    .recent-card-buttons {
        display: flex;
        flex-direction: column;
        flex-flow: column;
        flex-wrap: wrap;
        margin: 5px 5px 15px 5px;
        gap: 10px;
        justify-self: center;
    }

    img.recent-card-image:not(#sfslogo_recent):not(#recent-card-endcard-always-there) {
        display: none;
        align-self: flex-start;
    }
}
/* bigger than 600px */
@media (min-width: 601px) {

    .recent-card-buttons {
        display: flex;
        flex-direction: row;
        flex-flow: row;
        flex-wrap: wrap;
        margin: 5px 5px 15px 5px;
        gap: 10px;
        justify-self: center;
    }

    .recent-card-image:not(#sfslogo_recent):not(#recent-card-endcard-always-there)  {
        width: 20%;
        height: auto;
        max-width: 100px;
        align-self: flex-start;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0;
    }

}

.recent-card-image:not(#sfslogo_recent):not(#recent-card-endcard-always-there)  {
    position: -webkit-sticky !important;
    position: sticky !important;
}

/*** HIER DRUNTER NICHTS ÄNDERN *********************************************************************/

#recent-card-endcard-always-there {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-flow: column !important;
}

#sfslogo_recent {
    display: flex !important;
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border: none !important;
    transition: transform 120s !important;
    align-items: center !important;
    align-self: center !important;  
    align-content: center !important;
    text-align: center !important;
    margin: auto !important;
}

#sfslogo_recent:hover {
    transform: rotate(129600deg) !important;    
}

.recent-card-padding {
    width: auto;
}

.recent-card::-webkit-scrollbar {
    background-color: var(--pagebackgroundcolor);
    border-radius: 10px;
    display: none;
}

.recent-card {
    display: flex;
    background-color: var(--pagebackgroundcolor);
    flex: 0 0 auto;
    border-radius: 15px;
    border: 1px solid var(--maincolor);
    width: var(--cardWidth);
    height: var(--cardHeight);
    justify-content: left;
    align-items: left;
    flex-flow: column;
    flex-direction: column;
    float: center;
    color: var(--maincolor);
    font-size: 12px !important;
    box-shadow: 2px 2px var(--accentcolor);
    padding: 10px;
    box-sizing: border-box;
    scroll-snap-align: center;
    gap: 5px;
    overflow-y: scroll;
    overflow-x: hidden;
    flex-wrap: wrap;
    scrollbar-width: none; /* Versteckt die Scrollbar in Firefox */
    -ms-overflow-style: none; /* Versteckt die Scrollbar in IE und Edge */
}