* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.main-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hlavička */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        3px 3px 8px rgba(0,0,0,0.6), 
        0 0 20px rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
    display: flex; /* PŘIDÁNO */
    align-items: center; /* PŘIDÁNO */
    gap: 15px; /* PŘIDÁNO */
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 60px; /* PŘIDÁNO */
    height: 60px; /* PŘIDÁNO */
    border-radius: 10px; /* PŘIDÁNO */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* PŘIDÁNO */
}

.logo-text-container {
    display: flex; /* PŘIDÁNO */
    flex-direction: column; /* PŘIDÁNO */
}

@media (max-width: 768px) {
    .logo-link {
        font-size: 20px; /* Zmenšeno */
        gap: 10px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-link {
        font-size: 16px;
        gap: 8px;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
}

/* SVG produkty */
.product-svg {
    position: absolute;
    transition: transform 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
}

.product-svg:hover {
    transform: rotate(5deg) scale(1.1);
}

.candles-svg {
    width: 200px;
    height: 100px;
    top: 12%;
    left: 5%;
    transform: rotate(-8deg);
    animation: float 4s ease-in-out infinite;
}

.soaps-svg {
    width: 150px;
    height: 150px;
    top: 65%;
    left: 12%;
    transform: rotate(12deg);
    animation: float 5s ease-in-out infinite reverse;
}

.salts-svg {
    width: 180px;
    height: 150px;
    top: 18%;
    right: 8%;
    transform: rotate(6deg);
    animation: float 3.5s ease-in-out infinite;
}

.perfumes-svg {
    width: 120px;
    height: 160px;
    bottom: 25%;
    right: 12%;
    transform: rotate(-15deg);
    animation: float 4.5s ease-in-out infinite reverse;
}

/* Další náhodně rozmístěné prvky */
.extra-element1 {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 3%;
    background: radial-gradient(circle, #ff99cc, #ffccff);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.extra-element2 {
    width: 60px;
    height: 60px;
    top: 8%;
    left: 45%;
    background: radial-gradient(circle, #99ffcc, #ccffff);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
    opacity: 0.6;
}

.extra-element3 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    left: 40%;
    background: radial-gradient(circle, #ffcc99, #fff2cc);
    border-radius: 50%;
    animation: float 5.5s ease-in-out infinite;
    opacity: 0.8;
}

.extra-element4 {
    width: 50px;
    height: 50px;
    top: 35%;
    right: 40%;
    background: radial-gradient(circle, #cc99ff, #e6ccff);
    border-radius: 50%;
    animation: float 4.8s ease-in-out infinite reverse;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    33% { transform: translateY(-12px) rotate(calc(var(--rotation, 0deg) + 3deg)); }
    66% { transform: translateY(-8px) rotate(calc(var(--rotation, 0deg) - 2deg)); }
}

/* Plovoucí bubliny - více náhodné */
.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    animation: bubble 8s linear infinite;
}

.bubble1 { width: 35px; height: 35px; left: 7%; animation-delay: 0s; }
.bubble2 { width: 22px; height: 22px; left: 28%; animation-delay: 2.3s; }
.bubble3 { width: 45px; height: 45px; left: 52%; animation-delay: 4.7s; }
.bubble4 { width: 28px; height: 28px; left: 73%; animation-delay: 6.1s; }
.bubble5 { width: 38px; height: 38px; left: 87%; animation-delay: 1.5s; }
.bubble6 { width: 32px; height: 32px; left: 15%; animation-delay: 3.8s; }
.bubble7 { width: 26px; height: 26px; left: 42%; animation-delay: 7.2s; }
.bubble8 { width: 40px; height: 40px; left: 65%; animation-delay: 5.4s; }
.bubble9 { width: 30px; height: 30px; left: 92%; animation-delay: 8.6s; }

@keyframes bubble {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Hlavní obsah */
.content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    padding: 20px; /* PŘIDÁNO */
}

.main-title {
    color: white;
    font-size: 56px;
    font-weight: 900;
    text-shadow: 4px 4px 10px rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.4);
    margin-bottom: 25px;
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.subtitle {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.3);
    margin-bottom: 40px;
    opacity: 0.98;
    letter-spacing: 1px;
}

@keyframes titleGlow {
    0% { text-shadow: 4px 4px 10px rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.4); }
    100% { text-shadow: 4px 4px 15px rgba(0,0,0,0.8), 0 0 40px rgba(255,255,255,0.6); }
}

/* Barevná tlačítka */
/* Barevná tlačítka - OPRAVENO */
.buttons-container {
    display: flex;
    gap: 40px; /* Zvětšeno z 30px */
    justify-content: center;
    flex-wrap: wrap;
    z-index: 200; /* Přidáno */
    position: relative; /* Přidáno */
}



/* Responzivní design */
@media (max-width: 1200px) {
    .product-svg {
        transform: scale(0.8);
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 10px;
        left: 10px;
    }
    
    .logo-link {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .product-svg {
        transform: scale(0.6);
        position: fixed;
    }
    
    .candles-svg {
        top: 8%;
        left: 3%;
        transform: rotate(-5deg) scale(0.6);
    }
    
    .soaps-svg {
        bottom: 22%;
        left: 2%;
        transform: rotate(8deg) scale(0.6);
    }
    
    .salts-svg {
        top: 15%;
        right: 3%;
        transform: rotate(4deg) scale(0.6);
    }
    
    .perfumes-svg {
        bottom: 18%;
        right: 3%;
        transform: rotate(-12deg) scale(0.6);
    }
    
    .extra-element1, .extra-element2, .extra-element3, .extra-element4 {
        transform: scale(0.5);
    }
    
    .main-title {
        font-size: 32px;
        margin-bottom: 18px;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
}

@media (max-width: 480px) {
    .product-svg {
        transform: scale(0.4);
    }
    
    .main-title {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
}

/* Content overlay pro lepší čitelnost */
.content-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 70%, transparent 100%);
    border-radius: 50%;
    z-index: 50;
}

/* Optimalizace pro rychlost */
.product-svg svg {
    will-change: transform;
}

.floating-bubble {
    will-change: transform;
}

/* Preload kritických animací */
.main-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: inherit;
    z-index: -1;
}

/* Vylepšení pro touch zařízení */
@media (hover: none) and (pointer: coarse) {
    .product-svg:hover {
        transform: none !important;
    }
    
    .fun-button:hover {
        transform: none !important;
    }
    
    .fun-button:active {
        transform: scale(0.95) !important;
    }
}

/* HRAVÉ VYLEPŠENÍ PRO DĚTI */

/* SVG létají po celé stránce */
.candles-svg, .soaps-svg, .salts-svg, .perfumes-svg {
    animation: flyAround 20s ease-in-out infinite;
}

.candles-svg {
    animation-delay: 0s;
    animation-duration: 18s;
}

.soaps-svg {
    animation-delay: 5s;
    animation-duration: 22s;
}

.salts-svg {
    animation-delay: 10s;
    animation-duration: 25s;
}

.perfumes-svg {
    animation-delay: 15s;
    animation-duration: 20s;
}

@keyframes flyAround {
    0% { 
        transform: translate(0, 0) rotate(-8deg) scale(1);
    }
    25% { 
        transform: translate(200px, -100px) rotate(5deg) scale(1.1);
    }
    50% { 
        transform: translate(-150px, 150px) rotate(-12deg) scale(0.9);
    }
    75% { 
        transform: translate(100px, -50px) rotate(8deg) scale(1.05);
    }
    100% { 
        transform: translate(0, 0) rotate(-8deg) scale(1);
    }
}

/* Bubliny létají víc chaoticky */
@keyframes bubbleFly {
    0% { 
        transform: translate(0, 100vh) scale(0) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.8; 
    }
    25% {
        transform: translate(50px, 75vh) scale(1) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 50vh) scale(1.2) rotate(180deg);
    }
    75% {
        transform: translate(80px, 25vh) scale(0.8) rotate(270deg);
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(0, -100px) scale(0) rotate(360deg); 
        opacity: 0; 
    }
}

.floating-bubble {
    animation: bubbleFly 12s linear infinite;
}

/* Více bublin - přidat do HTML pomocí JS */
.floating-bubble.extra {
    background: radial-gradient(circle, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
}

/* Výtvarnické prvky */
.art-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: artFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.art-element:nth-child(odd) {
    animation-direction: reverse;
}

@keyframes artFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translate(100px, -80px) rotate(90deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translate(-80px, 120px) rotate(180deg); 
        opacity: 0.4;
    }
    75% { 
        transform: translate(120px, -60px) rotate(270deg); 
        opacity: 0.9;
    }
}

.main-title {
    color: white; /* OPRAVENO - vráceno na bílou */
    font-size: 56px;
    font-weight: 900;
    text-shadow: 
        -1px -1px 0 #000,  /* PŘIDÁNO - černý obrys */
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        4px 4px 10px rgba(0,0,0,0.7), 
        0 0 30px rgba(255,255,255,0.4);
    margin-bottom: 25px;
    animation: gentleGlow 6s ease-in-out infinite alternate; /* MÍRNĚJŠÍ */
    letter-spacing: 2px;
}

/* NOVÁ MÍRNĚJŠÍ ANIMACE */
@keyframes gentleGlow {
    0% { 
        text-shadow: 
            -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
            4px 4px 10px rgba(0,0,0,0.7), 0 0 30px rgba(255,255,255,0.4);
        transform: scale(1);
    }
    100% { 
        text-shadow: 
            -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
            4px 4px 15px rgba(0,0,0,0.8), 0 0 40px rgba(255,255,255,0.6);
        transform: scale(1.02);
    }
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtitle s emoji animacemi */
.subtitle {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 
        -1px -1px 0 #000,  /* PŘIDÁNO - černý obrys */
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        3px 3px 8px rgba(0,0,0,0.6), 
        0 0 20px rgba(255,255,255,0.3);
    margin-bottom: 40px;
    opacity: 0.98;
    letter-spacing: 1px;
    position: relative; /* Zachováno pro emoji */
}

.subtitle::before {
    content: '✨';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    animation: sparkle 2s ease-in-out infinite;
}

.subtitle::after {
    content: '🎨';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    animation: sparkle 2s ease-in-out infinite reverse;
}

@keyframes sparkle {
    0%, 100% { 
        transform: translateY(-50%) scale(1) rotate(0deg); 
    }
    50% { 
        transform: translateY(-50%) scale(1.3) rotate(180deg); 
    }
}


/* Responsivní úpravy pro létání */
@media (max-width: 768px) {
    @keyframes flyAround {
        0% { 
            transform: translate(0, 0) rotate(-8deg) scale(0.6);
        }
        25% { 
            transform: translate(80px, -50px) rotate(5deg) scale(0.7);
        }
        50% { 
            transform: translate(-60px, 80px) rotate(-12deg) scale(0.5);
        }
        75% { 
            transform: translate(50px, -30px) rotate(8deg) scale(0.65);
        }
        100% { 
            transform: translate(0, 0) rotate(-8deg) scale(0.6);
        }
    }
    
    .art-element {
        font-size: 1.5rem;
    }
}

/* TLAČÍTKA - PŘIDAT NA KONEC CSS */

.fun-button {
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 201;
    margin: 15px;
    min-width: 220px;
    text-align: center;
    /* FIXNÍ rozměry pro stabilitu */
    width: 220px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fun-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.fun-button:hover::before {
    left: 100%;
}

.fun-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.fun-button:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.btn-schools {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #333;
}

.btn-kindergartens {
    background: linear-gradient(45deg, #4ecdc4, #fff386);
    color: #333;
}

.btn-groups {
    background: linear-gradient(45deg, #a8e6cf, #7fcdcd);
    color: #333;
}

.btn-two {
    background: linear-gradient(45deg, #b9a2f0, #b9ff7f);
    color: #333;
}



/* STABILIZACE KONTEJNERU */
.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 200;
    position: relative;
    padding: 20px;
}

/* Zajištění, že se tlačítka nepřekrývají */
.fun-button {
    flex-shrink: 0;
}

/* RESPONZIVNÍ ÚPRAVY TLAČÍTEK */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 15px;
    }
    
    .fun-button {
        width: 250px;
        height: 60px;
        margin: 8px;
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fun-button {
        width: 200px;
        height: 55px;
        padding: 12px 25px;
        font-size: 14px;
        margin: 5px;
    }
}

/* OPRAVA TOUCH ZAŘÍZENÍ */
@media (hover: none) and (pointer: coarse) {
    .fun-button:hover {
        transform: none !important;
        filter: none !important;
    }
    
    .fun-button:active {
        transform: scale(0.95) !important;
        filter: brightness(1.1) !important;
    }
}

/* FOOTER */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 300;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.footer-copyright {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: normal;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Responzivní footer */
@media (max-width: 768px) {
    .footer {
        padding: 12px 15px;
    }
    
    .footer-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 10px 12px;
    }
    
    .footer-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .footer-copyright {
        font-size: 9px;
    }
}