
/*
Theme Name: ALLE FUER ALLE v1
Author: Gelatin
Description: Ideas to present the tiles on a website
Version: 1.0
*/

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow: hidden; /* Disable scrolling */
   

}
footer {
    position: fixed; /* Ensures the footer stays at the bottom of the page */
    bottom: 0; /* Aligns the footer to the bottom */
    width: 100%; /* Stretches the footer across the page width */
    z-index: 1100; /* Ensures the footer is in front of other elements */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center; /* Centers the footer text */
    padding: 5px 0; /* Adds vertical padding */
	background-color: white; 
  /*    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); 
    */
}


html, body {
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 15px); /* Leave space for the footer */
    justify-content: space-evenly;
    visibility: visible; /* Images are immediately visible */
}

.scroll-row {
    display: flex;
    animation-timing-function: linear;
    width: max-content; /* Ensure rows expand based on content */
}


.scroll-row.row-1 img {
    max-width: 200px; /* Limit image width to 200px */
    max-height: 272px; /* Limit image height to 272px */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image fits within the max size */
}

.scroll-row.row-1 {
    animation: scroll 50s linear infinite;
}

.scroll-row.row-2 {
    animation: scroll 35s linear infinite;
}

.scroll-row.row-3 {
    animation: scroll 50s linear infinite;
}

.scroll-row img {
    object-fit: contain; /* Maintain aspect ratio */
    height: auto; /* Dynamically set by JavaScript */
    width: auto; /* Dynamically set by JavaScript */
    mix-blend-mode: multiply; /* Makes white areas blend with the background */

}

@media (min-width: 1024px) {
    .scroll-row.row-1 img {
        max-width: 200px;
        max-height: 272px;
        width: auto;
        height: auto;
    }
}
 

.clickable-row {
    position: relative;
    display: block; /* Make the link fill the space of the row */
    text-decoration: none; /* Remove underline from the link */
}

.scroll-row {
    z-index: 1; /* Ensure rows remain interactive */
}

.click-message {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    background-color: rgb(130 130 130 / 50%); /* Semi-transparent background */
    padding: 5px 7px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* Ensure message appears on top */
    pointer-events: none; /* Prevent message from blocking clicks */
}

.clickable-row:hover .click-message,
.clickable-row:focus .click-message {
    opacity: 1; /* Show the message on hover or focus */
}

@media (hover: none) {
    .click-message {
        opacity: 1; /* Always show message on touch devices */
    }
}


/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Scroll over half the width */
    }
}


.random-phase {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Keep above scrolling content */
    transition: opacity 1s ease-in-out; /* Smooth fade-out */
}

.random-phase img {
    animation: grow-and-fade 8s ease-in-out forwards; /* Grow and fade out */
    width: 80vw; /* Start by filling the viewport width */
    height: auto; /* Maintain aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* Center the image */
}

@keyframes grow-and-fade {
    0% {
        transform: translate(-50%, -50%) scale(1); /* Normal size */
        opacity: 1; /* Fully visible */
    }
    100% {
        transform: translate(-50%, -50%) scale(3); /* Grow very large */
        opacity: 0; /* Fade out completely */
    }
}

.scrolling-phase {
    display: block; /* Always present but hidden behind the animation */
    opacity: 0; /* Start fully transparent */
    position: relative; /* Keep scrolling content positioned normally */
    z-index: 0; /* Place behind the animation */
    transition: opacity 1s ease-in-out; /* Smooth fade-in */
}

