:root {
    --primary-orange: #FF8B3D;
    --secondary-orange: #FFB347;
    --sky-blue: #87CEEB;
    --light-blue: #B8E6F5;
    --sunny-yellow: #FFD93D;
    --grass-green: #90C88E;
    --soft-pink: #FFB6C1;
    --tiger-stripe: #FF6B35;
    --text-dark: #2C3E50;
    --text-light: #ffffff;
    --bg-cream: #FFF8E7;
    --bg-light: #FFF5E6;
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--light-blue) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #87CEEB 0%, #B8E6F5 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    opacity: 1;
    filter: blur(2px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
}

.cloud-1 {
    width: 120px;
    height: 50px;
    top: 35%;
    left: 20%;
    animation: cloudBob1 4s ease-in-out infinite;
}

.cloud-1::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-1::after {
    width: 70px;
    height: 50px;
    top: -20px;
    right: 15px;
}

.cloud-2 {
    width: 140px;
    height: 60px;
    top: 55%;
    left: 50%;
    animation: cloudBob2 5s ease-in-out infinite;
}

.cloud-2::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.cloud-2::after {
    width: 80px;
    height: 60px;
    top: -25px;
    right: 20px;
}

.cloud-3 {
    width: 100px;
    height: 45px;
    top: 25%;
    left: 75%;
    animation: cloudBob3 4.5s ease-in-out infinite;
}

.cloud-3::before {
    width: 55px;
    height: 55px;
    top: -25px;
    left: 12px;
}

.cloud-3::after {
    width: 60px;
    height: 45px;
    top: -18px;
    right: 12px;
}

@keyframes cloudBob1 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes cloudBob2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

@keyframes cloudBob3 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loading-plane {
    position: absolute;
    left: -100px;
    top: 50%;
    animation: planeFly 4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    z-index: 10;
}

.plane-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

@keyframes planeFly {
    0% {
        left: -100px;
        transform: translateY(-50%) rotate(-5deg);
        opacity: 1;
    }
    10% {
        transform: translateY(-60%) rotate(-8deg);
        opacity: 1;
    }
    20% {
        transform: translateY(-45%) rotate(-3deg);
        opacity: 1;
    }
    30% {
        transform: translateY(-55%) rotate(-6deg);
        opacity: 1;
    }
    40% {
        transform: translateY(-48%) rotate(-2deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-53%) rotate(-5deg);
        opacity: 1;
    }
    60% {
        left: 60%;
        transform: translateY(-47%) rotate(-1deg);
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        left: 70%;
        transform: translateY(-50%) rotate(-2deg);
        opacity: 0;
    }
}

.smoke-trail {
    position: absolute;
    left: -150px;
    top: 50%;
    border-radius: 50%;
    filter: blur(30px);
    z-index: 5;
}

.smoke-trail-1 {
    width: 100px;
    height: 100px;
    left: 10%;
    top: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(220, 235, 255, 0.6) 50%, rgba(255, 255, 255, 0) 80%);
    animation: cloudFloat1 3s ease-in-out infinite;
}

.smoke-trail-2 {
    width: 110px;
    height: 110px;
    left: 30%;
    top: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 30%, rgba(220, 235, 255, 0.55) 50%, rgba(255, 255, 255, 0) 80%);
    animation: cloudFloat2 3.5s ease-in-out infinite;
}

.smoke-trail-3 {
    width: 95px;
    height: 95px;
    left: 60%;
    top: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 30%, rgba(220, 235, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
    animation: cloudFloat3 4s ease-in-out infinite;
}

.smoke-trail-4 {
    width: 85px;
    height: 85px;
    left: 80%;
    top: 65%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 30%, rgba(220, 235, 255, 0.45) 50%, rgba(255, 255, 255, 0) 80%);
    animation: cloudFloat4 3.2s ease-in-out infinite;
}

@keyframes cloudFloat1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes cloudFloat2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(10px) translateX(-5px);
    }
}

@keyframes cloudFloat3 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-8px) translateX(3px);
    }
}

@keyframes cloudFloat4 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(8px) translateX(-3px);
    }
}

.loading-text {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.05);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 217, 61, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(255, 139, 61, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(135, 206, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--tiger-stripe) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 99;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    position: relative;
}

.announcement-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.announcement-text {
    font-size: 16px;
    line-height: 1.5;
}

.announcement-text strong {
    font-weight: 700;
    font-size: 18px;
}

.announcement-close {
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-header {
    background: var(--text-light);
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--primary-orange);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0;
    text-shadow: 2px 2px 0px rgba(255, 107, 53, 0.2);
}

.logo-text span {
    font-size: 13px;
    color: var(--text-dark);
    display: block;
    margin-top: -2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    background: var(--primary-orange);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.main-nav a:hover {
    background: var(--tiger-stripe);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.main-nav a.active {
    background: var(--sunny-yellow);
    color: var(--text-dark);
}

/* Main Content */
.main-content {
    background: var(--text-light);
    margin: 30px auto;
    max-width: 1200px;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section h2 {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.hero-section p {
    font-size: 20px;
    color: var(--text-light);
}

.hero-with-character {
    position: relative;
    overflow: visible;
}

.hero-character-decoration {
    position: absolute;
    right: 60px;
    bottom: -40px;
    z-index: 10;
}

.hero-character-decoration img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* Character Cards */
.character-card {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid var(--secondary-orange);
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 139, 61, 0.3);
    border-color: var(--primary-orange);
}

.character-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-orange);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.character-name {
    font-size: 24px;
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-weight: 700;
}

.character-role {
    font-size: 16px;
    color: var(--tiger-stripe);
    margin-bottom: 15px;
    font-weight: 600;
}

.character-description {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 139, 61, 0.2);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Character with description */
.character-section {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-cream);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 5px solid var(--primary-orange);
}

.character-section img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
    flex-shrink: 0;
}

.character-content h3 {
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-size: 22px;
}

.character-content p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Menu styling */
.menu-week {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.menu-day {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-orange);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.menu-day h3 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.meal {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    align-items: flex-start;
}

.meal:last-child {
    border-bottom: none;
}

.meal-type {
    font-weight: bold;
    color: var(--text-dark);
    min-width: 160px;
    flex-shrink: 0;
}

.meal-description {
    color: #666;
    flex: 1;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-orange), var(--tiger-stripe));
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--sunny-yellow);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--sunny-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.schedule-table th {
    background: var(--primary-orange);
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.schedule-table tr:nth-child(even) {
    background: var(--bg-cream);
}

.activity-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    margin: 2px;
}

.tag-play { background: var(--grass-green); color: white; }
.tag-learn { background: var(--sky-blue); color: white; }
.tag-eat { background: var(--sunny-yellow); color: var(--text-dark); }
.tag-rest { background: var(--soft-pink); color: white; }

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 3px solid var(--secondary-orange);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-member {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 3px solid var(--secondary-orange);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
    border-color: var(--primary-orange);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 4px solid var(--primary-orange);
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-orange);
    font-weight: 700;
}

.team-role {
    font-size: 16px;
    color: var(--tiger-stripe);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Character mascot pairing */
.team-with-mascot {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mascot-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sunny-yellow);
}

/* Matej Section (Jidelnicek) */
.matej-section {
    position: relative;
    margin: 30px 0;
}

.matej-character {
    position: absolute;
    right: 20px;
    top: -60px;
    z-index: 5;
}

.matej-character img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.matej-content {
    background: var(--bg-cream);
    padding: 30px;
    padding-right: 240px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-orange);
}

/* Prostory Section */
.prostory-item {
    background: var(--bg-cream);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 3px solid var(--secondary-orange);
}

.prostory-header {
    position: relative;
    margin-bottom: 30px;
}

.prostory-character {
    position: absolute;
    right: 20px;
    top: -20px;
    z-index: 5;
}

.prostory-character img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.prostory-text h3 {
    color: var(--primary-orange);
    margin-bottom: 5px;
    font-size: 28px;
}

.prostory-guide {
    font-weight: 600;
    color: var(--tiger-stripe);
    margin-bottom: 10px;
}

.prostory-desc {
    color: var(--text-dark);
    line-height: 1.6;
    padding-right: 220px;
}

/* Levitating Animation */
.levitating {
    animation: levitate 3s ease-in-out infinite;
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Family Photo Section */
.family-photo-section {
    background: var(--bg-cream);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    border: 3px solid var(--secondary-orange);
}

.family-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.family-character {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: transparent;
}

.family-character:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(255, 139, 61, 0.1);
}

.family-character.active {
    background: rgba(255, 139, 61, 0.2);
    box-shadow: 0 0 0 4px var(--primary-orange);
}

.family-character img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Character Modal */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.character-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.character-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.character-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.character-modal-close:hover {
    background: var(--tiger-stripe);
    transform: rotate(90deg);
}

.character-modal-body {
    padding: 40px 30px;
    text-align: center;
}

.modal-character-image {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.modal-character-name {
    font-size: 32px;
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-character-role {
    font-size: 20px;
    color: var(--tiger-stripe);
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-character-desc {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .announcement-banner {
        padding: 12px 0;
    }

    .announcement-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 50px;
    }

    .announcement-text {
        font-size: 14px;
    }

    .announcement-text strong {
        font-size: 16px;
        display: block;
        margin-bottom: 5px;
    }

    .announcement-icon {
        font-size: 20px;
    }

    .announcement-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section h2 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .character-section {
        flex-direction: column;
        text-align: center;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    /* Family photo - 2 columns on mobile */
    .family-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .family-photo-section {
        padding: 20px;
    }

    /* Modal adjustments for mobile */
    .character-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .character-modal-body {
        padding: 30px 20px;
    }

    .modal-character-image {
        width: 150px;
    }

    .modal-character-name {
        font-size: 24px;
    }

    .modal-character-role {
        font-size: 16px;
    }

    .modal-character-desc {
        font-size: 14px;
    }

    /* Main content padding */
    .main-content {
        padding: 20px;
        margin: 20px auto;
    }

    /* Hide absolutely positioned characters on mobile to prevent overflow */
    .hero-section > div[style*="position: absolute"] {
        display: none !important;
    }

    .hero-character-decoration {
        display: none !important;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Contact info */
    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Schedule table responsive */
    .schedule-table {
        font-size: 14px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 10px 5px;
    }

    /* Menu day */
    .menu-day {
        padding: 15px;
    }

    .meal {
        flex-direction: column;
        gap: 5px;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .family-photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }

    .hero-section h2 {
        font-size: 24px;
    }

    .main-nav a {
        font-size: 13px;
        padding: 10px 15px;
    }

    .character-info-welcome p {
        font-size: 16px !important;
    }

    /* Make 4-column grids single column on very small screens */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust padding on prostory character descriptions */
    div[style*="padding-right: 200px"] {
        padding-right: 0 !important;
    }

    /* Hide large decorative characters positioned absolutely */
    div[style*="position: absolute"][style*="right:"] img[src*=".png"] {
        max-width: 100px !important;
    }

    /* Loading screen mobile adjustments */
    .plane-logo {
        width: 120px;
    }

    .loading-text {
        font-size: 16px;
        bottom: 25%;
    }

    .smoke-trail-1 {
        width: 80px;
        height: 80px;
    }

    .smoke-trail-2 {
        width: 70px;
        height: 70px;
    }

    .smoke-trail-3 {
        width: 60px;
        height: 60px;
    }

    .smoke-trail-4 {
        width: 50px;
        height: 50px;
    }

    .loading-plane {
        left: -120px;
    }

    @keyframes planeFly {
        0% {
            left: -120px;
            transform: translateY(-50%) rotate(-5deg);
        }
        100% {
            left: calc(100% + 120px);
            transform: translateY(-50%) rotate(-2deg);
        }
    }
}

/* Additional responsive fixes for inline styles */
@media (max-width: 768px) {
    /* Matej section - stack on mobile */
    .matej-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px 0;
    }

    .matej-character {
        position: static;
        margin-bottom: 15px;
    }

    .matej-character img {
        width: 150px;
    }

    .matej-content {
        padding: 20px !important;
        padding-right: 20px !important;
    }

    /* Prostory sections - text first, then character on mobile */
    .prostory-item {
        padding: 20px;
    }

    .prostory-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .prostory-character {
        position: static;
        margin-top: 20px;
        margin-bottom: 0;
        text-align: center;
        order: 2;
    }

    .prostory-character img {
        width: 150px;
    }

    .prostory-text {
        width: 100%;
        text-align: left;
        order: 1;
    }

    .prostory-text h3 {
        font-size: 22px;
    }

    .prostory-desc {
        padding-right: 0 !important;
    }
}

/* Visualization Badge for Photos */
.photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    cursor: help;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.photo-badge .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 40px;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.photo-badge .tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0,0,0,0.9);
}

.photo-badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
}