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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    background-image: linear-gradient(45deg, #ffeb3b1a 25%, transparent 25%),
                      linear-gradient(-45deg, #ffeb3b1a 25%, transparent 25%);
    background-size: 60px 60px;
}

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

header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #2C1810;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '🍌';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    right: -20px;
    top: -20px;
    transform: rotate(45deg);
}

h1 {
    font-family: 'Bangers', cursive;
    font-size: 4em;
    text-shadow: 3px 3px 0 #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.8em;
    color: #2C1810;
    font-weight: bold;
}

.banana-facts {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.fact-item {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.fact-item:hover {
    transform: rotate(0) scale(1.05);
}

.emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.description {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.about h3, .call-to-action h3 {
    font-family: 'Bangers', cursive;
    font-size: 2em;
    color: #2C1810;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: bold;
}

.like {
    background: #FFD700;
    color: #2C1810;
}

.share {
    background: #FF8C00;
    color: #fff;
}

.action-btn:hover {
    transform: scale(1.05);
}

.hashtags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.hashtags span {
    background: #2C1810;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9em;
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 3em;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .banana-facts {
        flex-direction: column;
    }
}

.main-nav {
    font-family: 'Bangers', cursive;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #2C1810;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.nav-links.desktop-layout {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
    top: auto;
    right: auto;
    background: none;
    padding: 0;
    height: auto;
    width: auto;
    transform: none;
    box-shadow: none;
}

.nav-links.mobile-layout {
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 60px;
    right: 0;
    background: #fff;
    padding: 20px;
    height: calc(100vh - 60px);
    width: 250px;
    gap: 15px;
    display: none;
}

.nav-links.mobile-layout.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .nav-links {
        flex-direction: row;
    }
}

.nav-links a {
    color: #2C1810;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #FFD700;
}

.fun-counter {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.counter-item {
    text-align: center;
    background: #FFD700;
    padding: 30px;
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.counter-number {
    font-size: 3em;
    font-weight: bold;
    color: #2C1810;
    display: block;
    font-family: 'Bangers', cursive;
}

.counter-label {
    font-size: 1.2em;
    color: #2C1810;
}

.monkey-gallery {
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 215, 0, 0.9);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.merch-section {
    margin: 40px 0;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.merch-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.merch-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.4em;
    color: #2C1810;
    font-weight: bold;
    margin: 10px 0;
}

.merch-btn {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.merch-btn:hover {
    transform: scale(1.05);
}

.newsletter {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
}

.newsletter-form button {
    background: #2C1810;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.footer-section h3 {
    color: #2C1810;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #2C1810;
    font-size: 1.5em;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 2px solid #FFD700;
    padding-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active .user-menu {
        display: block;
        width: 100%;
        padding: 10px 20px;
    }

    .nav-links.active .user-menu .menu-items {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links.active .user-menu .menu-items a {
        width: 100%;
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

.banana-meter {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.meter-container {
    background: #f0f0f0;
    height: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.meter-fill {
    background: linear-gradient(90deg, #FFD700, #FF8C00);
    width: 98%;
    height: 100%;
    border-radius: 15px;
    animation: fillMeter 2s ease-out;
}

.meter-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #2C1810;
}

.monkey-quotes {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quote-slider {
    position: relative;
    height: 150px;
}

.quote-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.quote-slide.active {
    opacity: 1;
}

.quote-slide p {
    font-size: 1.5em;
    font-family: 'Bangers', cursive;
    color: #2C1810;
    margin-bottom: 10px;
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.dot.active {
    background: #FF8C00;
    transform: scale(1.2);
}

.interactive-jungle {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
                url('assets/images/jungla.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    min-height: 500px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
}

.interactive-jungle h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.score-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: bold;
    color: #2C1810;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-display div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bananas-left {
    color: #FF8C00;
    font-size: 1.2em;
}

.banana-hidden {
    position: absolute;
    font-size: 2.5em;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    text-shadow: none;
    mix-blend-mode: overlay;
}

.banana-hidden:hover {
    opacity: 1;
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.5));
    mix-blend-mode: normal;
}

.banana-found {
    opacity: 1;
    cursor: default;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.5));
    mix-blend-mode: normal;
    pointer-events: none;
    animation: foundBanana 0.5s ease;
}

@keyframes foundBanana {
    0% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.5) rotate(30deg); }
    100% { transform: scale(1.2) rotate(15deg); }
}

.sound-board {
    margin: 40px 0;
    text-align: center;
}

.sound-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sound-btn {
    background: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sound-btn:hover {
    transform: translateY(-5px);
}

.sound-btn .emoji {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.monkey-dance {
    text-align: center;
    margin: 40px 0;
}

.dancing-monkey {
    font-size: 5em;
    margin: 20px 0;
    display: inline-block;
}

.dance-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dance-btn {
    background: #FFD700;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.dance-btn:hover {
    transform: scale(1.1);
}

@keyframes fillMeter {
    from { width: 0; }
    to { width: 98%; }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes jump {
    50% { transform: translateY(-20px); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
}

@media (max-width: 768px) {
    .sound-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sound-btn {
        width: 80%;
    }

    .dance-controls {
        flex-direction: column;
        align-items: center;
    }
}

.video-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px 0;
    text-align: center;
}

.video-info h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.2em;
    color: #2C1810;
    margin-bottom: 15px;
}

.video-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1em;
    color: #2C1810;
}

.video-stats span {
    background: #FFD700;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .video-wrapper {
        padding: 15px;
    }

    .video-info h2 {
        font-size: 1.8em;
    }

    .video-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.jungle-game {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.points-sparkle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 0.6em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: sparkleUp 1s ease-out forwards;
    pointer-events: none;
}

@keyframes sparkleUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
}

.victory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.victory-modal.show {
    display: flex;
    animation: modalFadeIn 0.5s forwards;
}

.victory-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    animation: contentSlideUp 0.5s 0.3s forwards;
}

.victory-content h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    color: #2C1810;
    margin-bottom: 20px;
}

.victory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2C1810;
}

.final-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #FF8C00;
}

.play-again-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2C1810;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-again-btn:hover {
    transform: scale(1.05);
}

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

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

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.banana-confetti {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    animation: bananaDrop 3s linear forwards;
}

@keyframes bananaDrop {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Dodaj różne animacje dla parzystych i nieparzystych elementów */
.banana-confetti:nth-child(even) {
    animation-name: bananaDropRight;
}

.banana-confetti:nth-child(odd) {
    animation-name: bananaDropLeft;
}

@keyframes bananaDropRight {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

@keyframes bananaDropLeft {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(-720deg) translateX(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Styles for games page */
.games-header {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 60px 0;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
}

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

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: #FFD700;
    color: #2C1810;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.game-card:hover .play-btn {
    transform: translateY(0);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-family: 'Bangers', cursive;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2C1810;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #666;
}

.coming-soon .game-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.7);
}

.coming-soon-badge {
    background: #FF8C00;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.games-features {
    text-align: center;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.3);
    }

    .play-btn {
        transform: translateY(0);
    }
}

/* Styles for Stories Page */
.stories-header {
    text-align: center;
    padding: 2rem 0;
    background-color: #f8f4e6;
    border-radius: 15px;
    margin: 2rem 0;
}

.stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-preview {
    position: relative;
    height: 200px;
}

.story-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover .story-overlay {
    opacity: 1;
}

.read-btn {
    background: #ffd700;
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.read-btn:hover {
    transform: scale(1.1);
}

.story-info {
    padding: 1.5rem;
}

.story-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: #666;
}

.story-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.story-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Additional Story Styles */
.story-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    color: #666;
}

.story-image {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.nav-btn {
    background: #FFD700;
    color: #2C1810;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .story-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .story-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Story Content Styles */
.story-intro, .story-action, .story-dialog, .story-moral, .story-reveal, .story-climax, .story-ending {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-intro {
    font-size: 1.3em;
    color: #2C1810;
}

.story-dialog {
    padding-left: 20px;
    border-left: 4px solid #FFD700;
}

.story-moral {
    background: #f8f4e6;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-style: italic;
}

.story-reveal {
    color: #2C1810;
    font-weight: 500;
}

.character {
    color: #FF8C00;
    font-weight: bold;
    font-family: 'Bangers', cursive;
    font-size: 1.2em;
}

.magical {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.highlight {
    background: #FFD700;
    padding: 0 5px;
    border-radius: 4px;
}

.location {
    color: #2C1810;
    font-weight: bold;
    text-decoration: underline wavy #FFD700;
}

.instrument {
    color: #FF8C00;
    font-weight: bold;
}

.musical {
    background: linear-gradient(120deg, #FF8C00 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Animacje dla elementów opowiadania */
.story-dialog {
    transition: transform 0.3s ease;
}

.story-dialog:hover {
    transform: translateX(10px);
}

.magical, .musical {
    position: relative;
    display: inline-block;
}

.magical::after, .musical::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magical:hover::after, .musical:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .story-intro, .story-action, .story-dialog, .story-moral, .story-reveal, .story-climax, .story-ending {
        font-size: 1.1em;
        line-height: 1.6;
    }

    .story-moral {
        padding: 1rem;
    }
}

/* Styles dla przycisku do gier */
.games-link {
    text-align: center;
    margin: 2rem 0 4rem;
    position: relative;
}

.games-link::before,
.games-link::after {
    content: '🎮';
    position: absolute;
    font-size: 2em;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.games-link::before {
    left: 15%;
}

.games-link::after {
    right: 15%;
}

.games-link:hover::before {
    transform: translateY(-50%) rotate(-15deg);
    opacity: 0.4;
    left: 12%;
}

.games-link:hover::after {
    transform: translateY(-50%) rotate(15deg);
    opacity: 0.4;
    right: 12%;
}

.games-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    border-radius: 15px;
    text-decoration: none;
    color: #2C1810;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.games-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFB700, #FF7B00);
    border-radius: 15px;
    transform: translateZ(-8px);
    box-shadow: 0 8px 0 #CC7000;
    z-index: -1;
}

.games-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.games-btn:hover {
    transform: translateY(-2px) translateZ(0);
}

.games-btn:hover::after {
    opacity: 1;
}

.games-btn:active {
    transform: translateY(4px) translateZ(0);
}

.games-btn:active::before {
    box-shadow: 0 4px 0 #CC7000;
}

.games-btn-text {
    font-family: 'Bangers', cursive;
    font-size: 2em;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    position: relative;
    transform: translateZ(10px);
}

.games-btn-text::after {
    content: '🎮';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0;
    transition: all 0.3s ease;
}

.games-btn:hover .games-btn-text::after {
    opacity: 1;
    right: -2em;
}

.games-btn-description {
    font-size: 1em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    transform: translateZ(10px);
}

.games-btn:hover .games-btn-description {
    opacity: 1;
}

@media (max-width: 768px) {
    .games-link::before,
    .games-link::after {
        display: none;
    }

    .games-btn {
        padding: 1.2rem 2rem;
        width: 90%;
        max-width: 300px;
    }

    .games-btn-text {
        font-size: 1.5em;
    }

    .games-btn-description {
        font-size: 0.9em;
    }
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 215, 0, 0.2);
    position: relative; /* Ensure it stays in the flow */
    z-index: 1; /* Ensure it appears above other elements */
}

.nav-profile .login-btn,
.nav-profile .register-btn {
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-profile .login-btn {
    background: transparent;
    color: #2C1810;
    border: 2px solid #FFD700;
}

.nav-profile .login-btn:hover {
    background: #FFD700;
    color: #2C1810;
}

.nav-profile .register-btn {
    background: #FFD700;
    color: #2C1810;
}

.nav-profile .register-btn:hover {
    background: #FF8C00;
    color: white;
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.avatar-emoji {
    font-size: 1.2em;
    line-height: 1;
}

.user-name {
    font-weight: bold;
    color: #2C1810;
}

.user-menu {
    position: absolute;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 220px;
    display: none;
    z-index: 1000;
}

@media (min-width: 769px) {
    .user-menu {
        display: none;
    }
}

.user-menu.active {
    display: block;
    animation: menuFadeIn 0.2s ease forwards;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-header {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2C1810;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.menu-items {
    padding: 5px 0;
}

.user-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2C1810;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95em;
}

.user-menu-item i {
    width: 20px;
    text-align: center;
    color: #666;
}

.user-menu-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.user-menu-item.logout {
    border-top: 1px solid #eee;
    margin-top: 5px;
    color: #d63031;
}

.user-menu-item.logout i {
    color: #d63031;
}

@media (max-width: 768px) {
    .nav-profile {
        margin: 10px 0;
        padding: 10px 0;
        border-left: none;
        border-top: 2px solid rgba(255, 215, 0, 0.2);
        justify-content: center;
    }

    .user-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 15px 15px 0 0;
    }

    .menu-header {
        padding: 20px;
        justify-content: center;
    }

    .user-menu-item {
        padding: 15px 20px;
        justify-content: center;
    }
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 20px;
    right: 20px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2C1810;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    .hamburger-menu {
        display: flex !important; /* Force display */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

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

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-profile {
        margin: 10px 0;
        padding: 10px 0;
        border-left: none;
        border-top: 2px solid rgba(255, 215, 0, 0.2);
        justify-content: center;
        width: 100%;
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.section-title {
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    color: #2C1810;
    text-align: center;
    margin: 40px 0 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
