/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hand-drawn Button Styles */
.cta-button, .social-button {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 30px;
    background-color: #ffff00;
    color: #000000;
    border: 4px solid #000000;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #000000;
}

.cta-button:hover, .social-button:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 6px 6px 0px #000000;
    background-color: #00ff00;
}

.cta-button:active, .social-button:active {
    transform: rotate(-0.5deg) scale(0.95);
    box-shadow: 2px 2px 0px #000000;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 0, 0, 0.05) 25%, rgba(255, 0, 0, 0.05) 50%, transparent 50%, transparent 75%, rgba(0, 255, 0, 0.05) 75%);
    background-size: 40px 40px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
    border: 5px solid #000000;
    transform: rotate(-2deg);
    box-shadow: 8px 8px 0px #000000;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    transform: rotate(1deg);
    text-shadow: 3px 3px 0px #ff0000;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    transform: rotate(-0.5deg);
    color: #333;
    font-weight: 400;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    transform: rotate(-1deg);
    text-shadow: 2px 2px 0px #0066ff;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-text {
    font-size: 1.3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    transform: rotate(0.5deg);
    line-height: 1.8;
    border: 3px dashed #000000;
    padding: 30px;
    background-color: #ffffcc;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.gallery-item {
    text-align: center;
}

.pixel-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border: 4px solid #000000;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    box-shadow: 4px 4px 0px #000000;
}

.pixel-image:hover {
    transform: rotate(3deg) scale(1.1);
    box-shadow: 8px 8px 0px #ff6600;
    animation: wiggle 0.5s ease-in-out infinite;
}

/* Lore Section */
.lore {
    padding: 80px 0;
    background-color: #ffffff;
}

.lore-quotes {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.quote-bubble {
    background-color: #ff69b4;
    border: 4px solid #000000;
    border-radius: 20px;
    padding: 25px 35px;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 6px 6px 0px #000000;
    max-width: 500px;
}

.quote-bubble:nth-child(2) {
    background-color: #00ffff;
    transform: rotate(1deg);
    align-self: flex-end;
}

.quote-bubble:nth-child(3) {
    background-color: #90ee90;
    transform: rotate(-0.5deg);
    align-self: flex-start;
}

.quote-bubble p {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.quote-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-top-color: #ff69b4;
    border-bottom: 0;
    margin-left: -15px;
}

.quote-bubble:nth-child(2)::after {
    border-top-color: #00ffff;
    left: auto;
    right: 30px;
}

.quote-bubble:nth-child(3)::after {
    border-top-color: #90ee90;
}

/* Community Section */
.community {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.community-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.twitter-btn {
    background-color: #1da1f2;
    color: #ffffff;
    transform: rotate(1deg);
}

.twitter-btn:hover {
    background-color: #0d8bd9;
}

.discord-btn {
    background-color: #7289da;
    color: #ffffff;
    transform: rotate(-1deg);
}

.discord-btn:hover {
    background-color: #5b6eae;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

.footer-doodles {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.doodle-star, .doodle-heart, .doodle-lightning {
    animation: bounce 2s infinite;
    color: #ffff00;
}

.doodle-heart {
    color: #ff69b4;
    animation-delay: 0.3s;
}

.doodle-lightning {
    color: #00ffff;
    animation-delay: 0.6s;
}

.footer-text {
    font-size: 1.1rem;
    transform: rotate(-0.5deg);
}

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

@keyframes wiggle {
    0%, 100% { transform: rotate(3deg) scale(1.1); }
    25% { transform: rotate(-2deg) scale(1.1); }
    50% { transform: rotate(4deg) scale(1.1); }
    75% { transform: rotate(-1deg) scale(1.1); }
}

.bounce {
    animation: bounce 3s infinite;
}

.bounce-delay-1 {
    animation: bounce 4s infinite;
    animation-delay: 0.2s;
}

.bounce-delay-2 {
    animation: bounce 4s infinite;
    animation-delay: 0.8s;
}

.bounce-delay-3 {
    animation: bounce 4s infinite;
    animation-delay: 1.4s;
}

.wiggle {
    animation: wiggle 3s infinite;
}

/* Hand-drawn underline animation */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #ff0000;
    border-radius: 2px;
    animation: draw-underline 2s ease-in-out infinite;
    transform: rotate(-1deg);
}

@keyframes draw-underline {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .lore-quotes {
        align-items: stretch;
    }
    
    .quote-bubble {
        align-self: center !important;
        transform: rotate(0deg);
    }
    
    .footer-doodles {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cta-button, .social-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}
