/* Global Styles & Variables */
:root {
    --minion-yellow: #FEE440;
    --minion-blue: #3A86FF;
    --white: #FFFFFF;
    --dark-blue: #043f6c;
    --text-color: #333;
    --background-light: #f0f8ff;
    --font-heading: 'Bangers', cursive;
    --font-body: 'Comic Sans MS', 'Baloo 2', cursive;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="48" viewport="0 0 100 100" style="fill:black;font-size:24px;"><text y="50%">🍌</text></svg>') 16 0, auto;
}

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

/* General Animations & Effects */
.background-bananas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-bananas::before {
    content: '🍌🍌🍌🍌🍌🍌🍌🍌🍌🍌';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50vw;
    transform: translate(-50%, -50%);
    color: rgba(254, 228, 64, 0.1);
    animation: rotate-bananas 60s linear infinite;
}

@keyframes rotate-bananas {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.banana {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    animation: fall 5s linear;
    z-index: 9999;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-align: center;
    color: var(--minion-blue);
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--minion-yellow);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minion-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--minion-yellow);
    color: var(--dark-blue);
}

.hamburger {
    display: none;
    /* ... Hamburger styles ... */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--minion-blue) 0%, var(--minion-yellow) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: white;
    text-shadow: 4px 4px 0 var(--dark-blue);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-title span {
    display: inline-block;
    animation: bounce 1s infinite;
    margin: 0 0.2rem;
}

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

.hero-title .highlight {
    color: var(--minion-yellow);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    font-family: var(--font-heading);
    background: var(--minion-yellow);
    color: var(--dark-blue);
    text-decoration: none;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2), 0 8px 10px rgba(0,0,0,0.2);
}

/* Minion of the Day Section */
.minion-of-the-day {
    padding: 6rem 0;
    background: white;
}

.motd-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--background-light);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.motd-avatar-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--minion-yellow), #ffc107);
    display: flex;
    align-items: center;
    justify-content: center;
}

.motd-avatar {
    width: 90%;
    height: 90%;
    background-size: cover;
    border-radius: 50%;
    border: 5px solid white;
}

.motd-info h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--dark-blue);
}

.motd-info p {
    margin-bottom: 1.5rem;
}

.motd-stats {
    display: flex;
    gap: 1rem;
}

.motd-stats span {
    background: var(--minion-yellow);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 600;
}

/* Characters Section */
.characters {
    padding: 6rem 0;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.character-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-10px) rotate(3deg);
}

.character-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 5px solid var(--minion-yellow);
    background-size: cover;
    background-position: center;
}

.character-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--minion-blue);
}

/* Games Section */
.games {
    padding: 6rem 0;
    background: var(--minion-blue);
}

.games .section-title {
    color: white;
    text-shadow: 2px 2px 0 var(--dark-blue), 4px 4px 0 var(--minion-yellow);
}

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

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card h3 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    font-size: 2rem;
}

.banana-clicker-game .banana-click {
    font-size: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.banana-clicker-game .banana-click:active {
    transform: scale(1.2);
}

.minion-translator-game input, .minion-translator-game button {
    width: 80%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border: 2px solid var(--minion-blue);
    font-family: var(--font-body);
}

.minion-translator-game button {
    background: var(--minion-yellow);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

#banana-catch-game {
    height: 200px;
    background-color: #87ceeb;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.falling-banana {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

#grus-escape-canvas {
    background-color: #87ceeb;
    border-radius: 10px;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--minion-yellow);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-blue);
    transition: all 0.4s;
    transform-style: preserve-3d;
}

.memory-card.flipped {
    transform: rotateY(180deg);
    background: white;
}

/* Soundboard Section */
.soundboard {
    padding: 6rem 0;
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.sound-button {
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--minion-yellow);
    color: var(--dark-blue);
    border: none;
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.sound-button:hover {
    transform: scale(1.1);
    background: #ffc107;
}

/* Facts Section */
.facts {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6ab1d7, #3d84b8);
}

.facts .section-title {
    color: white;
    text-shadow: 2px 2px 0 var(--dark-blue), 4px 4px 0 var(--minion-yellow);
}

.facts-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.fact-card-container {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
}

.fact-card {
    flex: 0 0 100%;
    background: white;
    padding: 3rem;
    text-align: center;
    transition: transform 0.5s ease;
}

.fact-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fact-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.fact-navigation button {
    background: var(--minion-yellow);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    text-align: center;
}

.top-of-the-month {
    margin-bottom: 2rem;
}

.top-of-the-month h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--minion-blue);
}

#crown {
    display: inline-block;
    animation: crown-bounce 1s infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

#top-fan-art {
    width: 300px;
    height: 200px;
    background: #eee;
    margin: 1rem auto;
    border-radius: 10px;
}

.upload-section {
    margin-bottom: 2rem;
}

/* Minion Generator Section */
.generator {
    padding: 6rem 0;
    background: var(--minion-blue);
}

.generator .section-title {
    color: white;
    text-shadow: 2px 2px 0 var(--dark-blue), 4px 4px 0 var(--minion-yellow);
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 20px;
}

.minion-preview {
    text-align: center;
}

#minion-output {
    width: 300px;
    height: 400px;
    background: #eee;
    margin: 0 auto 1rem;
    border-radius: 20px;
    border: 5px solid var(--dark-blue);
}

.minion-options .option-group {
    margin-bottom: 1rem;
}

.minion-options label {
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--minion-yellow);
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--minion-yellow);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--minion-yellow);
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--minion-blue);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

#modal-image-container {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
}

#modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title { font-size: 3rem; }
    .hero-title { font-size: 4rem; }
    .motd-card { grid-template-columns: 1fr; text-align: center; }
    .motd-avatar-container { margin: 0 auto; }
}