/* Resetování stylů pro tělo stránky */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

/* Wrapper pro otočení pozadí */
.background-wrapper {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(-25deg);
    transform-origin: center;
    z-index: -2;
    overflow: hidden;
}

/* Kontejner pro pozadí */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    overflow: hidden;
}

/* Styl pro jednotlivé pruhy */
.stripe {
    position: absolute;
    height: 10%;
    width: 300%;
    display: flex;
    will-change: transform;
}

.stripe1 { top: 0%; animation: move1 125s linear infinite; }
.stripe2 { top: 10%; animation: move2 250s linear infinite; }
.stripe3 { top: 20%; animation: move3 175s linear infinite; }
.stripe4 { top: 30%; animation: move4 300s linear infinite; }
.stripe5 { top: 40%; animation: move5 225s linear infinite; }
.stripe6 { top: 50%; animation: move6 150s linear infinite; }
.stripe7 { top: 60%; animation: move7 375s linear infinite; }
.stripe8 { top: 70%; animation: move8 275s linear infinite; }
.stripe9 { top: 80%; animation: move9 325s linear infinite; }
.stripe10 { top: 90%; animation: move10 350s linear infinite; }

/* Definice animací (pohyb zleva doprava) */
@keyframes move1 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move2 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

/* Opakujte pro všechny animace (move3 až move10) */
@keyframes move3 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move4 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move5 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move6 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move7 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move8 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move9 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes move10 {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

/* Styl pro obrázky uvnitř pruhů */
.image {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    /* transform: scale(2); */ /* Odstraněno zvětšení obrázků */
    object-fit: cover; /* Přidáno pro zachování poměru stran */
}

/* Tmavý filtr přes pozadí */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Styl pro obsah stránky */
.content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Styl pro tlačítko */
.btn {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 12px 24px;
    margin-top: 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

/* Styl pro vstupní pole souboru */
.file-input {
    margin-top: 20px;
}

/* Obrázek náhledu */
.preview-image {
    max-width: 100%;
    margin-top: 20px;
}

/* Kontejner pro oříznutí */
#crop-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#crop-container img {
    max-width: 100%;
    max-height: 80vh;
}

/* Centrování formuláře */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Styl pro výběr poměru stran */
.aspect-ratio-selection {
    margin-top: 10px;
}

.aspect-ratio-selection label {
    margin-right: 10px;
    color: black;
}

/* Skrytí vstupního pole souboru */
#image-input {
    display: none;
}

/* Styl pro výsledek */
.result-container {
    text-align: center;
    margin-top: 20px;
}

/* Styl pro tlačítko zpět */
.back-btn {
    margin-top: 20px;
}

/* Styl pro galerii */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Overlay pro galerii */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    flex-direction: column;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 80%;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.overlay.visible img {
    opacity: 1;
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

.controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.controls button, .controls select {
    background-color: white;
    color: black;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

/* Styly pro patičku */
.footer {
    width: 100%;
    border-top: 1px solid #000;
    background-color: #fff;
    padding: 20px 0;
    color: #000;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer .logo {
    flex: 1 1 auto;
    padding-left: 20px;
}

.footer .logo img {
    width: 150px;
    height: auto;
}

.footer .menu {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-right: 20px;
}

.footer .menu .column {
    flex: 1 1 200px;
    padding: 10px;
    box-sizing: border-box;
}

.footer .menu .column h3 {
    margin-top: 0;
}

.footer .menu .column ul {
    list-style: none;
    padding: 0;
}

.footer .menu .column ul li {
    margin-bottom: 5px;
}

.footer .menu .column ul li a {
    text-decoration: none;
    color: #000;
}

/* Responzivita pro mobilní zařízení */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .arrow {
        padding: 5px;
        font-size: 16px;
    }

    .controls button, .controls select {
        padding: 5px;
        font-size: 14px;
    }

    .footer .menu {
        justify-content: center;
    }

    .footer .menu .column {
        flex: 1 1 50%;
        max-width: 50%;
        padding: 10px;
    }
}
