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

:root {
    --primary-pink: #ff69b4;
    --secondary-pink: #ff1493;
    --light-pink: #ffb6c1;
    --soft-pink: #ffc0cb;
    --light-yellow: #ffeb3b;
    --light-blue: #4fc3f7;
    --light-green: #81c784;
    --white: #ffffff;
    --text-dark: #333333;
    --gradient-pink: linear-gradient(135deg, #ff69b4, #ff1493);
    --gradient-yellow: linear-gradient(135deg, #ffeb3b, #ffc107);
    --gradient-blue: linear-gradient(135deg, #4fc3f7, #2196f3);
    --gradient-green: linear-gradient(135deg, #81c784, #4caf50);
    --shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
    --shadow-yellow: 0 4px 20px rgba(255, 235, 59, 0.3);
    --shadow-blue: 0 4px 20px rgba(79, 195, 247, 0.3);
    --shadow-green: 0 4px 20px rgba(129, 199, 132, 0.3);
    --border-radius: 15px;
}

body {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb, #ff69b4);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-family: 'DotGothic16', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--gradient-pink);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--light-pink);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
}

.logo {
    margin-bottom: 30px;
}

.logo-main {
    font-family: 'Pixelify Sans', monospace;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-pink);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255, 20, 147, 0.3);
}

.logo-sub {
    font-family: 'DotGothic16', monospace;
    font-size: 1.5rem;
    color: var(--secondary-pink);
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.author-credit {
    font-size: 1rem;
    color: var(--text-dark);
    display: block;
    margin-top: 15px;
    text-align: center;
    font-family: 'DotGothic16', monospace;
}

.author-credit a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.author-credit a:hover {
    color: var(--secondary-pink);
    text-decoration: underline;
}

.hero-game {
    display: flex;
    justify-content: center;
}

.game-screen {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.game-screen:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.game-screenshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Play Section */
.play-section {
    padding: 80px 0;
    text-align: center;
}

.play-section h2 {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    font-size: 2.5rem;
    color: var(--secondary-pink);
    margin-bottom: 30px;
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-pink);
    color: var(--white);
    text-decoration: none;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: 'DotGothic16', monospace;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.4);
}

.play-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

.play-description {
    font-size: 1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-block;
}

/* Feedback Section */
.feedback-section {
    padding: 60px 0;
    text-align: center;
    background: rgba(255, 235, 59, 0.1);
}

.feedback-section h2 {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    font-size: 2.2rem;
    color: var(--secondary-pink);
    margin-bottom: 20px;
}

.feedback-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-yellow);
    color: var(--text-dark);
    text-decoration: none;
    padding: 18px 35px;
    font-size: 1.4rem;
    font-family: 'DotGothic16', monospace;
    border-radius: 50px;
    box-shadow: var(--shadow-yellow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-weight: bold;
}

.feedback-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.5);
}

.feedback-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.feedback-note {
    font-size: 0.95rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 10px;
}

/* Compete Section */
.compete-section {
    padding: 60px 0;
    text-align: center;
    background: rgba(79, 195, 247, 0.15);
}

.compete-section h2 {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    font-size: 2.2rem;
    color: var(--secondary-pink);
    margin-bottom: 20px;
}

.compete-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(79, 195, 247, 0.2);
}

.compete-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-blue);
    color: var(--white);
    text-decoration: none;
    padding: 18px 35px;
    font-size: 1.4rem;
    font-family: 'DotGothic16', monospace;
    border-radius: 50px;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-weight: bold;
}

.compete-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(79, 195, 247, 0.5);
}

.compete-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.compete-note {
    font-size: 0.85rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 10px;
    font-style: italic;
}

/* Section Styles */
.story-section,
.howto-section,
.characters-section,
.profile-section,
.quiz-section,
.bgm-section,
.features-section,
.controls-section {
    padding: 80px 0;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-content.reverse .section-text {
    order: 2;
}

.section-content.reverse .section-image {
    order: 1;
}

.section-text h3 {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    font-size: 2rem;
    color: var(--secondary-pink);
    margin-bottom: 20px;
}

.section-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
}

.features-list {
    list-style: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
}

.features-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-pink);
    position: relative;
    padding-left: 30px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "💖";
    position: absolute;
    left: 0;
    top: 10px;
}

.section-image {
    text-align: center;
}

.feature-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Special styling for How to Play section image - make it taller */
.howto-section .feature-image {
    height: 500px;
    max-width: 320px;
}

/* Special styling for Controls section - 3 column layout */
.controls-title {
    font-family: 'DotGothic16', 'Pixelify Sans', monospace;
    font-size: 2rem;
    color: var(--secondary-pink);
    margin-bottom: 40px;
    text-align: center;
}

.controls-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.controls-left,
.controls-right {
    text-align: center;
}

.controls-left h4,
.controls-right h4 {
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: var(--secondary-pink);
    margin-bottom: 15px;
}

.controls-left p,
.controls-right p {
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.2);
}

.controls-center {
    text-align: center;
}

.controls-section .controls-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.controls-section .controls-image:hover {
    transform: scale(1.02);
}

/* Alternating background colors for sections */
.controls-section {
    background: rgba(255, 160, 122, 0.2);
}

.story-section {
    background: rgba(255, 182, 193, 0.3);
}

.howto-section {
    background: rgba(255, 192, 203, 0.3);
}

.characters-section {
    background: rgba(255, 105, 180, 0.1);
}

.features-section {
    background: rgba(255, 20, 147, 0.1);
}

/* New sections with balanced colors */
.profile-section {
    background: rgba(255, 235, 59, 0.15);
}

.profile-section .section-text h3 {
    color: #f57f17;
}

.profile-section .section-text p {
    box-shadow: var(--shadow-yellow);
}

.quiz-section {
    background: rgba(79, 195, 247, 0.15);
}

.quiz-section .section-text h3 {
    color: #0277bd;
}

.quiz-section .section-text p {
    box-shadow: var(--shadow-blue);
}

.bgm-section {
    background: rgba(129, 199, 132, 0.15);
}

.bgm-section .section-text h3 {
    color: #2e7d32;
}

.bgm-section .section-text p {
    box-shadow: var(--shadow-green);
}

/* Footer */
.footer {
    background: var(--gradient-pink);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    font-family: 'DotGothic16', monospace;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-game {
        order: 1;
    }
    
    .logo-main {
        font-size: 2.5rem;
    }
    
    .logo-sub {
        font-size: 1.2rem;
    }
    
    .section-content,
    .section-content.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .section-content.reverse .section-text,
    .section-content.reverse .section-image {
        order: unset;
    }
    
    /* Controls section responsive - stack vertically on mobile */
    .controls-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .controls-section .controls-image {
        max-width: 300px;
    }
    
    .play-button {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .feedback-button {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .compete-button {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .compete-section h2 {
        font-size: 1.8rem;
    }
    
    .feedback-section h2 {
        font-size: 1.8rem;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0 20px;
    }
    
    .logo-main {
        font-size: 2rem;
    }
    
    .logo-sub {
        font-size: 1rem;
    }
    
    .section-text h3 {
        font-size: 1.5rem;
    }
    
    .play-section h2 {
        font-size: 2rem;
    }
    
    .play-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .feedback-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .compete-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .compete-section h2 {
        font-size: 1.6rem;
    }
    
    .compete-section {
        padding: 50px 0;
    }
    
    .feedback-section h2 {
        font-size: 1.6rem;
    }
    
    .feedback-section {
        padding: 50px 0;
    }
    
    .play-section,
    .compete-section,
    .story-section,
    .howto-section,
    .characters-section,
    .features-section,
    .controls-section {
        padding: 60px 0;
    }
    
    .controls-title {
        font-size: 1.5rem;
    }
    
    .controls-left h4,
    .controls-right h4 {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.feature-image,
.game-screenshot,
.controls-image {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

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

/* Cute decorative elements */
.hero::before {
    content: "⭐";
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    animation: twinkle 3s ease-in-out infinite;
}

.hero::after {
    content: "💫";
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 2rem;
    animation: twinkle 3s ease-in-out infinite 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}